@spaceinvoices/js-sdk 18.35.0 → 18.36.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/stripeAppEntityUpdateSettingsBody.d.cts +20 -0
- package/dist/generated/model/stripeAppEntityUpdateSettingsBody.d.ts +20 -0
- package/dist/generated/model/stripeAppSettings.d.cts +8 -0
- package/dist/generated/model/stripeAppSettings.d.ts +8 -0
- package/dist/generated-zod/stripe-app/stripe-app.d.cts +12 -0
- package/dist/generated-zod/stripe-app/stripe-app.d.ts +12 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -137,9 +137,9 @@ Separator items only use name and description \u2014 all financial fields are ig
|
|
|
137
137
|
When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
|
|
138
138
|
Defaults to true (best-effort). When omitted, behaves like true but won't fail the request if persistence fails.`),sku:e.string().max($5h).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(Q5h).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 purchase order. At least one item is required. A regular line without `price`, `gross_price` or `item_id` (or with a null `price`) is stored with a price of 0."),expected_total_with_tax:e.number().gt(J5h).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."),id:e.string().nullish().describe("Preview only: id of the stored document being edited. The preview shows that document's stored number (and reuses its issued snapshot where supported). Omit when creating."),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()})]),X5h=/^po_[0-9a-f]{24}$/,T1b=e.object({id:e.stringFormat("resource-id",X5h).describe("Purchase order identifier (po_ prefix).")}),D1b=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.")}),R1b=e.object({reason:e.string().min(1).nullish().describe("Technical reason for voiding (e.g., 'Duplicate purchase order', 'Technical error')")}),ekh=36,tkh=100,nkh=255,skh=2,okh=500,ikh=500,akh=20,rkh=100,lkh="FR",dkh=2,ckh=2,ukh="iban",pkh=/^[A-Za-z0-9]{7}$/,mkh=/^(?:[0-9]{11}|[A-Z0-9]{16})$/,xkh=/^RF\d{2}$/,gkh="iban",ykh=20,Okh=128,vkh=/^[A-Za-z0-9:]+$/,hkh=50,bkh=2,Skh=2,fkh=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,zkh=30,Ikh=100,Bkh=2e3,Ekh=2e3,Tkh=2e3,Dkh=2e3,Rkh=2e3,_kh=2e3,Nkh=2e3,Mkh=2e3,Ukh=2e3,Pkh=2e3,Ckh=2e3,wkh=2e3,Akh=2e3,Fkh=2e3,kkh=2e3,jkh=2e3,Hkh=2e3,Lkh=2e3,Gkh=2e3,Vkh=500,Kkh=500,Zkh=500,qkh=500,Wkh=500,Ykh=500,$kh=500,Qkh=500,Jkh=500,Xkh=500,ejh=500,tjh=500,njh=500,sjh=500,ojh=500,ijh=500,ajh=500,rjh=500,ljh=500,djh=2e3,cjh=2e3,ujh=2e3,pjh=2e3,mjh=2e3,xjh=2e3,gjh=2e3,yjh=2e3,Ojh=2e3,vjh=2e3,hjh=2e3,bjh=2e3,Sjh=2e3,fjh=2e3,zjh=2e3,Ijh=2e3,Bjh=2e3,Ejh=2e3,Tjh=2e3,Djh=500,Rjh=500,_jh=500,Njh=500,Mjh=500,Ujh=500,Pjh=500,Cjh=500,wjh=500,Ajh=500,Fjh=500,kjh=500,jjh=500,Hjh=500,Ljh=500,Gjh=500,Vjh=500,Kjh=500,Zjh=500,qjh=2e3,Wjh=2e3,Yjh=2e3,$jh=2e3,Qjh=2e3,Jjh=2e3,Xjh=2e3,eHh=2e3,tHh=2e3,nHh=2e3,sHh=2e3,oHh=2e3,iHh=2e3,aHh=2e3,rHh=2e3,lHh=2e3,dHh=2e3,cHh=2e3,uHh=2e3,pHh=500,mHh=500,xHh=500,gHh=500,yHh=500,OHh=500,vHh=500,hHh=500,bHh=500,SHh=500,fHh=500,zHh=500,IHh=500,BHh=500,EHh=500,THh=500,DHh=500,RHh=500,_Hh=500,NHh=2e3,MHh=2e3,UHh=2e3,PHh=2e3,CHh=2e3,wHh=2e3,AHh=2e3,FHh=2e3,kHh=2e3,jHh=2e3,HHh=2e3,LHh=2e3,GHh=2e3,VHh=2e3,KHh=2e3,ZHh=2e3,qHh=2e3,WHh=2e3,YHh=2e3,$Hh=2e3,QHh=2e3,JHh=2e3,XHh=2e3,eLh=2e3,tLh=2e3,nLh=2e3,sLh=2e3,oLh=2e3,iLh=2e3,aLh=2e3,rLh=2e3,lLh=2e3,dLh=2e3,cLh=2e3,uLh=2e3,pLh=2e3,mLh=2e3,xLh=2e3,gLh=500,yLh=500,OLh=500,vLh=500,hLh=500,bLh=500,SLh=500,fLh=500,zLh=500,ILh=500,BLh=500,ELh=500,TLh=500,DLh=500,RLh=500,_Lh=500,NLh=500,MLh=500,ULh=500,PLh=1e3,CLh=1e3,wLh=1e3,ALh=1e3,FLh=1e3,kLh=1e3,jLh=1e3,HLh=1e3,LLh=1e3,GLh=1e3,VLh=1e3,KLh=1e3,ZLh=1e3,qLh=1e3,WLh=1e3,YLh=1e3,$Lh=1e3,QLh=1e3,JLh=1e3,XLh=500,e1h=500,t1h=500,n1h=500,s1h=500,o1h=500,i1h=500,a1h=500,r1h=500,l1h=500,d1h=500,c1h=500,u1h=500,p1h=500,m1h=500,x1h=500,g1h=500,y1h=500,O1h=500,v1h=2e3,h1h=2e3,b1h=2e3,S1h=2e3,f1h=2e3,z1h=2e3,I1h=2e3,B1h=2e3,E1h=2e3,T1h=2e3,D1h=2e3,R1h=2e3,_1h=2e3,N1h=2e3,M1h=2e3,U1h=2e3,P1h=2e3,C1h=2e3,w1h=2e3,A1h=500,F1h=500,k1h=500,j1h=500,H1h=500,L1h=500,G1h=500,V1h=500,K1h=500,Z1h=500,q1h=500,W1h=500,Y1h=500,$1h=500,Q1h=500,J1h=500,X1h=500,e4h=500,t4h=500,n4h=2e3,s4h=2e3,o4h=2e3,i4h=2e3,a4h=2e3,r4h=2e3,l4h=2e3,d4h=2e3,c4h=2e3,u4h=2e3,p4h=2e3,m4h=2e3,x4h=2e3,g4h=2e3,y4h=2e3,O4h=2e3,v4h=2e3,h4h=2e3,b4h=2e3,S4h=500,f4h=500,z4h=500,I4h=500,B4h=500,E4h=500,T4h=500,D4h=500,R4h=500,_4h=500,N4h=500,M4h=500,U4h=500,P4h=500,C4h=500,w4h=500,A4h=500,F4h=500,k4h=500,j4h=2e3,H4h=2e3,L4h=2e3,G4h=2e3,V4h=2e3,K4h=2e3,Z4h=2e3,q4h=2e3,W4h=2e3,Y4h=2e3,$4h=2e3,Q4h=2e3,J4h=2e3,X4h=2e3,e3h=2e3,t3h=2e3,n3h=2e3,s3h=2e3,o3h=2e3,i3h=500,a3h=500,r3h=500,l3h=500,d3h=500,c3h=500,u3h=500,p3h=500,m3h=500,x3h=500,g3h=500,y3h=500,O3h=500,v3h=500,h3h=500,b3h=500,S3h=500,f3h=500,z3h=500,I3h=2e3,B3h=2e3,E3h=2e3,T3h=2e3,D3h=2e3,R3h=2e3,_3h=2e3,N3h=2e3,M3h=2e3,U3h=2e3,P3h=2e3,C3h=2e3,w3h=2e3,A3h=2e3,F3h=2e3,k3h=2e3,j3h=2e3,H3h=2e3,L3h=2e3,G3h=500,V3h=500,K3h=500,Z3h=500,q3h=500,W3h=500,Y3h=500,$3h=500,Q3h=500,J3h=500,X3h=500,eGh=500,tGh=500,nGh=500,sGh=500,oGh=500,iGh=500,aGh=500,rGh=500,lGh=2e3,dGh=2e3,cGh=2e3,uGh=2e3,pGh=2e3,mGh=2e3,xGh=2e3,gGh=2e3,yGh=2e3,OGh=2e3,vGh=2e3,hGh=2e3,bGh=2e3,SGh=2e3,fGh=2e3,zGh=2e3,IGh=2e3,BGh=2e3,EGh=2e3,TGh=500,DGh=500,RGh=500,_Gh=500,NGh=500,MGh=500,UGh=500,PGh=500,CGh=500,wGh=500,AGh=500,FGh=500,kGh=500,jGh=500,HGh=500,LGh=500,GGh=500,VGh=500,KGh=500,ZGh=2e3,qGh=2e3,WGh=2e3,YGh=2e3,$Gh=2e3,QGh=2e3,JGh=2e3,XGh=2e3,eVh=2e3,tVh=2e3,nVh=2e3,sVh=2e3,oVh=2e3,iVh=2e3,aVh=2e3,rVh=2e3,lVh=2e3,dVh=2e3,cVh=2e3,uVh=500,pVh=500,mVh=500,xVh=500,gVh=500,yVh=500,OVh=500,vVh=500,hVh=500,bVh=500,SVh=500,fVh=500,zVh=500,IVh=500,BVh=500,EVh=500,TVh=500,DVh=500,RVh=500,_Vh=2e3,NVh=2e3,MVh=2e3,UVh=2e3,PVh=2e3,CVh=2e3,wVh=2e3,AVh=2e3,FVh=2e3,kVh=2e3,jVh=2e3,HVh=2e3,LVh=2e3,GVh=2e3,VVh=2e3,KVh=2e3,ZVh=2e3,qVh=2e3,WVh=2e3,YVh=2e3,$Vh=2e3,QVh=2e3,JVh=2e3,XVh=2e3,eKh=2e3,tKh=2e3,nKh=2e3,sKh=2e3,oKh=2e3,iKh=2e3,aKh=2e3,rKh=2e3,lKh=2e3,dKh=2e3,cKh=2e3,uKh=2e3,pKh=2e3,mKh=2e3,xKh=2e3,gKh=2e3,yKh=2e3,OKh=2e3,vKh=2e3,hKh=2e3,bKh=2e3,SKh=2e3,fKh=2e3,zKh=2e3,IKh=2e3,BKh=2e3,EKh=2e3,TKh=2e3,DKh=2e3,RKh=2e3,_Kh=2e3,NKh=2e3,MKh=2e3,UKh=2e3,PKh=2e3,CKh=2e3,wKh=2e3,AKh=2e3,FKh=2e3,kKh=2e3,jKh=2e3,HKh=2e3,LKh=2e3,GKh=2e3,VKh=2e3,KKh=2e3,ZKh=2e3,qKh=2e3,WKh=2e3,YKh=2e3,$Kh=2e3,QKh=2e3,JKh=2e3,XKh=2e3,eZh=2e3,tZh=2e3,nZh=2e3,sZh=2e3,oZh=2e3,iZh=2e3,aZh=2e3,rZh=2e3,lZh=2e3,dZh=2e3,cZh=2e3,uZh=2e3,pZh=2e3,mZh=2e3,xZh=2e3,gZh=2e3,yZh=2e3,OZh=2e3,vZh=2e3,hZh=2e3,bZh=2e3,SZh=2e3,fZh=2e3,zZh=2e3,IZh=2e3,BZh=2e3,EZh=2e3,TZh=2e3,DZh=2e3,RZh=2e3,_Zh=2e3,NZh=2e3,MZh=2e3,UZh=2e3,PZh=2e3,CZh=2e3,wZh=2e3,AZh=2e3,FZh=2e3,kZh=2e3,jZh=2e3,HZh=2e3,LZh=2e3,GZh=2e3,VZh=2e3,KZh=2e3,ZZh=2e3,qZh=2e3,WZh=2e3,YZh=2e3,$Zh=2e3,QZh=2e3,JZh=2e3,XZh=2e3,eqh=2e3,tqh=2e3,nqh=2e3,sqh=2e3,oqh=2e3,iqh=2e3,aqh=2e3,rqh=2e3,lqh=2e3,dqh=2e3,cqh=2e3,uqh=2e3,pqh=2e3,mqh=2e3,xqh=2e3,gqh=2e3,yqh=2e3,Oqh=2e3,vqh=2e3,hqh=2e3,bqh=2e3,Sqh=2e3,fqh=2e3,zqh=2e3,Iqh=2e3,Bqh=2e3,Eqh=2e3,Tqh=2e3,Dqh=2e3,Rqh=2e3,_qh=2e3,Nqh=2e3,Mqh=2e3,Uqh=2e3,Pqh=2e3,Cqh=2e3,wqh=2e3,Aqh=2e3,Fqh=2e3,kqh=2e3,jqh=2e3,Hqh=2e3,Lqh=2e3,Gqh=2e3,Vqh=2e3,Kqh=2e3,Zqh=2e3,qqh=2e3,Wqh=2e3,Yqh=2e3,$qh=2e3,Qqh=2e3,Jqh=2e3,Xqh=2e3,eWh=2e3,tWh=2e3,nWh=2e3,sWh=2e3,oWh=500,iWh="iban",aWh=36,rWh=255,lWh=2,dWh=500,cWh=500,uWh=20,pWh=100,mWh="FR",xWh=2,gWh=2,yWh="iban",OWh=/^[A-Za-z0-9]{7}$/,vWh=/^(?:[0-9]{11}|[A-Z0-9]{16})$/,hWh=/^RF\d{2}$/,bWh="iban",SWh=500,fWh=2e3,zWh=2e3,IWh=2e3,BWh=2e3,EWh=2e3,TWh=2e3,DWh=2e3,RWh=2e3,_Wh=2e3,NWh=2e3,MWh=2e3,UWh=2e3,PWh=2e3,CWh=2e3,wWh=2e3,AWh=2e3,FWh=2e3,kWh=2e3,jWh=2e3,HWh=500,LWh=500,GWh=500,VWh=500,KWh=500,ZWh=500,qWh=500,WWh=500,YWh=500,$Wh=500,QWh=500,JWh=500,XWh=500,e6h=500,t6h=500,n6h=500,s6h=500,o6h=500,i6h=500,a6h=1e3,r6h=1e3,l6h=1e3,d6h=1e3,c6h=1e3,u6h=1e3,p6h=1e3,m6h=1e3,x6h=1e3,g6h=1e3,y6h=1e3,O6h=1e3,v6h=1e3,h6h=1e3,b6h=1e3,S6h=1e3,f6h=1e3,z6h=1e3,I6h=1e3,B6h=10,E6h=36,T6h=-2147483648,D6h=2147483647,R6h=100,_6h=0,N6h=3,M6h=3,U6h=-140737488355328,P6h=0x7fffffffffff,C6h=-140737488355328,w6h=0x7fffffffffff,A6h=36,F6h=500,k6h=0,j6h=100,H6h=2,L6h=2,G6h=0,V6h="percent",K6h=5,Z6h=-140737488355328,q6h=0x7fffffffffff,W6h=-140737488355328,Y6h=0x7fffffffffff,$6h=36,Q6h=36,J6h=36,X6h=500,e7h=500,t7h=500,n7h=500,s7h=500,o7h=500,i7h=500,a7h=500,r7h=500,l7h=500,d7h=500,c7h=500,u7h=500,p7h=500,m7h=500,x7h=500,g7h=500,y7h=500,O7h=500,v7h=2e3,h7h=2e3,b7h=2e3,S7h=2e3,f7h=2e3,z7h=2e3,I7h=2e3,B7h=2e3,E7h=2e3,T7h=2e3,D7h=2e3,R7h=2e3,_7h=2e3,N7h=2e3,M7h=2e3,U7h=2e3,P7h=2e3,C7h=2e3,w7h=2e3,_1b=e.object({id:e.string().max(ekh),number:e.string().max(tkh),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 purchase order 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(nkh).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(skh).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(okh),address_2:e.string().max(ikh).nullish(),post_code:e.string().min(1).max(akh),city:e.string().min(1).max(rkh),country_code:e.string().min(dkh).max(ckh).nullish().default(lkh)}).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(ukh).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(pkh).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(mkh).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(xkh).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(gkh).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(ykh).max(Okh).regex(vkh).describe("Wallet address for this asset."),network:e.string().max(hkh).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(bkh).max(Skh).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(fkh).nullish(),logo_scale_percent:e.number().min(zkh).max(Ikh).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(Bkh).optional(),"de-DE":e.string().max(Ekh).optional(),"it-IT":e.string().max(Tkh).optional(),"fr-FR":e.string().max(Dkh).optional(),"es-ES":e.string().max(Rkh).optional(),"sl-SI":e.string().max(_kh).optional(),"pt-PT":e.string().max(Nkh).optional(),"nl-NL":e.string().max(Mkh).optional(),"pl-PL":e.string().max(Ukh).optional(),"hr-HR":e.string().max(Pkh).optional(),"sv-SE":e.string().max(Ckh).optional(),"fi-FI":e.string().max(wkh).optional(),"et-EE":e.string().max(Akh).optional(),"bg-BG":e.string().max(Fkh).optional(),"cs-CZ":e.string().max(kkh).optional(),"sk-SK":e.string().max(jkh).optional(),"nb-NO":e.string().max(Hkh).optional(),"is-IS":e.string().max(Lkh).optional(),"hu-HU":e.string().max(Gkh).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(Vkh).optional(),"de-DE":e.string().max(Kkh).optional(),"it-IT":e.string().max(Zkh).optional(),"fr-FR":e.string().max(qkh).optional(),"es-ES":e.string().max(Wkh).optional(),"sl-SI":e.string().max(Ykh).optional(),"pt-PT":e.string().max($kh).optional(),"nl-NL":e.string().max(Qkh).optional(),"pl-PL":e.string().max(Jkh).optional(),"hr-HR":e.string().max(Xkh).optional(),"sv-SE":e.string().max(ejh).optional(),"fi-FI":e.string().max(tjh).optional(),"et-EE":e.string().max(njh).optional(),"bg-BG":e.string().max(sjh).optional(),"cs-CZ":e.string().max(ojh).optional(),"sk-SK":e.string().max(ijh).optional(),"nb-NO":e.string().max(ajh).optional(),"is-IS":e.string().max(rjh).optional(),"hu-HU":e.string().max(ljh).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(djh).optional(),"de-DE":e.string().max(cjh).optional(),"it-IT":e.string().max(ujh).optional(),"fr-FR":e.string().max(pjh).optional(),"es-ES":e.string().max(mjh).optional(),"sl-SI":e.string().max(xjh).optional(),"pt-PT":e.string().max(gjh).optional(),"nl-NL":e.string().max(yjh).optional(),"pl-PL":e.string().max(Ojh).optional(),"hr-HR":e.string().max(vjh).optional(),"sv-SE":e.string().max(hjh).optional(),"fi-FI":e.string().max(bjh).optional(),"et-EE":e.string().max(Sjh).optional(),"bg-BG":e.string().max(fjh).optional(),"cs-CZ":e.string().max(zjh).optional(),"sk-SK":e.string().max(Ijh).optional(),"nb-NO":e.string().max(Bjh).optional(),"is-IS":e.string().max(Ejh).optional(),"hu-HU":e.string().max(Tjh).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(Djh).optional(),"de-DE":e.string().max(Rjh).optional(),"it-IT":e.string().max(_jh).optional(),"fr-FR":e.string().max(Njh).optional(),"es-ES":e.string().max(Mjh).optional(),"sl-SI":e.string().max(Ujh).optional(),"pt-PT":e.string().max(Pjh).optional(),"nl-NL":e.string().max(Cjh).optional(),"pl-PL":e.string().max(wjh).optional(),"hr-HR":e.string().max(Ajh).optional(),"sv-SE":e.string().max(Fjh).optional(),"fi-FI":e.string().max(kjh).optional(),"et-EE":e.string().max(jjh).optional(),"bg-BG":e.string().max(Hjh).optional(),"cs-CZ":e.string().max(Ljh).optional(),"sk-SK":e.string().max(Gjh).optional(),"nb-NO":e.string().max(Vjh).optional(),"is-IS":e.string().max(Kjh).optional(),"hu-HU":e.string().max(Zjh).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(qjh).optional(),"de-DE":e.string().max(Wjh).optional(),"it-IT":e.string().max(Yjh).optional(),"fr-FR":e.string().max($jh).optional(),"es-ES":e.string().max(Qjh).optional(),"sl-SI":e.string().max(Jjh).optional(),"pt-PT":e.string().max(Xjh).optional(),"nl-NL":e.string().max(eHh).optional(),"pl-PL":e.string().max(tHh).optional(),"hr-HR":e.string().max(nHh).optional(),"sv-SE":e.string().max(sHh).optional(),"fi-FI":e.string().max(oHh).optional(),"et-EE":e.string().max(iHh).optional(),"bg-BG":e.string().max(aHh).optional(),"cs-CZ":e.string().max(rHh).optional(),"sk-SK":e.string().max(lHh).optional(),"nb-NO":e.string().max(dHh).optional(),"is-IS":e.string().max(cHh).optional(),"hu-HU":e.string().max(uHh).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(pHh).optional(),"de-DE":e.string().max(mHh).optional(),"it-IT":e.string().max(xHh).optional(),"fr-FR":e.string().max(gHh).optional(),"es-ES":e.string().max(yHh).optional(),"sl-SI":e.string().max(OHh).optional(),"pt-PT":e.string().max(vHh).optional(),"nl-NL":e.string().max(hHh).optional(),"pl-PL":e.string().max(bHh).optional(),"hr-HR":e.string().max(SHh).optional(),"sv-SE":e.string().max(fHh).optional(),"fi-FI":e.string().max(zHh).optional(),"et-EE":e.string().max(IHh).optional(),"bg-BG":e.string().max(BHh).optional(),"cs-CZ":e.string().max(EHh).optional(),"sk-SK":e.string().max(THh).optional(),"nb-NO":e.string().max(DHh).optional(),"is-IS":e.string().max(RHh).optional(),"hu-HU":e.string().max(_Hh).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(NHh).optional(),"de-DE":e.string().max(MHh).optional(),"it-IT":e.string().max(UHh).optional(),"fr-FR":e.string().max(PHh).optional(),"es-ES":e.string().max(CHh).optional(),"sl-SI":e.string().max(wHh).optional(),"pt-PT":e.string().max(AHh).optional(),"nl-NL":e.string().max(FHh).optional(),"pl-PL":e.string().max(kHh).optional(),"hr-HR":e.string().max(jHh).optional(),"sv-SE":e.string().max(HHh).optional(),"fi-FI":e.string().max(LHh).optional(),"et-EE":e.string().max(GHh).optional(),"bg-BG":e.string().max(VHh).optional(),"cs-CZ":e.string().max(KHh).optional(),"sk-SK":e.string().max(ZHh).optional(),"nb-NO":e.string().max(qHh).optional(),"is-IS":e.string().max(WHh).optional(),"hu-HU":e.string().max(YHh).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($Hh).optional(),"de-DE":e.string().max(QHh).optional(),"it-IT":e.string().max(JHh).optional(),"fr-FR":e.string().max(XHh).optional(),"es-ES":e.string().max(eLh).optional(),"sl-SI":e.string().max(tLh).optional(),"pt-PT":e.string().max(nLh).optional(),"nl-NL":e.string().max(sLh).optional(),"pl-PL":e.string().max(oLh).optional(),"hr-HR":e.string().max(iLh).optional(),"sv-SE":e.string().max(aLh).optional(),"fi-FI":e.string().max(rLh).optional(),"et-EE":e.string().max(lLh).optional(),"bg-BG":e.string().max(dLh).optional(),"cs-CZ":e.string().max(cLh).optional(),"sk-SK":e.string().max(uLh).optional(),"nb-NO":e.string().max(pLh).optional(),"is-IS":e.string().max(mLh).optional(),"hu-HU":e.string().max(xLh).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(gLh).optional(),"de-DE":e.string().max(yLh).optional(),"it-IT":e.string().max(OLh).optional(),"fr-FR":e.string().max(vLh).optional(),"es-ES":e.string().max(hLh).optional(),"sl-SI":e.string().max(bLh).optional(),"pt-PT":e.string().max(SLh).optional(),"nl-NL":e.string().max(fLh).optional(),"pl-PL":e.string().max(zLh).optional(),"hr-HR":e.string().max(ILh).optional(),"sv-SE":e.string().max(BLh).optional(),"fi-FI":e.string().max(ELh).optional(),"et-EE":e.string().max(TLh).optional(),"bg-BG":e.string().max(DLh).optional(),"cs-CZ":e.string().max(RLh).optional(),"sk-SK":e.string().max(_Lh).optional(),"nb-NO":e.string().max(NLh).optional(),"is-IS":e.string().max(MLh).optional(),"hu-HU":e.string().max(ULh).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(PLh).optional(),"de-DE":e.string().max(CLh).optional(),"it-IT":e.string().max(wLh).optional(),"fr-FR":e.string().max(ALh).optional(),"es-ES":e.string().max(FLh).optional(),"sl-SI":e.string().max(kLh).optional(),"pt-PT":e.string().max(jLh).optional(),"nl-NL":e.string().max(HLh).optional(),"pl-PL":e.string().max(LLh).optional(),"hr-HR":e.string().max(GLh).optional(),"sv-SE":e.string().max(VLh).optional(),"fi-FI":e.string().max(KLh).optional(),"et-EE":e.string().max(ZLh).optional(),"bg-BG":e.string().max(qLh).optional(),"cs-CZ":e.string().max(WLh).optional(),"sk-SK":e.string().max(YLh).optional(),"nb-NO":e.string().max($Lh).optional(),"is-IS":e.string().max(QLh).optional(),"hu-HU":e.string().max(JLh).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(XLh).optional(),"de-DE":e.string().max(e1h).optional(),"it-IT":e.string().max(t1h).optional(),"fr-FR":e.string().max(n1h).optional(),"es-ES":e.string().max(s1h).optional(),"sl-SI":e.string().max(o1h).optional(),"pt-PT":e.string().max(i1h).optional(),"nl-NL":e.string().max(a1h).optional(),"pl-PL":e.string().max(r1h).optional(),"hr-HR":e.string().max(l1h).optional(),"sv-SE":e.string().max(d1h).optional(),"fi-FI":e.string().max(c1h).optional(),"et-EE":e.string().max(u1h).optional(),"bg-BG":e.string().max(p1h).optional(),"cs-CZ":e.string().max(m1h).optional(),"sk-SK":e.string().max(x1h).optional(),"nb-NO":e.string().max(g1h).optional(),"is-IS":e.string().max(y1h).optional(),"hu-HU":e.string().max(O1h).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(v1h).optional(),"de-DE":e.string().max(h1h).optional(),"it-IT":e.string().max(b1h).optional(),"fr-FR":e.string().max(S1h).optional(),"es-ES":e.string().max(f1h).optional(),"sl-SI":e.string().max(z1h).optional(),"pt-PT":e.string().max(I1h).optional(),"nl-NL":e.string().max(B1h).optional(),"pl-PL":e.string().max(E1h).optional(),"hr-HR":e.string().max(T1h).optional(),"sv-SE":e.string().max(D1h).optional(),"fi-FI":e.string().max(R1h).optional(),"et-EE":e.string().max(_1h).optional(),"bg-BG":e.string().max(N1h).optional(),"cs-CZ":e.string().max(M1h).optional(),"sk-SK":e.string().max(U1h).optional(),"nb-NO":e.string().max(P1h).optional(),"is-IS":e.string().max(C1h).optional(),"hu-HU":e.string().max(w1h).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(A1h).optional(),"de-DE":e.string().max(F1h).optional(),"it-IT":e.string().max(k1h).optional(),"fr-FR":e.string().max(j1h).optional(),"es-ES":e.string().max(H1h).optional(),"sl-SI":e.string().max(L1h).optional(),"pt-PT":e.string().max(G1h).optional(),"nl-NL":e.string().max(V1h).optional(),"pl-PL":e.string().max(K1h).optional(),"hr-HR":e.string().max(Z1h).optional(),"sv-SE":e.string().max(q1h).optional(),"fi-FI":e.string().max(W1h).optional(),"et-EE":e.string().max(Y1h).optional(),"bg-BG":e.string().max($1h).optional(),"cs-CZ":e.string().max(Q1h).optional(),"sk-SK":e.string().max(J1h).optional(),"nb-NO":e.string().max(X1h).optional(),"is-IS":e.string().max(e4h).optional(),"hu-HU":e.string().max(t4h).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(n4h).optional(),"de-DE":e.string().max(s4h).optional(),"it-IT":e.string().max(o4h).optional(),"fr-FR":e.string().max(i4h).optional(),"es-ES":e.string().max(a4h).optional(),"sl-SI":e.string().max(r4h).optional(),"pt-PT":e.string().max(l4h).optional(),"nl-NL":e.string().max(d4h).optional(),"pl-PL":e.string().max(c4h).optional(),"hr-HR":e.string().max(u4h).optional(),"sv-SE":e.string().max(p4h).optional(),"fi-FI":e.string().max(m4h).optional(),"et-EE":e.string().max(x4h).optional(),"bg-BG":e.string().max(g4h).optional(),"cs-CZ":e.string().max(y4h).optional(),"sk-SK":e.string().max(O4h).optional(),"nb-NO":e.string().max(v4h).optional(),"is-IS":e.string().max(h4h).optional(),"hu-HU":e.string().max(b4h).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(S4h).optional(),"de-DE":e.string().max(f4h).optional(),"it-IT":e.string().max(z4h).optional(),"fr-FR":e.string().max(I4h).optional(),"es-ES":e.string().max(B4h).optional(),"sl-SI":e.string().max(E4h).optional(),"pt-PT":e.string().max(T4h).optional(),"nl-NL":e.string().max(D4h).optional(),"pl-PL":e.string().max(R4h).optional(),"hr-HR":e.string().max(_4h).optional(),"sv-SE":e.string().max(N4h).optional(),"fi-FI":e.string().max(M4h).optional(),"et-EE":e.string().max(U4h).optional(),"bg-BG":e.string().max(P4h).optional(),"cs-CZ":e.string().max(C4h).optional(),"sk-SK":e.string().max(w4h).optional(),"nb-NO":e.string().max(A4h).optional(),"is-IS":e.string().max(F4h).optional(),"hu-HU":e.string().max(k4h).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(j4h).optional(),"de-DE":e.string().max(H4h).optional(),"it-IT":e.string().max(L4h).optional(),"fr-FR":e.string().max(G4h).optional(),"es-ES":e.string().max(V4h).optional(),"sl-SI":e.string().max(K4h).optional(),"pt-PT":e.string().max(Z4h).optional(),"nl-NL":e.string().max(q4h).optional(),"pl-PL":e.string().max(W4h).optional(),"hr-HR":e.string().max(Y4h).optional(),"sv-SE":e.string().max($4h).optional(),"fi-FI":e.string().max(Q4h).optional(),"et-EE":e.string().max(J4h).optional(),"bg-BG":e.string().max(X4h).optional(),"cs-CZ":e.string().max(e3h).optional(),"sk-SK":e.string().max(t3h).optional(),"nb-NO":e.string().max(n3h).optional(),"is-IS":e.string().max(s3h).optional(),"hu-HU":e.string().max(o3h).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(i3h).optional(),"de-DE":e.string().max(a3h).optional(),"it-IT":e.string().max(r3h).optional(),"fr-FR":e.string().max(l3h).optional(),"es-ES":e.string().max(d3h).optional(),"sl-SI":e.string().max(c3h).optional(),"pt-PT":e.string().max(u3h).optional(),"nl-NL":e.string().max(p3h).optional(),"pl-PL":e.string().max(m3h).optional(),"hr-HR":e.string().max(x3h).optional(),"sv-SE":e.string().max(g3h).optional(),"fi-FI":e.string().max(y3h).optional(),"et-EE":e.string().max(O3h).optional(),"bg-BG":e.string().max(v3h).optional(),"cs-CZ":e.string().max(h3h).optional(),"sk-SK":e.string().max(b3h).optional(),"nb-NO":e.string().max(S3h).optional(),"is-IS":e.string().max(f3h).optional(),"hu-HU":e.string().max(z3h).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(I3h).optional(),"de-DE":e.string().max(B3h).optional(),"it-IT":e.string().max(E3h).optional(),"fr-FR":e.string().max(T3h).optional(),"es-ES":e.string().max(D3h).optional(),"sl-SI":e.string().max(R3h).optional(),"pt-PT":e.string().max(_3h).optional(),"nl-NL":e.string().max(N3h).optional(),"pl-PL":e.string().max(M3h).optional(),"hr-HR":e.string().max(U3h).optional(),"sv-SE":e.string().max(P3h).optional(),"fi-FI":e.string().max(C3h).optional(),"et-EE":e.string().max(w3h).optional(),"bg-BG":e.string().max(A3h).optional(),"cs-CZ":e.string().max(F3h).optional(),"sk-SK":e.string().max(k3h).optional(),"nb-NO":e.string().max(j3h).optional(),"is-IS":e.string().max(H3h).optional(),"hu-HU":e.string().max(L3h).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(G3h).optional(),"de-DE":e.string().max(V3h).optional(),"it-IT":e.string().max(K3h).optional(),"fr-FR":e.string().max(Z3h).optional(),"es-ES":e.string().max(q3h).optional(),"sl-SI":e.string().max(W3h).optional(),"pt-PT":e.string().max(Y3h).optional(),"nl-NL":e.string().max($3h).optional(),"pl-PL":e.string().max(Q3h).optional(),"hr-HR":e.string().max(J3h).optional(),"sv-SE":e.string().max(X3h).optional(),"fi-FI":e.string().max(eGh).optional(),"et-EE":e.string().max(tGh).optional(),"bg-BG":e.string().max(nGh).optional(),"cs-CZ":e.string().max(sGh).optional(),"sk-SK":e.string().max(oGh).optional(),"nb-NO":e.string().max(iGh).optional(),"is-IS":e.string().max(aGh).optional(),"hu-HU":e.string().max(rGh).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(lGh).optional(),"de-DE":e.string().max(dGh).optional(),"it-IT":e.string().max(cGh).optional(),"fr-FR":e.string().max(uGh).optional(),"es-ES":e.string().max(pGh).optional(),"sl-SI":e.string().max(mGh).optional(),"pt-PT":e.string().max(xGh).optional(),"nl-NL":e.string().max(gGh).optional(),"pl-PL":e.string().max(yGh).optional(),"hr-HR":e.string().max(OGh).optional(),"sv-SE":e.string().max(vGh).optional(),"fi-FI":e.string().max(hGh).optional(),"et-EE":e.string().max(bGh).optional(),"bg-BG":e.string().max(SGh).optional(),"cs-CZ":e.string().max(fGh).optional(),"sk-SK":e.string().max(zGh).optional(),"nb-NO":e.string().max(IGh).optional(),"is-IS":e.string().max(BGh).optional(),"hu-HU":e.string().max(EGh).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(TGh).nullish(),"de-DE":e.string().max(DGh).nullish(),"it-IT":e.string().max(RGh).nullish(),"fr-FR":e.string().max(_Gh).nullish(),"es-ES":e.string().max(NGh).nullish(),"sl-SI":e.string().max(MGh).nullish(),"pt-PT":e.string().max(UGh).nullish(),"nl-NL":e.string().max(PGh).nullish(),"pl-PL":e.string().max(CGh).nullish(),"hr-HR":e.string().max(wGh).nullish(),"sv-SE":e.string().max(AGh).nullish(),"fi-FI":e.string().max(FGh).nullish(),"et-EE":e.string().max(kGh).nullish(),"bg-BG":e.string().max(jGh).nullish(),"cs-CZ":e.string().max(HGh).nullish(),"sk-SK":e.string().max(LGh).nullish(),"nb-NO":e.string().max(GGh).nullish(),"is-IS":e.string().max(VGh).nullish(),"hu-HU":e.string().max(KGh).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(ZGh).nullish(),"de-DE":e.string().max(qGh).nullish(),"it-IT":e.string().max(WGh).nullish(),"fr-FR":e.string().max(YGh).nullish(),"es-ES":e.string().max($Gh).nullish(),"sl-SI":e.string().max(QGh).nullish(),"pt-PT":e.string().max(JGh).nullish(),"nl-NL":e.string().max(XGh).nullish(),"pl-PL":e.string().max(eVh).nullish(),"hr-HR":e.string().max(tVh).nullish(),"sv-SE":e.string().max(nVh).nullish(),"fi-FI":e.string().max(sVh).nullish(),"et-EE":e.string().max(oVh).nullish(),"bg-BG":e.string().max(iVh).nullish(),"cs-CZ":e.string().max(aVh).nullish(),"sk-SK":e.string().max(rVh).nullish(),"nb-NO":e.string().max(lVh).nullish(),"is-IS":e.string().max(dVh).nullish(),"hu-HU":e.string().max(cVh).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(uVh).optional(),"de-DE":e.string().max(pVh).optional(),"it-IT":e.string().max(mVh).optional(),"fr-FR":e.string().max(xVh).optional(),"es-ES":e.string().max(gVh).optional(),"sl-SI":e.string().max(yVh).optional(),"pt-PT":e.string().max(OVh).optional(),"nl-NL":e.string().max(vVh).optional(),"pl-PL":e.string().max(hVh).optional(),"hr-HR":e.string().max(bVh).optional(),"sv-SE":e.string().max(SVh).optional(),"fi-FI":e.string().max(fVh).optional(),"et-EE":e.string().max(zVh).optional(),"bg-BG":e.string().max(IVh).optional(),"cs-CZ":e.string().max(BVh).optional(),"sk-SK":e.string().max(EVh).optional(),"nb-NO":e.string().max(TVh).optional(),"is-IS":e.string().max(DVh).optional(),"hu-HU":e.string().max(RVh).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(_Vh).optional(),"de-DE":e.string().max(NVh).optional(),"it-IT":e.string().max(MVh).optional(),"fr-FR":e.string().max(UVh).optional(),"es-ES":e.string().max(PVh).optional(),"sl-SI":e.string().max(CVh).optional(),"pt-PT":e.string().max(wVh).optional(),"nl-NL":e.string().max(AVh).optional(),"pl-PL":e.string().max(FVh).optional(),"hr-HR":e.string().max(kVh).optional(),"sv-SE":e.string().max(jVh).optional(),"fi-FI":e.string().max(HVh).optional(),"et-EE":e.string().max(LVh).optional(),"bg-BG":e.string().max(GVh).optional(),"cs-CZ":e.string().max(VVh).optional(),"sk-SK":e.string().max(KVh).optional(),"nb-NO":e.string().max(ZVh).optional(),"is-IS":e.string().max(qVh).optional(),"hu-HU":e.string().max(WVh).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(YVh).optional(),"de-DE":e.string().max($Vh).optional(),"it-IT":e.string().max(QVh).optional(),"fr-FR":e.string().max(JVh).optional(),"es-ES":e.string().max(XVh).optional(),"sl-SI":e.string().max(eKh).optional(),"pt-PT":e.string().max(tKh).optional(),"nl-NL":e.string().max(nKh).optional(),"pl-PL":e.string().max(sKh).optional(),"hr-HR":e.string().max(oKh).optional(),"sv-SE":e.string().max(iKh).optional(),"fi-FI":e.string().max(aKh).optional(),"et-EE":e.string().max(rKh).optional(),"bg-BG":e.string().max(lKh).optional(),"cs-CZ":e.string().max(dKh).optional(),"sk-SK":e.string().max(cKh).optional(),"nb-NO":e.string().max(uKh).optional(),"is-IS":e.string().max(pKh).optional(),"hu-HU":e.string().max(mKh).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(xKh).optional(),"de-DE":e.string().max(gKh).optional(),"it-IT":e.string().max(yKh).optional(),"fr-FR":e.string().max(OKh).optional(),"es-ES":e.string().max(vKh).optional(),"sl-SI":e.string().max(hKh).optional(),"pt-PT":e.string().max(bKh).optional(),"nl-NL":e.string().max(SKh).optional(),"pl-PL":e.string().max(fKh).optional(),"hr-HR":e.string().max(zKh).optional(),"sv-SE":e.string().max(IKh).optional(),"fi-FI":e.string().max(BKh).optional(),"et-EE":e.string().max(EKh).optional(),"bg-BG":e.string().max(TKh).optional(),"cs-CZ":e.string().max(DKh).optional(),"sk-SK":e.string().max(RKh).optional(),"nb-NO":e.string().max(_Kh).optional(),"is-IS":e.string().max(NKh).optional(),"hu-HU":e.string().max(MKh).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(UKh).nullish(),"de-DE":e.string().max(PKh).nullish(),"it-IT":e.string().max(CKh).nullish(),"fr-FR":e.string().max(wKh).nullish(),"es-ES":e.string().max(AKh).nullish(),"sl-SI":e.string().max(FKh).nullish(),"pt-PT":e.string().max(kKh).nullish(),"nl-NL":e.string().max(jKh).nullish(),"pl-PL":e.string().max(HKh).nullish(),"hr-HR":e.string().max(LKh).nullish(),"sv-SE":e.string().max(GKh).nullish(),"fi-FI":e.string().max(VKh).nullish(),"et-EE":e.string().max(KKh).nullish(),"bg-BG":e.string().max(ZKh).nullish(),"cs-CZ":e.string().max(qKh).nullish(),"sk-SK":e.string().max(WKh).nullish(),"nb-NO":e.string().max(YKh).nullish(),"is-IS":e.string().max($Kh).nullish(),"hu-HU":e.string().max(QKh).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(JKh).optional(),"de-DE":e.string().max(XKh).optional(),"it-IT":e.string().max(eZh).optional(),"fr-FR":e.string().max(tZh).optional(),"es-ES":e.string().max(nZh).optional(),"sl-SI":e.string().max(sZh).optional(),"pt-PT":e.string().max(oZh).optional(),"nl-NL":e.string().max(iZh).optional(),"pl-PL":e.string().max(aZh).optional(),"hr-HR":e.string().max(rZh).optional(),"sv-SE":e.string().max(lZh).optional(),"fi-FI":e.string().max(dZh).optional(),"et-EE":e.string().max(cZh).optional(),"bg-BG":e.string().max(uZh).optional(),"cs-CZ":e.string().max(pZh).optional(),"sk-SK":e.string().max(mZh).optional(),"nb-NO":e.string().max(xZh).optional(),"is-IS":e.string().max(gZh).optional(),"hu-HU":e.string().max(yZh).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(OZh).nullish(),"de-DE":e.string().max(vZh).nullish(),"it-IT":e.string().max(hZh).nullish(),"fr-FR":e.string().max(bZh).nullish(),"es-ES":e.string().max(SZh).nullish(),"sl-SI":e.string().max(fZh).nullish(),"pt-PT":e.string().max(zZh).nullish(),"nl-NL":e.string().max(IZh).nullish(),"pl-PL":e.string().max(BZh).nullish(),"hr-HR":e.string().max(EZh).nullish(),"sv-SE":e.string().max(TZh).nullish(),"fi-FI":e.string().max(DZh).nullish(),"et-EE":e.string().max(RZh).nullish(),"bg-BG":e.string().max(_Zh).nullish(),"cs-CZ":e.string().max(NZh).nullish(),"sk-SK":e.string().max(MZh).nullish(),"nb-NO":e.string().max(UZh).nullish(),"is-IS":e.string().max(PZh).nullish(),"hu-HU":e.string().max(CZh).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(wZh).optional(),"de-DE":e.string().max(AZh).optional(),"it-IT":e.string().max(FZh).optional(),"fr-FR":e.string().max(kZh).optional(),"es-ES":e.string().max(jZh).optional(),"sl-SI":e.string().max(HZh).optional(),"pt-PT":e.string().max(LZh).optional(),"nl-NL":e.string().max(GZh).optional(),"pl-PL":e.string().max(VZh).optional(),"hr-HR":e.string().max(KZh).optional(),"sv-SE":e.string().max(ZZh).optional(),"fi-FI":e.string().max(qZh).optional(),"et-EE":e.string().max(WZh).optional(),"bg-BG":e.string().max(YZh).optional(),"cs-CZ":e.string().max($Zh).optional(),"sk-SK":e.string().max(QZh).optional(),"nb-NO":e.string().max(JZh).optional(),"is-IS":e.string().max(XZh).optional(),"hu-HU":e.string().max(eqh).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(tqh).optional(),"de-DE":e.string().max(nqh).optional(),"it-IT":e.string().max(sqh).optional(),"fr-FR":e.string().max(oqh).optional(),"es-ES":e.string().max(iqh).optional(),"sl-SI":e.string().max(aqh).optional(),"pt-PT":e.string().max(rqh).optional(),"nl-NL":e.string().max(lqh).optional(),"pl-PL":e.string().max(dqh).optional(),"hr-HR":e.string().max(cqh).optional(),"sv-SE":e.string().max(uqh).optional(),"fi-FI":e.string().max(pqh).optional(),"et-EE":e.string().max(mqh).optional(),"bg-BG":e.string().max(xqh).optional(),"cs-CZ":e.string().max(gqh).optional(),"sk-SK":e.string().max(yqh).optional(),"nb-NO":e.string().max(Oqh).optional(),"is-IS":e.string().max(vqh).optional(),"hu-HU":e.string().max(hqh).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(bqh).optional(),"de-DE":e.string().max(Sqh).optional(),"it-IT":e.string().max(fqh).optional(),"fr-FR":e.string().max(zqh).optional(),"es-ES":e.string().max(Iqh).optional(),"sl-SI":e.string().max(Bqh).optional(),"pt-PT":e.string().max(Eqh).optional(),"nl-NL":e.string().max(Tqh).optional(),"pl-PL":e.string().max(Dqh).optional(),"hr-HR":e.string().max(Rqh).optional(),"sv-SE":e.string().max(_qh).optional(),"fi-FI":e.string().max(Nqh).optional(),"et-EE":e.string().max(Mqh).optional(),"bg-BG":e.string().max(Uqh).optional(),"cs-CZ":e.string().max(Pqh).optional(),"sk-SK":e.string().max(Cqh).optional(),"nb-NO":e.string().max(wqh).optional(),"is-IS":e.string().max(Aqh).optional(),"hu-HU":e.string().max(Fqh).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(kqh).optional(),"de-DE":e.string().max(jqh).optional(),"it-IT":e.string().max(Hqh).optional(),"fr-FR":e.string().max(Lqh).optional(),"es-ES":e.string().max(Gqh).optional(),"sl-SI":e.string().max(Vqh).optional(),"pt-PT":e.string().max(Kqh).optional(),"nl-NL":e.string().max(Zqh).optional(),"pl-PL":e.string().max(qqh).optional(),"hr-HR":e.string().max(Wqh).optional(),"sv-SE":e.string().max(Yqh).optional(),"fi-FI":e.string().max($qh).optional(),"et-EE":e.string().max(Qqh).optional(),"bg-BG":e.string().max(Jqh).optional(),"cs-CZ":e.string().max(Xqh).optional(),"sk-SK":e.string().max(eWh).optional(),"nb-NO":e.string().max(tWh).optional(),"is-IS":e.string().max(nWh).optional(),"hu-HU":e.string().max(sWh).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(oWh).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(iWh).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(aWh).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(rWh).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(lWh).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(dWh),address_2:e.string().max(cWh).nullish(),post_code:e.string().min(1).max(uWh),city:e.string().min(1).max(pWh),country_code:e.string().min(xWh).max(gWh).nullish().default(mWh)}).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(yWh).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(OWh).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(vWh).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(hWh).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(bWh).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."),footer:e.string().max(SWh).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(fWh).optional(),"de-DE":e.string().max(zWh).optional(),"it-IT":e.string().max(IWh).optional(),"fr-FR":e.string().max(BWh).optional(),"es-ES":e.string().max(EWh).optional(),"sl-SI":e.string().max(TWh).optional(),"pt-PT":e.string().max(DWh).optional(),"nl-NL":e.string().max(RWh).optional(),"pl-PL":e.string().max(_Wh).optional(),"hr-HR":e.string().max(NWh).optional(),"sv-SE":e.string().max(MWh).optional(),"fi-FI":e.string().max(UWh).optional(),"et-EE":e.string().max(PWh).optional(),"bg-BG":e.string().max(CWh).optional(),"cs-CZ":e.string().max(wWh).optional(),"sk-SK":e.string().max(AWh).optional(),"nb-NO":e.string().max(FWh).optional(),"is-IS":e.string().max(kWh).optional(),"hu-HU":e.string().max(jWh).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(HWh).optional(),"de-DE":e.string().max(LWh).optional(),"it-IT":e.string().max(GWh).optional(),"fr-FR":e.string().max(VWh).optional(),"es-ES":e.string().max(KWh).optional(),"sl-SI":e.string().max(ZWh).optional(),"pt-PT":e.string().max(qWh).optional(),"nl-NL":e.string().max(WWh).optional(),"pl-PL":e.string().max(YWh).optional(),"hr-HR":e.string().max($Wh).optional(),"sv-SE":e.string().max(QWh).optional(),"fi-FI":e.string().max(JWh).optional(),"et-EE":e.string().max(XWh).optional(),"bg-BG":e.string().max(e6h).optional(),"cs-CZ":e.string().max(t6h).optional(),"sk-SK":e.string().max(n6h).optional(),"nb-NO":e.string().max(s6h).optional(),"is-IS":e.string().max(o6h).optional(),"hu-HU":e.string().max(i6h).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(a6h).optional(),"de-DE":e.string().max(r6h).optional(),"it-IT":e.string().max(l6h).optional(),"fr-FR":e.string().max(d6h).optional(),"es-ES":e.string().max(c6h).optional(),"sl-SI":e.string().max(u6h).optional(),"pt-PT":e.string().max(p6h).optional(),"nl-NL":e.string().max(m6h).optional(),"pl-PL":e.string().max(x6h).optional(),"hr-HR":e.string().max(g6h).optional(),"sv-SE":e.string().max(y6h).optional(),"fi-FI":e.string().max(O6h).optional(),"et-EE":e.string().max(v6h).optional(),"bg-BG":e.string().max(h6h).optional(),"cs-CZ":e.string().max(b6h).optional(),"sk-SK":e.string().max(S6h).optional(),"nb-NO":e.string().max(f6h).optional(),"is-IS":e.string().max(z6h).optional(),"hu-HU":e.string().max(I6h).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 purchase order 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(B6h),entity_id:e.string().max(E6h),date_year:e.number().min(T6h).max(D6h),shareable_id:e.string().max(R6h).nullish(),voided_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."),exchange_rate:e.union([e.object({rate:e.number().gt(_6h).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(N6h).max(M6h).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."),total_converted:e.number().min(U6h).max(P6h).nullish(),total_with_tax_converted:e.number().min(C6h).max(w6h).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."),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."),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_delivery:e.iso.datetime({}).nullish().describe("Requested delivery date (ISO 8601 datetime at midnight UTC)"),hide_prices:e.boolean().describe("When true, prices and totals are hidden on the document (quantity-only order)."),items:e.array(e.object({id:e.string().max(A6h),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(F6h),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`."),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(k6h).max(j6h).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(H6h).max(L6h).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(G6h).describe("Discount value"),type:e.enum(["percent","amount"]).default(V6h).describe("Discount type: 'percent' (default) or 'amount'")})).max(K6h).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(Z6h).max(q6h).nullish(),total_with_tax_converted:e.number().min(W6h).max(Y6h).nullish(),purchase_order_id:e.string().max($6h).nullish(),expense_id:e.string().max(Q6h).nullish(),item_id:e.string().max(J6h).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."),translations:e.object({name:e.object({"en-US":e.string().max(X6h).optional(),"de-DE":e.string().max(e7h).optional(),"it-IT":e.string().max(t7h).optional(),"fr-FR":e.string().max(n7h).optional(),"es-ES":e.string().max(s7h).optional(),"sl-SI":e.string().max(o7h).optional(),"pt-PT":e.string().max(i7h).optional(),"nl-NL":e.string().max(a7h).optional(),"pl-PL":e.string().max(r7h).optional(),"hr-HR":e.string().max(l7h).optional(),"sv-SE":e.string().max(d7h).optional(),"fi-FI":e.string().max(c7h).optional(),"et-EE":e.string().max(u7h).optional(),"bg-BG":e.string().max(p7h).optional(),"cs-CZ":e.string().max(m7h).optional(),"sk-SK":e.string().max(x7h).optional(),"nb-NO":e.string().max(g7h).optional(),"is-IS":e.string().max(y7h).optional(),"hu-HU":e.string().max(O7h).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(v7h).optional(),"de-DE":e.string().max(h7h).optional(),"it-IT":e.string().max(b7h).optional(),"fr-FR":e.string().max(S7h).optional(),"es-ES":e.string().max(f7h).optional(),"sl-SI":e.string().max(z7h).optional(),"pt-PT":e.string().max(I7h).optional(),"nl-NL":e.string().max(B7h).optional(),"pl-PL":e.string().max(E7h).optional(),"hr-HR":e.string().max(T7h).optional(),"sv-SE":e.string().max(D7h).optional(),"fi-FI":e.string().max(R7h).optional(),"et-EE":e.string().max(_7h).optional(),"bg-BG":e.string().max(N7h).optional(),"cs-CZ":e.string().max(M7h).optional(),"sk-SK":e.string().max(U7h).optional(),"nb-NO":e.string().max(P7h).optional(),"is-IS":e.string().max(C7h).optional(),"hu-HU":e.string().max(w7h).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.")}))}).describe("Purchase order sent to a supplier");var tn={};$(tn,{CreateRecurringInvoiceBody:()=>M1b,CreateRecurringInvoiceHeader:()=>N1b,DeleteRecurringInvoiceHeader:()=>V1b,DeleteRecurringInvoiceParams:()=>G1b,GetRecurringInvoiceByIdHeader:()=>A1b,GetRecurringInvoiceByIdParams:()=>w1b,GetRecurringInvoiceByIdResponse:()=>F1b,GetRecurringInvoicesHeader:()=>P1b,GetRecurringInvoicesQueryParams:()=>U1b,GetRecurringInvoicesResponse:()=>C1b,PauseRecurringInvoiceHeader:()=>Q1b,PauseRecurringInvoiceParams:()=>$1b,PauseRecurringInvoiceResponse:()=>J1b,PermanentDeleteRecurringInvoiceHeader:()=>Y1b,PermanentDeleteRecurringInvoiceParams:()=>W1b,RestoreRecurringInvoiceHeader:()=>Z1b,RestoreRecurringInvoiceParams:()=>K1b,RestoreRecurringInvoiceResponse:()=>q1b,ResumeRecurringInvoiceHeader:()=>e4b,ResumeRecurringInvoiceParams:()=>X1b,ResumeRecurringInvoiceResponse:()=>t4b,TriggerRecurringInvoiceHeader:()=>s4b,TriggerRecurringInvoiceParams:()=>n4b,TriggerRecurringInvoiceResponse:()=>o4b,UpdateRecurringInvoiceBody:()=>H1b,UpdateRecurringInvoiceHeader:()=>j1b,UpdateRecurringInvoiceParams:()=>k1b,UpdateRecurringInvoiceResponse:()=>L1b,createRecurringInvoiceBodyDayOfMonthMax:()=>G7h,createRecurringInvoiceBodyDayOfMonthMin:()=>L7h,createRecurringInvoiceBodyDayOfWeekMax:()=>H7h,createRecurringInvoiceBodyDayOfWeekMin:()=>j7h,createRecurringInvoiceBodyDocumentIdMax:()=>A7h,createRecurringInvoiceBodyEndDateRegExp:()=>q7h,createRecurringInvoiceBodyIntervalMax:()=>k7h,createRecurringInvoiceBodyIntervalMin:()=>F7h,createRecurringInvoiceBodyMonthOfYearMax:()=>K7h,createRecurringInvoiceBodyMonthOfYearMin:()=>V7h,createRecurringInvoiceBodyPaymentTermsDaysMax:()=>$7h,createRecurringInvoiceBodyPaymentTermsDaysMin:()=>Y7h,createRecurringInvoiceBodySendToMax:()=>W7h,createRecurringInvoiceBodyStartDateRegExp:()=>Z7h,deleteRecurringInvoicePathIdRegExp:()=>_8h,getRecurringInvoiceByIdPathIdRegExp:()=>f9h,getRecurringInvoiceByIdResponseOneDayOfMonthMax:()=>M9h,getRecurringInvoiceByIdResponseOneDayOfMonthMin:()=>N9h,getRecurringInvoiceByIdResponseOneDayOfWeekMax:()=>_9h,getRecurringInvoiceByIdResponseOneDayOfWeekMin:()=>R9h,getRecurringInvoiceByIdResponseOneDocumentIdMax:()=>B9h,getRecurringInvoiceByIdResponseOneEndDateMax:()=>w9h,getRecurringInvoiceByIdResponseOneEntityIdMax:()=>I9h,getRecurringInvoiceByIdResponseOneIdMax:()=>z9h,getRecurringInvoiceByIdResponseOneIntervalMax:()=>D9h,getRecurringInvoiceByIdResponseOneIntervalMin:()=>T9h,getRecurringInvoiceByIdResponseOneInvoicesGeneratedMax:()=>G9h,getRecurringInvoiceByIdResponseOneInvoicesGeneratedMin:()=>L9h,getRecurringInvoiceByIdResponseOneLastErrorMax:()=>K9h,getRecurringInvoiceByIdResponseOneLastGeneratedInvoiceIdMax:()=>V9h,getRecurringInvoiceByIdResponseOneLastRunDateMax:()=>F9h,getRecurringInvoiceByIdResponseOneMonthOfYearMax:()=>P9h,getRecurringInvoiceByIdResponseOneMonthOfYearMin:()=>U9h,getRecurringInvoiceByIdResponseOneNameMax:()=>E9h,getRecurringInvoiceByIdResponseOneNextRunDateMax:()=>A9h,getRecurringInvoiceByIdResponseOnePaymentTermsDaysMax:()=>H9h,getRecurringInvoiceByIdResponseOnePaymentTermsDaysMin:()=>j9h,getRecurringInvoiceByIdResponseOneSendToMax:()=>k9h,getRecurringInvoiceByIdResponseOneStartDateMax:()=>C9h,getRecurringInvoicesQueryLimitDefault:()=>Q7h,getRecurringInvoicesQueryLimitMax:()=>J7h,getRecurringInvoicesResponseDataItemOneDayOfMonthMax:()=>l9h,getRecurringInvoicesResponseDataItemOneDayOfMonthMin:()=>r9h,getRecurringInvoicesResponseDataItemOneDayOfWeekMax:()=>a9h,getRecurringInvoicesResponseDataItemOneDayOfWeekMin:()=>i9h,getRecurringInvoicesResponseDataItemOneDocumentIdMax:()=>t9h,getRecurringInvoicesResponseDataItemOneEndDateMax:()=>p9h,getRecurringInvoicesResponseDataItemOneEntityIdMax:()=>e9h,getRecurringInvoicesResponseDataItemOneIdMax:()=>X7h,getRecurringInvoicesResponseDataItemOneIntervalMax:()=>o9h,getRecurringInvoicesResponseDataItemOneIntervalMin:()=>s9h,getRecurringInvoicesResponseDataItemOneInvoicesGeneratedMax:()=>h9h,getRecurringInvoicesResponseDataItemOneInvoicesGeneratedMin:()=>v9h,getRecurringInvoicesResponseDataItemOneLastErrorMax:()=>S9h,getRecurringInvoicesResponseDataItemOneLastGeneratedInvoiceIdMax:()=>b9h,getRecurringInvoicesResponseDataItemOneLastRunDateMax:()=>x9h,getRecurringInvoicesResponseDataItemOneMonthOfYearMax:()=>c9h,getRecurringInvoicesResponseDataItemOneMonthOfYearMin:()=>d9h,getRecurringInvoicesResponseDataItemOneNameMax:()=>n9h,getRecurringInvoicesResponseDataItemOneNextRunDateMax:()=>m9h,getRecurringInvoicesResponseDataItemOnePaymentTermsDaysMax:()=>O9h,getRecurringInvoicesResponseDataItemOnePaymentTermsDaysMin:()=>y9h,getRecurringInvoicesResponseDataItemOneSendToMax:()=>g9h,getRecurringInvoicesResponseDataItemOneStartDateMax:()=>u9h,pauseRecurringInvoicePathIdRegExp:()=>nYh,pauseRecurringInvoiceResponseOneDayOfMonthMax:()=>pYh,pauseRecurringInvoiceResponseOneDayOfMonthMin:()=>uYh,pauseRecurringInvoiceResponseOneDayOfWeekMax:()=>cYh,pauseRecurringInvoiceResponseOneDayOfWeekMin:()=>dYh,pauseRecurringInvoiceResponseOneDocumentIdMax:()=>iYh,pauseRecurringInvoiceResponseOneEndDateMax:()=>yYh,pauseRecurringInvoiceResponseOneEntityIdMax:()=>oYh,pauseRecurringInvoiceResponseOneIdMax:()=>sYh,pauseRecurringInvoiceResponseOneIntervalMax:()=>lYh,pauseRecurringInvoiceResponseOneIntervalMin:()=>rYh,pauseRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>zYh,pauseRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>fYh,pauseRecurringInvoiceResponseOneLastErrorMax:()=>BYh,pauseRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>IYh,pauseRecurringInvoiceResponseOneLastRunDateMax:()=>vYh,pauseRecurringInvoiceResponseOneMonthOfYearMax:()=>xYh,pauseRecurringInvoiceResponseOneMonthOfYearMin:()=>mYh,pauseRecurringInvoiceResponseOneNameMax:()=>aYh,pauseRecurringInvoiceResponseOneNextRunDateMax:()=>OYh,pauseRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>SYh,pauseRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>bYh,pauseRecurringInvoiceResponseOneSendToMax:()=>hYh,pauseRecurringInvoiceResponseOneStartDateMax:()=>gYh,permanentDeleteRecurringInvoicePathIdRegExp:()=>tYh,restoreRecurringInvoicePathIdRegExp:()=>N8h,restoreRecurringInvoiceResponseOneDayOfMonthMax:()=>H8h,restoreRecurringInvoiceResponseOneDayOfMonthMin:()=>j8h,restoreRecurringInvoiceResponseOneDayOfWeekMax:()=>k8h,restoreRecurringInvoiceResponseOneDayOfWeekMin:()=>F8h,restoreRecurringInvoiceResponseOneDocumentIdMax:()=>P8h,restoreRecurringInvoiceResponseOneEndDateMax:()=>K8h,restoreRecurringInvoiceResponseOneEntityIdMax:()=>U8h,restoreRecurringInvoiceResponseOneIdMax:()=>M8h,restoreRecurringInvoiceResponseOneIntervalMax:()=>A8h,restoreRecurringInvoiceResponseOneIntervalMin:()=>w8h,restoreRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>J8h,restoreRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>Q8h,restoreRecurringInvoiceResponseOneLastErrorMax:()=>eYh,restoreRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>X8h,restoreRecurringInvoiceResponseOneLastRunDateMax:()=>q8h,restoreRecurringInvoiceResponseOneMonthOfYearMax:()=>G8h,restoreRecurringInvoiceResponseOneMonthOfYearMin:()=>L8h,restoreRecurringInvoiceResponseOneNameMax:()=>C8h,restoreRecurringInvoiceResponseOneNextRunDateMax:()=>Z8h,restoreRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>$8h,restoreRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Y8h,restoreRecurringInvoiceResponseOneSendToMax:()=>W8h,restoreRecurringInvoiceResponseOneStartDateMax:()=>V8h,resumeRecurringInvoicePathIdRegExp:()=>EYh,resumeRecurringInvoiceResponseOneDayOfMonthMax:()=>wYh,resumeRecurringInvoiceResponseOneDayOfMonthMin:()=>CYh,resumeRecurringInvoiceResponseOneDayOfWeekMax:()=>PYh,resumeRecurringInvoiceResponseOneDayOfWeekMin:()=>UYh,resumeRecurringInvoiceResponseOneDocumentIdMax:()=>RYh,resumeRecurringInvoiceResponseOneEndDateMax:()=>jYh,resumeRecurringInvoiceResponseOneEntityIdMax:()=>DYh,resumeRecurringInvoiceResponseOneIdMax:()=>TYh,resumeRecurringInvoiceResponseOneIntervalMax:()=>MYh,resumeRecurringInvoiceResponseOneIntervalMin:()=>NYh,resumeRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>qYh,resumeRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>ZYh,resumeRecurringInvoiceResponseOneLastErrorMax:()=>YYh,resumeRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>WYh,resumeRecurringInvoiceResponseOneLastRunDateMax:()=>LYh,resumeRecurringInvoiceResponseOneMonthOfYearMax:()=>FYh,resumeRecurringInvoiceResponseOneMonthOfYearMin:()=>AYh,resumeRecurringInvoiceResponseOneNameMax:()=>_Yh,resumeRecurringInvoiceResponseOneNextRunDateMax:()=>HYh,resumeRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>KYh,resumeRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>VYh,resumeRecurringInvoiceResponseOneSendToMax:()=>GYh,resumeRecurringInvoiceResponseOneStartDateMax:()=>kYh,triggerRecurringInvoiceHeaderXRequestIdMax:()=>QYh,triggerRecurringInvoicePathIdRegExp:()=>$Yh,triggerRecurringInvoiceResponseOneDayOfMonthMax:()=>r$h,triggerRecurringInvoiceResponseOneDayOfMonthMin:()=>a$h,triggerRecurringInvoiceResponseOneDayOfWeekMax:()=>i$h,triggerRecurringInvoiceResponseOneDayOfWeekMin:()=>o$h,triggerRecurringInvoiceResponseOneDocumentIdMax:()=>e$h,triggerRecurringInvoiceResponseOneEndDateMax:()=>u$h,triggerRecurringInvoiceResponseOneEntityIdMax:()=>XYh,triggerRecurringInvoiceResponseOneIdMax:()=>JYh,triggerRecurringInvoiceResponseOneIntervalMax:()=>s$h,triggerRecurringInvoiceResponseOneIntervalMin:()=>n$h,triggerRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>v$h,triggerRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>O$h,triggerRecurringInvoiceResponseOneLastErrorMax:()=>b$h,triggerRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>h$h,triggerRecurringInvoiceResponseOneLastRunDateMax:()=>m$h,triggerRecurringInvoiceResponseOneMonthOfYearMax:()=>d$h,triggerRecurringInvoiceResponseOneMonthOfYearMin:()=>l$h,triggerRecurringInvoiceResponseOneNameMax:()=>t$h,triggerRecurringInvoiceResponseOneNextRunDateMax:()=>p$h,triggerRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>y$h,triggerRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>g$h,triggerRecurringInvoiceResponseOneSendToMax:()=>x$h,triggerRecurringInvoiceResponseOneStartDateMax:()=>c$h,updateRecurringInvoiceBodyDayOfMonthMax:()=>X9h,updateRecurringInvoiceBodyDayOfMonthMin:()=>J9h,updateRecurringInvoiceBodyDayOfWeekMax:()=>Q9h,updateRecurringInvoiceBodyDayOfWeekMin:()=>$9h,updateRecurringInvoiceBodyEndDateRegExp:()=>s8h,updateRecurringInvoiceBodyIntervalMax:()=>Y9h,updateRecurringInvoiceBodyIntervalMin:()=>W9h,updateRecurringInvoiceBodyMonthOfYearMax:()=>t8h,updateRecurringInvoiceBodyMonthOfYearMin:()=>e8h,updateRecurringInvoiceBodyNameMax:()=>q9h,updateRecurringInvoiceBodyPaymentTermsDaysMax:()=>a8h,updateRecurringInvoiceBodyPaymentTermsDaysMin:()=>i8h,updateRecurringInvoiceBodySendToMax:()=>o8h,updateRecurringInvoiceBodyStartDateRegExp:()=>n8h,updateRecurringInvoicePathIdRegExp:()=>Z9h,updateRecurringInvoiceResponseOneDayOfMonthMax:()=>y8h,updateRecurringInvoiceResponseOneDayOfMonthMin:()=>g8h,updateRecurringInvoiceResponseOneDayOfWeekMax:()=>x8h,updateRecurringInvoiceResponseOneDayOfWeekMin:()=>m8h,updateRecurringInvoiceResponseOneDocumentIdMax:()=>d8h,updateRecurringInvoiceResponseOneEndDateMax:()=>b8h,updateRecurringInvoiceResponseOneEntityIdMax:()=>l8h,updateRecurringInvoiceResponseOneIdMax:()=>r8h,updateRecurringInvoiceResponseOneIntervalMax:()=>p8h,updateRecurringInvoiceResponseOneIntervalMin:()=>u8h,updateRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>T8h,updateRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>E8h,updateRecurringInvoiceResponseOneLastErrorMax:()=>R8h,updateRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>D8h,updateRecurringInvoiceResponseOneLastRunDateMax:()=>f8h,updateRecurringInvoiceResponseOneMonthOfYearMax:()=>v8h,updateRecurringInvoiceResponseOneMonthOfYearMin:()=>O8h,updateRecurringInvoiceResponseOneNameMax:()=>c8h,updateRecurringInvoiceResponseOneNextRunDateMax:()=>S8h,updateRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>B8h,updateRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>I8h,updateRecurringInvoiceResponseOneSendToMax:()=>z8h,updateRecurringInvoiceResponseOneStartDateMax:()=>h8h});var N1b=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.")}),A7h=36,F7h=-2147483648,k7h=2147483647,j7h=-2147483648,H7h=2147483647,L7h=-2147483648,G7h=2147483647,V7h=-2147483648,K7h=2147483647,Z7h=/^\d{4}-\d{2}-\d{2}$/,q7h=/^\d{4}-\d{2}-\d{2}$/,W7h=255,Y7h=-2147483648,$7h=2147483647,M1b=e.object({document_id:e.string().max(A7h),name:e.string().min(1),frequency:e.enum(["daily","weekly","monthly","yearly"]),interval:e.number().min(F7h).max(k7h).optional(),day_of_week:e.number().min(j7h).max(H7h).nullish(),day_of_month:e.number().min(L7h).max(G7h).nullish(),month_of_year:e.number().min(V7h).max(K7h).nullish(),start_date:e.string().regex(Z7h).describe("Start date in YYYY-MM-DD format"),end_date:e.string().regex(q7h).optional().describe("End date in YYYY-MM-DD format (null = no end)"),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(W7h).nullish(),payment_terms_days:e.number().min(Y7h).max($7h).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.")}),Q7h=10,J7h=100,U1b=e.object({limit:e.number().min(1).max(J7h).default(Q7h).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","status","next_run_date","created_at","-id","-name","-status","-next_run_date","-created_at"]),e.array(e.enum(["id","name","status","next_run_date","created_at","-id","-name","-status","-next_run_date","-created_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, status, frequency, document_id\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.
|
|
139
139
|
Searches are case-insensitive and match partial strings.
|
|
140
|
-
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.")}),P1b=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.")}),X7h=36,e9h=36,t9h=36,n9h=255,s9h=-2147483648,o9h=2147483647,i9h=-2147483648,a9h=2147483647,r9h=-2147483648,l9h=2147483647,d9h=-2147483648,c9h=2147483647,u9h=10,p9h=10,m9h=10,x9h=10,g9h=255,y9h=-2147483648,O9h=2147483647,v9h=-2147483648,h9h=2147483647,b9h=36,S9h=1e3,C1b=e.object({data:e.array(e.object({id:e.string().max(X7h),entity_id:e.string().max(e9h),document_id:e.string().max(t9h),name:e.string().max(n9h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(s9h).max(o9h),day_of_week:e.number().min(i9h).max(a9h).nullish(),day_of_month:e.number().min(r9h).max(l9h).nullish(),month_of_year:e.number().min(d9h).max(c9h).nullish(),start_date:e.string().max(u9h),end_date:e.string().max(p9h).nullish(),next_run_date:e.string().max(m9h).nullish(),last_run_date:e.string().max(x9h).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(g9h).nullish(),payment_terms_days:e.number().min(y9h).max(O9h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(v9h).max(h9h),last_generated_invoice_id:e.string().max(b9h).nullish(),last_error:e.string().max(S9h).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")}),f9h=/^[a-z]{3,4}_[0-9a-f]{24}$/,w1b=e.object({id:e.stringFormat("resource-id",f9h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),A1b=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.")}),z9h=36,I9h=36,B9h=36,E9h=255,T9h=-2147483648,D9h=2147483647,R9h=-2147483648,_9h=2147483647,N9h=-2147483648,M9h=2147483647,U9h=-2147483648,P9h=2147483647,C9h=10,w9h=10,A9h=10,F9h=10,k9h=255,j9h=-2147483648,H9h=2147483647,L9h=-2147483648,G9h=2147483647,V9h=36,K9h=1e3,F1b=e.object({id:e.string().max(z9h),entity_id:e.string().max(I9h),document_id:e.string().max(B9h),name:e.string().max(E9h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(T9h).max(D9h),day_of_week:e.number().min(R9h).max(_9h).nullish(),day_of_month:e.number().min(N9h).max(M9h).nullish(),month_of_year:e.number().min(U9h).max(P9h).nullish(),start_date:e.string().max(C9h),end_date:e.string().max(w9h).nullish(),next_run_date:e.string().max(A9h).nullish(),last_run_date:e.string().max(F9h).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(k9h).nullish(),payment_terms_days:e.number().min(j9h).max(H9h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(L9h).max(G9h),last_generated_invoice_id:e.string().max(V9h).nullish(),last_error:e.string().max(K9h).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"),Z9h=/^[a-z]{3,4}_[0-9a-f]{24}$/,k1b=e.object({id:e.stringFormat("resource-id",Z9h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),j1b=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.")}),q9h=255,W9h=-2147483648,Y9h=2147483647,$9h=-2147483648,Q9h=2147483647,J9h=-2147483648,X9h=2147483647,e8h=-2147483648,t8h=2147483647,n8h=/^\d{4}-\d{2}-\d{2}$/,s8h=/^\d{4}-\d{2}-\d{2}$/,o8h=255,i8h=-2147483648,a8h=2147483647,H1b=e.object({name:e.string().max(q9h).optional(),frequency:e.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e.number().min(W9h).max(Y9h).optional(),day_of_week:e.number().min($9h).max(Q9h).nullish(),day_of_month:e.number().min(J9h).max(X9h).nullish(),month_of_year:e.number().min(e8h).max(t8h).nullish(),start_date:e.string().regex(n8h).optional(),end_date:e.string().regex(s8h).nullish(),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(o8h).nullish(),payment_terms_days:e.number().min(i8h).max(a8h).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.")}),r8h=36,l8h=36,d8h=36,c8h=255,u8h=-2147483648,p8h=2147483647,m8h=-2147483648,x8h=2147483647,g8h=-2147483648,y8h=2147483647,O8h=-2147483648,v8h=2147483647,h8h=10,b8h=10,S8h=10,f8h=10,z8h=255,I8h=-2147483648,B8h=2147483647,E8h=-2147483648,T8h=2147483647,D8h=36,R8h=1e3,L1b=e.object({id:e.string().max(r8h),entity_id:e.string().max(l8h),document_id:e.string().max(d8h),name:e.string().max(c8h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(u8h).max(p8h),day_of_week:e.number().min(m8h).max(x8h).nullish(),day_of_month:e.number().min(g8h).max(y8h).nullish(),month_of_year:e.number().min(O8h).max(v8h).nullish(),start_date:e.string().max(h8h),end_date:e.string().max(b8h).nullish(),next_run_date:e.string().max(S8h).nullish(),last_run_date:e.string().max(f8h).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(z8h).nullish(),payment_terms_days:e.number().min(I8h).max(B8h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(E8h).max(T8h),last_generated_invoice_id:e.string().max(D8h).nullish(),last_error:e.string().max(R8h).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"),_8h=/^[a-z]{3,4}_[0-9a-f]{24}$/,G1b=e.object({id:e.stringFormat("resource-id",_8h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V1b=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.")}),N8h=/^[a-z]{3,4}_[0-9a-f]{24}$/,K1b=e.object({id:e.stringFormat("resource-id",N8h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Z1b=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.")}),M8h=36,U8h=36,P8h=36,C8h=255,w8h=-2147483648,A8h=2147483647,F8h=-2147483648,k8h=2147483647,j8h=-2147483648,H8h=2147483647,L8h=-2147483648,G8h=2147483647,V8h=10,K8h=10,Z8h=10,q8h=10,W8h=255,Y8h=-2147483648,$8h=2147483647,Q8h=-2147483648,J8h=2147483647,X8h=36,eYh=1e3,q1b=e.object({id:e.string().max(M8h),entity_id:e.string().max(U8h),document_id:e.string().max(P8h),name:e.string().max(C8h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(w8h).max(A8h),day_of_week:e.number().min(F8h).max(k8h).nullish(),day_of_month:e.number().min(j8h).max(H8h).nullish(),month_of_year:e.number().min(L8h).max(G8h).nullish(),start_date:e.string().max(V8h),end_date:e.string().max(K8h).nullish(),next_run_date:e.string().max(Z8h).nullish(),last_run_date:e.string().max(q8h).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(W8h).nullish(),payment_terms_days:e.number().min(Y8h).max($8h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Q8h).max(J8h),last_generated_invoice_id:e.string().max(X8h).nullish(),last_error:e.string().max(eYh).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"),tYh=/^[a-z]{3,4}_[0-9a-f]{24}$/,W1b=e.object({id:e.stringFormat("resource-id",tYh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Y1b=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.")}),nYh=/^[a-z]{3,4}_[0-9a-f]{24}$/,$1b=e.object({id:e.stringFormat("resource-id",nYh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q1b=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.")}),sYh=36,oYh=36,iYh=36,aYh=255,rYh=-2147483648,lYh=2147483647,dYh=-2147483648,cYh=2147483647,uYh=-2147483648,pYh=2147483647,mYh=-2147483648,xYh=2147483647,gYh=10,yYh=10,OYh=10,vYh=10,hYh=255,bYh=-2147483648,SYh=2147483647,fYh=-2147483648,zYh=2147483647,IYh=36,BYh=1e3,J1b=e.object({id:e.string().max(sYh),entity_id:e.string().max(oYh),document_id:e.string().max(iYh),name:e.string().max(aYh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(rYh).max(lYh),day_of_week:e.number().min(dYh).max(cYh).nullish(),day_of_month:e.number().min(uYh).max(pYh).nullish(),month_of_year:e.number().min(mYh).max(xYh).nullish(),start_date:e.string().max(gYh),end_date:e.string().max(yYh).nullish(),next_run_date:e.string().max(OYh).nullish(),last_run_date:e.string().max(vYh).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(hYh).nullish(),payment_terms_days:e.number().min(bYh).max(SYh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(fYh).max(zYh),last_generated_invoice_id:e.string().max(IYh).nullish(),last_error:e.string().max(BYh).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"),EYh=/^[a-z]{3,4}_[0-9a-f]{24}$/,X1b=e.object({id:e.stringFormat("resource-id",EYh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),e4b=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.")}),TYh=36,DYh=36,RYh=36,_Yh=255,NYh=-2147483648,MYh=2147483647,UYh=-2147483648,PYh=2147483647,CYh=-2147483648,wYh=2147483647,AYh=-2147483648,FYh=2147483647,kYh=10,jYh=10,HYh=10,LYh=10,GYh=255,VYh=-2147483648,KYh=2147483647,ZYh=-2147483648,qYh=2147483647,WYh=36,YYh=1e3,t4b=e.object({id:e.string().max(TYh),entity_id:e.string().max(DYh),document_id:e.string().max(RYh),name:e.string().max(_Yh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(NYh).max(MYh),day_of_week:e.number().min(UYh).max(PYh).nullish(),day_of_month:e.number().min(CYh).max(wYh).nullish(),month_of_year:e.number().min(AYh).max(FYh).nullish(),start_date:e.string().max(kYh),end_date:e.string().max(jYh).nullish(),next_run_date:e.string().max(HYh).nullish(),last_run_date:e.string().max(LYh).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(GYh).nullish(),payment_terms_days:e.number().min(VYh).max(KYh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(ZYh).max(qYh),last_generated_invoice_id:e.string().max(WYh).nullish(),last_error:e.string().max(YYh).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"),$Yh=/^[a-z]{3,4}_[0-9a-f]{24}$/,n4b=e.object({id:e.stringFormat("resource-id",$Yh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),QYh=100,s4b=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(QYh).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/).")}),JYh=36,XYh=36,e$h=36,t$h=255,n$h=-2147483648,s$h=2147483647,o$h=-2147483648,i$h=2147483647,a$h=-2147483648,r$h=2147483647,l$h=-2147483648,d$h=2147483647,c$h=10,u$h=10,p$h=10,m$h=10,x$h=255,g$h=-2147483648,y$h=2147483647,O$h=-2147483648,v$h=2147483647,h$h=36,b$h=1e3,o4b=e.object({id:e.string().max(JYh),entity_id:e.string().max(XYh),document_id:e.string().max(e$h),name:e.string().max(t$h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(n$h).max(s$h),day_of_week:e.number().min(o$h).max(i$h).nullish(),day_of_month:e.number().min(a$h).max(r$h).nullish(),month_of_year:e.number().min(l$h).max(d$h).nullish(),start_date:e.string().max(c$h),end_date:e.string().max(u$h).nullish(),next_run_date:e.string().max(p$h).nullish(),last_run_date:e.string().max(m$h).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(x$h).nullish(),payment_terms_days:e.number().min(g$h).max(y$h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(O$h).max(v$h),last_generated_invoice_id:e.string().max(h$h).nullish(),last_error:e.string().max(b$h).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 nn={};$(nn,{BackfillRevenueRecognitionBody:()=>u4b,BackfillRevenueRecognitionHeader:()=>c4b,BackfillRevenueRecognitionResponse:()=>p4b,GetRevenueRecognitionDetailsHeader:()=>O4b,GetRevenueRecognitionDetailsQueryParams:()=>y4b,GetRevenueRecognitionDetailsResponse:()=>v4b,GetRevenueRecognitionDocumentScheduleHeader:()=>z4b,GetRevenueRecognitionDocumentScheduleParams:()=>f4b,GetRevenueRecognitionDocumentScheduleResponse:()=>I4b,GetRevenueRecognitionReportHeader:()=>x4b,GetRevenueRecognitionReportQueryParams:()=>m4b,GetRevenueRecognitionReportResponse:()=>g4b,GetRevenueRecognitionSettingsHeader:()=>i4b,GetRevenueRecognitionSettingsResponse:()=>a4b,ListRevenueRecognitionLinesHeader:()=>b4b,ListRevenueRecognitionLinesQueryParams:()=>h4b,ListRevenueRecognitionLinesResponse:()=>S4b,UpdateRevenueRecognitionSettingsBody:()=>l4b,UpdateRevenueRecognitionSettingsHeader:()=>r4b,UpdateRevenueRecognitionSettingsResponse:()=>d4b,backfillRevenueRecognitionBodyDryRunDefault:()=>I$h,getRevenueRecognitionDetailsQueryBasisDefault:()=>T$h,getRevenueRecognitionDetailsQueryFinancialCategoryKeyMax:()=>R$h,getRevenueRecognitionDetailsQueryGroupByDefault:()=>D$h,getRevenueRecognitionDocumentSchedulePathIdRegExp:()=>P$h,getRevenueRecognitionReportQueryBasisDefault:()=>B$h,getRevenueRecognitionReportQueryGroupByDefault:()=>E$h,getRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>S$h,listRevenueRecognitionLinesQueryBasisDefault:()=>_$h,listRevenueRecognitionLinesQueryFinancialCategoryKeyMax:()=>M$h,listRevenueRecognitionLinesQueryGroupByDefault:()=>N$h,listRevenueRecognitionLinesQueryLimitMax:()=>U$h,updateRevenueRecognitionSettingsBodyDefaultMethodDefault:()=>f$h,updateRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>z$h});var i4b=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.")}),S$h="off",a4b=e.object({default_method:e.enum(["off","service_period_daily"]).default(S$h).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),r4b=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.")}),f$h="off",l4b=e.object({default_method:e.union([e.literal("off"),e.literal("service_period_daily"),e.literal(null)]).nullish().default(f$h).describe("Entity default for generated revenue recognition entries. Send null to clear back to the default off behavior.")}),z$h="off",d4b=e.object({default_method:e.enum(["off","service_period_daily"]).default(z$h).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),c4b=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.")}),I$h=false,u4b=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(I$h).describe("When true, counts eligible documents without writing entries.")}),p4b=e.object({processed_documents:e.number(),generated_entries:e.number(),dry_run:e.boolean()}),B$h="recognized",E$h="financial_category",m4b=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(B$h).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(E$h).describe("Report grouping dimension.")}),x4b=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.")}),g4b=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()}),T$h="recognized",D$h="financial_category",R$h=200,y4b=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(T$h).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(D$h).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(R$h).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.")}),O4b=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.")}),v4b=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()}),_$h="recognized",N$h="financial_category",M$h=200,U$h=100,h4b=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(_$h).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(N$h).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(M$h).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(U$h).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.")}),b4b=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.")}),S4b=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")}),P$h=/^[a-z]{3,4}_[0-9a-f]{24}$/,f4b=e.object({id:e.stringFormat("resource-id",P$h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),z4b=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.")}),I4b=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 sn={};$(sn,{CancelShipmentBody:()=>G4b,CancelShipmentHeader:()=>L4b,CancelShipmentParams:()=>H4b,CancelShipmentResponse:()=>V4b,CreateShipmentBody:()=>U4b,CreateShipmentHeader:()=>M4b,DownloadShipmentLabelHeader:()=>j4b,DownloadShipmentLabelParams:()=>k4b,DownloadShipmentLabelsBody:()=>C4b,DownloadShipmentLabelsHeader:()=>P4b,GetOrderShipmentDraftHeader:()=>T4b,GetOrderShipmentDraftParams:()=>B4b,GetOrderShipmentDraftQueryParams:()=>E4b,GetOrderShipmentDraftResponse:()=>D4b,GetShipmentHeader:()=>A4b,GetShipmentParams:()=>w4b,GetShipmentResponse:()=>F4b,ListShipmentsHeader:()=>_4b,ListShipmentsQueryParams:()=>R4b,ListShipmentsResponse:()=>N4b,cancelShipmentPathIdRegExp:()=>EQh,cancelShipmentResponseCodOneAmountExclusiveMin:()=>DQh,cancelShipmentResponseParcelCountMax:()=>TQh,cancelShipmentResponseRecipientCityMax:()=>UQh,cancelShipmentResponseRecipientContactMax:()=>_Qh,cancelShipmentResponseRecipientCountryRegExp:()=>CQh,cancelShipmentResponseRecipientEmailMax:()=>AQh,cancelShipmentResponseRecipientHouseNumberMax:()=>MQh,cancelShipmentResponseRecipientNameMax:()=>RQh,cancelShipmentResponseRecipientPhoneMax:()=>wQh,cancelShipmentResponseRecipientPostCodeMax:()=>PQh,cancelShipmentResponseRecipientStreetMax:()=>NQh,createShipmentBodyCodOneAmountExclusiveMin:()=>lQh,createShipmentBodyCodOneReferenceMax:()=>dQh,createShipmentBodyParcelCountMax:()=>aQh,createShipmentBodyRecipientOneCityMax:()=>tQh,createShipmentBodyRecipientOneContactMax:()=>J$h,createShipmentBodyRecipientOneCountryRegExp:()=>sQh,createShipmentBodyRecipientOneEmailMax:()=>iQh,createShipmentBodyRecipientOneHouseNumberMax:()=>eQh,createShipmentBodyRecipientOneNameMax:()=>Q$h,createShipmentBodyRecipientOnePhoneMax:()=>oQh,createShipmentBodyRecipientOnePostCodeMax:()=>nQh,createShipmentBodyRecipientOneStreetMax:()=>X$h,createShipmentBodyReferenceMax:()=>cQh,createShipmentBodyRemarkMax:()=>uQh,createShipmentBodyWeightKgExclusiveMin:()=>rQh,downloadShipmentLabelPathIdRegExp:()=>BQh,downloadShipmentLabelsBodyShipmentIdsMax:()=>pQh,getOrderShipmentDraftPathIdRegExp:()=>C$h,getOrderShipmentDraftResponseCodOneAmountExclusiveMin:()=>A$h,getOrderShipmentDraftResponseParcelCountMax:()=>w$h,getShipmentPathIdRegExp:()=>mQh,getShipmentResponseCodOneAmountExclusiveMin:()=>gQh,getShipmentResponseParcelCountMax:()=>xQh,getShipmentResponseRecipientCityMax:()=>bQh,getShipmentResponseRecipientContactMax:()=>OQh,getShipmentResponseRecipientCountryRegExp:()=>fQh,getShipmentResponseRecipientEmailMax:()=>IQh,getShipmentResponseRecipientHouseNumberMax:()=>hQh,getShipmentResponseRecipientNameMax:()=>yQh,getShipmentResponseRecipientPhoneMax:()=>zQh,getShipmentResponseRecipientPostCodeMax:()=>SQh,getShipmentResponseRecipientStreetMax:()=>vQh,listShipmentsQueryLimitDefault:()=>F$h,listShipmentsQueryLimitMax:()=>k$h,listShipmentsResponseDataItemCodOneAmountExclusiveMin:()=>H$h,listShipmentsResponseDataItemParcelCountMax:()=>j$h,listShipmentsResponseDataItemRecipientCityMax:()=>Z$h,listShipmentsResponseDataItemRecipientContactMax:()=>G$h,listShipmentsResponseDataItemRecipientCountryRegExp:()=>W$h,listShipmentsResponseDataItemRecipientEmailMax:()=>$$h,listShipmentsResponseDataItemRecipientHouseNumberMax:()=>K$h,listShipmentsResponseDataItemRecipientNameMax:()=>L$h,listShipmentsResponseDataItemRecipientPhoneMax:()=>Y$h,listShipmentsResponseDataItemRecipientPostCodeMax:()=>q$h,listShipmentsResponseDataItemRecipientStreetMax:()=>V$h});var C$h=/^[a-z]{3,4}_[0-9a-f]{24}$/,B4b=e.object({id:e.stringFormat("resource-id",C$h).describe("Order identifier (ord_ prefix).")}),E4b=e.object({shipping_connection_id:e.string().optional().describe("Connection to derive the draft for. Defaults to the entity's single active connection.")}),T4b=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.")}),w$h=30,A$h=0,D4b=e.object({shipping_connection_id:e.string(),recipient:e.object({name:e.string().describe("Recipient name; may be empty or over 35 characters."),contact:e.string().nullish().describe("Contact person when `name` is a company."),street:e.string().describe("Street name without the house number."),house_number:e.string().describe("House number; empty when the order has none."),city:e.string(),post_code:e.string(),country:e.string().describe("Country code as found on the order."),phone:e.string().nullish(),email:e.string().nullish()}).describe("Recipient address pre-filled from an order. Values are not checked against the carrier limits; see `warnings`."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(w$h),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(A$h).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),reference:e.string().nullable().describe("Order number, up to 20 characters."),remark:e.string().nullable(),warnings:e.array(e.object({field:e.string(),code:e.string()}).describe("A problem found while pre-filling a shipment from an order.")).describe("Values that need attention before creating the shipment (missing or over-long fields, dropped address line 2, an unsupported COD currency). Over-long values are kept, never truncated. Limits: name 35, street 35, house number 8, city 35, post code 9, email 50, phone 30.")}).describe("Shipment values derived from an order, ready to review and submit."),F$h=10,k$h=100,R4b=e.object({limit:e.number().min(1).max(k$h).default(F$h).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_id:e.string().optional().describe("Only shipments of this order."),status:e.enum(["creating","created","cancelled","failed","unknown"]).optional().describe("Only shipments in this status.")}),_4b=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.")}),j$h=30,H$h=0,L$h=35,G$h=35,V$h=35,K$h=8,Z$h=35,q$h=9,W$h=/^[A-Za-z]{2}$/,Y$h=30,$$h=50,N4b=e.object({data:e.array(e.object({id:e.string().describe("Shipment identifier (shp_ prefix)."),entity_id:e.string(),order_id:e.string().nullable().describe("Order the shipment was created for, if any."),shipping_connection_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),status:e.enum(["creating","created","cancelled","failed","unknown"]).describe("`creating`: being registered with the carrier. `created`: parcel registered. `cancelled`: parcel cancelled or deleted. `failed`: registration failed. `unknown`: the carrier did not answer, so a parcel may exist; check the carrier portal and cancel with `local_only` if it does not."),carrier_status:e.string().nullable().describe("Latest status reported by the carrier (for example `DELIVERED`), refreshed periodically."),carrier_status_checked_at:e.iso.datetime({}).nullable(),tracking_numbers:e.array(e.string()).describe("Carrier parcel numbers, one per parcel."),tracking_urls:e.array(e.string()).describe("Public tracking page for each parcel number, in the same order."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(j$h),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(H$h).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),recipient:e.object({name:e.string().min(1).max(L$h).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(G$h).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(V$h).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(K$h).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(Z$h).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(q$h).describe("Postal code. Up to 9 characters."),country:e.string().regex(W$h).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(Y$h).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max($$h).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),reference:e.string().nullable().describe("Order number sent to the carrier."),remark:e.string().nullable().describe("Free text for the courier."),label_format:e.enum(["pdf_a6","pdf_a4"]),label_available:e.boolean().describe("Whether the label PDF is stored and can be downloaded."),printed_at:e.iso.datetime({}).nullable().describe("When the label was printed at the carrier."),error:e.union([e.object({code:e.string(),message:e.string(),field:e.string().optional().describe("Request field the error refers to, when known.")}).describe("Why a shipment, or one step of creating it, did not complete."),e.null()]),tracking_pushed_at:e.iso.datetime({}).nullable().describe("When the tracking number was added to the store order."),tracking_push_error:e.string().nullable().describe("Why adding the tracking number to the store order failed."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A parcel registered with a carrier, normally for an order, with its tracking numbers and label.")),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")}),M4b=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$h=35,J$h=35,X$h=35,eQh=8,tQh=35,nQh=9,sQh=/^[A-Za-z]{2}$/,oQh=30,iQh=50,aQh=30,rQh=0,lQh=0,dQh=14,cQh=20,uQh=50,U4b=e.object({shipping_connection_id:e.string().nullish().describe("Connection to use. Defaults to the entity's single active connection."),order_id:e.string().nullish().describe("Order to ship. Every omitted field below is filled from the order's shipment draft (see `getOrderShipmentDraft`)."),recipient:e.union([e.object({name:e.string().min(1).max(Q$h).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(J$h).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(X$h).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(eQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(tQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(nQh).describe("Postal code. Up to 9 characters."),country:e.string().regex(sQh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(oQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(iQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).optional().describe("Recipient address. Required without `order_id`; with it, replaces the whole address from the draft."),parcel_type:e.union([e.literal("business"),e.literal("home"),e.literal(null)]).nullish().describe("Required without `order_id`; with it, defaults to the draft's parcel type."),parcel_count:e.number().min(1).max(aQh).nullish().describe("Number of parcels (1-30). Defaults to the connection's default."),weight_kg:e.number().gt(rQh).nullish().describe("Total weight in kilograms. Defaults to the connection's default weight."),cod:e.union([e.object({amount:e.number().gt(lQh).describe("Amount to collect on delivery, in EUR."),reference:e.string().max(dQh).nullish().describe("Payment reference (up to 14 characters). Defaults to the order number when the shipment is for an order.")}).describe("Cash on delivery to collect from the recipient."),e.null()]).optional().describe("Cash on delivery. Omit to use the order's draft COD; send null to ship without COD even when the draft has it. COD is EUR only; for a non-EUR order an explicit COD is rejected with a `cod` field error."),reference:e.string().max(cQh).nullish().describe("Order number printed on the label (up to 20 characters). Defaults to the order number."),remark:e.string().max(uQh).nullish().describe("Free text for the courier (up to 50 characters)."),allow_additional:e.boolean().nullish().describe("Set true to create another shipment for an order that already has one in status `creating`, `created` or `unknown`. Otherwise that is rejected with 409 `shipment_exists`.")}),P4b=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.")}),pQh=50,C4b=e.object({shipment_ids:e.array(e.string()).min(1).max(pQh).describe("Shipments whose labels to merge, in the order they should appear (1-50).")}),mQh=/^shp_[0-9a-f]{24}$/,w4b=e.object({id:e.stringFormat("resource-id",mQh).describe("Shipment identifier (shp_ prefix).")}),A4b=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.")}),xQh=30,gQh=0,yQh=35,OQh=35,vQh=35,hQh=8,bQh=35,SQh=9,fQh=/^[A-Za-z]{2}$/,zQh=30,IQh=50,F4b=e.object({id:e.string().describe("Shipment identifier (shp_ prefix)."),entity_id:e.string(),order_id:e.string().nullable().describe("Order the shipment was created for, if any."),shipping_connection_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),status:e.enum(["creating","created","cancelled","failed","unknown"]).describe("`creating`: being registered with the carrier. `created`: parcel registered. `cancelled`: parcel cancelled or deleted. `failed`: registration failed. `unknown`: the carrier did not answer, so a parcel may exist; check the carrier portal and cancel with `local_only` if it does not."),carrier_status:e.string().nullable().describe("Latest status reported by the carrier (for example `DELIVERED`), refreshed periodically."),carrier_status_checked_at:e.iso.datetime({}).nullable(),tracking_numbers:e.array(e.string()).describe("Carrier parcel numbers, one per parcel."),tracking_urls:e.array(e.string()).describe("Public tracking page for each parcel number, in the same order."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(xQh),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(gQh).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),recipient:e.object({name:e.string().min(1).max(yQh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(OQh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(vQh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(hQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(bQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(SQh).describe("Postal code. Up to 9 characters."),country:e.string().regex(fQh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(zQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(IQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),reference:e.string().nullable().describe("Order number sent to the carrier."),remark:e.string().nullable().describe("Free text for the courier."),label_format:e.enum(["pdf_a6","pdf_a4"]),label_available:e.boolean().describe("Whether the label PDF is stored and can be downloaded."),printed_at:e.iso.datetime({}).nullable().describe("When the label was printed at the carrier."),error:e.union([e.object({code:e.string(),message:e.string(),field:e.string().optional().describe("Request field the error refers to, when known.")}).describe("Why a shipment, or one step of creating it, did not complete."),e.null()]),tracking_pushed_at:e.iso.datetime({}).nullable().describe("When the tracking number was added to the store order."),tracking_push_error:e.string().nullable().describe("Why adding the tracking number to the store order failed."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A parcel registered with a carrier, normally for an order, with its tracking numbers and label."),BQh=/^shp_[0-9a-f]{24}$/,k4b=e.object({id:e.stringFormat("resource-id",BQh).describe("Shipment identifier (shp_ prefix).")}),j4b=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.")}),EQh=/^shp_[0-9a-f]{24}$/,H4b=e.object({id:e.stringFormat("resource-id",EQh).describe("Shipment identifier (shp_ prefix).")}),L4b=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.")}),G4b=e.object({local_only:e.boolean().nullish().describe("Only for a shipment in status `unknown`: mark it cancelled without calling the carrier, after checking in the carrier portal that no parcel exists. Ignored for other statuses.")}),TQh=30,DQh=0,RQh=35,_Qh=35,NQh=35,MQh=8,UQh=35,PQh=9,CQh=/^[A-Za-z]{2}$/,wQh=30,AQh=50,V4b=e.object({id:e.string().describe("Shipment identifier (shp_ prefix)."),entity_id:e.string(),order_id:e.string().nullable().describe("Order the shipment was created for, if any."),shipping_connection_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),status:e.enum(["creating","created","cancelled","failed","unknown"]).describe("`creating`: being registered with the carrier. `created`: parcel registered. `cancelled`: parcel cancelled or deleted. `failed`: registration failed. `unknown`: the carrier did not answer, so a parcel may exist; check the carrier portal and cancel with `local_only` if it does not."),carrier_status:e.string().nullable().describe("Latest status reported by the carrier (for example `DELIVERED`), refreshed periodically."),carrier_status_checked_at:e.iso.datetime({}).nullable(),tracking_numbers:e.array(e.string()).describe("Carrier parcel numbers, one per parcel."),tracking_urls:e.array(e.string()).describe("Public tracking page for each parcel number, in the same order."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(TQh),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(DQh).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),recipient:e.object({name:e.string().min(1).max(RQh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(_Qh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(NQh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(MQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(UQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(PQh).describe("Postal code. Up to 9 characters."),country:e.string().regex(CQh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(wQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(AQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),reference:e.string().nullable().describe("Order number sent to the carrier."),remark:e.string().nullable().describe("Free text for the courier."),label_format:e.enum(["pdf_a6","pdf_a4"]),label_available:e.boolean().describe("Whether the label PDF is stored and can be downloaded."),printed_at:e.iso.datetime({}).nullable().describe("When the label was printed at the carrier."),error:e.union([e.object({code:e.string(),message:e.string(),field:e.string().optional().describe("Request field the error refers to, when known.")}).describe("Why a shipment, or one step of creating it, did not complete."),e.null()]),tracking_pushed_at:e.iso.datetime({}).nullable().describe("When the tracking number was added to the store order."),tracking_push_error:e.string().nullable().describe("Why adding the tracking number to the store order failed."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A parcel registered with a carrier, normally for an order, with its tracking numbers and label.");var on={};$(on,{CreateShippingConnectionBody:()=>Y4b,CreateShippingConnectionHeader:()=>W4b,DeleteShippingConnectionHeader:()=>o3b,DeleteShippingConnectionParams:()=>s3b,GetShippingConnectionHeader:()=>Q4b,GetShippingConnectionParams:()=>$4b,GetShippingConnectionResponse:()=>J4b,ListShippingConnectionsHeader:()=>Z4b,ListShippingConnectionsQueryParams:()=>K4b,ListShippingConnectionsResponse:()=>q4b,UpdateShippingConnectionBody:()=>t3b,UpdateShippingConnectionHeader:()=>e3b,UpdateShippingConnectionParams:()=>X4b,UpdateShippingConnectionResponse:()=>n3b,createShippingConnectionBodyPasswordMax:()=>eJh,createShippingConnectionBodySettingsOneCodPaymentMethodsItemMax:()=>sJh,createShippingConnectionBodySettingsOneCodPaymentMethodsMax:()=>oJh,createShippingConnectionBodySettingsOneDefaultParcelCountMax:()=>tJh,createShippingConnectionBodySettingsOneDefaultWeightKgExclusiveMin:()=>nJh,createShippingConnectionBodySettingsOneSenderOneCityMax:()=>dJh,createShippingConnectionBodySettingsOneSenderOneContactMax:()=>aJh,createShippingConnectionBodySettingsOneSenderOneCountryRegExp:()=>uJh,createShippingConnectionBodySettingsOneSenderOneEmailMax:()=>mJh,createShippingConnectionBodySettingsOneSenderOneHouseNumberMax:()=>lJh,createShippingConnectionBodySettingsOneSenderOneNameMax:()=>iJh,createShippingConnectionBodySettingsOneSenderOnePhoneMax:()=>pJh,createShippingConnectionBodySettingsOneSenderOnePostCodeMax:()=>cJh,createShippingConnectionBodySettingsOneSenderOneStreetMax:()=>rJh,createShippingConnectionBodyUsernameMax:()=>XQh,deleteShippingConnectionPathIdRegExp:()=>sXh,getShippingConnectionPathIdRegExp:()=>xJh,getShippingConnectionResponseSettingsCodPaymentMethodsItemMax:()=>OJh,getShippingConnectionResponseSettingsCodPaymentMethodsMax:()=>vJh,getShippingConnectionResponseSettingsDefaultParcelCountMax:()=>gJh,getShippingConnectionResponseSettingsDefaultWeightKgExclusiveMin:()=>yJh,getShippingConnectionResponseSettingsSenderOneCityMax:()=>zJh,getShippingConnectionResponseSettingsSenderOneContactMax:()=>bJh,getShippingConnectionResponseSettingsSenderOneCountryRegExp:()=>BJh,getShippingConnectionResponseSettingsSenderOneEmailMax:()=>TJh,getShippingConnectionResponseSettingsSenderOneHouseNumberMax:()=>fJh,getShippingConnectionResponseSettingsSenderOneNameMax:()=>hJh,getShippingConnectionResponseSettingsSenderOnePhoneMax:()=>EJh,getShippingConnectionResponseSettingsSenderOnePostCodeMax:()=>IJh,getShippingConnectionResponseSettingsSenderOneStreetMax:()=>SJh,listShippingConnectionsQueryLimitDefault:()=>FQh,listShippingConnectionsQueryLimitMax:()=>kQh,listShippingConnectionsResponseDataItemSettingsCodPaymentMethodsItemMax:()=>LQh,listShippingConnectionsResponseDataItemSettingsCodPaymentMethodsMax:()=>GQh,listShippingConnectionsResponseDataItemSettingsDefaultParcelCountMax:()=>jQh,listShippingConnectionsResponseDataItemSettingsDefaultWeightKgExclusiveMin:()=>HQh,listShippingConnectionsResponseDataItemSettingsSenderOneCityMax:()=>WQh,listShippingConnectionsResponseDataItemSettingsSenderOneContactMax:()=>KQh,listShippingConnectionsResponseDataItemSettingsSenderOneCountryRegExp:()=>$Qh,listShippingConnectionsResponseDataItemSettingsSenderOneEmailMax:()=>JQh,listShippingConnectionsResponseDataItemSettingsSenderOneHouseNumberMax:()=>qQh,listShippingConnectionsResponseDataItemSettingsSenderOneNameMax:()=>VQh,listShippingConnectionsResponseDataItemSettingsSenderOnePhoneMax:()=>QQh,listShippingConnectionsResponseDataItemSettingsSenderOnePostCodeMax:()=>YQh,listShippingConnectionsResponseDataItemSettingsSenderOneStreetMax:()=>ZQh,updateShippingConnectionBodyPasswordMax:()=>_Jh,updateShippingConnectionBodySettingsOneCodPaymentMethodsItemMax:()=>UJh,updateShippingConnectionBodySettingsOneCodPaymentMethodsMax:()=>PJh,updateShippingConnectionBodySettingsOneDefaultParcelCountMax:()=>NJh,updateShippingConnectionBodySettingsOneDefaultWeightKgExclusiveMin:()=>MJh,updateShippingConnectionBodySettingsOneSenderOneCityMax:()=>kJh,updateShippingConnectionBodySettingsOneSenderOneContactMax:()=>wJh,updateShippingConnectionBodySettingsOneSenderOneCountryRegExp:()=>HJh,updateShippingConnectionBodySettingsOneSenderOneEmailMax:()=>GJh,updateShippingConnectionBodySettingsOneSenderOneHouseNumberMax:()=>FJh,updateShippingConnectionBodySettingsOneSenderOneNameMax:()=>CJh,updateShippingConnectionBodySettingsOneSenderOnePhoneMax:()=>LJh,updateShippingConnectionBodySettingsOneSenderOnePostCodeMax:()=>jJh,updateShippingConnectionBodySettingsOneSenderOneStreetMax:()=>AJh,updateShippingConnectionBodyUsernameMax:()=>RJh,updateShippingConnectionPathIdRegExp:()=>DJh,updateShippingConnectionResponseSettingsCodPaymentMethodsItemMax:()=>ZJh,updateShippingConnectionResponseSettingsCodPaymentMethodsMax:()=>qJh,updateShippingConnectionResponseSettingsDefaultParcelCountMax:()=>VJh,updateShippingConnectionResponseSettingsDefaultWeightKgExclusiveMin:()=>KJh,updateShippingConnectionResponseSettingsSenderOneCityMax:()=>JJh,updateShippingConnectionResponseSettingsSenderOneContactMax:()=>YJh,updateShippingConnectionResponseSettingsSenderOneCountryRegExp:()=>eXh,updateShippingConnectionResponseSettingsSenderOneEmailMax:()=>nXh,updateShippingConnectionResponseSettingsSenderOneHouseNumberMax:()=>QJh,updateShippingConnectionResponseSettingsSenderOneNameMax:()=>WJh,updateShippingConnectionResponseSettingsSenderOnePhoneMax:()=>tXh,updateShippingConnectionResponseSettingsSenderOnePostCodeMax:()=>XJh,updateShippingConnectionResponseSettingsSenderOneStreetMax:()=>$Jh});var FQh=10,kQh=100,K4b=e.object({limit:e.number().min(1).max(kQh).default(FQh).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.")}),Z4b=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.")}),jQh=30,HQh=0,LQh=100,GQh=50,VQh=35,KQh=35,ZQh=35,qQh=8,WQh=35,YQh=9,$Qh=/^[A-Za-z]{2}$/,QQh=30,JQh=50,q4b=e.object({data:e.array(e.object({id:e.string().describe("Connection identifier (shc_ prefix)."),entity_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().describe("Carrier username. The password is never returned."),is_active:e.boolean(),settings:e.object({label_format:e.enum(["pdf_a6","pdf_a4"]).describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(jQh).describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(HQh).nullable().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(LQh)).max(GQh).describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(VQh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(KQh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(ZQh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(qQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(WQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(YQh).describe("Postal code. Up to 9 characters."),country:e.string().regex($Qh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(QQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(JQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).describe("Sender address sent with each parcel. When null the carrier uses the account's registered sender.")}).describe("Defaults applied to the connection's shipments."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A carrier account an entity uses to create shipments. Credentials are stored encrypted and never returned.")),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")}),W4b=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.")}),XQh=255,eJh=255,tJh=30,nJh=0,sJh=100,oJh=50,iJh=35,aJh=35,rJh=35,lJh=8,dJh=35,cJh=9,uJh=/^[A-Za-z]{2}$/,pJh=30,mJh=50,Y4b=e.object({carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().min(1).max(XQh).describe("Carrier web-service username (DPD EasyShip account)."),password:e.string().min(1).max(eJh).describe("Carrier web-service password. Stored encrypted and never returned."),settings:e.union([e.object({label_format:e.union([e.literal("pdf_a6"),e.literal("pdf_a4"),e.literal(null)]).nullish().describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(tJh).nullish().describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(nJh).nullish().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(sJh)).max(oJh).nullish().describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().nullish().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(iJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(aJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(rJh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(lJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(dJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(cJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(uJh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(pJh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(mJh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).optional()}).describe('Connection settings. Omitted or null properties take their defaults: label_format `pdf_a6`, default_parcel_count 1, default_weight_kg none, cod_payment_methods `["cod", "cash"]`, push_tracking_to_store true, sender none.'),e.null()]).optional()}),xJh=/^[a-z]{3,4}_[0-9a-f]{24}$/,$4b=e.object({id:e.stringFormat("resource-id",xJh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q4b=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.")}),gJh=30,yJh=0,OJh=100,vJh=50,hJh=35,bJh=35,SJh=35,fJh=8,zJh=35,IJh=9,BJh=/^[A-Za-z]{2}$/,EJh=30,TJh=50,J4b=e.object({id:e.string().describe("Connection identifier (shc_ prefix)."),entity_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().describe("Carrier username. The password is never returned."),is_active:e.boolean(),settings:e.object({label_format:e.enum(["pdf_a6","pdf_a4"]).describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(gJh).describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(yJh).nullable().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(OJh)).max(vJh).describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(hJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(bJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(SJh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(fJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(zJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(IJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(BJh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(EJh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(TJh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).describe("Sender address sent with each parcel. When null the carrier uses the account's registered sender.")}).describe("Defaults applied to the connection's shipments."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A carrier account an entity uses to create shipments. Credentials are stored encrypted and never returned."),DJh=/^[a-z]{3,4}_[0-9a-f]{24}$/,X4b=e.object({id:e.stringFormat("resource-id",DJh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),e3b=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.")}),RJh=255,_Jh=255,NJh=30,MJh=0,UJh=100,PJh=50,CJh=35,wJh=35,AJh=35,FJh=8,kJh=35,jJh=9,HJh=/^[A-Za-z]{2}$/,LJh=30,GJh=50,t3b=e.object({username:e.string().min(1).max(RJh).nullish().describe("New carrier username. Omit or send null to keep the current one. Changing it re-verifies the credentials."),password:e.string().min(1).max(_Jh).nullish().describe("New carrier password. Omit or send null to keep the current one. Changing it re-verifies the credentials."),settings:e.union([e.object({label_format:e.union([e.literal("pdf_a6"),e.literal("pdf_a4"),e.literal(null)]).nullish().describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(NJh).nullish().describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(MJh).nullish().describe("Default weight. Send null to clear it; omit to keep it."),cod_payment_methods:e.array(e.string().min(1).max(UJh)).max(PJh).nullish().describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().nullish().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(CJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(wJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(AJh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(FJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(kJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(jJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(HJh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(LJh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(GJh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).optional().describe("Sender address. Send null to clear it; omit to keep it.")}).describe("Partial settings update merged into the stored settings. Omitted properties are unchanged. A null `default_weight_kg` or `sender` clears it; null on any other property leaves it unchanged."),e.null()]).optional(),is_active:e.boolean().nullish().describe("Set false to stop using the connection without deleting it. Omit or send null to leave it unchanged.")}),VJh=30,KJh=0,ZJh=100,qJh=50,WJh=35,YJh=35,$Jh=35,QJh=8,JJh=35,XJh=9,eXh=/^[A-Za-z]{2}$/,tXh=30,nXh=50,n3b=e.object({id:e.string().describe("Connection identifier (shc_ prefix)."),entity_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().describe("Carrier username. The password is never returned."),is_active:e.boolean(),settings:e.object({label_format:e.enum(["pdf_a6","pdf_a4"]).describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(VJh).describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(KJh).nullable().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(ZJh)).max(qJh).describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(WJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(YJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max($Jh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(QJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(JJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(XJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(eXh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(tXh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(nXh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).describe("Sender address sent with each parcel. When null the carrier uses the account's registered sender.")}).describe("Defaults applied to the connection's shipments."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A carrier account an entity uses to create shipments. Credentials are stored encrypted and never returned."),sXh=/^[a-z]{3,4}_[0-9a-f]{24}$/,s3b=e.object({id:e.stringFormat("resource-id",sXh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),o3b=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 an={};$(an,{StripeAppConnectBody:()=>r3b,StripeAppEntityDisconnectResponse:()=>d3b,StripeAppEntityGetConnectionResponse:()=>l3b,StripeAppEntityGetSettingsResponse:()=>c3b,StripeAppEntityUpdateSettingsBody:()=>u3b,StripeAppEntityUpdateSettingsResponse:()=>p3b,StripeAppMarketplaceAuthorizeBody:()=>i3b,StripeAppMarketplaceAuthorizeResponse:()=>a3b,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>oXh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>aXh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>iXh});var i3b=e.object({entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account")}),a3b=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),r3b=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.")}),l3b=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")}),d3b=e.object({message:e.string()}),c3b=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")}),oXh=500,iXh=0,aXh=100,u3b=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(oXh).nullish().describe("Default note to include on auto-created invoices. Set to null to clear the note."),default_tax_rate:e.number().min(iXh).max(aXh).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),p3b=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 rn={};$(rn,{CheckEntityLimitResponse:()=>y3b,GetCurrentSubscriptionResponse:()=>m3b,UpdateSpendingLimitBody:()=>x3b,UpdateSpendingLimitResponse:()=>g3b,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>rXh,updateSpendingLimitBodySpendingLimitCentsMin:()=>lXh});var rXh=0,m3b=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(rXh),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"),lXh=0,x3b=e.object({spending_limit_cents:e.number().min(lXh).nullable()}).describe("Request to update spending limit for metered tier"),g3b=e.object({spending_limit_cents:e.number().nullable()}).describe("Updated spending limit"),y3b=e.object({can_create:e.boolean(),current_count:e.number(),limit:e.number().nullable()});var ln={};$(ln,{ListUsTaxRateEstimatesHeader:()=>v3b,ListUsTaxRateEstimatesQueryParams:()=>O3b,ListUsTaxRateEstimatesResponse:()=>h3b,listUsTaxRateEstimatesQueryStateMax:()=>uXh,listUsTaxRateEstimatesQueryStateMin:()=>cXh,listUsTaxRateEstimatesQueryZipCodeRegExp:()=>dXh,listUsTaxRateEstimatesResponseDataItemCityRateMax:()=>IXh,listUsTaxRateEstimatesResponseDataItemCityRateMin:()=>zXh,listUsTaxRateEstimatesResponseDataItemCountryCodeMax:()=>mXh,listUsTaxRateEstimatesResponseDataItemCountyRateMax:()=>fXh,listUsTaxRateEstimatesResponseDataItemCountyRateMin:()=>SXh,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMax:()=>vXh,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMin:()=>OXh,listUsTaxRateEstimatesResponseDataItemIdMax:()=>pXh,listUsTaxRateEstimatesResponseDataItemRiskLevelMax:()=>DXh,listUsTaxRateEstimatesResponseDataItemRiskLevelMin:()=>TXh,listUsTaxRateEstimatesResponseDataItemSourceMax:()=>RXh,listUsTaxRateEstimatesResponseDataItemSourceMonthMax:()=>_Xh,listUsTaxRateEstimatesResponseDataItemSpecialRateMax:()=>EXh,listUsTaxRateEstimatesResponseDataItemSpecialRateMin:()=>BXh,listUsTaxRateEstimatesResponseDataItemStateMax:()=>xXh,listUsTaxRateEstimatesResponseDataItemStateRateMax:()=>bXh,listUsTaxRateEstimatesResponseDataItemStateRateMin:()=>hXh,listUsTaxRateEstimatesResponseDataItemTaxRegionNameMax:()=>yXh,listUsTaxRateEstimatesResponseDataItemZipCodeMax:()=>gXh});var dXh=/^\d{5}$/,cXh=2,uXh=2,O3b=e.object({zip_code:e.string().regex(dXh).describe("US ZIP code to look up."),state:e.string().min(cXh).max(uXh).optional().describe("Optional two-letter US state filter.")}),v3b=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.")}),pXh=36,mXh=2,xXh=2,gXh=10,yXh=255,OXh=-140737488355328,vXh=0x7fffffffffff,hXh=-140737488355328,bXh=0x7fffffffffff,SXh=-140737488355328,fXh=0x7fffffffffff,zXh=-140737488355328,IXh=0x7fffffffffff,BXh=-140737488355328,EXh=0x7fffffffffff,TXh=-2147483648,DXh=2147483647,RXh=50,_Xh=7,h3b=e.object({data:e.array(e.object({id:e.string().max(pXh),country_code:e.string().max(mXh),state:e.string().max(xXh),zip_code:e.string().max(gXh),tax_region_name:e.string().max(yXh),estimated_combined_rate:e.number().min(OXh).max(vXh),state_rate:e.number().min(hXh).max(bXh),county_rate:e.number().min(SXh).max(fXh),city_rate:e.number().min(zXh).max(IXh),special_rate:e.number().min(BXh).max(EXh),risk_level:e.number().min(TXh).max(DXh),source:e.string().max(RXh),source_month:e.string().max(_Xh),imported_at:e.iso.datetime({})}).describe("Imported ZIP-level tax-rate estimate. This is informational and must be verified before use."))});var dn={};$(dn,{CreateTaxPaymentBody:()=>T3b,CreateTaxPaymentHeader:()=>E3b,DeleteTaxPaymentHeader:()=>U3b,DeleteTaxPaymentParams:()=>M3b,ExportQuickbooksCsvHeader:()=>nGb,ExportQuickbooksCsvQueryParams:()=>tGb,ExportSloveniaMinimaxXmlBody:()=>J3b,ExportSloveniaMinimaxXmlHeader:()=>Q3b,ExportSloveniaVascoXmlBody:()=>eGb,ExportSloveniaVascoXmlHeader:()=>X3b,ExportSloveniaVodXmlBody:()=>$3b,ExportSloveniaVodXmlHeader:()=>Y3b,ExportSloveniaYearlyNormiraniReportBody:()=>W3b,ExportSloveniaYearlyNormiraniReportHeader:()=>q3b,GenerateKirExportHeader:()=>F3b,GenerateKirExportQueryParams:()=>A3b,GetEuOssReportHeader:()=>C3b,GetEuOssReportQueryParams:()=>P3b,GetEuOssReportResponse:()=>w3b,GetSloveniaTaxProfileHeader:()=>k3b,GetSloveniaTaxProfileResponse:()=>j3b,GetTaxLiabilityReportHeader:()=>S3b,GetTaxLiabilityReportQueryParams:()=>b3b,GetTaxLiabilityReportResponse:()=>f3b,GetTaxPaymentsHeader:()=>I3b,GetTaxPaymentsQueryParams:()=>z3b,GetTaxPaymentsResponse:()=>B3b,ReviewSloveniaYearlyNormiraniReportBody:()=>K3b,ReviewSloveniaYearlyNormiraniReportHeader:()=>V3b,ReviewSloveniaYearlyNormiraniReportResponse:()=>Z3b,UpdateSloveniaTaxProfileBody:()=>L3b,UpdateSloveniaTaxProfileHeader:()=>H3b,UpdateSloveniaTaxProfileResponse:()=>G3b,UpdateTaxPaymentBody:()=>_3b,UpdateTaxPaymentHeader:()=>R3b,UpdateTaxPaymentParams:()=>D3b,UpdateTaxPaymentResponse:()=>N3b,createTaxPaymentBodyAmountExclusiveMin:()=>NXh,createTaxPaymentBodyCurrencyCodeMax:()=>UXh,createTaxPaymentBodyCurrencyCodeMin:()=>MXh,createTaxPaymentBodyNoteMax:()=>CXh,createTaxPaymentBodyReferenceMax:()=>PXh,deleteTaxPaymentPathIdRegExp:()=>jXh,exportSloveniaYearlyNormiraniReportBodyManualValuesForeignTaxCreditAmountMin:()=>Pnb,exportSloveniaYearlyNormiraniReportBodyManualValuesPriorAdvanceIncomeTaxAmountMin:()=>Cnb,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentDecreaseMin:()=>wnb,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentIncreaseMin:()=>Anb,exportSloveniaYearlyNormiraniReportBodyManualValuesWithholdingTaxAmountMin:()=>Unb,exportSloveniaYearlyNormiraniReportBodyYearMax:()=>Mnb,exportSloveniaYearlyNormiraniReportBodyYearMin:()=>Nnb,generateKirExportQueryMonthRegExp:()=>eeb,generateKirExportQueryQuarterRegExp:()=>teb,generateKirExportQueryYearRegExp:()=>XXh,getEuOssReportQueryYearMax:()=>LXh,getEuOssReportQueryYearMin:()=>HXh,getEuOssReportResponseIssuerCountryCodeMax:()=>VXh,getEuOssReportResponseIssuerCountryCodeMin:()=>GXh,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMax:()=>$Xh,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMin:()=>YXh,getEuOssReportResponsePeriodsItemCountriesItemCreditNoteCountMin:()=>JXh,getEuOssReportResponsePeriodsItemCountriesItemInvoiceCountMin:()=>QXh,getEuOssReportResponsePeriodsItemCreditNoteCountMin:()=>WXh,getEuOssReportResponsePeriodsItemInvoiceCountMin:()=>qXh,getEuOssReportResponseReportingCurrencyCodeMax:()=>ZXh,getEuOssReportResponseReportingCurrencyCodeMin:()=>KXh,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>deb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>leb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>reb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Beb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Teb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>Eeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Reb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>_eb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Deb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Neb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Meb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Ueb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>meb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>geb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>xeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesForeignMax:()=>aeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>ieb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>yeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>veb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Oeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>beb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Seb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>heb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>feb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>zeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Ieb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>ceb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>peb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>ueb,getSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>neb,getSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>oeb,getSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>seb,reviewSloveniaYearlyNormiraniReportBodyYearMax:()=>Ktb,reviewSloveniaYearlyNormiraniReportBodyYearMin:()=>Vtb,reviewSloveniaYearlyNormiraniReportResponseManualValuesForeignTaxCreditAmountMin:()=>Tnb,reviewSloveniaYearlyNormiraniReportResponseManualValuesPriorAdvanceIncomeTaxAmountMin:()=>Dnb,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentDecreaseMin:()=>Rnb,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentIncreaseMin:()=>_nb,reviewSloveniaYearlyNormiraniReportResponseManualValuesWithholdingTaxAmountMin:()=>Enb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>tnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>enb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePayablesMax:()=>Xtb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Onb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>hnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>vnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Snb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>fnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>bnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>znb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Inb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Bnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>inb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>rnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>anb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesForeignMax:()=>Jtb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesMax:()=>Qtb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>lnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>cnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>dnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>pnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>mnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>unb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>xnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>gnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>ynb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat22Max:()=>nnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat5Max:()=>onb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat95Max:()=>snb,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingActivityCodesItemRegExp:()=>Wtb,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultForeignTaxCreditAmountMin:()=>$tb,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultWithholdingTaxAmountMin:()=>Ytb,reviewSloveniaYearlyNormiraniReportResponseYearMax:()=>qtb,reviewSloveniaYearlyNormiraniReportResponseYearMin:()=>Ztb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesPaidMax:()=>Heb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesReceivedMax:()=>jeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPayablesMax:()=>keb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense22Max:()=>stb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense5Max:()=>itb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense95Max:()=>otb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuGoodsMax:()=>rtb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuServicesMax:()=>ltb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseExemptMax:()=>atb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseReverseChargeMax:()=>dtb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryGoodsMax:()=>ctb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryServicesMax:()=>utb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable22Max:()=>Keb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable5Max:()=>qeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable95Max:()=>Zeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesForeignMax:()=>Feb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesMax:()=>Aeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue22Max:()=>Web,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue5Max:()=>$eb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue95Max:()=>Yeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuGoodsMax:()=>Jeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuServicesMax:()=>Xeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueExemptMax:()=>Qeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueReverseChargeMax:()=>etb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryGoodsMax:()=>ttb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryServicesMax:()=>ntb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat22Max:()=>Leb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat5Max:()=>Veb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat95Max:()=>Geb,updateSloveniaTaxProfileBodyYearlyReportingActivityCodesItemRegExp:()=>Peb,updateSloveniaTaxProfileBodyYearlyReportingDefaultForeignTaxCreditAmountMin:()=>web,updateSloveniaTaxProfileBodyYearlyReportingDefaultWithholdingTaxAmountMin:()=>Ceb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>htb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>vtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>Otb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Ctb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Atb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>wtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>ktb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>jtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Ftb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Htb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Ltb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Gtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>ztb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>Btb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>Itb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesForeignMax:()=>ytb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>gtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>Etb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>Dtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Ttb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>_tb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Ntb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>Rtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>Mtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>Utb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Ptb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>btb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>ftb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>Stb,updateSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>ptb,updateSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>xtb,updateSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>mtb,updateTaxPaymentBodyAmountExclusiveMin:()=>AXh,updateTaxPaymentBodyNoteMax:()=>kXh,updateTaxPaymentBodyReferenceMax:()=>FXh,updateTaxPaymentPathIdRegExp:()=>wXh});var b3b=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.")}),S3b=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.")}),f3b=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()}))}),z3b=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.")}),I3b=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.")}),B3b=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({})}))}),E3b=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.")}),NXh=0,MXh=3,UXh=3,PXh=100,CXh=500,T3b=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(NXh).describe("Amount paid to the tax authority."),currency_code:e.string().min(MXh).max(UXh).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(PXh).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(CXh).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.")}),wXh=/^txpay_[0-9a-f]{24}$/,D3b=e.object({id:e.string().regex(wXh).describe("Tax payment identifier")}),R3b=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.")}),AXh=0,FXh=100,kXh=500,_3b=e.object({amount:e.number().gt(AXh).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(FXh).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(kXh).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.")}),N3b=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({})}),jXh=/^txpay_[0-9a-f]{24}$/,M3b=e.object({id:e.string().regex(jXh).describe("Tax payment identifier")}),U3b=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.")}),HXh=2021,LXh=2100,P3b=e.object({year:e.number().min(HXh).max(LXh).optional().describe("Calendar year to review together with its preceding year.")}),C3b=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.")}),GXh=2,VXh=2,KXh=3,ZXh=3,qXh=0,WXh=0,YXh=2,$Xh=2,QXh=0,JXh=0,w3b=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(GXh).max(VXh).nullable(),reporting_currency_code:e.string().min(KXh).max(ZXh).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(qXh),credit_note_count:e.number().min(WXh),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),countries:e.array(e.object({country_code:e.string().min(YXh).max($Xh),country_name:e.string(),invoice_count:e.number().min(QXh),credit_note_count:e.number().min(JXh),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."),XXh=/^\d{4}$/,eeb=/^(1[0-2]|[1-9])$/,teb=/^[1-4]$/,A3b=e.object({year:e.string().regex(XXh).describe("Year for the combined KIR/KPR export (e.g., 2025)"),month:e.string().regex(eeb).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e.string().regex(teb).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),F3b=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.")}),k3b=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.")}),neb=/^\d{2}\.\d{3}$/,seb=0,oeb=0,ieb=8,aeb=8,reb=8,leb=8,deb=8,ceb=8,ueb=8,peb=8,meb=8,xeb=8,geb=8,yeb=8,Oeb=8,veb=8,heb=8,beb=8,Seb=8,feb=8,zeb=8,Ieb=8,Beb=8,Eeb=8,Teb=8,Deb=8,Reb=8,_eb=8,Neb=8,Meb=8,Ueb=8,j3b=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(neb).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(seb).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(oeb).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(ieb).nullish(),receivables_foreign:e.string().max(aeb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(reb).nullish(),advances_received:e.string().max(leb).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(deb).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(ceb).nullish(),sales_vat_95:e.string().max(ueb).nullish(),sales_vat_5:e.string().max(peb).nullish(),purchase_vat_recoverable_22:e.string().max(meb).nullish(),purchase_vat_recoverable_95:e.string().max(xeb).nullish(),purchase_vat_recoverable_5:e.string().max(geb).nullish(),sales_revenue_22:e.string().max(yeb).nullish(),sales_revenue_95:e.string().max(Oeb).nullish(),sales_revenue_5:e.string().max(veb).nullish(),sales_revenue_exempt:e.string().max(heb).nullish(),sales_revenue_eu_goods:e.string().max(beb).nullish(),sales_revenue_eu_services:e.string().max(Seb).nullish(),sales_revenue_reverse_charge:e.string().max(feb).nullish(),sales_revenue_third_country_goods:e.string().max(zeb).nullish(),sales_revenue_third_country_services:e.string().max(Ieb).nullish(),purchase_expense_22:e.string().max(Beb).nullish(),purchase_expense_95:e.string().max(Eeb).nullish(),purchase_expense_5:e.string().max(Teb).nullish(),purchase_expense_exempt:e.string().max(Deb).nullish(),purchase_expense_eu_goods:e.string().max(Reb).nullish(),purchase_expense_eu_services:e.string().max(_eb).nullish(),purchase_expense_reverse_charge:e.string().max(Neb).nullish(),purchase_expense_third_country_goods:e.string().max(Meb).nullish(),purchase_expense_third_country_services:e.string().max(Ueb).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()}),H3b=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.")}),Peb=/^\d{2}\.\d{3}$/,Ceb=0,web=0,Aeb=8,Feb=8,keb=8,jeb=8,Heb=8,Leb=8,Geb=8,Veb=8,Keb=8,Zeb=8,qeb=8,Web=8,Yeb=8,$eb=8,Qeb=8,Jeb=8,Xeb=8,etb=8,ttb=8,ntb=8,stb=8,otb=8,itb=8,atb=8,rtb=8,ltb=8,dtb=8,ctb=8,utb=8,L3b=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(Peb).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(Ceb).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e.number().min(web).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(Aeb).nullish(),receivables_foreign:e.string().max(Feb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(keb).nullish(),advances_received:e.string().max(jeb).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(Heb).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(Leb).nullish(),sales_vat_95:e.string().max(Geb).nullish(),sales_vat_5:e.string().max(Veb).nullish(),purchase_vat_recoverable_22:e.string().max(Keb).nullish(),purchase_vat_recoverable_95:e.string().max(Zeb).nullish(),purchase_vat_recoverable_5:e.string().max(qeb).nullish(),sales_revenue_22:e.string().max(Web).nullish(),sales_revenue_95:e.string().max(Yeb).nullish(),sales_revenue_5:e.string().max($eb).nullish(),sales_revenue_exempt:e.string().max(Qeb).nullish(),sales_revenue_eu_goods:e.string().max(Jeb).nullish(),sales_revenue_eu_services:e.string().max(Xeb).nullish(),sales_revenue_reverse_charge:e.string().max(etb).nullish(),sales_revenue_third_country_goods:e.string().max(ttb).nullish(),sales_revenue_third_country_services:e.string().max(ntb).nullish(),purchase_expense_22:e.string().max(stb).nullish(),purchase_expense_95:e.string().max(otb).nullish(),purchase_expense_5:e.string().max(itb).nullish(),purchase_expense_exempt:e.string().max(atb).nullish(),purchase_expense_eu_goods:e.string().max(rtb).nullish(),purchase_expense_eu_services:e.string().max(ltb).nullish(),purchase_expense_reverse_charge:e.string().max(dtb).nullish(),purchase_expense_third_country_goods:e.string().max(ctb).nullish(),purchase_expense_third_country_services:e.string().max(utb).nullish()}).nullish()}).nullish()}),ptb=/^\d{2}\.\d{3}$/,mtb=0,xtb=0,gtb=8,ytb=8,Otb=8,vtb=8,htb=8,btb=8,Stb=8,ftb=8,ztb=8,Itb=8,Btb=8,Etb=8,Ttb=8,Dtb=8,Rtb=8,_tb=8,Ntb=8,Mtb=8,Utb=8,Ptb=8,Ctb=8,wtb=8,Atb=8,Ftb=8,ktb=8,jtb=8,Htb=8,Ltb=8,Gtb=8,G3b=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(ptb).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(mtb).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(xtb).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(gtb).nullish(),receivables_foreign:e.string().max(ytb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(Otb).nullish(),advances_received:e.string().max(vtb).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(htb).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(btb).nullish(),sales_vat_95:e.string().max(Stb).nullish(),sales_vat_5:e.string().max(ftb).nullish(),purchase_vat_recoverable_22:e.string().max(ztb).nullish(),purchase_vat_recoverable_95:e.string().max(Itb).nullish(),purchase_vat_recoverable_5:e.string().max(Btb).nullish(),sales_revenue_22:e.string().max(Etb).nullish(),sales_revenue_95:e.string().max(Ttb).nullish(),sales_revenue_5:e.string().max(Dtb).nullish(),sales_revenue_exempt:e.string().max(Rtb).nullish(),sales_revenue_eu_goods:e.string().max(_tb).nullish(),sales_revenue_eu_services:e.string().max(Ntb).nullish(),sales_revenue_reverse_charge:e.string().max(Mtb).nullish(),sales_revenue_third_country_goods:e.string().max(Utb).nullish(),sales_revenue_third_country_services:e.string().max(Ptb).nullish(),purchase_expense_22:e.string().max(Ctb).nullish(),purchase_expense_95:e.string().max(wtb).nullish(),purchase_expense_5:e.string().max(Atb).nullish(),purchase_expense_exempt:e.string().max(Ftb).nullish(),purchase_expense_eu_goods:e.string().max(ktb).nullish(),purchase_expense_eu_services:e.string().max(jtb).nullish(),purchase_expense_reverse_charge:e.string().max(Htb).nullish(),purchase_expense_third_country_goods:e.string().max(Ltb).nullish(),purchase_expense_third_country_services:e.string().max(Gtb).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()}),V3b=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.")}),Vtb=2025,Ktb=2100,K3b=e.object({year:e.number().min(Vtb).max(Ktb).describe("Tax year for the yearly Slovenia eDavki filing.")}),Ztb=2025,qtb=2100,Wtb=/^\d{2}\.\d{3}$/,Ytb=0,$tb=0,Qtb=8,Jtb=8,Xtb=8,enb=8,tnb=8,nnb=8,snb=8,onb=8,inb=8,anb=8,rnb=8,lnb=8,dnb=8,cnb=8,unb=8,pnb=8,mnb=8,xnb=8,gnb=8,ynb=8,Onb=8,vnb=8,hnb=8,bnb=8,Snb=8,fnb=8,znb=8,Inb=8,Bnb=8,Enb=0,Tnb=0,Dnb=0,Rnb=0,_nb=0,Z3b=e.object({entity_id:e.string(),year:e.number().min(Ztb).max(qtb).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(Wtb).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(Ytb).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min($tb).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(Qtb).nullish(),receivables_foreign:e.string().max(Jtb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(Xtb).nullish(),advances_received:e.string().max(enb).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(tnb).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(nnb).nullish(),sales_vat_95:e.string().max(snb).nullish(),sales_vat_5:e.string().max(onb).nullish(),purchase_vat_recoverable_22:e.string().max(inb).nullish(),purchase_vat_recoverable_95:e.string().max(anb).nullish(),purchase_vat_recoverable_5:e.string().max(rnb).nullish(),sales_revenue_22:e.string().max(lnb).nullish(),sales_revenue_95:e.string().max(dnb).nullish(),sales_revenue_5:e.string().max(cnb).nullish(),sales_revenue_exempt:e.string().max(unb).nullish(),sales_revenue_eu_goods:e.string().max(pnb).nullish(),sales_revenue_eu_services:e.string().max(mnb).nullish(),sales_revenue_reverse_charge:e.string().max(xnb).nullish(),sales_revenue_third_country_goods:e.string().max(gnb).nullish(),sales_revenue_third_country_services:e.string().max(ynb).nullish(),purchase_expense_22:e.string().max(Onb).nullish(),purchase_expense_95:e.string().max(vnb).nullish(),purchase_expense_5:e.string().max(hnb).nullish(),purchase_expense_exempt:e.string().max(bnb).nullish(),purchase_expense_eu_goods:e.string().max(Snb).nullish(),purchase_expense_eu_services:e.string().max(fnb).nullish(),purchase_expense_reverse_charge:e.string().max(znb).nullish(),purchase_expense_third_country_goods:e.string().max(Inb).nullish(),purchase_expense_third_country_services:e.string().max(Bnb).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(Enb).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Tnb).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(Dnb).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(Rnb).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(_nb).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()})}),q3b=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.")}),Nnb=2025,Mnb=2100,Unb=0,Pnb=0,Cnb=0,wnb=0,Anb=0,W3b=e.object({year:e.number().min(Nnb).max(Mnb).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e.object({withholding_tax_amount:e.number().min(Unb).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Pnb).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(Cnb).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(wnb).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(Anb).describe("Monetary amount in EUR.")})}),Y3b=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.")}),$3b=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.")}),Q3b=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.")}),J3b=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.")}),X3b=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.")}),eGb=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.")}),tGb=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.")}),nGb=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 cn={};$(cn,{CreateTaxBody:()=>oGb,CreateTaxHeader:()=>sGb,DeleteTaxHeader:()=>OGb,DeleteTaxParams:()=>yGb,GetTaxesHeader:()=>aGb,GetTaxesQueryParams:()=>iGb,GetTaxesResponse:()=>rGb,PermanentDeleteTaxHeader:()=>fGb,PermanentDeleteTaxParams:()=>SGb,ReplaceTaxBody:()=>xGb,ReplaceTaxHeader:()=>mGb,ReplaceTaxParams:()=>pGb,ReplaceTaxResponse:()=>gGb,RestoreTaxHeader:()=>hGb,RestoreTaxParams:()=>vGb,RestoreTaxResponse:()=>bGb,UpdateTaxBody:()=>cGb,UpdateTaxHeader:()=>dGb,UpdateTaxParams:()=>lGb,UpdateTaxResponse:()=>uGb,createTaxBodyDestinationVatCountryCodeMax:()=>Lnb,createTaxBodyDestinationVatCountryCodeMin:()=>Hnb,createTaxBodyNameMax:()=>Fnb,createTaxBodyPtExemptionReasonMax:()=>Gnb,createTaxBodyTaxRatesItemRateMax:()=>jnb,createTaxBodyTaxRatesItemRateMin:()=>knb,deleteTaxPathIdRegExp:()=>zsb,getTaxesQueryLimitDefault:()=>Vnb,getTaxesQueryLimitMax:()=>Knb,getTaxesResponseDataItemOneDestinationVatCountryCodeMax:()=>Qnb,getTaxesResponseDataItemOneDestinationVatCountryCodeMin:()=>$nb,getTaxesResponseDataItemOneEntityIdMax:()=>Jnb,getTaxesResponseDataItemOneIdMax:()=>Znb,getTaxesResponseDataItemOneNameMax:()=>qnb,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>Ynb,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>Wnb,permanentDeleteTaxPathIdRegExp:()=>Msb,replaceTaxBodyDestinationVatCountryCodeMax:()=>xsb,replaceTaxBodyDestinationVatCountryCodeMin:()=>msb,replaceTaxBodyNameMax:()=>csb,replaceTaxBodyPtExemptionReasonMax:()=>gsb,replaceTaxBodyTaxRatesItemRateMax:()=>psb,replaceTaxBodyTaxRatesItemRateMin:()=>usb,replaceTaxPathIdRegExp:()=>dsb,replaceTaxResponseOneDestinationVatCountryCodeMax:()=>Ssb,replaceTaxResponseOneDestinationVatCountryCodeMin:()=>bsb,replaceTaxResponseOneEntityIdMax:()=>fsb,replaceTaxResponseOneIdMax:()=>ysb,replaceTaxResponseOneNameMax:()=>Osb,replaceTaxResponseOneTaxRatesItemRateMax:()=>hsb,replaceTaxResponseOneTaxRatesItemRateMin:()=>vsb,restoreTaxPathIdRegExp:()=>Isb,restoreTaxResponseOneDestinationVatCountryCodeMax:()=>_sb,restoreTaxResponseOneDestinationVatCountryCodeMin:()=>Rsb,restoreTaxResponseOneEntityIdMax:()=>Nsb,restoreTaxResponseOneIdMax:()=>Bsb,restoreTaxResponseOneNameMax:()=>Esb,restoreTaxResponseOneTaxRatesItemRateMax:()=>Dsb,restoreTaxResponseOneTaxRatesItemRateMin:()=>Tsb,updateTaxBodyTaxRatesItemRateMax:()=>tsb,updateTaxBodyTaxRatesItemRateMin:()=>esb,updateTaxPathIdRegExp:()=>Xnb,updateTaxResponseOneDestinationVatCountryCodeMax:()=>rsb,updateTaxResponseOneDestinationVatCountryCodeMin:()=>asb,updateTaxResponseOneEntityIdMax:()=>lsb,updateTaxResponseOneIdMax:()=>nsb,updateTaxResponseOneNameMax:()=>ssb,updateTaxResponseOneTaxRatesItemRateMax:()=>isb,updateTaxResponseOneTaxRatesItemRateMin:()=>osb});var sGb=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.")}),Fnb=100,knb=0,jnb=100,Hnb=2,Lnb=2,Gnb=60,oGb=e.object({name:e.string().max(Fnb).optional(),tax_rates:e.array(e.object({rate:e.number().min(knb).max(jnb),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(Hnb).max(Lnb).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(Gnb).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.")}),Vnb=10,Knb=100,iGb=e.object({limit:e.number().min(1).max(Knb).default(Vnb).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.
|
|
140
|
+
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.")}),P1b=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.")}),X7h=36,e9h=36,t9h=36,n9h=255,s9h=-2147483648,o9h=2147483647,i9h=-2147483648,a9h=2147483647,r9h=-2147483648,l9h=2147483647,d9h=-2147483648,c9h=2147483647,u9h=10,p9h=10,m9h=10,x9h=10,g9h=255,y9h=-2147483648,O9h=2147483647,v9h=-2147483648,h9h=2147483647,b9h=36,S9h=1e3,C1b=e.object({data:e.array(e.object({id:e.string().max(X7h),entity_id:e.string().max(e9h),document_id:e.string().max(t9h),name:e.string().max(n9h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(s9h).max(o9h),day_of_week:e.number().min(i9h).max(a9h).nullish(),day_of_month:e.number().min(r9h).max(l9h).nullish(),month_of_year:e.number().min(d9h).max(c9h).nullish(),start_date:e.string().max(u9h),end_date:e.string().max(p9h).nullish(),next_run_date:e.string().max(m9h).nullish(),last_run_date:e.string().max(x9h).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(g9h).nullish(),payment_terms_days:e.number().min(y9h).max(O9h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(v9h).max(h9h),last_generated_invoice_id:e.string().max(b9h).nullish(),last_error:e.string().max(S9h).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")}),f9h=/^[a-z]{3,4}_[0-9a-f]{24}$/,w1b=e.object({id:e.stringFormat("resource-id",f9h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),A1b=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.")}),z9h=36,I9h=36,B9h=36,E9h=255,T9h=-2147483648,D9h=2147483647,R9h=-2147483648,_9h=2147483647,N9h=-2147483648,M9h=2147483647,U9h=-2147483648,P9h=2147483647,C9h=10,w9h=10,A9h=10,F9h=10,k9h=255,j9h=-2147483648,H9h=2147483647,L9h=-2147483648,G9h=2147483647,V9h=36,K9h=1e3,F1b=e.object({id:e.string().max(z9h),entity_id:e.string().max(I9h),document_id:e.string().max(B9h),name:e.string().max(E9h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(T9h).max(D9h),day_of_week:e.number().min(R9h).max(_9h).nullish(),day_of_month:e.number().min(N9h).max(M9h).nullish(),month_of_year:e.number().min(U9h).max(P9h).nullish(),start_date:e.string().max(C9h),end_date:e.string().max(w9h).nullish(),next_run_date:e.string().max(A9h).nullish(),last_run_date:e.string().max(F9h).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(k9h).nullish(),payment_terms_days:e.number().min(j9h).max(H9h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(L9h).max(G9h),last_generated_invoice_id:e.string().max(V9h).nullish(),last_error:e.string().max(K9h).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"),Z9h=/^[a-z]{3,4}_[0-9a-f]{24}$/,k1b=e.object({id:e.stringFormat("resource-id",Z9h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),j1b=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.")}),q9h=255,W9h=-2147483648,Y9h=2147483647,$9h=-2147483648,Q9h=2147483647,J9h=-2147483648,X9h=2147483647,e8h=-2147483648,t8h=2147483647,n8h=/^\d{4}-\d{2}-\d{2}$/,s8h=/^\d{4}-\d{2}-\d{2}$/,o8h=255,i8h=-2147483648,a8h=2147483647,H1b=e.object({name:e.string().max(q9h).optional(),frequency:e.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e.number().min(W9h).max(Y9h).optional(),day_of_week:e.number().min($9h).max(Q9h).nullish(),day_of_month:e.number().min(J9h).max(X9h).nullish(),month_of_year:e.number().min(e8h).max(t8h).nullish(),start_date:e.string().regex(n8h).optional(),end_date:e.string().regex(s8h).nullish(),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(o8h).nullish(),payment_terms_days:e.number().min(i8h).max(a8h).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.")}),r8h=36,l8h=36,d8h=36,c8h=255,u8h=-2147483648,p8h=2147483647,m8h=-2147483648,x8h=2147483647,g8h=-2147483648,y8h=2147483647,O8h=-2147483648,v8h=2147483647,h8h=10,b8h=10,S8h=10,f8h=10,z8h=255,I8h=-2147483648,B8h=2147483647,E8h=-2147483648,T8h=2147483647,D8h=36,R8h=1e3,L1b=e.object({id:e.string().max(r8h),entity_id:e.string().max(l8h),document_id:e.string().max(d8h),name:e.string().max(c8h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(u8h).max(p8h),day_of_week:e.number().min(m8h).max(x8h).nullish(),day_of_month:e.number().min(g8h).max(y8h).nullish(),month_of_year:e.number().min(O8h).max(v8h).nullish(),start_date:e.string().max(h8h),end_date:e.string().max(b8h).nullish(),next_run_date:e.string().max(S8h).nullish(),last_run_date:e.string().max(f8h).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(z8h).nullish(),payment_terms_days:e.number().min(I8h).max(B8h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(E8h).max(T8h),last_generated_invoice_id:e.string().max(D8h).nullish(),last_error:e.string().max(R8h).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"),_8h=/^[a-z]{3,4}_[0-9a-f]{24}$/,G1b=e.object({id:e.stringFormat("resource-id",_8h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V1b=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.")}),N8h=/^[a-z]{3,4}_[0-9a-f]{24}$/,K1b=e.object({id:e.stringFormat("resource-id",N8h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Z1b=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.")}),M8h=36,U8h=36,P8h=36,C8h=255,w8h=-2147483648,A8h=2147483647,F8h=-2147483648,k8h=2147483647,j8h=-2147483648,H8h=2147483647,L8h=-2147483648,G8h=2147483647,V8h=10,K8h=10,Z8h=10,q8h=10,W8h=255,Y8h=-2147483648,$8h=2147483647,Q8h=-2147483648,J8h=2147483647,X8h=36,eYh=1e3,q1b=e.object({id:e.string().max(M8h),entity_id:e.string().max(U8h),document_id:e.string().max(P8h),name:e.string().max(C8h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(w8h).max(A8h),day_of_week:e.number().min(F8h).max(k8h).nullish(),day_of_month:e.number().min(j8h).max(H8h).nullish(),month_of_year:e.number().min(L8h).max(G8h).nullish(),start_date:e.string().max(V8h),end_date:e.string().max(K8h).nullish(),next_run_date:e.string().max(Z8h).nullish(),last_run_date:e.string().max(q8h).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(W8h).nullish(),payment_terms_days:e.number().min(Y8h).max($8h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Q8h).max(J8h),last_generated_invoice_id:e.string().max(X8h).nullish(),last_error:e.string().max(eYh).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"),tYh=/^[a-z]{3,4}_[0-9a-f]{24}$/,W1b=e.object({id:e.stringFormat("resource-id",tYh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Y1b=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.")}),nYh=/^[a-z]{3,4}_[0-9a-f]{24}$/,$1b=e.object({id:e.stringFormat("resource-id",nYh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q1b=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.")}),sYh=36,oYh=36,iYh=36,aYh=255,rYh=-2147483648,lYh=2147483647,dYh=-2147483648,cYh=2147483647,uYh=-2147483648,pYh=2147483647,mYh=-2147483648,xYh=2147483647,gYh=10,yYh=10,OYh=10,vYh=10,hYh=255,bYh=-2147483648,SYh=2147483647,fYh=-2147483648,zYh=2147483647,IYh=36,BYh=1e3,J1b=e.object({id:e.string().max(sYh),entity_id:e.string().max(oYh),document_id:e.string().max(iYh),name:e.string().max(aYh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(rYh).max(lYh),day_of_week:e.number().min(dYh).max(cYh).nullish(),day_of_month:e.number().min(uYh).max(pYh).nullish(),month_of_year:e.number().min(mYh).max(xYh).nullish(),start_date:e.string().max(gYh),end_date:e.string().max(yYh).nullish(),next_run_date:e.string().max(OYh).nullish(),last_run_date:e.string().max(vYh).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(hYh).nullish(),payment_terms_days:e.number().min(bYh).max(SYh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(fYh).max(zYh),last_generated_invoice_id:e.string().max(IYh).nullish(),last_error:e.string().max(BYh).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"),EYh=/^[a-z]{3,4}_[0-9a-f]{24}$/,X1b=e.object({id:e.stringFormat("resource-id",EYh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),e4b=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.")}),TYh=36,DYh=36,RYh=36,_Yh=255,NYh=-2147483648,MYh=2147483647,UYh=-2147483648,PYh=2147483647,CYh=-2147483648,wYh=2147483647,AYh=-2147483648,FYh=2147483647,kYh=10,jYh=10,HYh=10,LYh=10,GYh=255,VYh=-2147483648,KYh=2147483647,ZYh=-2147483648,qYh=2147483647,WYh=36,YYh=1e3,t4b=e.object({id:e.string().max(TYh),entity_id:e.string().max(DYh),document_id:e.string().max(RYh),name:e.string().max(_Yh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(NYh).max(MYh),day_of_week:e.number().min(UYh).max(PYh).nullish(),day_of_month:e.number().min(CYh).max(wYh).nullish(),month_of_year:e.number().min(AYh).max(FYh).nullish(),start_date:e.string().max(kYh),end_date:e.string().max(jYh).nullish(),next_run_date:e.string().max(HYh).nullish(),last_run_date:e.string().max(LYh).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(GYh).nullish(),payment_terms_days:e.number().min(VYh).max(KYh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(ZYh).max(qYh),last_generated_invoice_id:e.string().max(WYh).nullish(),last_error:e.string().max(YYh).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"),$Yh=/^[a-z]{3,4}_[0-9a-f]{24}$/,n4b=e.object({id:e.stringFormat("resource-id",$Yh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),QYh=100,s4b=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(QYh).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/).")}),JYh=36,XYh=36,e$h=36,t$h=255,n$h=-2147483648,s$h=2147483647,o$h=-2147483648,i$h=2147483647,a$h=-2147483648,r$h=2147483647,l$h=-2147483648,d$h=2147483647,c$h=10,u$h=10,p$h=10,m$h=10,x$h=255,g$h=-2147483648,y$h=2147483647,O$h=-2147483648,v$h=2147483647,h$h=36,b$h=1e3,o4b=e.object({id:e.string().max(JYh),entity_id:e.string().max(XYh),document_id:e.string().max(e$h),name:e.string().max(t$h),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(n$h).max(s$h),day_of_week:e.number().min(o$h).max(i$h).nullish(),day_of_month:e.number().min(a$h).max(r$h).nullish(),month_of_year:e.number().min(l$h).max(d$h).nullish(),start_date:e.string().max(c$h),end_date:e.string().max(u$h).nullish(),next_run_date:e.string().max(p$h).nullish(),last_run_date:e.string().max(m$h).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(x$h).nullish(),payment_terms_days:e.number().min(g$h).max(y$h).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(O$h).max(v$h),last_generated_invoice_id:e.string().max(h$h).nullish(),last_error:e.string().max(b$h).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 nn={};$(nn,{BackfillRevenueRecognitionBody:()=>u4b,BackfillRevenueRecognitionHeader:()=>c4b,BackfillRevenueRecognitionResponse:()=>p4b,GetRevenueRecognitionDetailsHeader:()=>O4b,GetRevenueRecognitionDetailsQueryParams:()=>y4b,GetRevenueRecognitionDetailsResponse:()=>v4b,GetRevenueRecognitionDocumentScheduleHeader:()=>z4b,GetRevenueRecognitionDocumentScheduleParams:()=>f4b,GetRevenueRecognitionDocumentScheduleResponse:()=>I4b,GetRevenueRecognitionReportHeader:()=>x4b,GetRevenueRecognitionReportQueryParams:()=>m4b,GetRevenueRecognitionReportResponse:()=>g4b,GetRevenueRecognitionSettingsHeader:()=>i4b,GetRevenueRecognitionSettingsResponse:()=>a4b,ListRevenueRecognitionLinesHeader:()=>b4b,ListRevenueRecognitionLinesQueryParams:()=>h4b,ListRevenueRecognitionLinesResponse:()=>S4b,UpdateRevenueRecognitionSettingsBody:()=>l4b,UpdateRevenueRecognitionSettingsHeader:()=>r4b,UpdateRevenueRecognitionSettingsResponse:()=>d4b,backfillRevenueRecognitionBodyDryRunDefault:()=>I$h,getRevenueRecognitionDetailsQueryBasisDefault:()=>T$h,getRevenueRecognitionDetailsQueryFinancialCategoryKeyMax:()=>R$h,getRevenueRecognitionDetailsQueryGroupByDefault:()=>D$h,getRevenueRecognitionDocumentSchedulePathIdRegExp:()=>P$h,getRevenueRecognitionReportQueryBasisDefault:()=>B$h,getRevenueRecognitionReportQueryGroupByDefault:()=>E$h,getRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>S$h,listRevenueRecognitionLinesQueryBasisDefault:()=>_$h,listRevenueRecognitionLinesQueryFinancialCategoryKeyMax:()=>M$h,listRevenueRecognitionLinesQueryGroupByDefault:()=>N$h,listRevenueRecognitionLinesQueryLimitMax:()=>U$h,updateRevenueRecognitionSettingsBodyDefaultMethodDefault:()=>f$h,updateRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>z$h});var i4b=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.")}),S$h="off",a4b=e.object({default_method:e.enum(["off","service_period_daily"]).default(S$h).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),r4b=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.")}),f$h="off",l4b=e.object({default_method:e.union([e.literal("off"),e.literal("service_period_daily"),e.literal(null)]).nullish().default(f$h).describe("Entity default for generated revenue recognition entries. Send null to clear back to the default off behavior.")}),z$h="off",d4b=e.object({default_method:e.enum(["off","service_period_daily"]).default(z$h).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),c4b=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.")}),I$h=false,u4b=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(I$h).describe("When true, counts eligible documents without writing entries.")}),p4b=e.object({processed_documents:e.number(),generated_entries:e.number(),dry_run:e.boolean()}),B$h="recognized",E$h="financial_category",m4b=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(B$h).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(E$h).describe("Report grouping dimension.")}),x4b=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.")}),g4b=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()}),T$h="recognized",D$h="financial_category",R$h=200,y4b=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(T$h).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(D$h).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(R$h).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.")}),O4b=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.")}),v4b=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()}),_$h="recognized",N$h="financial_category",M$h=200,U$h=100,h4b=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(_$h).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(N$h).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(M$h).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(U$h).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.")}),b4b=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.")}),S4b=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")}),P$h=/^[a-z]{3,4}_[0-9a-f]{24}$/,f4b=e.object({id:e.stringFormat("resource-id",P$h).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),z4b=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.")}),I4b=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 sn={};$(sn,{CancelShipmentBody:()=>G4b,CancelShipmentHeader:()=>L4b,CancelShipmentParams:()=>H4b,CancelShipmentResponse:()=>V4b,CreateShipmentBody:()=>U4b,CreateShipmentHeader:()=>M4b,DownloadShipmentLabelHeader:()=>j4b,DownloadShipmentLabelParams:()=>k4b,DownloadShipmentLabelsBody:()=>C4b,DownloadShipmentLabelsHeader:()=>P4b,GetOrderShipmentDraftHeader:()=>T4b,GetOrderShipmentDraftParams:()=>B4b,GetOrderShipmentDraftQueryParams:()=>E4b,GetOrderShipmentDraftResponse:()=>D4b,GetShipmentHeader:()=>A4b,GetShipmentParams:()=>w4b,GetShipmentResponse:()=>F4b,ListShipmentsHeader:()=>_4b,ListShipmentsQueryParams:()=>R4b,ListShipmentsResponse:()=>N4b,cancelShipmentPathIdRegExp:()=>EQh,cancelShipmentResponseCodOneAmountExclusiveMin:()=>DQh,cancelShipmentResponseParcelCountMax:()=>TQh,cancelShipmentResponseRecipientCityMax:()=>UQh,cancelShipmentResponseRecipientContactMax:()=>_Qh,cancelShipmentResponseRecipientCountryRegExp:()=>CQh,cancelShipmentResponseRecipientEmailMax:()=>AQh,cancelShipmentResponseRecipientHouseNumberMax:()=>MQh,cancelShipmentResponseRecipientNameMax:()=>RQh,cancelShipmentResponseRecipientPhoneMax:()=>wQh,cancelShipmentResponseRecipientPostCodeMax:()=>PQh,cancelShipmentResponseRecipientStreetMax:()=>NQh,createShipmentBodyCodOneAmountExclusiveMin:()=>lQh,createShipmentBodyCodOneReferenceMax:()=>dQh,createShipmentBodyParcelCountMax:()=>aQh,createShipmentBodyRecipientOneCityMax:()=>tQh,createShipmentBodyRecipientOneContactMax:()=>J$h,createShipmentBodyRecipientOneCountryRegExp:()=>sQh,createShipmentBodyRecipientOneEmailMax:()=>iQh,createShipmentBodyRecipientOneHouseNumberMax:()=>eQh,createShipmentBodyRecipientOneNameMax:()=>Q$h,createShipmentBodyRecipientOnePhoneMax:()=>oQh,createShipmentBodyRecipientOnePostCodeMax:()=>nQh,createShipmentBodyRecipientOneStreetMax:()=>X$h,createShipmentBodyReferenceMax:()=>cQh,createShipmentBodyRemarkMax:()=>uQh,createShipmentBodyWeightKgExclusiveMin:()=>rQh,downloadShipmentLabelPathIdRegExp:()=>BQh,downloadShipmentLabelsBodyShipmentIdsMax:()=>pQh,getOrderShipmentDraftPathIdRegExp:()=>C$h,getOrderShipmentDraftResponseCodOneAmountExclusiveMin:()=>A$h,getOrderShipmentDraftResponseParcelCountMax:()=>w$h,getShipmentPathIdRegExp:()=>mQh,getShipmentResponseCodOneAmountExclusiveMin:()=>gQh,getShipmentResponseParcelCountMax:()=>xQh,getShipmentResponseRecipientCityMax:()=>bQh,getShipmentResponseRecipientContactMax:()=>OQh,getShipmentResponseRecipientCountryRegExp:()=>fQh,getShipmentResponseRecipientEmailMax:()=>IQh,getShipmentResponseRecipientHouseNumberMax:()=>hQh,getShipmentResponseRecipientNameMax:()=>yQh,getShipmentResponseRecipientPhoneMax:()=>zQh,getShipmentResponseRecipientPostCodeMax:()=>SQh,getShipmentResponseRecipientStreetMax:()=>vQh,listShipmentsQueryLimitDefault:()=>F$h,listShipmentsQueryLimitMax:()=>k$h,listShipmentsResponseDataItemCodOneAmountExclusiveMin:()=>H$h,listShipmentsResponseDataItemParcelCountMax:()=>j$h,listShipmentsResponseDataItemRecipientCityMax:()=>Z$h,listShipmentsResponseDataItemRecipientContactMax:()=>G$h,listShipmentsResponseDataItemRecipientCountryRegExp:()=>W$h,listShipmentsResponseDataItemRecipientEmailMax:()=>$$h,listShipmentsResponseDataItemRecipientHouseNumberMax:()=>K$h,listShipmentsResponseDataItemRecipientNameMax:()=>L$h,listShipmentsResponseDataItemRecipientPhoneMax:()=>Y$h,listShipmentsResponseDataItemRecipientPostCodeMax:()=>q$h,listShipmentsResponseDataItemRecipientStreetMax:()=>V$h});var C$h=/^[a-z]{3,4}_[0-9a-f]{24}$/,B4b=e.object({id:e.stringFormat("resource-id",C$h).describe("Order identifier (ord_ prefix).")}),E4b=e.object({shipping_connection_id:e.string().optional().describe("Connection to derive the draft for. Defaults to the entity's single active connection.")}),T4b=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.")}),w$h=30,A$h=0,D4b=e.object({shipping_connection_id:e.string(),recipient:e.object({name:e.string().describe("Recipient name; may be empty or over 35 characters."),contact:e.string().nullish().describe("Contact person when `name` is a company."),street:e.string().describe("Street name without the house number."),house_number:e.string().describe("House number; empty when the order has none."),city:e.string(),post_code:e.string(),country:e.string().describe("Country code as found on the order."),phone:e.string().nullish(),email:e.string().nullish()}).describe("Recipient address pre-filled from an order. Values are not checked against the carrier limits; see `warnings`."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(w$h),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(A$h).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),reference:e.string().nullable().describe("Order number, up to 20 characters."),remark:e.string().nullable(),warnings:e.array(e.object({field:e.string(),code:e.string()}).describe("A problem found while pre-filling a shipment from an order.")).describe("Values that need attention before creating the shipment (missing or over-long fields, dropped address line 2, an unsupported COD currency). Over-long values are kept, never truncated. Limits: name 35, street 35, house number 8, city 35, post code 9, email 50, phone 30.")}).describe("Shipment values derived from an order, ready to review and submit."),F$h=10,k$h=100,R4b=e.object({limit:e.number().min(1).max(k$h).default(F$h).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_id:e.string().optional().describe("Only shipments of this order."),status:e.enum(["creating","created","cancelled","failed","unknown"]).optional().describe("Only shipments in this status.")}),_4b=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.")}),j$h=30,H$h=0,L$h=35,G$h=35,V$h=35,K$h=8,Z$h=35,q$h=9,W$h=/^[A-Za-z]{2}$/,Y$h=30,$$h=50,N4b=e.object({data:e.array(e.object({id:e.string().describe("Shipment identifier (shp_ prefix)."),entity_id:e.string(),order_id:e.string().nullable().describe("Order the shipment was created for, if any."),shipping_connection_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),status:e.enum(["creating","created","cancelled","failed","unknown"]).describe("`creating`: being registered with the carrier. `created`: parcel registered. `cancelled`: parcel cancelled or deleted. `failed`: registration failed. `unknown`: the carrier did not answer, so a parcel may exist; check the carrier portal and cancel with `local_only` if it does not."),carrier_status:e.string().nullable().describe("Latest status reported by the carrier (for example `DELIVERED`), refreshed periodically."),carrier_status_checked_at:e.iso.datetime({}).nullable(),tracking_numbers:e.array(e.string()).describe("Carrier parcel numbers, one per parcel."),tracking_urls:e.array(e.string()).describe("Public tracking page for each parcel number, in the same order."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(j$h),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(H$h).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),recipient:e.object({name:e.string().min(1).max(L$h).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(G$h).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(V$h).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(K$h).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(Z$h).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(q$h).describe("Postal code. Up to 9 characters."),country:e.string().regex(W$h).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(Y$h).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max($$h).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),reference:e.string().nullable().describe("Order number sent to the carrier."),remark:e.string().nullable().describe("Free text for the courier."),label_format:e.enum(["pdf_a6","pdf_a4"]),label_available:e.boolean().describe("Whether the label PDF is stored and can be downloaded."),printed_at:e.iso.datetime({}).nullable().describe("When the label was printed at the carrier."),error:e.union([e.object({code:e.string(),message:e.string(),field:e.string().optional().describe("Request field the error refers to, when known.")}).describe("Why a shipment, or one step of creating it, did not complete."),e.null()]),tracking_pushed_at:e.iso.datetime({}).nullable().describe("When the tracking number was added to the store order."),tracking_push_error:e.string().nullable().describe("Why adding the tracking number to the store order failed."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A parcel registered with a carrier, normally for an order, with its tracking numbers and label.")),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")}),M4b=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$h=35,J$h=35,X$h=35,eQh=8,tQh=35,nQh=9,sQh=/^[A-Za-z]{2}$/,oQh=30,iQh=50,aQh=30,rQh=0,lQh=0,dQh=14,cQh=20,uQh=50,U4b=e.object({shipping_connection_id:e.string().nullish().describe("Connection to use. Defaults to the entity's single active connection."),order_id:e.string().nullish().describe("Order to ship. Every omitted field below is filled from the order's shipment draft (see `getOrderShipmentDraft`)."),recipient:e.union([e.object({name:e.string().min(1).max(Q$h).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(J$h).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(X$h).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(eQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(tQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(nQh).describe("Postal code. Up to 9 characters."),country:e.string().regex(sQh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(oQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(iQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).optional().describe("Recipient address. Required without `order_id`; with it, replaces the whole address from the draft."),parcel_type:e.union([e.literal("business"),e.literal("home"),e.literal(null)]).nullish().describe("Required without `order_id`; with it, defaults to the draft's parcel type."),parcel_count:e.number().min(1).max(aQh).nullish().describe("Number of parcels (1-30). Defaults to the connection's default."),weight_kg:e.number().gt(rQh).nullish().describe("Total weight in kilograms. Defaults to the connection's default weight."),cod:e.union([e.object({amount:e.number().gt(lQh).describe("Amount to collect on delivery, in EUR."),reference:e.string().max(dQh).nullish().describe("Payment reference (up to 14 characters). Defaults to the order number when the shipment is for an order.")}).describe("Cash on delivery to collect from the recipient."),e.null()]).optional().describe("Cash on delivery. Omit to use the order's draft COD; send null to ship without COD even when the draft has it. COD is EUR only; for a non-EUR order an explicit COD is rejected with a `cod` field error."),reference:e.string().max(cQh).nullish().describe("Order number printed on the label (up to 20 characters). Defaults to the order number."),remark:e.string().max(uQh).nullish().describe("Free text for the courier (up to 50 characters)."),allow_additional:e.boolean().nullish().describe("Set true to create another shipment for an order that already has one in status `creating`, `created` or `unknown`. Otherwise that is rejected with 409 `shipment_exists`.")}),P4b=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.")}),pQh=50,C4b=e.object({shipment_ids:e.array(e.string()).min(1).max(pQh).describe("Shipments whose labels to merge, in the order they should appear (1-50).")}),mQh=/^shp_[0-9a-f]{24}$/,w4b=e.object({id:e.stringFormat("resource-id",mQh).describe("Shipment identifier (shp_ prefix).")}),A4b=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.")}),xQh=30,gQh=0,yQh=35,OQh=35,vQh=35,hQh=8,bQh=35,SQh=9,fQh=/^[A-Za-z]{2}$/,zQh=30,IQh=50,F4b=e.object({id:e.string().describe("Shipment identifier (shp_ prefix)."),entity_id:e.string(),order_id:e.string().nullable().describe("Order the shipment was created for, if any."),shipping_connection_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),status:e.enum(["creating","created","cancelled","failed","unknown"]).describe("`creating`: being registered with the carrier. `created`: parcel registered. `cancelled`: parcel cancelled or deleted. `failed`: registration failed. `unknown`: the carrier did not answer, so a parcel may exist; check the carrier portal and cancel with `local_only` if it does not."),carrier_status:e.string().nullable().describe("Latest status reported by the carrier (for example `DELIVERED`), refreshed periodically."),carrier_status_checked_at:e.iso.datetime({}).nullable(),tracking_numbers:e.array(e.string()).describe("Carrier parcel numbers, one per parcel."),tracking_urls:e.array(e.string()).describe("Public tracking page for each parcel number, in the same order."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(xQh),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(gQh).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),recipient:e.object({name:e.string().min(1).max(yQh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(OQh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(vQh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(hQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(bQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(SQh).describe("Postal code. Up to 9 characters."),country:e.string().regex(fQh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(zQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(IQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),reference:e.string().nullable().describe("Order number sent to the carrier."),remark:e.string().nullable().describe("Free text for the courier."),label_format:e.enum(["pdf_a6","pdf_a4"]),label_available:e.boolean().describe("Whether the label PDF is stored and can be downloaded."),printed_at:e.iso.datetime({}).nullable().describe("When the label was printed at the carrier."),error:e.union([e.object({code:e.string(),message:e.string(),field:e.string().optional().describe("Request field the error refers to, when known.")}).describe("Why a shipment, or one step of creating it, did not complete."),e.null()]),tracking_pushed_at:e.iso.datetime({}).nullable().describe("When the tracking number was added to the store order."),tracking_push_error:e.string().nullable().describe("Why adding the tracking number to the store order failed."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A parcel registered with a carrier, normally for an order, with its tracking numbers and label."),BQh=/^shp_[0-9a-f]{24}$/,k4b=e.object({id:e.stringFormat("resource-id",BQh).describe("Shipment identifier (shp_ prefix).")}),j4b=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.")}),EQh=/^shp_[0-9a-f]{24}$/,H4b=e.object({id:e.stringFormat("resource-id",EQh).describe("Shipment identifier (shp_ prefix).")}),L4b=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.")}),G4b=e.object({local_only:e.boolean().nullish().describe("Only for a shipment in status `unknown`: mark it cancelled without calling the carrier, after checking in the carrier portal that no parcel exists. Ignored for other statuses.")}),TQh=30,DQh=0,RQh=35,_Qh=35,NQh=35,MQh=8,UQh=35,PQh=9,CQh=/^[A-Za-z]{2}$/,wQh=30,AQh=50,V4b=e.object({id:e.string().describe("Shipment identifier (shp_ prefix)."),entity_id:e.string(),order_id:e.string().nullable().describe("Order the shipment was created for, if any."),shipping_connection_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),status:e.enum(["creating","created","cancelled","failed","unknown"]).describe("`creating`: being registered with the carrier. `created`: parcel registered. `cancelled`: parcel cancelled or deleted. `failed`: registration failed. `unknown`: the carrier did not answer, so a parcel may exist; check the carrier portal and cancel with `local_only` if it does not."),carrier_status:e.string().nullable().describe("Latest status reported by the carrier (for example `DELIVERED`), refreshed periodically."),carrier_status_checked_at:e.iso.datetime({}).nullable(),tracking_numbers:e.array(e.string()).describe("Carrier parcel numbers, one per parcel."),tracking_urls:e.array(e.string()).describe("Public tracking page for each parcel number, in the same order."),parcel_type:e.enum(["business","home"]).describe("`business` delivers to a company; `home` is a private recipient and enables DPD Predict notifications."),parcel_count:e.number().min(1).max(TQh),weight_kg:e.number().nullable(),cod:e.union([e.object({amount:e.number().gt(DQh).describe("Amount to collect on delivery."),currency:e.string().describe("Currency of the COD amount. Only EUR is supported."),reference:e.string().nullable().describe("Payment reference sent to the carrier (up to 14 characters), normally the order number.")}).describe("Cash on delivery amount collected by the courier."),e.null()]),recipient:e.object({name:e.string().min(1).max(RQh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(_Qh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(NQh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(MQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(UQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(PQh).describe("Postal code. Up to 9 characters."),country:e.string().regex(CQh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(wQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(AQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),reference:e.string().nullable().describe("Order number sent to the carrier."),remark:e.string().nullable().describe("Free text for the courier."),label_format:e.enum(["pdf_a6","pdf_a4"]),label_available:e.boolean().describe("Whether the label PDF is stored and can be downloaded."),printed_at:e.iso.datetime({}).nullable().describe("When the label was printed at the carrier."),error:e.union([e.object({code:e.string(),message:e.string(),field:e.string().optional().describe("Request field the error refers to, when known.")}).describe("Why a shipment, or one step of creating it, did not complete."),e.null()]),tracking_pushed_at:e.iso.datetime({}).nullable().describe("When the tracking number was added to the store order."),tracking_push_error:e.string().nullable().describe("Why adding the tracking number to the store order failed."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A parcel registered with a carrier, normally for an order, with its tracking numbers and label.");var on={};$(on,{CreateShippingConnectionBody:()=>Y4b,CreateShippingConnectionHeader:()=>W4b,DeleteShippingConnectionHeader:()=>o3b,DeleteShippingConnectionParams:()=>s3b,GetShippingConnectionHeader:()=>Q4b,GetShippingConnectionParams:()=>$4b,GetShippingConnectionResponse:()=>J4b,ListShippingConnectionsHeader:()=>Z4b,ListShippingConnectionsQueryParams:()=>K4b,ListShippingConnectionsResponse:()=>q4b,UpdateShippingConnectionBody:()=>t3b,UpdateShippingConnectionHeader:()=>e3b,UpdateShippingConnectionParams:()=>X4b,UpdateShippingConnectionResponse:()=>n3b,createShippingConnectionBodyPasswordMax:()=>eJh,createShippingConnectionBodySettingsOneCodPaymentMethodsItemMax:()=>sJh,createShippingConnectionBodySettingsOneCodPaymentMethodsMax:()=>oJh,createShippingConnectionBodySettingsOneDefaultParcelCountMax:()=>tJh,createShippingConnectionBodySettingsOneDefaultWeightKgExclusiveMin:()=>nJh,createShippingConnectionBodySettingsOneSenderOneCityMax:()=>dJh,createShippingConnectionBodySettingsOneSenderOneContactMax:()=>aJh,createShippingConnectionBodySettingsOneSenderOneCountryRegExp:()=>uJh,createShippingConnectionBodySettingsOneSenderOneEmailMax:()=>mJh,createShippingConnectionBodySettingsOneSenderOneHouseNumberMax:()=>lJh,createShippingConnectionBodySettingsOneSenderOneNameMax:()=>iJh,createShippingConnectionBodySettingsOneSenderOnePhoneMax:()=>pJh,createShippingConnectionBodySettingsOneSenderOnePostCodeMax:()=>cJh,createShippingConnectionBodySettingsOneSenderOneStreetMax:()=>rJh,createShippingConnectionBodyUsernameMax:()=>XQh,deleteShippingConnectionPathIdRegExp:()=>sXh,getShippingConnectionPathIdRegExp:()=>xJh,getShippingConnectionResponseSettingsCodPaymentMethodsItemMax:()=>OJh,getShippingConnectionResponseSettingsCodPaymentMethodsMax:()=>vJh,getShippingConnectionResponseSettingsDefaultParcelCountMax:()=>gJh,getShippingConnectionResponseSettingsDefaultWeightKgExclusiveMin:()=>yJh,getShippingConnectionResponseSettingsSenderOneCityMax:()=>zJh,getShippingConnectionResponseSettingsSenderOneContactMax:()=>bJh,getShippingConnectionResponseSettingsSenderOneCountryRegExp:()=>BJh,getShippingConnectionResponseSettingsSenderOneEmailMax:()=>TJh,getShippingConnectionResponseSettingsSenderOneHouseNumberMax:()=>fJh,getShippingConnectionResponseSettingsSenderOneNameMax:()=>hJh,getShippingConnectionResponseSettingsSenderOnePhoneMax:()=>EJh,getShippingConnectionResponseSettingsSenderOnePostCodeMax:()=>IJh,getShippingConnectionResponseSettingsSenderOneStreetMax:()=>SJh,listShippingConnectionsQueryLimitDefault:()=>FQh,listShippingConnectionsQueryLimitMax:()=>kQh,listShippingConnectionsResponseDataItemSettingsCodPaymentMethodsItemMax:()=>LQh,listShippingConnectionsResponseDataItemSettingsCodPaymentMethodsMax:()=>GQh,listShippingConnectionsResponseDataItemSettingsDefaultParcelCountMax:()=>jQh,listShippingConnectionsResponseDataItemSettingsDefaultWeightKgExclusiveMin:()=>HQh,listShippingConnectionsResponseDataItemSettingsSenderOneCityMax:()=>WQh,listShippingConnectionsResponseDataItemSettingsSenderOneContactMax:()=>KQh,listShippingConnectionsResponseDataItemSettingsSenderOneCountryRegExp:()=>$Qh,listShippingConnectionsResponseDataItemSettingsSenderOneEmailMax:()=>JQh,listShippingConnectionsResponseDataItemSettingsSenderOneHouseNumberMax:()=>qQh,listShippingConnectionsResponseDataItemSettingsSenderOneNameMax:()=>VQh,listShippingConnectionsResponseDataItemSettingsSenderOnePhoneMax:()=>QQh,listShippingConnectionsResponseDataItemSettingsSenderOnePostCodeMax:()=>YQh,listShippingConnectionsResponseDataItemSettingsSenderOneStreetMax:()=>ZQh,updateShippingConnectionBodyPasswordMax:()=>_Jh,updateShippingConnectionBodySettingsOneCodPaymentMethodsItemMax:()=>UJh,updateShippingConnectionBodySettingsOneCodPaymentMethodsMax:()=>PJh,updateShippingConnectionBodySettingsOneDefaultParcelCountMax:()=>NJh,updateShippingConnectionBodySettingsOneDefaultWeightKgExclusiveMin:()=>MJh,updateShippingConnectionBodySettingsOneSenderOneCityMax:()=>kJh,updateShippingConnectionBodySettingsOneSenderOneContactMax:()=>wJh,updateShippingConnectionBodySettingsOneSenderOneCountryRegExp:()=>HJh,updateShippingConnectionBodySettingsOneSenderOneEmailMax:()=>GJh,updateShippingConnectionBodySettingsOneSenderOneHouseNumberMax:()=>FJh,updateShippingConnectionBodySettingsOneSenderOneNameMax:()=>CJh,updateShippingConnectionBodySettingsOneSenderOnePhoneMax:()=>LJh,updateShippingConnectionBodySettingsOneSenderOnePostCodeMax:()=>jJh,updateShippingConnectionBodySettingsOneSenderOneStreetMax:()=>AJh,updateShippingConnectionBodyUsernameMax:()=>RJh,updateShippingConnectionPathIdRegExp:()=>DJh,updateShippingConnectionResponseSettingsCodPaymentMethodsItemMax:()=>ZJh,updateShippingConnectionResponseSettingsCodPaymentMethodsMax:()=>qJh,updateShippingConnectionResponseSettingsDefaultParcelCountMax:()=>VJh,updateShippingConnectionResponseSettingsDefaultWeightKgExclusiveMin:()=>KJh,updateShippingConnectionResponseSettingsSenderOneCityMax:()=>JJh,updateShippingConnectionResponseSettingsSenderOneContactMax:()=>YJh,updateShippingConnectionResponseSettingsSenderOneCountryRegExp:()=>eXh,updateShippingConnectionResponseSettingsSenderOneEmailMax:()=>nXh,updateShippingConnectionResponseSettingsSenderOneHouseNumberMax:()=>QJh,updateShippingConnectionResponseSettingsSenderOneNameMax:()=>WJh,updateShippingConnectionResponseSettingsSenderOnePhoneMax:()=>tXh,updateShippingConnectionResponseSettingsSenderOnePostCodeMax:()=>XJh,updateShippingConnectionResponseSettingsSenderOneStreetMax:()=>$Jh});var FQh=10,kQh=100,K4b=e.object({limit:e.number().min(1).max(kQh).default(FQh).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.")}),Z4b=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.")}),jQh=30,HQh=0,LQh=100,GQh=50,VQh=35,KQh=35,ZQh=35,qQh=8,WQh=35,YQh=9,$Qh=/^[A-Za-z]{2}$/,QQh=30,JQh=50,q4b=e.object({data:e.array(e.object({id:e.string().describe("Connection identifier (shc_ prefix)."),entity_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().describe("Carrier username. The password is never returned."),is_active:e.boolean(),settings:e.object({label_format:e.enum(["pdf_a6","pdf_a4"]).describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(jQh).describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(HQh).nullable().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(LQh)).max(GQh).describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(VQh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(KQh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(ZQh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(qQh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(WQh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(YQh).describe("Postal code. Up to 9 characters."),country:e.string().regex($Qh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(QQh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(JQh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).describe("Sender address sent with each parcel. When null the carrier uses the account's registered sender.")}).describe("Defaults applied to the connection's shipments."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A carrier account an entity uses to create shipments. Credentials are stored encrypted and never returned.")),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")}),W4b=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.")}),XQh=255,eJh=255,tJh=30,nJh=0,sJh=100,oJh=50,iJh=35,aJh=35,rJh=35,lJh=8,dJh=35,cJh=9,uJh=/^[A-Za-z]{2}$/,pJh=30,mJh=50,Y4b=e.object({carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().min(1).max(XQh).describe("Carrier web-service username (DPD EasyShip account)."),password:e.string().min(1).max(eJh).describe("Carrier web-service password. Stored encrypted and never returned."),settings:e.union([e.object({label_format:e.union([e.literal("pdf_a6"),e.literal("pdf_a4"),e.literal(null)]).nullish().describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(tJh).nullish().describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(nJh).nullish().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(sJh)).max(oJh).nullish().describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().nullish().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(iJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(aJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(rJh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(lJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(dJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(cJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(uJh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(pJh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(mJh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).optional()}).describe('Connection settings. Omitted or null properties take their defaults: label_format `pdf_a6`, default_parcel_count 1, default_weight_kg none, cod_payment_methods `["cod", "cash"]`, push_tracking_to_store true, sender none.'),e.null()]).optional()}),xJh=/^[a-z]{3,4}_[0-9a-f]{24}$/,$4b=e.object({id:e.stringFormat("resource-id",xJh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q4b=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.")}),gJh=30,yJh=0,OJh=100,vJh=50,hJh=35,bJh=35,SJh=35,fJh=8,zJh=35,IJh=9,BJh=/^[A-Za-z]{2}$/,EJh=30,TJh=50,J4b=e.object({id:e.string().describe("Connection identifier (shc_ prefix)."),entity_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().describe("Carrier username. The password is never returned."),is_active:e.boolean(),settings:e.object({label_format:e.enum(["pdf_a6","pdf_a4"]).describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(gJh).describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(yJh).nullable().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(OJh)).max(vJh).describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(hJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(bJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(SJh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(fJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(zJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(IJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(BJh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(EJh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(TJh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).describe("Sender address sent with each parcel. When null the carrier uses the account's registered sender.")}).describe("Defaults applied to the connection's shipments."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A carrier account an entity uses to create shipments. Credentials are stored encrypted and never returned."),DJh=/^[a-z]{3,4}_[0-9a-f]{24}$/,X4b=e.object({id:e.stringFormat("resource-id",DJh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),e3b=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.")}),RJh=255,_Jh=255,NJh=30,MJh=0,UJh=100,PJh=50,CJh=35,wJh=35,AJh=35,FJh=8,kJh=35,jJh=9,HJh=/^[A-Za-z]{2}$/,LJh=30,GJh=50,t3b=e.object({username:e.string().min(1).max(RJh).nullish().describe("New carrier username. Omit or send null to keep the current one. Changing it re-verifies the credentials."),password:e.string().min(1).max(_Jh).nullish().describe("New carrier password. Omit or send null to keep the current one. Changing it re-verifies the credentials."),settings:e.union([e.object({label_format:e.union([e.literal("pdf_a6"),e.literal("pdf_a4"),e.literal(null)]).nullish().describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(NJh).nullish().describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(MJh).nullish().describe("Default weight. Send null to clear it; omit to keep it."),cod_payment_methods:e.array(e.string().min(1).max(UJh)).max(PJh).nullish().describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().nullish().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(CJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(wJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max(AJh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(FJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(kJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(jJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(HJh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(LJh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(GJh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).optional().describe("Sender address. Send null to clear it; omit to keep it.")}).describe("Partial settings update merged into the stored settings. Omitted properties are unchanged. A null `default_weight_kg` or `sender` clears it; null on any other property leaves it unchanged."),e.null()]).optional(),is_active:e.boolean().nullish().describe("Set false to stop using the connection without deleting it. Omit or send null to leave it unchanged.")}),VJh=30,KJh=0,ZJh=100,qJh=50,WJh=35,YJh=35,$Jh=35,QJh=8,JJh=35,XJh=9,eXh=/^[A-Za-z]{2}$/,tXh=30,nXh=50,n3b=e.object({id:e.string().describe("Connection identifier (shc_ prefix)."),entity_id:e.string(),carrier:e.enum(["dpd_si"]).describe("Carrier. `dpd_si` is DPD Slovenia (EasyShip)."),username:e.string().describe("Carrier username. The password is never returned."),is_active:e.boolean(),settings:e.object({label_format:e.enum(["pdf_a6","pdf_a4"]).describe("Label page format: `pdf_a6` (one label per A6 page) or `pdf_a4`."),default_parcel_count:e.number().min(1).max(VJh).describe("Parcels per shipment unless a shipment says otherwise (1-30)."),default_weight_kg:e.number().gt(KJh).nullable().describe("Weight sent to the carrier when a shipment has none."),cod_payment_methods:e.array(e.string().min(1).max(ZJh)).max(qJh).describe("Order payment methods or gateways (case-insensitive) that mean cash on delivery. An unpaid order paid by one of them gets a COD amount in its shipment draft."),push_tracking_to_store:e.boolean().describe("Add the tracking number to the store order as a customer note (WooCommerce only)."),sender:e.union([e.object({name:e.string().min(1).max(WJh).describe("Recipient or sender name (a company name for business parcels). Up to 35 characters."),contact:e.string().max(YJh).nullish().describe("Contact person when `name` is a company. Up to 35 characters."),street:e.string().min(1).max($Jh).describe("Street name without the house number. Up to 35 characters."),house_number:e.string().min(1).max(QJh).describe("House number, including any suffix such as `12a` or `5/a`. Up to 8 characters."),city:e.string().min(1).max(JJh).describe("City. Up to 35 characters."),post_code:e.string().min(1).max(XJh).describe("Postal code. Up to 9 characters."),country:e.string().regex(eXh).describe("ISO 3166-1 alpha-2 country code."),phone:e.string().max(tXh).nullish().describe("Phone number in international digits-only form (for example `38640123456`). Up to 30 digits."),email:e.string().max(nXh).nullish().describe("Email address. Up to 50 characters.")}).describe("Postal address and contact of a parcel recipient or sender."),e.null()]).describe("Sender address sent with each parcel. When null the carrier uses the account's registered sender.")}).describe("Defaults applied to the connection's shipments."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A carrier account an entity uses to create shipments. Credentials are stored encrypted and never returned."),sXh=/^[a-z]{3,4}_[0-9a-f]{24}$/,s3b=e.object({id:e.stringFormat("resource-id",sXh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),o3b=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 an={};$(an,{StripeAppConnectBody:()=>r3b,StripeAppEntityDisconnectResponse:()=>d3b,StripeAppEntityGetConnectionResponse:()=>l3b,StripeAppEntityGetSettingsResponse:()=>c3b,StripeAppEntityUpdateSettingsBody:()=>u3b,StripeAppEntityUpdateSettingsResponse:()=>p3b,StripeAppMarketplaceAuthorizeBody:()=>i3b,StripeAppMarketplaceAuthorizeResponse:()=>a3b,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>oXh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>aXh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>iXh});var i3b=e.object({entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account")}),a3b=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),r3b=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.")}),l3b=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")}),d3b=e.object({message:e.string()}),c3b=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"),send_invoice_email:e.boolean().optional().describe("Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting."),attach_pdf_to_email:e.boolean().optional().describe("Attach the document PDF to customer emails. The email always links to the document. Omitted by API versions that predate this setting."),credit_note_on_refund:e.boolean().optional().describe("When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRa\u010Dun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting."),send_credit_note_email:e.boolean().optional().describe("Email the refund credit note to the invoice customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting.")}),oXh=500,iXh=0,aXh=100,u3b=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(oXh).nullish().describe("Default note to include on auto-created invoices. Set to null to clear the note."),default_tax_rate:e.number().min(iXh).max(aXh).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable."),send_invoice_email:e.boolean().nullish().describe("Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. Omit to keep the current value. Set to null to turn it off."),attach_pdf_to_email:e.boolean().nullish().describe("Attach the document PDF to customer emails. The email always links to the document. Omit to keep the current value. Set to null to reset to the default (off)."),credit_note_on_refund:e.boolean().nullish().describe("When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRa\u010Dun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. Omit to keep the current value. Set to null to turn it off."),send_credit_note_email:e.boolean().nullish().describe("Email the refund credit note to the invoice customer's email address. Omit to keep the current value. Set to null to turn it off.")}),p3b=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"),send_invoice_email:e.boolean().optional().describe("Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting."),attach_pdf_to_email:e.boolean().optional().describe("Attach the document PDF to customer emails. The email always links to the document. Omitted by API versions that predate this setting."),credit_note_on_refund:e.boolean().optional().describe("When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRa\u010Dun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting."),send_credit_note_email:e.boolean().optional().describe("Email the refund credit note to the invoice customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting.")});var rn={};$(rn,{CheckEntityLimitResponse:()=>y3b,GetCurrentSubscriptionResponse:()=>m3b,UpdateSpendingLimitBody:()=>x3b,UpdateSpendingLimitResponse:()=>g3b,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>rXh,updateSpendingLimitBodySpendingLimitCentsMin:()=>lXh});var rXh=0,m3b=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(rXh),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"),lXh=0,x3b=e.object({spending_limit_cents:e.number().min(lXh).nullable()}).describe("Request to update spending limit for metered tier"),g3b=e.object({spending_limit_cents:e.number().nullable()}).describe("Updated spending limit"),y3b=e.object({can_create:e.boolean(),current_count:e.number(),limit:e.number().nullable()});var ln={};$(ln,{ListUsTaxRateEstimatesHeader:()=>v3b,ListUsTaxRateEstimatesQueryParams:()=>O3b,ListUsTaxRateEstimatesResponse:()=>h3b,listUsTaxRateEstimatesQueryStateMax:()=>uXh,listUsTaxRateEstimatesQueryStateMin:()=>cXh,listUsTaxRateEstimatesQueryZipCodeRegExp:()=>dXh,listUsTaxRateEstimatesResponseDataItemCityRateMax:()=>IXh,listUsTaxRateEstimatesResponseDataItemCityRateMin:()=>zXh,listUsTaxRateEstimatesResponseDataItemCountryCodeMax:()=>mXh,listUsTaxRateEstimatesResponseDataItemCountyRateMax:()=>fXh,listUsTaxRateEstimatesResponseDataItemCountyRateMin:()=>SXh,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMax:()=>vXh,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMin:()=>OXh,listUsTaxRateEstimatesResponseDataItemIdMax:()=>pXh,listUsTaxRateEstimatesResponseDataItemRiskLevelMax:()=>DXh,listUsTaxRateEstimatesResponseDataItemRiskLevelMin:()=>TXh,listUsTaxRateEstimatesResponseDataItemSourceMax:()=>RXh,listUsTaxRateEstimatesResponseDataItemSourceMonthMax:()=>_Xh,listUsTaxRateEstimatesResponseDataItemSpecialRateMax:()=>EXh,listUsTaxRateEstimatesResponseDataItemSpecialRateMin:()=>BXh,listUsTaxRateEstimatesResponseDataItemStateMax:()=>xXh,listUsTaxRateEstimatesResponseDataItemStateRateMax:()=>bXh,listUsTaxRateEstimatesResponseDataItemStateRateMin:()=>hXh,listUsTaxRateEstimatesResponseDataItemTaxRegionNameMax:()=>yXh,listUsTaxRateEstimatesResponseDataItemZipCodeMax:()=>gXh});var dXh=/^\d{5}$/,cXh=2,uXh=2,O3b=e.object({zip_code:e.string().regex(dXh).describe("US ZIP code to look up."),state:e.string().min(cXh).max(uXh).optional().describe("Optional two-letter US state filter.")}),v3b=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.")}),pXh=36,mXh=2,xXh=2,gXh=10,yXh=255,OXh=-140737488355328,vXh=0x7fffffffffff,hXh=-140737488355328,bXh=0x7fffffffffff,SXh=-140737488355328,fXh=0x7fffffffffff,zXh=-140737488355328,IXh=0x7fffffffffff,BXh=-140737488355328,EXh=0x7fffffffffff,TXh=-2147483648,DXh=2147483647,RXh=50,_Xh=7,h3b=e.object({data:e.array(e.object({id:e.string().max(pXh),country_code:e.string().max(mXh),state:e.string().max(xXh),zip_code:e.string().max(gXh),tax_region_name:e.string().max(yXh),estimated_combined_rate:e.number().min(OXh).max(vXh),state_rate:e.number().min(hXh).max(bXh),county_rate:e.number().min(SXh).max(fXh),city_rate:e.number().min(zXh).max(IXh),special_rate:e.number().min(BXh).max(EXh),risk_level:e.number().min(TXh).max(DXh),source:e.string().max(RXh),source_month:e.string().max(_Xh),imported_at:e.iso.datetime({})}).describe("Imported ZIP-level tax-rate estimate. This is informational and must be verified before use."))});var dn={};$(dn,{CreateTaxPaymentBody:()=>T3b,CreateTaxPaymentHeader:()=>E3b,DeleteTaxPaymentHeader:()=>U3b,DeleteTaxPaymentParams:()=>M3b,ExportQuickbooksCsvHeader:()=>nGb,ExportQuickbooksCsvQueryParams:()=>tGb,ExportSloveniaMinimaxXmlBody:()=>J3b,ExportSloveniaMinimaxXmlHeader:()=>Q3b,ExportSloveniaVascoXmlBody:()=>eGb,ExportSloveniaVascoXmlHeader:()=>X3b,ExportSloveniaVodXmlBody:()=>$3b,ExportSloveniaVodXmlHeader:()=>Y3b,ExportSloveniaYearlyNormiraniReportBody:()=>W3b,ExportSloveniaYearlyNormiraniReportHeader:()=>q3b,GenerateKirExportHeader:()=>F3b,GenerateKirExportQueryParams:()=>A3b,GetEuOssReportHeader:()=>C3b,GetEuOssReportQueryParams:()=>P3b,GetEuOssReportResponse:()=>w3b,GetSloveniaTaxProfileHeader:()=>k3b,GetSloveniaTaxProfileResponse:()=>j3b,GetTaxLiabilityReportHeader:()=>S3b,GetTaxLiabilityReportQueryParams:()=>b3b,GetTaxLiabilityReportResponse:()=>f3b,GetTaxPaymentsHeader:()=>I3b,GetTaxPaymentsQueryParams:()=>z3b,GetTaxPaymentsResponse:()=>B3b,ReviewSloveniaYearlyNormiraniReportBody:()=>K3b,ReviewSloveniaYearlyNormiraniReportHeader:()=>V3b,ReviewSloveniaYearlyNormiraniReportResponse:()=>Z3b,UpdateSloveniaTaxProfileBody:()=>L3b,UpdateSloveniaTaxProfileHeader:()=>H3b,UpdateSloveniaTaxProfileResponse:()=>G3b,UpdateTaxPaymentBody:()=>_3b,UpdateTaxPaymentHeader:()=>R3b,UpdateTaxPaymentParams:()=>D3b,UpdateTaxPaymentResponse:()=>N3b,createTaxPaymentBodyAmountExclusiveMin:()=>NXh,createTaxPaymentBodyCurrencyCodeMax:()=>UXh,createTaxPaymentBodyCurrencyCodeMin:()=>MXh,createTaxPaymentBodyNoteMax:()=>CXh,createTaxPaymentBodyReferenceMax:()=>PXh,deleteTaxPaymentPathIdRegExp:()=>jXh,exportSloveniaYearlyNormiraniReportBodyManualValuesForeignTaxCreditAmountMin:()=>Pnb,exportSloveniaYearlyNormiraniReportBodyManualValuesPriorAdvanceIncomeTaxAmountMin:()=>Cnb,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentDecreaseMin:()=>wnb,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentIncreaseMin:()=>Anb,exportSloveniaYearlyNormiraniReportBodyManualValuesWithholdingTaxAmountMin:()=>Unb,exportSloveniaYearlyNormiraniReportBodyYearMax:()=>Mnb,exportSloveniaYearlyNormiraniReportBodyYearMin:()=>Nnb,generateKirExportQueryMonthRegExp:()=>eeb,generateKirExportQueryQuarterRegExp:()=>teb,generateKirExportQueryYearRegExp:()=>XXh,getEuOssReportQueryYearMax:()=>LXh,getEuOssReportQueryYearMin:()=>HXh,getEuOssReportResponseIssuerCountryCodeMax:()=>VXh,getEuOssReportResponseIssuerCountryCodeMin:()=>GXh,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMax:()=>$Xh,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMin:()=>YXh,getEuOssReportResponsePeriodsItemCountriesItemCreditNoteCountMin:()=>JXh,getEuOssReportResponsePeriodsItemCountriesItemInvoiceCountMin:()=>QXh,getEuOssReportResponsePeriodsItemCreditNoteCountMin:()=>WXh,getEuOssReportResponsePeriodsItemInvoiceCountMin:()=>qXh,getEuOssReportResponseReportingCurrencyCodeMax:()=>ZXh,getEuOssReportResponseReportingCurrencyCodeMin:()=>KXh,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>deb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>leb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>reb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Beb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Teb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>Eeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Reb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>_eb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Deb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Neb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Meb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Ueb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>meb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>geb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>xeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesForeignMax:()=>aeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>ieb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>yeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>veb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Oeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>beb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Seb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>heb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>feb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>zeb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Ieb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>ceb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>peb,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>ueb,getSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>neb,getSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>oeb,getSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>seb,reviewSloveniaYearlyNormiraniReportBodyYearMax:()=>Ktb,reviewSloveniaYearlyNormiraniReportBodyYearMin:()=>Vtb,reviewSloveniaYearlyNormiraniReportResponseManualValuesForeignTaxCreditAmountMin:()=>Tnb,reviewSloveniaYearlyNormiraniReportResponseManualValuesPriorAdvanceIncomeTaxAmountMin:()=>Dnb,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentDecreaseMin:()=>Rnb,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentIncreaseMin:()=>_nb,reviewSloveniaYearlyNormiraniReportResponseManualValuesWithholdingTaxAmountMin:()=>Enb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>tnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>enb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePayablesMax:()=>Xtb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Onb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>hnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>vnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Snb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>fnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>bnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>znb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Inb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Bnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>inb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>rnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>anb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesForeignMax:()=>Jtb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesMax:()=>Qtb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>lnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>cnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>dnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>pnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>mnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>unb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>xnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>gnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>ynb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat22Max:()=>nnb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat5Max:()=>onb,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat95Max:()=>snb,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingActivityCodesItemRegExp:()=>Wtb,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultForeignTaxCreditAmountMin:()=>$tb,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultWithholdingTaxAmountMin:()=>Ytb,reviewSloveniaYearlyNormiraniReportResponseYearMax:()=>qtb,reviewSloveniaYearlyNormiraniReportResponseYearMin:()=>Ztb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesPaidMax:()=>Heb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesReceivedMax:()=>jeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPayablesMax:()=>keb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense22Max:()=>stb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense5Max:()=>itb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense95Max:()=>otb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuGoodsMax:()=>rtb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuServicesMax:()=>ltb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseExemptMax:()=>atb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseReverseChargeMax:()=>dtb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryGoodsMax:()=>ctb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryServicesMax:()=>utb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable22Max:()=>Keb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable5Max:()=>qeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable95Max:()=>Zeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesForeignMax:()=>Feb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesMax:()=>Aeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue22Max:()=>Web,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue5Max:()=>$eb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue95Max:()=>Yeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuGoodsMax:()=>Jeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuServicesMax:()=>Xeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueExemptMax:()=>Qeb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueReverseChargeMax:()=>etb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryGoodsMax:()=>ttb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryServicesMax:()=>ntb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat22Max:()=>Leb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat5Max:()=>Veb,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat95Max:()=>Geb,updateSloveniaTaxProfileBodyYearlyReportingActivityCodesItemRegExp:()=>Peb,updateSloveniaTaxProfileBodyYearlyReportingDefaultForeignTaxCreditAmountMin:()=>web,updateSloveniaTaxProfileBodyYearlyReportingDefaultWithholdingTaxAmountMin:()=>Ceb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>htb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>vtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>Otb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Ctb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Atb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>wtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>ktb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>jtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Ftb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Htb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Ltb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Gtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>ztb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>Btb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>Itb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesForeignMax:()=>ytb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>gtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>Etb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>Dtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Ttb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>_tb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Ntb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>Rtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>Mtb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>Utb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Ptb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>btb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>ftb,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>Stb,updateSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>ptb,updateSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>xtb,updateSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>mtb,updateTaxPaymentBodyAmountExclusiveMin:()=>AXh,updateTaxPaymentBodyNoteMax:()=>kXh,updateTaxPaymentBodyReferenceMax:()=>FXh,updateTaxPaymentPathIdRegExp:()=>wXh});var b3b=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.")}),S3b=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.")}),f3b=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()}))}),z3b=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.")}),I3b=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.")}),B3b=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({})}))}),E3b=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.")}),NXh=0,MXh=3,UXh=3,PXh=100,CXh=500,T3b=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(NXh).describe("Amount paid to the tax authority."),currency_code:e.string().min(MXh).max(UXh).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(PXh).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(CXh).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.")}),wXh=/^txpay_[0-9a-f]{24}$/,D3b=e.object({id:e.string().regex(wXh).describe("Tax payment identifier")}),R3b=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.")}),AXh=0,FXh=100,kXh=500,_3b=e.object({amount:e.number().gt(AXh).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(FXh).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(kXh).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.")}),N3b=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({})}),jXh=/^txpay_[0-9a-f]{24}$/,M3b=e.object({id:e.string().regex(jXh).describe("Tax payment identifier")}),U3b=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.")}),HXh=2021,LXh=2100,P3b=e.object({year:e.number().min(HXh).max(LXh).optional().describe("Calendar year to review together with its preceding year.")}),C3b=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.")}),GXh=2,VXh=2,KXh=3,ZXh=3,qXh=0,WXh=0,YXh=2,$Xh=2,QXh=0,JXh=0,w3b=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(GXh).max(VXh).nullable(),reporting_currency_code:e.string().min(KXh).max(ZXh).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(qXh),credit_note_count:e.number().min(WXh),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),countries:e.array(e.object({country_code:e.string().min(YXh).max($Xh),country_name:e.string(),invoice_count:e.number().min(QXh),credit_note_count:e.number().min(JXh),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."),XXh=/^\d{4}$/,eeb=/^(1[0-2]|[1-9])$/,teb=/^[1-4]$/,A3b=e.object({year:e.string().regex(XXh).describe("Year for the combined KIR/KPR export (e.g., 2025)"),month:e.string().regex(eeb).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e.string().regex(teb).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),F3b=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.")}),k3b=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.")}),neb=/^\d{2}\.\d{3}$/,seb=0,oeb=0,ieb=8,aeb=8,reb=8,leb=8,deb=8,ceb=8,ueb=8,peb=8,meb=8,xeb=8,geb=8,yeb=8,Oeb=8,veb=8,heb=8,beb=8,Seb=8,feb=8,zeb=8,Ieb=8,Beb=8,Eeb=8,Teb=8,Deb=8,Reb=8,_eb=8,Neb=8,Meb=8,Ueb=8,j3b=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(neb).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(seb).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(oeb).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(ieb).nullish(),receivables_foreign:e.string().max(aeb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(reb).nullish(),advances_received:e.string().max(leb).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(deb).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(ceb).nullish(),sales_vat_95:e.string().max(ueb).nullish(),sales_vat_5:e.string().max(peb).nullish(),purchase_vat_recoverable_22:e.string().max(meb).nullish(),purchase_vat_recoverable_95:e.string().max(xeb).nullish(),purchase_vat_recoverable_5:e.string().max(geb).nullish(),sales_revenue_22:e.string().max(yeb).nullish(),sales_revenue_95:e.string().max(Oeb).nullish(),sales_revenue_5:e.string().max(veb).nullish(),sales_revenue_exempt:e.string().max(heb).nullish(),sales_revenue_eu_goods:e.string().max(beb).nullish(),sales_revenue_eu_services:e.string().max(Seb).nullish(),sales_revenue_reverse_charge:e.string().max(feb).nullish(),sales_revenue_third_country_goods:e.string().max(zeb).nullish(),sales_revenue_third_country_services:e.string().max(Ieb).nullish(),purchase_expense_22:e.string().max(Beb).nullish(),purchase_expense_95:e.string().max(Eeb).nullish(),purchase_expense_5:e.string().max(Teb).nullish(),purchase_expense_exempt:e.string().max(Deb).nullish(),purchase_expense_eu_goods:e.string().max(Reb).nullish(),purchase_expense_eu_services:e.string().max(_eb).nullish(),purchase_expense_reverse_charge:e.string().max(Neb).nullish(),purchase_expense_third_country_goods:e.string().max(Meb).nullish(),purchase_expense_third_country_services:e.string().max(Ueb).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()}),H3b=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.")}),Peb=/^\d{2}\.\d{3}$/,Ceb=0,web=0,Aeb=8,Feb=8,keb=8,jeb=8,Heb=8,Leb=8,Geb=8,Veb=8,Keb=8,Zeb=8,qeb=8,Web=8,Yeb=8,$eb=8,Qeb=8,Jeb=8,Xeb=8,etb=8,ttb=8,ntb=8,stb=8,otb=8,itb=8,atb=8,rtb=8,ltb=8,dtb=8,ctb=8,utb=8,L3b=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(Peb).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(Ceb).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e.number().min(web).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(Aeb).nullish(),receivables_foreign:e.string().max(Feb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(keb).nullish(),advances_received:e.string().max(jeb).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(Heb).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(Leb).nullish(),sales_vat_95:e.string().max(Geb).nullish(),sales_vat_5:e.string().max(Veb).nullish(),purchase_vat_recoverable_22:e.string().max(Keb).nullish(),purchase_vat_recoverable_95:e.string().max(Zeb).nullish(),purchase_vat_recoverable_5:e.string().max(qeb).nullish(),sales_revenue_22:e.string().max(Web).nullish(),sales_revenue_95:e.string().max(Yeb).nullish(),sales_revenue_5:e.string().max($eb).nullish(),sales_revenue_exempt:e.string().max(Qeb).nullish(),sales_revenue_eu_goods:e.string().max(Jeb).nullish(),sales_revenue_eu_services:e.string().max(Xeb).nullish(),sales_revenue_reverse_charge:e.string().max(etb).nullish(),sales_revenue_third_country_goods:e.string().max(ttb).nullish(),sales_revenue_third_country_services:e.string().max(ntb).nullish(),purchase_expense_22:e.string().max(stb).nullish(),purchase_expense_95:e.string().max(otb).nullish(),purchase_expense_5:e.string().max(itb).nullish(),purchase_expense_exempt:e.string().max(atb).nullish(),purchase_expense_eu_goods:e.string().max(rtb).nullish(),purchase_expense_eu_services:e.string().max(ltb).nullish(),purchase_expense_reverse_charge:e.string().max(dtb).nullish(),purchase_expense_third_country_goods:e.string().max(ctb).nullish(),purchase_expense_third_country_services:e.string().max(utb).nullish()}).nullish()}).nullish()}),ptb=/^\d{2}\.\d{3}$/,mtb=0,xtb=0,gtb=8,ytb=8,Otb=8,vtb=8,htb=8,btb=8,Stb=8,ftb=8,ztb=8,Itb=8,Btb=8,Etb=8,Ttb=8,Dtb=8,Rtb=8,_tb=8,Ntb=8,Mtb=8,Utb=8,Ptb=8,Ctb=8,wtb=8,Atb=8,Ftb=8,ktb=8,jtb=8,Htb=8,Ltb=8,Gtb=8,G3b=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(ptb).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(mtb).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(xtb).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(gtb).nullish(),receivables_foreign:e.string().max(ytb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(Otb).nullish(),advances_received:e.string().max(vtb).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(htb).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(btb).nullish(),sales_vat_95:e.string().max(Stb).nullish(),sales_vat_5:e.string().max(ftb).nullish(),purchase_vat_recoverable_22:e.string().max(ztb).nullish(),purchase_vat_recoverable_95:e.string().max(Itb).nullish(),purchase_vat_recoverable_5:e.string().max(Btb).nullish(),sales_revenue_22:e.string().max(Etb).nullish(),sales_revenue_95:e.string().max(Ttb).nullish(),sales_revenue_5:e.string().max(Dtb).nullish(),sales_revenue_exempt:e.string().max(Rtb).nullish(),sales_revenue_eu_goods:e.string().max(_tb).nullish(),sales_revenue_eu_services:e.string().max(Ntb).nullish(),sales_revenue_reverse_charge:e.string().max(Mtb).nullish(),sales_revenue_third_country_goods:e.string().max(Utb).nullish(),sales_revenue_third_country_services:e.string().max(Ptb).nullish(),purchase_expense_22:e.string().max(Ctb).nullish(),purchase_expense_95:e.string().max(wtb).nullish(),purchase_expense_5:e.string().max(Atb).nullish(),purchase_expense_exempt:e.string().max(Ftb).nullish(),purchase_expense_eu_goods:e.string().max(ktb).nullish(),purchase_expense_eu_services:e.string().max(jtb).nullish(),purchase_expense_reverse_charge:e.string().max(Htb).nullish(),purchase_expense_third_country_goods:e.string().max(Ltb).nullish(),purchase_expense_third_country_services:e.string().max(Gtb).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()}),V3b=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.")}),Vtb=2025,Ktb=2100,K3b=e.object({year:e.number().min(Vtb).max(Ktb).describe("Tax year for the yearly Slovenia eDavki filing.")}),Ztb=2025,qtb=2100,Wtb=/^\d{2}\.\d{3}$/,Ytb=0,$tb=0,Qtb=8,Jtb=8,Xtb=8,enb=8,tnb=8,nnb=8,snb=8,onb=8,inb=8,anb=8,rnb=8,lnb=8,dnb=8,cnb=8,unb=8,pnb=8,mnb=8,xnb=8,gnb=8,ynb=8,Onb=8,vnb=8,hnb=8,bnb=8,Snb=8,fnb=8,znb=8,Inb=8,Bnb=8,Enb=0,Tnb=0,Dnb=0,Rnb=0,_nb=0,Z3b=e.object({entity_id:e.string(),year:e.number().min(Ztb).max(qtb).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(Wtb).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(Ytb).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min($tb).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(Qtb).nullish(),receivables_foreign:e.string().max(Jtb).nullish().describe("Receivables konto for documents to customers outside Slovenia (EU or third-country market, from the document's transaction type). When empty, `receivables` is used."),payables:e.string().max(Xtb).nullish(),advances_received:e.string().max(enb).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(tnb).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(nnb).nullish(),sales_vat_95:e.string().max(snb).nullish(),sales_vat_5:e.string().max(onb).nullish(),purchase_vat_recoverable_22:e.string().max(inb).nullish(),purchase_vat_recoverable_95:e.string().max(anb).nullish(),purchase_vat_recoverable_5:e.string().max(rnb).nullish(),sales_revenue_22:e.string().max(lnb).nullish(),sales_revenue_95:e.string().max(dnb).nullish(),sales_revenue_5:e.string().max(cnb).nullish(),sales_revenue_exempt:e.string().max(unb).nullish(),sales_revenue_eu_goods:e.string().max(pnb).nullish(),sales_revenue_eu_services:e.string().max(mnb).nullish(),sales_revenue_reverse_charge:e.string().max(xnb).nullish(),sales_revenue_third_country_goods:e.string().max(gnb).nullish(),sales_revenue_third_country_services:e.string().max(ynb).nullish(),purchase_expense_22:e.string().max(Onb).nullish(),purchase_expense_95:e.string().max(vnb).nullish(),purchase_expense_5:e.string().max(hnb).nullish(),purchase_expense_exempt:e.string().max(bnb).nullish(),purchase_expense_eu_goods:e.string().max(Snb).nullish(),purchase_expense_eu_services:e.string().max(fnb).nullish(),purchase_expense_reverse_charge:e.string().max(znb).nullish(),purchase_expense_third_country_goods:e.string().max(Inb).nullish(),purchase_expense_third_country_services:e.string().max(Bnb).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(Enb).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Tnb).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(Dnb).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(Rnb).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(_nb).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()})}),q3b=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.")}),Nnb=2025,Mnb=2100,Unb=0,Pnb=0,Cnb=0,wnb=0,Anb=0,W3b=e.object({year:e.number().min(Nnb).max(Mnb).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e.object({withholding_tax_amount:e.number().min(Unb).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Pnb).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(Cnb).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(wnb).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(Anb).describe("Monetary amount in EUR.")})}),Y3b=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.")}),$3b=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.")}),Q3b=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.")}),J3b=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.")}),X3b=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.")}),eGb=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.")}),tGb=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.")}),nGb=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 cn={};$(cn,{CreateTaxBody:()=>oGb,CreateTaxHeader:()=>sGb,DeleteTaxHeader:()=>OGb,DeleteTaxParams:()=>yGb,GetTaxesHeader:()=>aGb,GetTaxesQueryParams:()=>iGb,GetTaxesResponse:()=>rGb,PermanentDeleteTaxHeader:()=>fGb,PermanentDeleteTaxParams:()=>SGb,ReplaceTaxBody:()=>xGb,ReplaceTaxHeader:()=>mGb,ReplaceTaxParams:()=>pGb,ReplaceTaxResponse:()=>gGb,RestoreTaxHeader:()=>hGb,RestoreTaxParams:()=>vGb,RestoreTaxResponse:()=>bGb,UpdateTaxBody:()=>cGb,UpdateTaxHeader:()=>dGb,UpdateTaxParams:()=>lGb,UpdateTaxResponse:()=>uGb,createTaxBodyDestinationVatCountryCodeMax:()=>Lnb,createTaxBodyDestinationVatCountryCodeMin:()=>Hnb,createTaxBodyNameMax:()=>Fnb,createTaxBodyPtExemptionReasonMax:()=>Gnb,createTaxBodyTaxRatesItemRateMax:()=>jnb,createTaxBodyTaxRatesItemRateMin:()=>knb,deleteTaxPathIdRegExp:()=>zsb,getTaxesQueryLimitDefault:()=>Vnb,getTaxesQueryLimitMax:()=>Knb,getTaxesResponseDataItemOneDestinationVatCountryCodeMax:()=>Qnb,getTaxesResponseDataItemOneDestinationVatCountryCodeMin:()=>$nb,getTaxesResponseDataItemOneEntityIdMax:()=>Jnb,getTaxesResponseDataItemOneIdMax:()=>Znb,getTaxesResponseDataItemOneNameMax:()=>qnb,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>Ynb,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>Wnb,permanentDeleteTaxPathIdRegExp:()=>Msb,replaceTaxBodyDestinationVatCountryCodeMax:()=>xsb,replaceTaxBodyDestinationVatCountryCodeMin:()=>msb,replaceTaxBodyNameMax:()=>csb,replaceTaxBodyPtExemptionReasonMax:()=>gsb,replaceTaxBodyTaxRatesItemRateMax:()=>psb,replaceTaxBodyTaxRatesItemRateMin:()=>usb,replaceTaxPathIdRegExp:()=>dsb,replaceTaxResponseOneDestinationVatCountryCodeMax:()=>Ssb,replaceTaxResponseOneDestinationVatCountryCodeMin:()=>bsb,replaceTaxResponseOneEntityIdMax:()=>fsb,replaceTaxResponseOneIdMax:()=>ysb,replaceTaxResponseOneNameMax:()=>Osb,replaceTaxResponseOneTaxRatesItemRateMax:()=>hsb,replaceTaxResponseOneTaxRatesItemRateMin:()=>vsb,restoreTaxPathIdRegExp:()=>Isb,restoreTaxResponseOneDestinationVatCountryCodeMax:()=>_sb,restoreTaxResponseOneDestinationVatCountryCodeMin:()=>Rsb,restoreTaxResponseOneEntityIdMax:()=>Nsb,restoreTaxResponseOneIdMax:()=>Bsb,restoreTaxResponseOneNameMax:()=>Esb,restoreTaxResponseOneTaxRatesItemRateMax:()=>Dsb,restoreTaxResponseOneTaxRatesItemRateMin:()=>Tsb,updateTaxBodyTaxRatesItemRateMax:()=>tsb,updateTaxBodyTaxRatesItemRateMin:()=>esb,updateTaxPathIdRegExp:()=>Xnb,updateTaxResponseOneDestinationVatCountryCodeMax:()=>rsb,updateTaxResponseOneDestinationVatCountryCodeMin:()=>asb,updateTaxResponseOneEntityIdMax:()=>lsb,updateTaxResponseOneIdMax:()=>nsb,updateTaxResponseOneNameMax:()=>ssb,updateTaxResponseOneTaxRatesItemRateMax:()=>isb,updateTaxResponseOneTaxRatesItemRateMin:()=>osb});var sGb=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.")}),Fnb=100,knb=0,jnb=100,Hnb=2,Lnb=2,Gnb=60,oGb=e.object({name:e.string().max(Fnb).optional(),tax_rates:e.array(e.object({rate:e.number().min(knb).max(jnb),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(Hnb).max(Lnb).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(Gnb).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.")}),Vnb=10,Knb=100,iGb=e.object({limit:e.number().min(1).max(Knb).default(Vnb).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.
|
|
141
141
|
Searches are case-insensitive and match partial strings.
|
|
142
142
|
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.")}),aGb=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.")}),Znb=36,qnb=100,Wnb=0,Ynb=100,$nb=2,Qnb=2,Jnb=36,rGb=e.object({data:e.array(e.object({id:e.string().max(Znb),name:e.string().max(qnb),tax_rates:e.array(e.object({rate:e.number().min(Wnb).max(Ynb),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($nb).max(Qnb).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(Jnb),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")}),Xnb=/^[a-z]{3,4}_[0-9a-f]{24}$/,lGb=e.object({id:e.stringFormat("resource-id",Xnb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dGb=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.")}),esb=0,tsb=100,cGb=e.object({tax_rates:e.array(e.object({rate:e.number().min(esb).max(tsb),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)")}),nsb=36,ssb=100,osb=0,isb=100,asb=2,rsb=2,lsb=36,uGb=e.object({id:e.string().max(nsb),name:e.string().max(ssb),tax_rates:e.array(e.object({rate:e.number().min(osb).max(isb),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(asb).max(rsb).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(lsb),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"),dsb=/^[a-z]{3,4}_[0-9a-f]{24}$/,pGb=e.object({id:e.stringFormat("resource-id",dsb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),mGb=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.")}),csb=100,usb=0,psb=100,msb=2,xsb=2,gsb=60,xGb=e.object({name:e.string().max(csb).optional(),tax_rates:e.array(e.object({rate:e.number().min(usb).max(psb),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(msb).max(xsb).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(gsb).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.")}),ysb=36,Osb=100,vsb=0,hsb=100,bsb=2,Ssb=2,fsb=36,gGb=e.object({id:e.string().max(ysb),name:e.string().max(Osb),tax_rates:e.array(e.object({rate:e.number().min(vsb).max(hsb),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(bsb).max(Ssb).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(fsb),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"),zsb=/^[a-z]{3,4}_[0-9a-f]{24}$/,yGb=e.object({id:e.stringFormat("resource-id",zsb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),OGb=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.")}),Isb=/^[a-z]{3,4}_[0-9a-f]{24}$/,vGb=e.object({id:e.stringFormat("resource-id",Isb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hGb=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.")}),Bsb=36,Esb=100,Tsb=0,Dsb=100,Rsb=2,_sb=2,Nsb=36,bGb=e.object({id:e.string().max(Bsb),name:e.string().max(Esb),tax_rates:e.array(e.object({rate:e.number().min(Tsb).max(Dsb),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(Rsb).max(_sb).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(Nsb),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"),Msb=/^[a-z]{3,4}_[0-9a-f]{24}$/,SGb=e.object({id:e.stringFormat("resource-id",Msb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),fGb=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 un={};$(un,{DownloadTicketBaiRecordXmlHeader:()=>CGb,DownloadTicketBaiRecordXmlParams:()=>PGb,GetTicketBaiRecordHeader:()=>MGb,GetTicketBaiRecordParams:()=>NGb,GetTicketBaiRecordResponse:()=>UGb,GetTicketBaiSettingsHeader:()=>zGb,GetTicketBaiSettingsResponse:()=>IGb,ReconcileTicketBaiRecordHeader:()=>jGb,ReconcileTicketBaiRecordParams:()=>kGb,ReconcileTicketBaiRecordResponse:()=>HGb,RetryTicketBaiRecordHeader:()=>AGb,RetryTicketBaiRecordParams:()=>wGb,RetryTicketBaiRecordResponse:()=>FGb,UpdateTicketBaiSettingsBody:()=>EGb,UpdateTicketBaiSettingsHeader:()=>BGb,UpdateTicketBaiSettingsResponse:()=>TGb,UploadTicketBaiCertificateBody:()=>RGb,UploadTicketBaiCertificateHeader:()=>DGb,UploadTicketBaiCertificateResponse:()=>_Gb,downloadTicketBaiRecordXmlPathIdMax:()=>Gsb,getTicketBaiRecordPathIdMax:()=>Lsb,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>Usb,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>Psb,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Csb,reconcileTicketBaiRecordPathIdMax:()=>Ksb,retryTicketBaiRecordPathIdMax:()=>Vsb,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>wsb,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>Asb,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>Fsb,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>ksb,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>jsb,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Hsb});var zGb=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.")}),Usb=120,Psb=120,Csb=120,IGb=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(Usb),surname1:e.string().min(1).max(Psb),surname2:e.string().min(1).max(Csb)}),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()}),BGb=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.")}),wsb=120,Asb=120,Fsb=120,EGb=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(wsb),surname1:e.string().min(1).max(Asb),surname2:e.string().min(1).max(Fsb)}),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.")}),ksb=120,jsb=120,Hsb=120,TGb=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(ksb),surname1:e.string().min(1).max(jsb),surname2:e.string().min(1).max(Hsb)}),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()}),DGb=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.")}),RGb=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.")}),_Gb=e.object({certificate_expiry:e.string()}),Lsb=36,NGb=e.object({id:e.string().min(1).max(Lsb)}),MGb=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.")}),UGb=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.")}),Gsb=36,PGb=e.object({id:e.string().min(1).max(Gsb)}),CGb=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.")}),Vsb=36,wGb=e.object({id:e.string().min(1).max(Vsb)}),AGb=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.")}),FGb=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.")}),Ksb=36,kGb=e.object({id:e.string().min(1).max(Ksb)}),jGb=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.")}),HGb=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 pn={};$(pn,{CheckTransactionTypeBody:()=>GGb,CheckTransactionTypeHeader:()=>LGb,CheckTransactionTypeResponse:()=>VGb,checkTransactionTypeBodyCustomerCountryCodeMax:()=>$sb,checkTransactionTypeBodyCustomerCountryCodeMin:()=>Ysb,checkTransactionTypeBodyIssuerCountryCodeMax:()=>qsb,checkTransactionTypeBodyIssuerCountryCodeMin:()=>Zsb,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>Wsb,checkTransactionTypeResponseCustomerCountryCodeMax:()=>eob,checkTransactionTypeResponseCustomerCountryCodeMin:()=>Xsb,checkTransactionTypeResponseIssuerCountryCodeMax:()=>Jsb,checkTransactionTypeResponseIssuerCountryCodeMin:()=>Qsb,checkTransactionTypeResponseVatIdCountryCodeMax:()=>nob,checkTransactionTypeResponseVatIdCountryCodeMin:()=>tob});var LGb=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.")}),Zsb=2,qsb=2,Wsb=true,Ysb=2,$sb=2,GGb=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(Zsb).max(qsb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(Wsb).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(Ysb).max($sb).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.")}),Qsb=2,Jsb=2,Xsb=2,eob=2,tob=2,nob=2,VGb=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(Qsb).max(Jsb).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(Xsb).max(eob).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, except for a Polish issuer, whose type follows the buyer)"),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(tob).max(nob).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 mn={};$(mn,{ApproveTravelOrderHeader:()=>gVb,ApproveTravelOrderParams:()=>xVb,ApproveTravelOrderResponse:()=>yVb,CalculateTravelOrderRouteDistanceBody:()=>sVb,CalculateTravelOrderRouteDistanceHeader:()=>nVb,CalculateTravelOrderRouteDistanceResponse:()=>oVb,CancelTravelOrderHeader:()=>BVb,CancelTravelOrderParams:()=>IVb,CancelTravelOrderResponse:()=>EVb,CreateTravelOrderBody:()=>YGb,CreateTravelOrderHeader:()=>WGb,DeleteTravelOrderHeader:()=>mVb,DeleteTravelOrderParams:()=>pVb,GetTravelOrderByIdHeader:()=>aVb,GetTravelOrderByIdParams:()=>iVb,GetTravelOrderByIdResponse:()=>rVb,GetTravelOrdersHeader:()=>ZGb,GetTravelOrdersQueryParams:()=>KGb,GetTravelOrdersResponse:()=>qGb,PreviewTravelOrderBody:()=>QGb,PreviewTravelOrderHeader:()=>$Gb,PreviewTravelOrderResponse:()=>JGb,RenderTravelOrderHtmlHeader:()=>MVb,RenderTravelOrderHtmlParams:()=>_Vb,RenderTravelOrderHtmlQueryParams:()=>NVb,RenderTravelOrderPdfHeader:()=>RVb,RenderTravelOrderPdfParams:()=>TVb,RenderTravelOrderPdfQueryParams:()=>DVb,RenderTravelOrderPreviewBody:()=>tVb,RenderTravelOrderPreviewHeader:()=>eVb,RenderTravelOrderPreviewQueryParams:()=>XGb,ReopenTravelOrderBody:()=>fVb,ReopenTravelOrderHeader:()=>SVb,ReopenTravelOrderParams:()=>bVb,ReopenTravelOrderResponse:()=>zVb,SettleTravelOrderHeader:()=>vVb,SettleTravelOrderParams:()=>OVb,SettleTravelOrderResponse:()=>hVb,UpdateTravelOrderBody:()=>cVb,UpdateTravelOrderHeader:()=>dVb,UpdateTravelOrderParams:()=>lVb,UpdateTravelOrderResponse:()=>uVb,approveTravelOrderPathIdRegExp:()=>Jab,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>erb,approveTravelOrderResponseCostsItemAmountMax:()=>trb,approveTravelOrderResponseCostsItemDateRegExp:()=>nrb,approveTravelOrderResponseCostsItemDescriptionMax:()=>Xab,calculateTravelOrderRouteDistanceBodyFromMax:()=>iab,calculateTravelOrderRouteDistanceBodyFromMin:()=>oab,calculateTravelOrderRouteDistanceBodyToMax:()=>rab,calculateTravelOrderRouteDistanceBodyToMin:()=>aab,cancelTravelOrderPathIdRegExp:()=>grb,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>Orb,cancelTravelOrderResponseCostsItemAmountMax:()=>vrb,cancelTravelOrderResponseCostsItemDateRegExp:()=>hrb,cancelTravelOrderResponseCostsItemDescriptionMax:()=>yrb,createTravelOrderBodyAdvanceAmountMax:()=>Cob,createTravelOrderBodyAdvanceAmountMin:()=>Pob,createTravelOrderBodyBreakfastsProvidedMax:()=>fob,createTravelOrderBodyBreakfastsProvidedMin:()=>Sob,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>Aob,createTravelOrderBodyCostsItemAmountMax:()=>Fob,createTravelOrderBodyCostsItemDateRegExp:()=>kob,createTravelOrderBodyCostsItemDescriptionMax:()=>wob,createTravelOrderBodyCostsMax:()=>job,createTravelOrderBodyDateRegExp:()=>uob,createTravelOrderBodyDepartureAtRegExp:()=>yob,createTravelOrderBodyDestinationCountryCodeRegExp:()=>gob,createTravelOrderBodyDestinationMax:()=>xob,createTravelOrderBodyDistanceKmMax:()=>bob,createTravelOrderBodyDistanceKmMin:()=>hob,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>zob,createTravelOrderBodyForeignDailyRateMax:()=>Iob,createTravelOrderBodyNoteMax:()=>Hob,createTravelOrderBodyOriginMax:()=>mob,createTravelOrderBodyPurposeMax:()=>pob,createTravelOrderBodyReturnAtRegExp:()=>Oob,createTravelOrderBodyTravelerNameMax:()=>dob,createTravelOrderBodyTravelerPositionMax:()=>cob,createTravelOrderBodyTripsItemBreakfastsProvidedMax:()=>Mob,createTravelOrderBodyTripsItemBreakfastsProvidedMin:()=>Nob,createTravelOrderBodyTripsItemDepartureAtRegExp:()=>Bob,createTravelOrderBodyTripsItemDestinationMax:()=>Tob,createTravelOrderBodyTripsItemDistanceKmMax:()=>_ob,createTravelOrderBodyTripsItemDistanceKmMin:()=>Rob,createTravelOrderBodyTripsItemPurposeMax:()=>Dob,createTravelOrderBodyTripsItemReturnAtRegExp:()=>Eob,createTravelOrderBodyTripsMax:()=>Uob,createTravelOrderBodyVehicleRegistrationMax:()=>vob,deleteTravelOrderPathIdRegExp:()=>Qab,getTravelOrderByIdPathIdRegExp:()=>lab,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>cab,getTravelOrderByIdResponseCostsItemAmountMax:()=>uab,getTravelOrderByIdResponseCostsItemDateRegExp:()=>pab,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>dab,getTravelOrdersQueryLimitDefault:()=>sob,getTravelOrdersQueryLimitMax:()=>oob,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>aob,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>rob,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>lob,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>iob,previewTravelOrderBodyAdvanceAmountMax:()=>xib,previewTravelOrderBodyAdvanceAmountMin:()=>mib,previewTravelOrderBodyBreakfastsProvidedMax:()=>tib,previewTravelOrderBodyBreakfastsProvidedMin:()=>eib,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>yib,previewTravelOrderBodyCostsItemAmountMax:()=>Oib,previewTravelOrderBodyCostsItemDateRegExp:()=>vib,previewTravelOrderBodyCostsItemDescriptionMax:()=>gib,previewTravelOrderBodyCostsMax:()=>hib,previewTravelOrderBodyDateRegExp:()=>Vob,previewTravelOrderBodyDepartureAtRegExp:()=>Yob,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>Wob,previewTravelOrderBodyDestinationMax:()=>qob,previewTravelOrderBodyDistanceKmMax:()=>Xob,previewTravelOrderBodyDistanceKmMin:()=>Job,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>nib,previewTravelOrderBodyForeignDailyRateMax:()=>sib,previewTravelOrderBodyNoteMax:()=>bib,previewTravelOrderBodyOriginMax:()=>Zob,previewTravelOrderBodyPurposeMax:()=>Kob,previewTravelOrderBodyReturnAtRegExp:()=>$ob,previewTravelOrderBodyTravelerNameMax:()=>Lob,previewTravelOrderBodyTravelerPositionMax:()=>Gob,previewTravelOrderBodyTripsItemBreakfastsProvidedMax:()=>uib,previewTravelOrderBodyTripsItemBreakfastsProvidedMin:()=>cib,previewTravelOrderBodyTripsItemDepartureAtRegExp:()=>oib,previewTravelOrderBodyTripsItemDestinationMax:()=>aib,previewTravelOrderBodyTripsItemDistanceKmMax:()=>dib,previewTravelOrderBodyTripsItemDistanceKmMin:()=>lib,previewTravelOrderBodyTripsItemPurposeMax:()=>rib,previewTravelOrderBodyTripsItemReturnAtRegExp:()=>iib,previewTravelOrderBodyTripsMax:()=>pib,previewTravelOrderBodyVehicleRegistrationMax:()=>Qob,renderTravelOrderHtmlPathIdRegExp:()=>Brb,renderTravelOrderHtmlQueryLanguageMax:()=>Rrb,renderTravelOrderHtmlQueryLanguageMin:()=>Drb,renderTravelOrderHtmlQueryLocaleMax:()=>Trb,renderTravelOrderHtmlQueryLocaleMin:()=>Erb,renderTravelOrderPdfPathIdRegExp:()=>brb,renderTravelOrderPdfQueryLanguageMax:()=>Irb,renderTravelOrderPdfQueryLanguageMin:()=>zrb,renderTravelOrderPdfQueryLocaleMax:()=>frb,renderTravelOrderPdfQueryLocaleMin:()=>Srb,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>Qib,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>$ib,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>Fib,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>Aib,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>Xib,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>eab,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>tab,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>Jib,renderTravelOrderPreviewBodyCostsMax:()=>nab,renderTravelOrderPreviewBodyDateRegExp:()=>Tib,renderTravelOrderPreviewBodyDepartureAtRegExp:()=>Mib,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>Nib,renderTravelOrderPreviewBodyDestinationMax:()=>_ib,renderTravelOrderPreviewBodyDistanceKmMax:()=>wib,renderTravelOrderPreviewBodyDistanceKmMin:()=>Cib,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>kib,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>jib,renderTravelOrderPreviewBodyNoteMax:()=>sab,renderTravelOrderPreviewBodyOriginMax:()=>Rib,renderTravelOrderPreviewBodyPurposeMax:()=>Dib,renderTravelOrderPreviewBodyReturnAtRegExp:()=>Uib,renderTravelOrderPreviewBodyTravelerNameMax:()=>Bib,renderTravelOrderPreviewBodyTravelerPositionMax:()=>Eib,renderTravelOrderPreviewBodyTripsItemBreakfastsProvidedMax:()=>Wib,renderTravelOrderPreviewBodyTripsItemBreakfastsProvidedMin:()=>qib,renderTravelOrderPreviewBodyTripsItemDepartureAtRegExp:()=>Hib,renderTravelOrderPreviewBodyTripsItemDestinationMax:()=>Gib,renderTravelOrderPreviewBodyTripsItemDistanceKmMax:()=>Zib,renderTravelOrderPreviewBodyTripsItemDistanceKmMin:()=>Kib,renderTravelOrderPreviewBodyTripsItemPurposeMax:()=>Vib,renderTravelOrderPreviewBodyTripsItemReturnAtRegExp:()=>Lib,renderTravelOrderPreviewBodyTripsMax:()=>Yib,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>Pib,renderTravelOrderPreviewQueryLanguageMax:()=>Iib,renderTravelOrderPreviewQueryLanguageMin:()=>zib,renderTravelOrderPreviewQueryLocaleMax:()=>fib,renderTravelOrderPreviewQueryLocaleMin:()=>Sib,reopenTravelOrderBodyReasonMax:()=>crb,reopenTravelOrderBodyReasonMin:()=>drb,reopenTravelOrderPathIdRegExp:()=>lrb,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>prb,reopenTravelOrderResponseCostsItemAmountMax:()=>mrb,reopenTravelOrderResponseCostsItemDateRegExp:()=>xrb,reopenTravelOrderResponseCostsItemDescriptionMax:()=>urb,settleTravelOrderPathIdRegExp:()=>srb,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>irb,settleTravelOrderResponseCostsItemAmountMax:()=>arb,settleTravelOrderResponseCostsItemDateRegExp:()=>rrb,settleTravelOrderResponseCostsItemDescriptionMax:()=>orb,updateTravelOrderBodyAdvanceAmountMax:()=>jab,updateTravelOrderBodyAdvanceAmountMin:()=>kab,updateTravelOrderBodyBreakfastsProvidedMax:()=>Tab,updateTravelOrderBodyBreakfastsProvidedMin:()=>Eab,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>Lab,updateTravelOrderBodyCostsItemAmountMax:()=>Gab,updateTravelOrderBodyCostsItemDateRegExp:()=>Vab,updateTravelOrderBodyCostsItemDescriptionMax:()=>Hab,updateTravelOrderBodyCostsMax:()=>Kab,updateTravelOrderBodyDateRegExp:()=>yab,updateTravelOrderBodyDepartureAtRegExp:()=>Sab,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>bab,updateTravelOrderBodyDestinationMax:()=>hab,updateTravelOrderBodyDistanceKmMax:()=>Bab,updateTravelOrderBodyDistanceKmMin:()=>Iab,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>Dab,updateTravelOrderBodyForeignDailyRateMax:()=>Rab,updateTravelOrderBodyNoteMax:()=>Zab,updateTravelOrderBodyOriginMax:()=>vab,updateTravelOrderBodyPurposeMax:()=>Oab,updateTravelOrderBodyReturnAtRegExp:()=>fab,updateTravelOrderBodyTravelerNameMax:()=>xab,updateTravelOrderBodyTravelerPositionMax:()=>gab,updateTravelOrderBodyTripsItemBreakfastsProvidedMax:()=>Aab,updateTravelOrderBodyTripsItemBreakfastsProvidedMin:()=>wab,updateTravelOrderBodyTripsItemDepartureAtRegExp:()=>_ab,updateTravelOrderBodyTripsItemDestinationMax:()=>Mab,updateTravelOrderBodyTripsItemDistanceKmMax:()=>Cab,updateTravelOrderBodyTripsItemDistanceKmMin:()=>Pab,updateTravelOrderBodyTripsItemPurposeMax:()=>Uab,updateTravelOrderBodyTripsItemReturnAtRegExp:()=>Nab,updateTravelOrderBodyTripsMax:()=>Fab,updateTravelOrderBodyVehicleRegistrationMax:()=>zab,updateTravelOrderPathIdRegExp:()=>mab,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>Wab,updateTravelOrderResponseCostsItemAmountMax:()=>Yab,updateTravelOrderResponseCostsItemDateRegExp:()=>$ab,updateTravelOrderResponseCostsItemDescriptionMax:()=>qab});var sob=10,oob=100,KGb=e.object({limit:e.number().min(1).max(oob).default(sob).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.
|
|
143
143
|
Searches are case-insensitive and match partial strings.
|
|
144
|
-
Searches across number, traveler name, purpose, origin, and destination.`)}),ZGb=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.")}),iob=200,aob=0,rob=1e6,lob=/^\d{4}-\d{2}-\d{2}$/,qGb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(iob).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(aob).max(rob).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(lob).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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")}),WGb=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.")}),dob=200,cob=200,uob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,pob=500,mob=500,xob=500,gob=/^[A-Za-z]{2}$/,yob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Oob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,vob=20,hob=0,bob=1e5,Sob=0,fob=60,zob=0,Iob=1e4,Bob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Eob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Tob=500,Dob=500,Rob=0,_ob=1e5,Nob=0,Mob=60,Uob=62,Pob=0,Cob=1e6,wob=200,Aob=0,Fob=1e6,kob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,job=100,Hob=2e3,YGb=e.object({traveler_name:e.string().min(1).max(dob).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(cob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(uob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(pob).describe("Business purpose of the trip."),origin:e.string().max(mob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(xob).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(gob).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.string().regex(yob).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e.string().regex(Oob).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(vob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(hob).max(bob).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(Sob).max(fob).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e.number().gt(zob).max(Iob).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Bob).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(Eob).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(Tob).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(Dob).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(Rob).max(_ob).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(Nob).max(Mob).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Uob).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e.number().min(Pob).max(Cob).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(wob).describe("Description of the cost line."),amount:e.number().gt(Aob).max(Fob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(kob).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(job).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Hob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),$Gb=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.")}),Lob=200,Gob=200,Vob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Kob=500,Zob=500,qob=500,Wob=/^[A-Za-z]{2}$/,Yob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,$ob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Qob=20,Job=0,Xob=1e5,eib=0,tib=60,nib=0,sib=1e4,oib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,iib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,aib=500,rib=500,lib=0,dib=1e5,cib=0,uib=60,pib=62,mib=0,xib=1e6,gib=200,yib=0,Oib=1e6,vib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,hib=100,bib=2e3,QGb=e.object({traveler_name:e.string().min(1).max(Lob).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Gob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Vob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Kob).describe("Business purpose of the trip."),origin:e.string().max(Zob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(qob).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(Wob).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.string().regex(Yob).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e.string().regex($ob).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(Qob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(Job).max(Xob).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(eib).max(tib).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e.number().gt(nib).max(sib).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(oib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(iib).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(aib).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(rib).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(lib).max(dib).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(cib).max(uib).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(pib).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e.number().min(mib).max(xib).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(gib).describe("Description of the cost line."),amount:e.number().gt(yib).max(Oib).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(vib).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(hib).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(bib).nullish().describe("Free-text note. Omit or send null to leave unset.")}),JGb=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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),Sib=2,fib=5,zib=2,Iib=5,XGb=e.object({locale:e.string().min(Sib).max(fib).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(zib).max(Iib).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.")}),eVb=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.")}),Bib=200,Eib=200,Tib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Dib=500,Rib=500,_ib=500,Nib=/^[A-Za-z]{2}$/,Mib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Uib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Pib=20,Cib=0,wib=1e5,Aib=0,Fib=60,kib=0,jib=1e4,Hib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Lib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Gib=500,Vib=500,Kib=0,Zib=1e5,qib=0,Wib=60,Yib=62,$ib=0,Qib=1e6,Jib=200,Xib=0,eab=1e6,tab=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nab=100,sab=2e3,tVb=e.object({traveler_name:e.string().min(1).max(Bib).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Eib).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Tib).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Dib).describe("Business purpose of the trip."),origin:e.string().max(Rib).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(_ib).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(Nib).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.string().regex(Mib).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e.string().regex(Uib).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(Pib).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(Cib).max(wib).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(Aib).max(Fib).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e.number().gt(kib).max(jib).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Hib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(Lib).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(Gib).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(Vib).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(Kib).max(Zib).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(qib).max(Wib).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Yib).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e.number().min($ib).max(Qib).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(Jib).describe("Description of the cost line."),amount:e.number().gt(Xib).max(eab).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(tab).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(nab).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(sab).nullish().describe("Free-text note. Omit or send null to leave unset.")}),nVb=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.")}),oab=3,iab=300,aab=3,rab=300,sVb=e.object({from:e.string().min(oab).max(iab).describe("Starting address to geocode."),to:e.string().min(aab).max(rab).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.")}),oVb=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.")}),lab=/^[a-z]{3,4}_[0-9a-f]{24}$/,iVb=e.object({id:e.stringFormat("resource-id",lab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aVb=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.")}),dab=200,cab=0,uab=1e6,pab=/^\d{4}-\d{2}-\d{2}$/,rVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(dab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(cab).max(uab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(pab).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),mab=/^[a-z]{3,4}_[0-9a-f]{24}$/,lVb=e.object({id:e.stringFormat("resource-id",mab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dVb=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.")}),xab=200,gab=200,yab=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Oab=500,vab=500,hab=500,bab=/^[A-Za-z]{2}$/,Sab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,fab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,zab=20,Iab=0,Bab=1e5,Eab=0,Tab=60,Dab=0,Rab=1e4,_ab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Nab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Mab=500,Uab=500,Pab=0,Cab=1e5,wab=0,Aab=60,Fab=62,kab=0,jab=1e6,Hab=200,Lab=0,Gab=1e6,Vab=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Kab=100,Zab=2e3,cVb=e.object({traveler_name:e.string().min(1).max(xab).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(gab).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(yab).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(Oab).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(vab).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(hab).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(bab).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.string().regex(Sab).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with return_at when converting it back to a single trip with `trips: []`."),return_at:e.string().regex(fab).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with departure_at when converting it back to a single trip with `trips: []`."),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(zab).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(Iab).max(Bab).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear. Not accepted as a non-null value for a collective order, where it is derived from the trips."),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(Eab).max(Tab).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0. Not accepted as a non-null value for a collective order, where it is derived from the trips."),foreign_daily_rate:e.number().gt(Dab).max(Rab).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),trips:e.array(e.object({departure_at:e.string().regex(_ab).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(Nab).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(Mab).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(Uab).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(Pab).max(Cab).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(wab).max(Aab).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).max(Fab).nullish().describe("Replaces the whole list of trips (the order becomes, or stays, a collective order). Omit (or send null) to leave the trips unchanged. To convert a collective order back to a single trip, send an empty array (`trips: []`) together with both departure_at and return_at (a request with only one of them is rejected); distance_km and breakfasts_provided then take the request values or reset to null and 0. An empty array on a single-trip order is a no-op."),advance_amount:e.number().min(kab).max(jab).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(Hab).describe("Description of the cost line."),amount:e.number().gt(Lab).max(Gab).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Vab).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Kab).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(Zab).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),qab=200,Wab=0,Yab=1e6,$ab=/^\d{4}-\d{2}-\d{2}$/,uVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(qab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Wab).max(Yab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex($ab).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),Qab=/^[a-z]{3,4}_[0-9a-f]{24}$/,pVb=e.object({id:e.stringFormat("resource-id",Qab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),mVb=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.")}),Jab=/^[a-z]{3,4}_[0-9a-f]{24}$/,xVb=e.object({id:e.stringFormat("resource-id",Jab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),gVb=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.")}),Xab=200,erb=0,trb=1e6,nrb=/^\d{4}-\d{2}-\d{2}$/,yVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Xab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(erb).max(trb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(nrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),srb=/^[a-z]{3,4}_[0-9a-f]{24}$/,OVb=e.object({id:e.stringFormat("resource-id",srb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),vVb=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.")}),orb=200,irb=0,arb=1e6,rrb=/^\d{4}-\d{2}-\d{2}$/,hVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(orb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(irb).max(arb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(rrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),lrb=/^[a-z]{3,4}_[0-9a-f]{24}$/,bVb=e.object({id:e.stringFormat("resource-id",lrb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SVb=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.")}),drb=3,crb=500,fVb=e.object({reason:e.string().min(drb).max(crb).describe("Why this settled travel order is being reopened for correction. Required.")}),urb=200,prb=0,mrb=1e6,xrb=/^\d{4}-\d{2}-\d{2}$/,zVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(urb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(prb).max(mrb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(xrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),grb=/^[a-z]{3,4}_[0-9a-f]{24}$/,IVb=e.object({id:e.stringFormat("resource-id",grb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),BVb=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.")}),yrb=200,Orb=0,vrb=1e6,hrb=/^\d{4}-\d{2}-\d{2}$/,EVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(yrb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Orb).max(vrb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(hrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),brb=/^[a-z]{3,4}_[0-9a-f]{24}$/,TVb=e.object({id:e.stringFormat("resource-id",brb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Srb=2,frb=5,zrb=2,Irb=5,DVb=e.object({locale:e.string().min(Srb).max(frb).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(zrb).max(Irb).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.")}),RVb=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.")}),Brb=/^[a-z]{3,4}_[0-9a-f]{24}$/,_Vb=e.object({id:e.stringFormat("resource-id",Brb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Erb=2,Trb=5,Drb=2,Rrb=5,NVb=e.object({locale:e.string().min(Erb).max(Trb).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(Drb).max(Rrb).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.")}),MVb=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 xn={};$(xn,{DownloadUjpPackageHeader:()=>PVb,DownloadUjpPackageParams:()=>UVb});var UVb=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),PVb=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 gn={};$(gn,{UploadImageBody:()=>wVb,UploadImageHeader:()=>CVb,UploadImageResponse:()=>AVb});var CVb=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.")}),wVb=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)")}),AVb=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 yn={};$(yn,{ConfirmPasswordResetBody:()=>xKb,ConfirmPasswordResetResponse:()=>gKb,DisableTwoFactorBody:()=>iKb,DisableTwoFactorResponse:()=>aKb,EnableRequiredTwoFactorBody:()=>JVb,EnableRequiredTwoFactorResponse:()=>XVb,EnableTwoFactorBody:()=>sKb,EnableTwoFactorResponse:()=>oKb,GetAccountTwoFactorPolicyHeader:()=>FVb,GetAccountTwoFactorPolicyResponse:()=>kVb,GetEntityTwoFactorPolicyHeader:()=>VVb,GetEntityTwoFactorPolicyParams:()=>GVb,GetEntityTwoFactorPolicyResponse:()=>KVb,GetMeResponse:()=>OKb,GetTwoFactorConfigurationResponse:()=>eKb,ListMyAccountsResponse:()=>yKb,LoginBody:()=>dKb,LoginResponse:()=>cKb,PatchMeBody:()=>vKb,PatchMeResponse:()=>hKb,RequestPasswordResetBody:()=>pKb,RequestPasswordResetResponse:()=>mKb,SetupRequiredTwoFactorBody:()=>$Vb,SetupRequiredTwoFactorResponse:()=>QVb,SetupTwoFactorBody:()=>tKb,SetupTwoFactorResponse:()=>nKb,SignupBody:()=>uKb,UpdateAccountTwoFactorPolicyBody:()=>HVb,UpdateAccountTwoFactorPolicyHeader:()=>jVb,UpdateAccountTwoFactorPolicyResponse:()=>LVb,UpdateEntityTwoFactorPolicyBody:()=>WVb,UpdateEntityTwoFactorPolicyHeader:()=>qVb,UpdateEntityTwoFactorPolicyParams:()=>ZVb,UpdateEntityTwoFactorPolicyResponse:()=>YVb,UpdateUserFinaSettingsBody:()=>IKb,UpdateUserFinaSettingsHeader:()=>zKb,UpdateUserFinaSettingsResponse:()=>BKb,UpdateUserFursSettingsBody:()=>SKb,UpdateUserFursSettingsHeader:()=>bKb,UpdateUserFursSettingsResponse:()=>fKb,VerifyTwoFactorBody:()=>rKb,VerifyTwoFactorResponse:()=>lKb,confirmPasswordResetBodyPasswordMin:()=>jlb,confirmPasswordResetBodyPasswordRegExp:()=>Hlb,disableTwoFactorBodyCodeMax:()=>Xrb,disableTwoFactorBodyCodeMin:()=>Jrb,disableTwoFactorBodyPasswordMax:()=>Qrb,enableRequiredTwoFactorBodyCodeRegExp:()=>Frb,enableRequiredTwoFactorBodyTokenRegExp:()=>Arb,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>Grb,enableRequiredTwoFactorResponseSessionOneIdMax:()=>krb,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>Vrb,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>Lrb,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>Hrb,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>jrb,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>Wrb,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>Zrb,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>Krb,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>qrb,enableTwoFactorBodyCodeRegExp:()=>$rb,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>_rb,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>Urb,getEntityTwoFactorPolicyPathIdRegExp:()=>Mrb,getMeResponseAccountIdMax:()=>Klb,getMeResponseEmailMax:()=>Glb,getMeResponseIdMax:()=>Llb,getMeResponseNameMax:()=>Vlb,loginBodyShopifyReturnUrlMax:()=>glb,loginBodyShopifyReturnUrlMin:()=>xlb,loginBodyShopifyReturnUrlRegExp:()=>ylb,loginResponseOneEntityIdMax:()=>Slb,loginResponseOneIdMax:()=>Olb,loginResponseOneImpersonatorUserIdMax:()=>flb,loginResponseOneScopeMax:()=>blb,loginResponseOneTtlDefault:()=>hlb,loginResponseOneUserIdMax:()=>vlb,loginResponseTwoUserAccountIdMax:()=>Elb,loginResponseTwoUserEmailMax:()=>Ilb,loginResponseTwoUserIdMax:()=>zlb,loginResponseTwoUserNameMax:()=>Blb,patchMeBodyNameMin:()=>Zlb,patchMeResponseAccountIdMax:()=>$lb,patchMeResponseEmailMax:()=>Wlb,patchMeResponseIdMax:()=>qlb,patchMeResponseNameMax:()=>Ylb,requestPasswordResetBodyShopifyReturnUrlMax:()=>Flb,requestPasswordResetBodyShopifyReturnUrlMin:()=>Alb,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>klb,setupRequiredTwoFactorBodyTokenRegExp:()=>wrb,setupTwoFactorBodyPasswordMax:()=>Yrb,signupBodyNameMin:()=>Tlb,signupBodyPasswordMin:()=>Dlb,signupBodyPasswordRegExp:()=>Rlb,signupBodySignupAttributionFbclidMax:()=>wlb,signupBodySignupAttributionGbraidMax:()=>Plb,signupBodySignupAttributionGclidMax:()=>Ulb,signupBodySignupAttributionUtmCampaignMax:()=>Mlb,signupBodySignupAttributionUtmMediumMax:()=>Nlb,signupBodySignupAttributionUtmSourceMax:()=>_lb,signupBodySignupAttributionWbraidMax:()=>Clb,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>Nrb,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>Crb,updateEntityTwoFactorPolicyPathIdRegExp:()=>Prb,updateUserFinaSettingsResponseAccountIdMax:()=>odb,updateUserFinaSettingsResponseEmailMax:()=>ndb,updateUserFinaSettingsResponseIdMax:()=>tdb,updateUserFinaSettingsResponseNameMax:()=>sdb,updateUserFursSettingsResponseAccountIdMax:()=>edb,updateUserFursSettingsResponseEmailMax:()=>Jlb,updateUserFursSettingsResponseIdMax:()=>Qlb,updateUserFursSettingsResponseNameMax:()=>Xlb,verifyTwoFactorBodyCodeMax:()=>slb,verifyTwoFactorBodyCodeMin:()=>nlb,verifyTwoFactorBodyTokenMax:()=>elb,verifyTwoFactorBodyTokenRegExp:()=>tlb,verifyTwoFactorResponseOneEntityIdMax:()=>llb,verifyTwoFactorResponseOneIdMax:()=>olb,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>dlb,verifyTwoFactorResponseOneScopeMax:()=>rlb,verifyTwoFactorResponseOneTtlDefault:()=>alb,verifyTwoFactorResponseOneUserIdMax:()=>ilb,verifyTwoFactorResponseTwoUserAccountIdMax:()=>mlb,verifyTwoFactorResponseTwoUserEmailMax:()=>ulb,verifyTwoFactorResponseTwoUserIdMax:()=>clb,verifyTwoFactorResponseTwoUserNameMax:()=>plb});var _rb=/^acc_[0-9a-fA-F]{24}$/,FVb=e.object({"x-account-id":e.string().regex(_rb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),kVb=e.object({required:e.boolean()}),Nrb=/^acc_[0-9a-fA-F]{24}$/,jVb=e.object({"x-account-id":e.string().regex(Nrb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),HVb=e.object({required:e.boolean()}),LVb=e.object({required:e.boolean()}),Mrb=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,GVb=e.object({id:e.stringFormat("resource-id",Mrb).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Urb=/^acc_[0-9a-fA-F]{24}$/,VVb=e.object({"x-account-id":e.string().regex(Urb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),KVb=e.object({required:e.boolean()}),Prb=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,ZVb=e.object({id:e.stringFormat("resource-id",Prb).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Crb=/^acc_[0-9a-fA-F]{24}$/,qVb=e.object({"x-account-id":e.string().regex(Crb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),WVb=e.object({required:e.boolean()}),YVb=e.object({required:e.boolean()}),wrb=/^session_2fa_setup_[a-f0-9]{64}$/,$Vb=e.object({token:e.string().regex(wrb)}),QVb=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),Arb=/^session_2fa_setup_[a-f0-9]{64}$/,Frb=/^\d{6}$/,JVb=e.object({token:e.string().regex(Arb),code:e.string().regex(Frb)}),krb=100,jrb=36,Hrb=31536e3,Lrb=50,Grb=36,Vrb=36,Krb=36,Zrb=255,qrb=255,Wrb=36,XVb=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(krb),user_id:e.string().max(jrb),ttl:e.number().default(Hrb).describe("Token time-to-live in seconds"),scope:e.string().max(Lrb).nullish(),entity_id:e.string().max(Grb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Vrb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Krb),email:e.string().max(Zrb),name:e.string().max(qrb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Wrb).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")}),eKb=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),Yrb=1024,tKb=e.object({password:e.string().max(Yrb).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),nKb=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),$rb=/^\d{6}$/,sKb=e.object({code:e.string().regex($rb)}),oKb=e.object({recovery_codes:e.array(e.string())}),Qrb=1024,Jrb=6,Xrb=32,iKb=e.object({password:e.string().max(Qrb).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(Jrb).max(Xrb).describe("Six-digit authenticator code or a single-use recovery code.")}),aKb=e.object({enabled:e.literal(false)}),elb=100,tlb=/^session_2fa_[a-zA-Z0-9]+$/,nlb=6,slb=32,rKb=e.object({token:e.string().max(elb).regex(tlb),code:e.string().min(nlb).max(slb).describe("Six-digit authenticator code or a single-use recovery code.")}),olb=100,ilb=36,alb=31536e3,rlb=50,llb=36,dlb=36,clb=36,ulb=255,plb=255,mlb=36,lKb=e.object({id:e.string().max(olb),user_id:e.string().max(ilb),ttl:e.number().default(alb).describe("Token time-to-live in seconds"),scope:e.string().max(rlb).nullish(),entity_id:e.string().max(llb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(dlb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(clb),email:e.string().max(ulb),name:e.string().max(plb).nullish(),email_verified:e.boolean(),account_id:e.string().max(mlb).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"),xlb=86,glb=86,ylb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,dKb=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(xlb).max(glb).regex(ylb).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.")}),Olb=100,vlb=36,hlb=31536e3,blb=50,Slb=36,flb=36,zlb=36,Ilb=255,Blb=255,Elb=36,cKb=e.object({id:e.string().max(Olb),user_id:e.string().max(vlb),ttl:e.number().default(hlb).describe("Token time-to-live in seconds"),scope:e.string().max(blb).nullish(),entity_id:e.string().max(Slb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(flb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(zlb),email:e.string().max(Ilb),name:e.string().max(Blb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Elb).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"),Tlb=2,Dlb=8,Rlb=/[a-z]/,_lb=150,Nlb=150,Mlb=150,Ulb=512,Plb=512,Clb=512,wlb=512,uKb=e.object({email:e.email(),name:e.string().min(Tlb).nullish(),password:e.string().min(Dlb).regex(Rlb),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(_lb).nullish(),utm_medium:e.string().min(1).max(Nlb).nullish(),utm_campaign:e.string().min(1).max(Mlb).nullish(),gclid:e.string().min(1).max(Ulb).nullish(),gbraid:e.string().min(1).max(Plb).nullish(),wbraid:e.string().min(1).max(Clb).nullish(),fbclid:e.string().min(1).max(wlb).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.")}),Alb=86,Flb=86,klb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,pKb=e.object({email:e.email(),shopify_return_url:e.string().min(Alb).max(Flb).regex(klb).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.")}),mKb=e.object({message:e.string()}),jlb=8,Hlb=/[a-z]/,xKb=e.object({token:e.string().min(1),password:e.string().min(jlb).regex(Hlb)}),gKb=e.object({message:e.string()}),yKb=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.")}))}),Llb=36,Glb=255,Vlb=255,Klb=36,OKb=e.object({id:e.string().max(Llb),email:e.string().max(Glb),name:e.string().max(Vlb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Klb).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({})}),Zlb=2,vKb=e.object({name:e.string().min(Zlb).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.")}),qlb=36,Wlb=255,Ylb=255,$lb=36,hKb=e.object({id:e.string().max(qlb),email:e.string().max(Wlb),name:e.string().max(Ylb).nullish(),email_verified:e.boolean(),account_id:e.string().max($lb).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({})}),bKb=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.")}),SKb=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"),Qlb=36,Jlb=255,Xlb=255,edb=36,fKb=e.object({id:e.string().max(Qlb),email:e.string().max(Jlb),name:e.string().max(Xlb).nullish(),email_verified:e.boolean(),account_id:e.string().max(edb).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({})}),zKb=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.")}),IKb=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"),tdb=36,ndb=255,sdb=255,odb=36,BKb=e.object({id:e.string().max(tdb),email:e.string().max(ndb),name:e.string().max(sdb).nullish(),email_verified:e.boolean(),account_id:e.string().max(odb).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 On={};$(On,{CancelVerifactuRecordBody:()=>ZKb,CancelVerifactuRecordHeader:()=>KKb,CancelVerifactuRecordParams:()=>VKb,CancelVerifactuRecordResponse:()=>qKb,CorrectVerifactuRecordBody:()=>LKb,CorrectVerifactuRecordHeader:()=>HKb,CorrectVerifactuRecordParams:()=>jKb,CorrectVerifactuRecordResponse:()=>GKb,GetVerifactuEvidenceHeader:()=>CKb,GetVerifactuEvidenceParams:()=>PKb,GetVerifactuEvidenceResponse:()=>wKb,GetVerifactuSettingsHeader:()=>EKb,GetVerifactuSettingsResponse:()=>TKb,RetryVerifactuRecordHeader:()=>FKb,RetryVerifactuRecordParams:()=>AKb,RetryVerifactuRecordResponse:()=>kKb,UpdateVerifactuSettingsBody:()=>RKb,UpdateVerifactuSettingsHeader:()=>DKb,UpdateVerifactuSettingsResponse:()=>_Kb,UploadVerifactuCertificateBody:()=>MKb,UploadVerifactuCertificateHeader:()=>NKb,UploadVerifactuCertificateResponse:()=>UKb,cancelVerifactuRecordBodyReasonMax:()=>mdb,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>ddb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>udb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>cdb,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>pdb,correctVerifactuRecordBodyReasonMax:()=>ldb,getVerifactuSettingsResponsePendingRecordsMin:()=>idb,updateVerifactuSettingsResponsePendingRecordsMin:()=>adb,uploadVerifactuCertificateResponsePendingRecordsMin:()=>rdb});var EKb=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.")}),idb=0,TKb=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(idb).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."),DKb=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.")}),RKb=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."),adb=0,_Kb=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(adb).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."),NKb=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.")}),MKb=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.")}),rdb=0,UKb=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(rdb).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."),PKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),CKb=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.")}),wKb=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."),AKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),FKb=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.")}),kKb=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."),jKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),HKb=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.")}),ldb=500,ddb=500,cdb=0,udb=/^\d{2}$/,pdb=12,LKb=e.object({reason:e.string().min(1).max(ldb).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(ddb).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(cdb).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(udb).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(pdb).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."),GKb=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."),VKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),KKb=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.")}),mdb=500,ZKb=e.object({reason:e.string().min(1).max(mdb).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),qKb=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 vn={};$(vn,{CheckViesBody:()=>WKb,CheckViesResponse:()=>YKb,checkViesBodyCustomerCountryCodeMax:()=>vdb,checkViesBodyCustomerCountryCodeMin:()=>Odb,checkViesBodyIssuerCountryCodeMax:()=>gdb,checkViesBodyIssuerCountryCodeMin:()=>xdb,checkViesBodyIssuerIsTaxSubjectDefault:()=>ydb,checkViesResponseCustomerCountryCodeMax:()=>fdb,checkViesResponseCustomerCountryCodeMin:()=>Sdb,checkViesResponseIssuerCountryCodeMax:()=>bdb,checkViesResponseIssuerCountryCodeMin:()=>hdb,checkViesResponseVatIdCountryCodeMax:()=>Idb,checkViesResponseVatIdCountryCodeMin:()=>zdb});var xdb=2,gdb=2,ydb=true,Odb=2,vdb=2,WKb=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(xdb).max(gdb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(ydb).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(Odb).max(vdb).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.")}),hdb=2,bdb=2,Sdb=2,fdb=2,zdb=2,Idb=2,YKb=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(hdb).max(bdb).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(Sdb).max(fdb).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, except for a Polish issuer, whose type follows the buyer)"),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(zdb).max(Idb).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 hn={};$(hn,{CreateWarehouseBody:()=>eZb,CreateWarehouseHeader:()=>XKb,DeleteWarehouseHeader:()=>dZb,DeleteWarehouseParams:()=>lZb,GetWarehouseByIdHeader:()=>nZb,GetWarehouseByIdParams:()=>tZb,GetWarehouseByIdResponse:()=>sZb,GetWarehousesHeader:()=>QKb,GetWarehousesQueryParams:()=>$Kb,GetWarehousesResponse:()=>JKb,UpdateWarehouseBody:()=>aZb,UpdateWarehouseHeader:()=>iZb,UpdateWarehouseParams:()=>oZb,UpdateWarehouseResponse:()=>rZb,createWarehouseBodyNameMax:()=>_db,deleteWarehousePathIdRegExp:()=>jdb,getWarehouseByIdPathIdRegExp:()=>Ndb,getWarehouseByIdResponseEntityIdMax:()=>Udb,getWarehouseByIdResponseIdMax:()=>Mdb,getWarehouseByIdResponseNameMax:()=>Pdb,getWarehousesQueryLimitDefault:()=>Bdb,getWarehousesQueryLimitMax:()=>Edb,getWarehousesResponseDataItemEntityIdMax:()=>Ddb,getWarehousesResponseDataItemIdMax:()=>Tdb,getWarehousesResponseDataItemNameMax:()=>Rdb,updateWarehouseBodyNameMax:()=>wdb,updateWarehousePathIdRegExp:()=>Cdb,updateWarehouseResponseEntityIdMax:()=>Fdb,updateWarehouseResponseIdMax:()=>Adb,updateWarehouseResponseNameMax:()=>kdb});var Bdb=10,Edb=100,$Kb=e.object({limit:e.number().min(1).max(Edb).default(Bdb).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.")}),QKb=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.")}),Tdb=36,Ddb=36,Rdb=200,JKb=e.object({data:e.array(e.object({id:e.string().max(Tdb),entity_id:e.string().max(Ddb),name:e.string().max(Rdb),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")}),XKb=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.")}),_db=200,eZb=e.object({name:e.string().min(1).max(_db).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.")}),Ndb=/^wh_[0-9a-f]{24}$/,tZb=e.object({id:e.stringFormat("resource-id",Ndb).describe("Warehouse identifier (wh_ prefix).")}),nZb=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.")}),Mdb=36,Udb=36,Pdb=200,sZb=e.object({id:e.string().max(Mdb),entity_id:e.string().max(Udb),name:e.string().max(Pdb),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."),Cdb=/^wh_[0-9a-f]{24}$/,oZb=e.object({id:e.stringFormat("resource-id",Cdb).describe("Warehouse identifier (wh_ prefix).")}),iZb=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.")}),wdb=200,aZb=e.object({name:e.string().min(1).max(wdb).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.")}),Adb=36,Fdb=36,kdb=200,rZb=e.object({id:e.string().max(Adb),entity_id:e.string().max(Fdb),name:e.string().max(kdb),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."),jdb=/^wh_[0-9a-f]{24}$/,lZb=e.object({id:e.stringFormat("resource-id",jdb).describe("Warehouse identifier (wh_ prefix).")}),dZb=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 bn={};$(bn,{CreateWebhookBody:()=>uZb,CreateWebhookHeader:()=>cZb,DeleteWebhookHeader:()=>zZb,DeleteWebhookParams:()=>fZb,DeleteWebhookResponse:()=>IZb,GetWebhookByIdHeader:()=>yZb,GetWebhookByIdParams:()=>gZb,GetWebhookByIdResponse:()=>OZb,GetWebhookDeliveriesHeader:()=>_Zb,GetWebhookDeliveriesParams:()=>DZb,GetWebhookDeliveriesQueryParams:()=>RZb,GetWebhookDeliveriesResponse:()=>NZb,GetWebhooksHeader:()=>mZb,GetWebhooksQueryParams:()=>pZb,GetWebhooksResponse:()=>xZb,RotateWebhookSecretHeader:()=>UZb,RotateWebhookSecretParams:()=>MZb,RotateWebhookSecretResponse:()=>PZb,TestWebhookHeader:()=>EZb,TestWebhookParams:()=>BZb,TestWebhookResponse:()=>TZb,UpdateWebhookBody:()=>bZb,UpdateWebhookHeader:()=>hZb,UpdateWebhookParams:()=>vZb,UpdateWebhookResponse:()=>SZb,createWebhookBodyActiveDefault:()=>Gdb,createWebhookBodyDescriptionMax:()=>Ldb,createWebhookBodyUrlMax:()=>Hdb,deleteWebhookPathIdRegExp:()=>ucb,getWebhookByIdPathIdRegExp:()=>Qdb,getWebhookByIdResponseDescriptionMax:()=>tcb,getWebhookByIdResponseEntityIdMax:()=>Xdb,getWebhookByIdResponseIdMax:()=>Jdb,getWebhookByIdResponseMetadataDefault:()=>ncb,getWebhookByIdResponseUrlMax:()=>ecb,getWebhookDeliveriesPathIdRegExp:()=>Tcb,getWebhookDeliveriesQueryLimitDefault:()=>Dcb,getWebhookDeliveriesQueryLimitMax:()=>Rcb,getWebhookDeliveriesResponseDataItemAttemptMax:()=>kcb,getWebhookDeliveriesResponseDataItemAttemptMin:()=>Fcb,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>Gcb,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>Lcb,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Mcb,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>Acb,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>Ucb,getWebhookDeliveriesResponseDataItemIdMax:()=>_cb,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>Hcb,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>jcb,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>wcb,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>Ccb,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>Pcb,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Ncb,getWebhooksQueryLimitDefault:()=>Vdb,getWebhooksQueryLimitMax:()=>Kdb,getWebhooksResponseDataItemDescriptionMax:()=>Ydb,getWebhooksResponseDataItemEntityIdMax:()=>qdb,getWebhooksResponseDataItemIdMax:()=>Zdb,getWebhooksResponseDataItemMetadataDefault:()=>$db,getWebhooksResponseDataItemUrlMax:()=>Wdb,rotateWebhookSecretPathIdRegExp:()=>Vcb,rotateWebhookSecretResponseDescriptionMax:()=>Wcb,rotateWebhookSecretResponseEntityIdMax:()=>Zcb,rotateWebhookSecretResponseIdMax:()=>Kcb,rotateWebhookSecretResponseMetadataDefault:()=>$cb,rotateWebhookSecretResponseSecretMax:()=>Ycb,rotateWebhookSecretResponseUrlMax:()=>qcb,testWebhookPathIdRegExp:()=>pcb,testWebhookResponseAttemptMax:()=>fcb,testWebhookResponseAttemptMin:()=>Scb,testWebhookResponseDurationMsMax:()=>Ecb,testWebhookResponseDurationMsMin:()=>Bcb,testWebhookResponseEntityIdMax:()=>gcb,testWebhookResponseErrorMessageMax:()=>bcb,testWebhookResponseEventTypeMax:()=>ycb,testWebhookResponseIdMax:()=>mcb,testWebhookResponseMaxAttemptsMax:()=>Icb,testWebhookResponseMaxAttemptsMin:()=>zcb,testWebhookResponseResponseBodyMax:()=>hcb,testWebhookResponseResponseStatusMax:()=>vcb,testWebhookResponseResponseStatusMin:()=>Ocb,testWebhookResponseWebhookIdMax:()=>xcb,updateWebhookBodyDescriptionMax:()=>icb,updateWebhookBodyUrlMax:()=>ocb,updateWebhookPathIdRegExp:()=>scb,updateWebhookResponseDescriptionMax:()=>dcb,updateWebhookResponseEntityIdMax:()=>rcb,updateWebhookResponseIdMax:()=>acb,updateWebhookResponseMetadataDefault:()=>ccb,updateWebhookResponseUrlMax:()=>lcb});var cZb=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.")}),Hdb=2048,Ldb=500,Gdb=true,uZb=e.object({url:e.url().max(Hdb).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Ldb).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).min(1).describe("Events that trigger this webhook. Use an exact event name, `<resource>.*` for every event of one resource, `document.<action>` or `document.*` for every document type, or `*` for every event."),active:e.boolean().default(Gdb).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.")}),Vdb=10,Kdb=100,pZb=e.object({limit:e.number().min(1).max(Kdb).default(Vdb).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.")}),mZb=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.")}),Zdb=36,qdb=36,Wdb=2048,Ydb=500,$db={},xZb=e.object({data:e.array(e.object({id:e.string().max(Zdb),entity_id:e.string().max(qdb),url:e.string().max(Wdb),description:e.string().max(Ydb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default($db).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")}),Qdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,gZb=e.object({id:e.stringFormat("resource-id",Qdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yZb=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.")}),Jdb=36,Xdb=36,ecb=2048,tcb=500,ncb={},OZb=e.object({id:e.string().max(Jdb),entity_id:e.string().max(Xdb),url:e.string().max(ecb),description:e.string().max(tcb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(ncb).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)"),scb=/^[a-z]{3,4}_[0-9a-f]{24}$/,vZb=e.object({id:e.stringFormat("resource-id",scb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hZb=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.")}),ocb=2048,icb=500,bZb=e.object({url:e.url().max(ocb).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(icb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).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.")}),acb=36,rcb=36,lcb=2048,dcb=500,ccb={},SZb=e.object({id:e.string().max(acb),entity_id:e.string().max(rcb),url:e.string().max(lcb),description:e.string().max(dcb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(ccb).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)"),ucb=/^[a-z]{3,4}_[0-9a-f]{24}$/,fZb=e.object({id:e.stringFormat("resource-id",ucb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zZb=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.")}),IZb=e.object({success:e.boolean()}),pcb=/^[a-z]{3,4}_[0-9a-f]{24}$/,BZb=e.object({id:e.stringFormat("resource-id",pcb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),EZb=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.")}),mcb=36,xcb=36,gcb=36,ycb=100,Ocb=-2147483648,vcb=2147483647,hcb=1e4,bcb=2e3,Scb=-2147483648,fcb=2147483647,zcb=-2147483648,Icb=2147483647,Bcb=-2147483648,Ecb=2147483647,TZb=e.object({id:e.string().max(mcb),webhook_id:e.string().max(xcb),entity_id:e.string().max(gcb),event_type:e.string().max(ycb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Ocb).max(vcb).nullish(),response_body:e.string().max(hcb).nullish(),error_message:e.string().max(bcb).nullish(),attempt:e.number().min(Scb).max(fcb),max_attempts:e.number().min(zcb).max(Icb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Bcb).max(Ecb).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Tcb=/^[a-z]{3,4}_[0-9a-f]{24}$/,DZb=e.object({id:e.stringFormat("resource-id",Tcb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Dcb=10,Rcb=100,RZb=e.object({limit:e.number().min(1).max(Rcb).default(Dcb).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.")}),_Zb=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.")}),_cb=36,Ncb=36,Mcb=36,Ucb=100,Pcb=-2147483648,Ccb=2147483647,wcb=1e4,Acb=2e3,Fcb=-2147483648,kcb=2147483647,jcb=-2147483648,Hcb=2147483647,Lcb=-2147483648,Gcb=2147483647,NZb=e.object({data:e.array(e.object({id:e.string().max(_cb),webhook_id:e.string().max(Ncb),entity_id:e.string().max(Mcb),event_type:e.string().max(Ucb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Pcb).max(Ccb).nullish(),response_body:e.string().max(wcb).nullish(),error_message:e.string().max(Acb).nullish(),attempt:e.number().min(Fcb).max(kcb),max_attempts:e.number().min(jcb).max(Hcb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Lcb).max(Gcb).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")}),Vcb=/^[a-z]{3,4}_[0-9a-f]{24}$/,MZb=e.object({id:e.stringFormat("resource-id",Vcb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),UZb=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.")}),Kcb=36,Zcb=36,qcb=2048,Wcb=500,Ycb=64,$cb={},PZb=e.object({id:e.string().max(Kcb),entity_id:e.string().max(Zcb),url:e.string().max(qcb),description:e.string().max(Wcb).nullish(),secret:e.string().max(Ycb),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default($cb).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 Sn={};$(Sn,{CheckWLFeatureParams:()=>AZb,CheckWLFeatureResponse:()=>FZb,CheckWLLimitParams:()=>kZb,CheckWLLimitResponse:()=>jZb,GetCurrentWLSubscriptionResponse:()=>CZb,GetWLSubscriptionPlansResponse:()=>wZb,UpdateWLSubscriptionBillingEmailBody:()=>HZb,UpdateWLSubscriptionBillingEmailResponse:()=>LZb,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>Qcb,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>Jcb});var Qcb=0,Jcb=null,CZb=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(Qcb).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(Jcb).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"),wZb=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"),AZb=e.object({feature:e.string().describe("Feature slug to check")}),FZb=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"),kZb=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),jZb=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"),HZb=e.object({billing_email:e.email().nullable()}),LZb=e.object({billing_email:e.string().nullable()});var fn={};$(fn,{GetCurrentWhiteLabelResponse:()=>GZb,GetMyWhiteLabelResponse:()=>VZb});var GZb=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."),signup_enabled:e.boolean().optional().describe("Whether self sign-up is allowed on this white label's domains. When false, sign-up and new-user OAuth sign-in are refused; invited users can still accept invitations. Owned by the production white-label record: the sandbox record reports the production value. Treat a missing value as true."),entity_creation_enabled:e.boolean().optional().describe("Whether white-label entity users can create entities (companies). Account members and account API keys are not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),entity_invitations_enabled:e.boolean().optional().describe("Whether white-label entity users can invite users to entities. Silent provisioning by account administrators is not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),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"),VZb=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."),signup_enabled:e.boolean().optional().describe("Whether self sign-up is allowed on this white label's domains. When false, sign-up and new-user OAuth sign-in are refused; invited users can still accept invitations. Owned by the production white-label record: the sandbox record reports the production value. Treat a missing value as true."),entity_creation_enabled:e.boolean().optional().describe("Whether white-label entity users can create entities (companies). Account members and account API keys are not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),entity_invitations_enabled:e.boolean().optional().describe("Whether white-label entity users can invite users to entities. Silent provisioning by account administrators is not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),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 KZb=125e3,zn=null,we=null,In=false;function eub(d){zn=d;}function Bn(d){we=d,d==null&&(In=false);}function ZZb(){In||(In=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 qZb(){return we}function WZb(){if(!zn)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return zn}function YZb(d){if(!d)return {};if(d instanceof Headers){let u={};return d.forEach((g,T)=>{u[T]=g;}),u}if(Array.isArray(d)){let u={};for(let[g,T]of d)u[g]=T;return u}return d}function $Zb(d,u){if(u==null||u<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,T=()=>{g.abort(d?.reason);};if(d?.aborted)return T(),{signal:g.signal,cleanup:()=>{}};let z=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${u}ms`));},u),M=()=>{clearTimeout(z),d?.removeEventListener("abort",T);};return d?.addEventListener("abort",T,{once:true}),g.signal.addEventListener("abort",M,{once:true}),{signal:g.signal,cleanup:M}}async function h(d,u){let{timeoutMs:g,sdkConfig:T,...z}=u??{},M=T??WZb(),ve=await Promise.resolve(M.getAccessToken()),fe=`${M.baseUrl}${d}`,Oe={...YZb(z.headers)};if(M.clientName&&Object.assign(Oe,rt(M.clientName)),z.body===void 0||z.body===null)for(let ze of Object.keys(Oe))ze.toLowerCase()==="content-type"&&delete Oe[ze];ve&&(Oe.Authorization=`Bearer ${ve}`);let De=Oe["x-account-id"]||Oe["X-Account-Id"]||M.accountId||null;!De&&we&&(T&&ZZb(),De=we),De&&!Oe["x-account-id"]&&!Oe["X-Account-Id"]&&(Oe["x-account-id"]=De);let Re=$Zb(z.signal,g===void 0?M.requestTimeoutMs??KZb:g);try{let ze=await fetch(fe,{...z,headers:Oe,signal:Re.signal});ze.status===401&&M.onUnauthorized&&M.onUnauthorized(ze);let Ne,Lbb=ze.headers.get("content-length"),_e=ze.headers.get("content-type"),Gbb=ze.headers.get("content-disposition");if(Lbb==="0"||ze.status===204)Ne=void 0;else if(_e?.includes("application/pdf")||_e?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||_e?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||_e?.includes("text/csv")||_e?.includes("application/octet-stream")||_e?.includes("application/zip")||_e?.includes("application/x-zip-compressed")||_e?.includes("image/"))Ne=await ze.blob();else if(_e?.includes("application/xml")||_e?.includes("text/xml"))Ne=Gbb?.toLowerCase().includes("attachment")?await ze.blob():await ze.text();else if(_e?.includes("text/html"))Ne=await ze.text();else try{Ne=await ze.json();}catch{Ne=void 0;}return {data:Ne,status:ze.status,headers:ze.headers}}finally{Re.cleanup();}}var QZb=1e3;function JZb(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let u=d;return Array.isArray(u.data)&&!!u.pagination&&typeof u.pagination=="object"&&!Array.isArray(u.pagination)}function XZb(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*eqb(d,u,g){let T=g?`listAll(${g})`:"listAll()",z=u?.next_cursor,M=0;for(;;){if(M>=1e3)throw new Error(`${T} 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.`);M++;let ve=z,fe=await d({...u,next_cursor:ve});if(!JZb(fe))throw new Error(`${T} cannot paginate this method: its response is ${XZb(fe)}, 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 Oe of fe.data)yield Oe;let Ee=fe.pagination.next_cursor;if(!Ee)return;if(Ee===ve)throw new Error(`${T} received the same cursor it just sent (${ve}) after ${M} 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=Ee;}}var tqb=()=>"/account-webhooks",tub=async(d,u)=>h(tqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},nub=async(d,u)=>h(nqb(d),{...u,method:"GET"}),sqb=d=>`/account-webhooks/${d}`,sub=async(d,u)=>h(sqb(d),{...u,method:"GET"}),oqb=d=>`/account-webhooks/${d}`,oub=async(d,u,g)=>h(oqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),iqb=d=>`/account-webhooks/${d}`,iub=async(d,u)=>h(iqb(d),{...u,method:"DELETE"}),aqb=d=>`/account-webhooks/${d}/test`,aub=async(d,u)=>h(aqb(d),{...u,method:"POST"});var rqb=d=>`/account-webhooks/${d}/rotate-secret`,rub=async(d,u)=>h(rqb(d),{...u,method:"POST"});async function lqb(d,u){return d(...u)}function lub(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let u={};return (d.entity_id||d.account_id||d.request_id)&&(u.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&&(u.signal=d.signal),d.timeoutMs!==void 0&&(u.timeoutMs=d.timeoutMs),d.sdkConfig&&(u.sdkConfig=d.sdkConfig),u}function b(d,u){let g=async(...z)=>{let M=z[z.length-1],ve=M&&typeof M=="object"&&("entity_id"in M||"account_id"in M||"request_id"in M||"signal"in M||"timeoutMs"in M||"sdkConfig"in M||Object.keys(M).length===0),fe,Ee;ve?(fe=z.slice(0,-1),Ee=lub(M)):fe=[...z];let Oe=Math.max(0,d.length-1);for(;fe.length<Oe;)fe.push(void 0);fe.push(Ee);let De=await lqb(d,fe);if(De.status>=200&&De.status<300)return De.data;let Re=new Error(`API error: ${De.status}`);throw Re.status=De.status,Re.data=De.data,Re};return u===void 0?g:Object.assign(((...z)=>{let M=[...z];return M[u]??={},g(...M)}),{__sdkOptionsIndex:u})}function ne(d){return Object.assign(async g=>{let{entity_id:T,account_id:z,request_id:M,signal:ve,timeoutMs:fe,sdkConfig:Ee,...Oe}=g||{},De=lub({entity_id:T,account_id:z,request_id:M,signal:ve,timeoutMs:fe,sdkConfig:Ee}),Re=await d(Oe,De);if(Re.status===200)return Re.data;let ze=new Error(`API error: ${Re.status}`);throw ze.status=Re.status,ze.data=Re.data,ze},{__sdkListMethod:true})}function En(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 dub(d,u){let g=d.__sdkOptionsIndex;return Object.assign((...z)=>{let M=z[g-1];return En(M)&&Object.keys(M).length>0&&!u.some(ve=>ve in M)&&(z[g]={...M,...z[g]},z[g-1]=void 0),d(...z)},{__sdkOptionsIndex:g})}function Y(d,u){let g=Object.entries(d).map(([T,z])=>typeof z!="function"?[T,z]:[T,(...M)=>{let ve=u(),fe=M[M.length-1],Ee=z;if(Ee.__sdkListMethod){let Oe=M[0];M[0]=Oe&&typeof Oe=="object"?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else if(typeof Ee.__sdkOptionsIndex=="number"){let Oe=M[Ee.__sdkOptionsIndex];M[Ee.__sdkOptionsIndex]=En(Oe)?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else En(fe)?M[M.length-1]={...fe,sdkConfig:ve}:M.push({sdkConfig:ve});return z(...M)}]);return Object.fromEntries(g)}var Tn={create:b(tub,1),list:ne(nub),get:b(sub,1),update:b(oub,2),delete:b(iub,1),testAccountWebhook:b(aub,1),rotateAccountWebhookSecret:b(rub,1)};var dqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/employees?${g}`:"/employees"},Ae=async(d,u)=>h(dqb(d),{...u,method:"GET"}),cqb=()=>"/employees",Fe=async(d,u)=>h(cqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),uqb=d=>`/employees/${d}`,ke=async(d,u)=>h(uqb(d),{...u,method:"GET"}),pqb=d=>`/employees/${d}`,je=async(d,u,g)=>h(pqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),mqb=d=>`/employees/${d}`,He=async(d,u)=>h(mqb(d),{...u,method:"DELETE"}),xqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/employees/${d}/attendance?${T}`:`/employees/${d}/attendance`},Le=async(d,u,g)=>h(xqb(d,u),{...g,method:"GET"}),gqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/employees/${d}/attendance?${T}`:`/employees/${d}/attendance`},Ge=async(d,u,g,T)=>h(gqb(d,g),{...T,method:"PUT",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),yqb=d=>`/employees/${d}/compensation`,cub=async(d,u)=>h(yqb(d),{...u,method:"GET"}),Oqb=d=>`/employees/${d}/compensation`,uub=async(d,u,g)=>h(Oqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),vqb=(d,u)=>`/employees/${d}/compensation/${u}`,pub=async(d,u,g,T)=>h(vqb(d,u),{...T,method:"PATCH",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(g)}),hqb=(d,u)=>`/employees/${d}/compensation/${u}`,mub=async(d,u,g)=>h(hqb(d,u),{...g,method:"DELETE"}),bqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fixed-assets?${g}`:"/fixed-assets"},xub=async(d,u)=>h(bqb(d),{...u,method:"GET"}),Sqb=()=>"/fixed-assets",gub=async(d,u)=>h(Sqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),fqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register?${g}`:"/fixed-assets/register"},yub=async(d,u)=>h(fqb(d),{...u,method:"GET"}),zqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register/export?${g}`:"/fixed-assets/register/export"},Oub=async(d,u)=>h(zqb(d),{...u,method:"GET"}),Iqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/fixed-assets/${d}?${T}`:`/fixed-assets/${d}`},vub=async(d,u,g)=>h(Iqb(d,u),{...g,method:"GET"}),Bqb=d=>`/fixed-assets/${d}`,hub=async(d,u,g)=>h(Bqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Eqb=d=>`/fixed-assets/${d}`,bub=async(d,u)=>h(Eqb(d),{...u,method:"DELETE"}),Tqb=d=>`/fixed-assets/${d}/dispose`,Sub=async(d,u,g)=>h(Tqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Dqb=d=>`/fixed-assets/${d}/undo-disposal`,fub=async(d,u)=>h(Dqb(d),{...u,method:"POST"}),Rqb=d=>`/fixed-assets/${d}/schedule`,zub=async(d,u)=>h(Rqb(d),{...u,method:"GET"}),_qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},Ve=async(d,u)=>h(_qb(d),{...u,method:"GET"}),Nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},Ke=async(d,u)=>h(Nqb(d),{...u,method:"GET"}),Mqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/payroll/parameters/${d}?${T}`:`/payroll/parameters/${d}`},Ze=async(d,u,g,T)=>h(Mqb(d,g),{...T,method:"PUT",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),Uqb=()=>"/payroll/runs",Iub=async(d,u)=>h(Uqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Pqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payroll/runs?${g}`:"/payroll/runs"},Bub=async(d,u)=>h(Pqb(d),{...u,method:"GET"}),Cqb=d=>`/payroll/runs/${d}`,Eub=async(d,u)=>h(Cqb(d),{...u,method:"GET"}),wqb=d=>`/payroll/runs/${d}`,Tub=async(d,u)=>h(wqb(d),{...u,method:"DELETE"}),Aqb=d=>`/payroll/runs/${d}/recompute`,Dub=async(d,u,g)=>h(Aqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Fqb=d=>`/payroll/runs/${d}/approve`,Rub=async(d,u)=>h(Fqb(d),{...u,method:"POST"}),kqb=d=>`/payroll/runs/${d}/reopen`,_ub=async(d,u)=>h(kqb(d),{...u,method:"POST"}),jqb=d=>`/payroll/runs/${d}/mark-paid`,Nub=async(d,u,g)=>h(jqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Hqb=d=>`/payroll/runs/${d}/export`,Mub=async(d,u)=>h(Hqb(d),{...u,method:"GET"}),Lqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},qe=async(d,u)=>h(Lqb(d),{...u,method:"GET"}),Gqb=()=>"/vat-returns",We=async(d,u)=>h(Gqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Vqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},Ye=async(d,u)=>h(Vqb(d),{...u,method:"GET"}),Kqb=d=>`/vat-returns/${d}`,$e=async(d,u)=>h(Kqb(d),{...u,method:"GET"}),Zqb=d=>`/vat-returns/${d}`,Uub=async(d,u,g)=>h(Zqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qqb=d=>`/vat-returns/${d}/recompute`,Qe=async(d,u)=>h(qqb(d),{...u,method:"POST"}),Wqb=d=>`/vat-returns/${d}/approve`,Je=async(d,u)=>h(Wqb(d),{...u,method:"POST"}),Yqb=d=>`/vat-returns/${d}/submit`,Xe=async(d,u,g)=>h(Yqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),$qb=d=>`/vat-returns/${d}/reopen`,et=async(d,u)=>h($qb(d),{...u,method:"POST"}),Qqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/vat-returns/${d}/export?${T}`:`/vat-returns/${d}/export`},tt=async(d,u,g)=>h(Qqb(d,u),{...g,method:"GET"}),Jqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/filings?${g}`:"/filings"},nt=async(d,u)=>h(Jqb(d),{...u,method:"GET"}),Xqb=d=>`/filings/${d}/complete`,st=async(d,u,g)=>h(Xqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eWb=d=>`/filings/${d}/reopen`,ot=async(d,u)=>h(eWb(d),{...u,method:"POST"}),tWb=d=>`/filings/${d}/dismiss`,it=async(d,u,g)=>h(tWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),nWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},at=async(d,u)=>h(nWb(d),{...u,method:"GET"}),sWb=()=>"/ledger/accounts",Pub=async d=>h(sWb(),{...d,method:"GET"}),oWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/trial-balance?${g}`:"/ledger/trial-balance"},Cub=async(d,u)=>h(oWb(d),{...u,method:"GET"}),iWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/profit-and-loss?${g}`:"/ledger/profit-and-loss"},wub=async(d,u)=>h(iWb(d),{...u,method:"GET"}),aWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/balance-sheet?${g}`:"/ledger/balance-sheet"},Aub=async(d,u)=>h(aWb(d),{...u,method:"GET"}),rWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/entries?${g}`:"/ledger/entries"},Fub=async(d,u)=>h(rWb(d),{...u,method:"GET"}),lWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/reconciliations?${g}`:"/ledger/reconciliations"},kub=async(d,u)=>h(lWb(d),{...u,method:"GET"}),dWb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,jub=async(d,u,g,T)=>h(dWb(d,u),{...T,method:"PUT",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(g)}),cWb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,Hub=async(d,u,g)=>h(cWb(d,u),{...g,method:"DELETE"}),uWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/journal-entries?${g}`:"/journal-entries"},Lub=async(d,u)=>h(uWb(d),{...u,method:"GET"}),pWb=()=>"/journal-entries",Gub=async(d,u)=>h(pWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),mWb=d=>`/journal-entries/${d}`,Vub=async(d,u)=>h(mWb(d),{...u,method:"GET"}),xWb=d=>`/journal-entries/${d}`,Kub=async(d,u,g)=>h(xWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),gWb=d=>`/journal-entries/${d}`,Zub=async(d,u)=>h(gWb(d),{...u,method:"DELETE"}),yWb=()=>"/vendor-tax-profiles",qub=async d=>h(yWb(),{...d,method:"GET"}),OWb=d=>`/vendor-tax-profiles/${d}`,Wub=async(d,u,g)=>h(OWb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),vWb=d=>`/us-tax-years/${d}`,Yub=async(d,u)=>h(vWb(d),{...u,method:"GET"}),hWb=d=>`/us-tax-years/${d}/export`,$ub=async(d,u)=>h(hWb(d),{...u,method:"GET"});var Dn={listEmployees:b(Ae,1),registerEmployee:b(Fe,1),getEmployee:b(ke,1),modifyEmployee:b(je,2),archiveEmployee:b(He,1),getEmployeeAttendance:b(Le,2),replaceEmployeeAttendance:b(Ge,3),listEmployeeCompensation:b(cub,1),registerEmployeeCompensation:b(uub,2),modifyEmployeeCompensation:b(pub,3),removeEmployeeCompensation:b(mub,2),listFixedAssets:b(xub,1),registerFixedAsset:b(gub,1),getFixedAssetRegister:b(yub,1),exportFixedAssetRegister:b(Oub,1),getFixedAsset:b(vub,2),modifyFixedAsset:b(hub,2),archiveFixedAsset:b(bub,1),disposeFixedAsset:b(Sub,2),undoFixedAssetDisposal:b(fub,1),getFixedAssetSchedule:b(zub,1),resolvePayrollParameters:b(Ve,1),getPayrollParameterHistory:b(Ke,1),setPayrollParameterOverride:b(Ze,3),draftPayrollRun:b(Iub,1),listPayrollRuns:b(Bub,1),getPayrollRun:b(Eub,1),discardPayrollRun:b(Tub,1),recomputePayrollRun:b(Dub,2),approvePayrollRun:b(Rub,1),reopenPayrollRun:b(_ub,1),markPayrollRunPaid:dub(b(Nub,2),["paid_at"]),exportPayrollRun:b(Mub,1),preview:b(qe,1),draftVatReturn:b(We,1),listVatReturns:b(Ye,1),getVatReturn:b($e,1),update:b(Uub,2),recomputeVatReturn:b(Qe,1),approveVatReturn:b(Je,1),submitVatReturn:b(Xe,2),reopenVatReturn:b(et,1),exportVatReturn:b(tt,2),listFilings:b(nt,1),completeFiling:b(st,2),reopenFiling:b(ot,1),dismissFiling:b(it,2),listAccountFilingsCalendar:b(at,1),listLedgerAccounts:b(Pub,0),getTrialBalance:b(Cub,1),getProfitAndLossReport:b(wub,1),getBalanceSheet:b(Aub,1),listLedgerEntries:b(Fub,1),listBankReconciliations:b(kub,1),markBankReconciled:b(jub,3),reopenBankReconciliation:b(Hub,2),listJournalEntries:b(Lub,1),recordJournalEntry:b(Gub,1),getJournalEntry:b(Vub,1),reviseJournalEntry:b(Kub,2),archiveJournalEntry:b(Zub,1),listVendorTaxProfiles:b(qub,0),setVendorTaxProfile:b(Wub,2),getUsTaxYearWorksheet:b(Yub,1),exportUsTaxYearWorksheet:b($ub,1)};var bWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/activities?${g}`:"/activities"},Qub=async(d,u)=>h(bWb(d),{...u,method:"GET"});var Rn={list:ne(Qub)};var SWb=d=>`/advance-invoices/${d}/nav/retry`,Jub=async(d,u)=>h(SWb(d),{...u,method:"POST"}),fWb=d=>`/advance-invoices/${d}/nav/reconcile`,Xub=async(d,u)=>h(fWb(d),{...u,method:"POST"}),zWb=d=>`/advance-invoices/${d}/nav/resolve`,epb=async(d,u,g)=>h(zWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),IWb=d=>`/advance-invoices/${d}/nav/annulment`,tpb=async(d,u,g)=>h(IWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),BWb=d=>`/advance-invoices/shareable/${d}`,npb=async(d,u)=>h(BWb(d),{...u,method:"GET"}),EWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/advance-invoices/shareable/${d}/html?${T}`:`/advance-invoices/shareable/${d}/html`},spb=async(d,u,g)=>h(EWb(d,u),{...g,method:"GET"}),TWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/advance-invoices/shareable/${d}/pdf?${T}`:`/advance-invoices/shareable/${d}/pdf`},opb=async(d,u,g)=>h(TWb(d,u),{...g,method:"GET"}),DWb=d=>`/advance-invoices/shareable/${d}/eslog`,ipb=async(d,u)=>h(DWb(d),{...u,method:"GET"}),RWb=()=>"/advance-invoices",apb=async(d,u)=>h(RWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_Wb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},rpb=async(d,u)=>h(_Wb(d),{...u,method:"GET"}),NWb=()=>"/advance-invoices/custom",lpb=async(d,u)=>h(NWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/advance-invoices/${d}?${T}`:`/advance-invoices/${d}`},dpb=async(d,u,g)=>h(MWb(d,u),{...g,method:"GET"}),UWb=d=>`/advance-invoices/${d}`,cpb=async(d,u,g)=>h(UWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),PWb=d=>`/advance-invoices/${d}/versions`,upb=async(d,u)=>h(PWb(d),{...u,method:"GET"}),CWb=(d,u)=>`/advance-invoices/${d}/versions/${u}`,ppb=async(d,u,g)=>h(CWb(d,u),{...g,method:"GET"}),wWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},mpb=async(d,u,g)=>h(wWb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),AWb=d=>`/advance-invoices/${d}/void`,xpb=async(d,u,g)=>h(AWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var _n={retryAdvanceInvoiceNav:b(Jub,1),reconcileAdvanceInvoiceNav:b(Xub,1),resolveAdvanceInvoiceNav:b(epb,2),annulAdvanceInvoiceNav:b(tpb,2),getShareableAdvanceInvoice:b(npb,1),getShareableAdvanceInvoiceHtml:b(spb,2),getShareableAdvanceInvoicePdf:b(opb,2),getShareableAdvanceInvoiceEslog:b(ipb,1),create:b(apb,1),list:ne(rpb),createCustom:b(lpb,1),get:b(dpb,2),update:b(cpb,2),getVersions:b(upb,1),getVersion:b(ppb,2),renderAdvanceInvoicePreview:b(mpb,2),void:b(xpb,2)};var FWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/business-units?${g}`:"/business-units"},gpb=async(d,u)=>h(FWb(d),{...u,method:"GET"}),kWb=()=>"/business-units",ypb=async(d,u)=>h(kWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/business-units/${d}?${T}`:`/business-units/${d}`},Opb=async(d,u,g)=>h(jWb(d,u),{...g,method:"GET"}),HWb=d=>`/business-units/${d}`,vpb=async(d,u,g)=>h(HWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),LWb=d=>`/business-units/${d}`,hpb=async(d,u)=>h(LWb(d),{...u,method:"DELETE"});var Nn={list:ne(gpb),create:b(ypb,1),get:b(Opb,2),update:b(vpb,2),delete:b(hpb,1)};var GWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},bpb=async(d,u)=>h(GWb(d),{...u,method:"GET"}),VWb=()=>"/company-registry/countries",Spb=async d=>h(VWb(),{...d,method:"GET"});var Mn={searchCompanyRegistry:b(bpb,1),list:b(Spb,0)};var KWb=d=>`/credit-notes/${d}/nav/retry`,fpb=async(d,u)=>h(KWb(d),{...u,method:"POST"}),ZWb=d=>`/credit-notes/${d}/nav/reconcile`,zpb=async(d,u)=>h(ZWb(d),{...u,method:"POST"}),qWb=d=>`/credit-notes/${d}/nav/resolve`,Ipb=async(d,u,g)=>h(qWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WWb=d=>`/credit-notes/${d}/nav/annulment`,Bpb=async(d,u,g)=>h(WWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),YWb=d=>`/credit-notes/shareable/${d}`,Epb=async(d,u)=>h(YWb(d),{...u,method:"GET"}),$Wb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/credit-notes/shareable/${d}/html?${T}`:`/credit-notes/shareable/${d}/html`},Tpb=async(d,u,g)=>h($Wb(d,u),{...g,method:"GET"}),QWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/credit-notes/shareable/${d}/pdf?${T}`:`/credit-notes/shareable/${d}/pdf`},Dpb=async(d,u,g)=>h(QWb(d,u),{...g,method:"GET"}),JWb=d=>`/credit-notes/shareable/${d}/eslog`,Rpb=async(d,u)=>h(JWb(d),{...u,method:"GET"}),XWb=d=>`/credit-notes/${d}/ksef/recover`,_pb=async(d,u)=>h(XWb(d),{...u,method:"POST"}),e6b=d=>`/credit-notes/${d}/ksef`,Npb=async(d,u)=>h(e6b(d),{...u,method:"GET"}),t6b=d=>`/credit-notes/${d}/ksef/submit`,Mpb=async(d,u)=>h(t6b(d),{...u,method:"POST"}),n6b=d=>`/credit-notes/${d}/ksef/upo`,Upb=async(d,u)=>h(n6b(d),{...u,method:"GET"}),s6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},Ppb=async(d,u,g)=>h(s6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),o6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},Cpb=async(d,u)=>h(o6b(d),{...u,method:"GET"}),i6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},wpb=async(d,u,g)=>h(i6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),a6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/credit-notes/${d}?${T}`:`/credit-notes/${d}`},Apb=async(d,u,g)=>h(a6b(d,u),{...g,method:"GET"}),r6b=d=>`/credit-notes/${d}`,Fpb=async(d,u,g)=>h(r6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),l6b=d=>`/credit-notes/${d}/xrechnung`,kpb=async(d,u)=>h(l6b(d),{...u,method:"GET"}),d6b=d=>`/credit-notes/${d}/zugferd`,jpb=async(d,u)=>h(d6b(d),{...u,method:"GET"}),c6b=d=>`/credit-notes/${d}/versions`,Hpb=async(d,u)=>h(c6b(d),{...u,method:"GET"}),u6b=(d,u)=>`/credit-notes/${d}/versions/${u}`,Lpb=async(d,u,g)=>h(u6b(d,u),{...g,method:"GET"}),p6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},Gpb=async(d,u,g)=>h(p6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),m6b=d=>`/credit-notes/${d}/fiscalize`,Vpb=async(d,u)=>h(m6b(d),{...u,method:"POST"}),x6b=d=>`/credit-notes/${d}/void`,Kpb=async(d,u,g)=>h(x6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});function Zpb(d){let u=b(d);function g(T,z,M){let ve=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(Oe=>Oe in z),fe=ve?void 0:z,Ee=ve?{...z,...M}:M;return u(T,fe??{},Ee??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Un={retryCreditNoteNav:b(fpb,1),reconcileCreditNoteNav:b(zpb,1),resolveCreditNoteNav:b(Ipb,2),annulCreditNoteNav:b(Bpb,2),getShareableCreditNote:b(Epb,1),getShareableCreditNoteHtml:b(Tpb,2),getShareableCreditNotePdf:b(Dpb,2),getShareableCreditNoteEslog:b(Rpb,1),recoverCreditNoteFromKsef:b(_pb,1),getCreditNoteKsefState:b(Npb,1),submitCreditNoteToKsef:b(Mpb,1),getCreditNoteKsefUpo:b(Upb,1),create:Zpb(Ppb),list:ne(Cpb),createCustom:Zpb(wpb),get:b(Apb,2),update:b(Fpb,2),downloadCreditNoteXRechnung:b(kpb,1),downloadCreditNoteZugferd:b(jpb,1),getVersions:b(Hpb,1),getVersion:b(Lpb,2),renderCreditNotePreview:b(Gpb,2),fiscalizeCreditNote:b(Vpb,1),void:b(Kpb,2)};var g6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},qpb=async(d,u)=>h(g6b(d),{...u,method:"GET"});var Pn={getExchangeRate:b(qpb,1)};var y6b=()=>"/customers",Wpb=async(d,u)=>h(y6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),O6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/customers?${g}`:"/customers"},Ypb=async(d,u)=>h(O6b(d),{...u,method:"GET"}),v6b=d=>`/customers/${d}`,$pb=async(d,u)=>h(v6b(d),{...u,method:"GET"}),h6b=d=>`/customers/${d}`,Qpb=async(d,u,g)=>h(h6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),b6b=d=>`/customers/${d}`,Jpb=async(d,u)=>h(b6b(d),{...u,method:"DELETE"}),S6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/customers/${d}/sold-items?${T}`:`/customers/${d}/sold-items`},Xpb=async(d,u,g)=>h(S6b(d,u),{...g,method:"GET"}),f6b=d=>`/customers/${d}/restore`,emb=async(d,u)=>h(f6b(d),{...u,method:"POST"}),z6b=d=>`/customers/${d}/permanent`,tmb=async(d,u)=>h(z6b(d),{...u,method:"DELETE"});var Cn={create:b(Wpb,1),list:ne(Ypb),get:b($pb,1),update:b(Qpb,2),delete:b(Jpb,1),listCustomerSoldItems:b(Xpb,2),restoreCustomer:b(emb,1),permanentDeleteCustomer:b(tmb,1)};var I6b=d=>`/delivery-notes/shareable/${d}`,nmb=async(d,u)=>h(I6b(d),{...u,method:"GET"}),B6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/delivery-notes/shareable/${d}/html?${T}`:`/delivery-notes/shareable/${d}/html`},smb=async(d,u,g)=>h(B6b(d,u),{...g,method:"GET"}),E6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/delivery-notes/shareable/${d}/pdf?${T}`:`/delivery-notes/shareable/${d}/pdf`},omb=async(d,u,g)=>h(E6b(d,u),{...g,method:"GET"}),T6b=()=>"/delivery-notes",imb=async(d,u)=>h(T6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),D6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},amb=async(d,u)=>h(D6b(d),{...u,method:"GET"}),R6b=()=>"/delivery-notes/custom",rmb=async(d,u)=>h(R6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/delivery-notes/${d}?${T}`:`/delivery-notes/${d}`},lmb=async(d,u,g)=>h(_6b(d,u),{...g,method:"GET"}),N6b=d=>`/delivery-notes/${d}`,dmb=async(d,u,g)=>h(N6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M6b=d=>`/delivery-notes/${d}/versions`,cmb=async(d,u)=>h(M6b(d),{...u,method:"GET"}),U6b=(d,u)=>`/delivery-notes/${d}/versions/${u}`,umb=async(d,u,g)=>h(U6b(d,u),{...g,method:"GET"}),P6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},pmb=async(d,u,g)=>h(P6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),C6b=d=>`/delivery-notes/${d}/void`,mmb=async(d,u,g)=>h(C6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),w6b=d=>`/delivery-notes/${d}/sign`,xmb=async(d,u,g)=>h(w6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),A6b=d=>`/delivery-notes/${d}/quantities`,gmb=async(d,u,g)=>h(A6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var wn={getShareableDeliveryNote:b(nmb,1),getShareableDeliveryNoteHtml:b(smb,2),getShareableDeliveryNotePdf:b(omb,2),create:b(imb,1),list:ne(amb),createCustom:b(rmb,1),get:b(lmb,2),update:b(dmb,2),getVersions:b(cmb,1),getVersion:b(umb,2),renderDeliveryNotePreview:b(pmb,2),void:b(mmb,2),signDeliveryNote:b(xmb,2),setDeliveryNoteQuantities:b(gmb,2)};var F6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},ymb=async(d,u)=>h(F6b(d),{...u,method:"GET"}),k6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},Omb=async(d,u,g)=>h(k6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),j6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/finalize?${T}`:`/documents/${d}/finalize`},vmb=async(d,u,g,T)=>h(j6b(d,g),{...T,method:"POST",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),H6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/fiscalize?${T}`:`/documents/${d}/fiscalize`},hmb=async(d,u,g,T)=>h(H6b(d,g),{...T,method:"POST",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),L6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/register-output?${T}`:`/documents/${d}/register-output`},bmb=async(d,u,g)=>h(L6b(d,u),{...g,method:"POST"}),G6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}?${T}`:`/documents/${d}`},Smb=async(d,u,g)=>h(G6b(d,u),{...g,method:"DELETE"}),V6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/restore?${T}`:`/documents/${d}/restore`},fmb=async(d,u,g)=>h(V6b(d,u),{...g,method:"POST"}),K6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/permanent?${T}`:`/documents/${d}/permanent`},zmb=async(d,u,g)=>h(K6b(d,u),{...g,method:"DELETE"}),Z6b=d=>`/documents/${d}/send`,Imb=async(d,u,g)=>h(Z6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),q6b=d=>`/documents/${d}/share`,Bmb=async(d,u)=>h(q6b(d),{...u,method:"POST"}),W6b=d=>`/documents/${d}/share`,Emb=async(d,u)=>h(W6b(d),{...u,method:"GET"}),Y6b=d=>`/documents/${d}/share`,Tmb=async(d,u)=>h(Y6b(d),{...u,method:"DELETE"});var An=b(hmb,3);function $6b(d){return !!d&&typeof d=="object"&&"type"in d}function Fn(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 Q6b=async(d,u,g,T)=>{if(Fn(u))return An(d,void 0,void 0,u);if($6b(u))return An(d,void 0,u,g);let z=Fn(g)?void 0:g,M=Fn(g)?g:T;return An(d,u,z,M)},kn={getNextNumber:b(ymb,1),calculateDocumentPreview:b(Omb,2),finalizeDocument:b(vmb,3),fiscalizeDocument:Q6b,registerDocumentOutput:b(bmb,2),delete:b(Smb,2),restoreDocument:b(fmb,2),permanentDeleteDocument:b(zmb,2),sendDocument:b(Imb,2),shareDocument:b(Bmb,1),getShareableId:b(Emb,1),unshareDocument:b(Tmb,1)};var J6b=()=>"/e-invoicing/fina-eracun/settings",Dmb=async d=>h(J6b(),{...d,method:"GET"}),X6b=()=>"/e-invoicing/fina-eracun/settings",Rmb=async(d,u)=>h(X6b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),e7b=()=>"/e-invoicing/fina-eracun/enrollment/verify",_mb=async d=>h(e7b(),{...d,method:"POST"}),t7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/fina-eracun/enrollment/authorization-form?${g}`:"/e-invoicing/fina-eracun/enrollment/authorization-form"},Nmb=async(d,u)=>h(t7b(d),{...u,method:"GET"}),n7b=()=>"/e-invoicing/settings",Mmb=async d=>h(n7b(),{...d,method:"GET"}),s7b=()=>"/e-invoicing/settings",Umb=async(d,u)=>h(s7b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),o7b=()=>"/e-invoicing/enrollment/sync",Pmb=async d=>h(o7b(),{...d,method:"POST"}),i7b=()=>"/e-invoicing/enrollment/verification-link",Cmb=async d=>h(i7b(),{...d,method:"POST"}),a7b=()=>"/e-invoicing/enrollment/authorize",wmb=async(d,u)=>h(a7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),r7b=()=>"/e-invoicing/enrollment/disconnect",Amb=async d=>h(r7b(),{...d,method:"POST"}),l7b=()=>"/e-invoicing/france/directory/lookup",Fmb=async(d,u)=>h(l7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),d7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},kmb=async(d,u)=>h(d7b(d),{...u,method:"GET"}),c7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/e-invoicing/received-documents/${d}/download?${T}`:`/e-invoicing/received-documents/${d}/download`},jmb=async(d,u,g)=>h(c7b(d,u),{...g,method:"GET"}),u7b=d=>`/e-invoicing/received-documents/${d}/accept`,Hmb=async(d,u)=>h(u7b(d),{...u,method:"POST"}),p7b=d=>`/e-invoicing/received-documents/${d}/lifecycle`,Lmb=async(d,u,g)=>h(p7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),m7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},Gmb=async(d,u)=>h(m7b(d),{...u,method:"GET"}),x7b=d=>`/e-invoicing/reporting-records/${d}/retry`,Vmb=async(d,u)=>h(x7b(d),{...u,method:"POST"}),g7b=()=>"/e-invoicing/supplier",Kmb=async(d,u)=>h(g7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y7b=()=>"/e-invoicing/supplier",Zmb=async d=>h(y7b(),{...d,method:"GET"});var O7b=()=>"/e-invoicing/recipients/check",qmb=async(d,u)=>h(O7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v7b=()=>"/e-invoicing/customer-search",Wmb=async(d,u)=>h(v7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),h7b=d=>`/e-invoicing/documents/${d}/send`,Ymb=async(d,u,g)=>h(h7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),b7b=(d,u)=>`/e-invoicing/send/${d}/${u}`,$mb=async(d,u,g,T)=>h(b7b(d,u),{...T,method:"POST",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(g)}),S7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},Qmb=async(d,u)=>h(S7b(d),{...u,method:"GET"}),f7b=d=>`/e-invoicing/submissions/${d}`,jn=async(d,u)=>h(f7b(d),{...u,method:"GET"}),z7b=d=>`/e-invoicing/submissions/${d}/retry`,Hn=async(d,u)=>h(z7b(d),{...u,method:"POST"});var Ln={getEInvoicingSubmission:b(jn,1),retryEInvoicingSubmission:b(Hn,1),getFinaEracunSettings:b(Dmb,0),updateFinaEracunSettings:b(Rmb,1),verifyFinaEracunEnrollment:b(_mb,0),getFinaEracunAuthorizationForm:b(Nmb,1),list:b(Mmb,0),update:b(Umb,1),syncEInvoicingEnrollment:b(Pmb,0),create:b(Cmb,0),createEInvoicingEnrollmentAuthorization:b(wmb,1),disconnectEInvoicingEnrollment:b(Amb,0),lookupFranceEInvoicingDirectory:b(Fmb,1),listReceivedEInvoices:b(kmb,1),downloadReceivedEInvoice:b(jmb,2),acceptReceivedEInvoice:b(Hmb,1),sendReceivedEInvoiceLifecycle:b(Lmb,2),listFrenchEReportingRecords:b(Gmb,1),retryFrenchEReportingRecord:b(Vmb,1),registerEInvoicingSupplier:b(Kmb,1),getEInvoicingSupplier:b(Zmb,0),checkEInvoicingRecipient:b(qmb,1),searchEInvoicingCustomer:b(Wmb,1),sendEInvoicingDocument:b(Ymb,2),sendEInvoice:b($mb,3),listEInvoicingSubmissions:b(Qmb,1),get:b(jn,1),retryEInvoicingSubmissionById:b(Hn,1)};var I7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/eslog/${d}/validate?${T}`:`/eslog/${d}/validate`},Jmb=async(d,u,g)=>h(I7b(d,u),{...g,method:"POST"}),B7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/eslog/${d}/download?${T}`:`/eslog/${d}/download`},Xmb=async(d,u,g)=>h(B7b(d,u),{...g,method:"GET"});var Gn={validate:b(Jmb,2),download:b(Xmb,2)};var E7b=()=>"/fiscalization/eet/settings/certificate",exb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(E7b(),{...u,method:"POST",body:g})},T7b=()=>"/fiscalization/eet/settings/certificate",txb=async d=>h(T7b(),{...d,method:"GET"}),D7b=()=>"/fiscalization/eet/settings/certificate",nxb=async d=>h(D7b(),{...d,method:"DELETE"});var Vn={uploadEetCertificate:b(exb,1),getEetCertificate:b(txb,0),delete:b(nxb,0)};var R7b=()=>"/fiscalization/eet/settings",sxb=async d=>h(R7b(),{...d,method:"GET"}),_7b=()=>"/fiscalization/eet/settings",oxb=async(d,u)=>h(_7b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Kn={list:b(sxb,0),update:b(oxb,1)};var N7b=()=>"/email/send",ixb=async(d,u)=>h(N7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zn={sendEmail:b(ixb,1)};var M7b=d=>`/entities/${d}/nav`,axb=async(d,u)=>h(M7b(d),{...u,method:"GET"}),U7b=d=>`/entities/${d}/nav`,rxb=async(d,u,g)=>h(U7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),P7b=d=>`/entities/${d}/nav/credentials`,lxb=async(d,u,g)=>h(P7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),C7b=d=>`/entities/${d}/nav/credentials`,dxb=async(d,u)=>h(C7b(d),{...u,method:"DELETE"}),w7b=d=>`/entities/${d}/nav/credentials/verify`,cxb=async(d,u)=>h(w7b(d),{...u,method:"POST"}),A7b=d=>`/entities/${d}/ksef`,uxb=async(d,u)=>h(A7b(d),{...u,method:"GET"}),F7b=d=>`/entities/${d}/ksef`,pxb=async(d,u,g)=>h(F7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),k7b=d=>`/entities/${d}/ksef/credentials`,mxb=async(d,u,g)=>h(k7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),j7b=d=>`/entities/${d}/ksef/credentials`,xxb=async(d,u)=>h(j7b(d),{...u,method:"DELETE"}),H7b=()=>"/entities",gxb=async(d,u)=>h(H7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/entities?${g}`:"/entities"},yxb=async(d,u)=>h(L7b(d),{...u,method:"GET"}),G7b=d=>`/entities/${d}`,Oxb=async(d,u)=>h(G7b(d),{...u,method:"GET"}),V7b=d=>`/entities/${d}`,vxb=async(d,u,g)=>h(V7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),K7b=d=>`/entities/${d}/enable`,hxb=async(d,u)=>h(K7b(d),{...u,method:"POST"}),Z7b=d=>`/entities/${d}/disable`,bxb=async(d,u)=>h(Z7b(d),{...u,method:"POST"}),q7b=d=>`/entities/${d}/email-sender`,Sxb=async(d,u)=>h(q7b(d),{...u,method:"GET"}),W7b=d=>`/entities/${d}/email-sender`,fxb=async(d,u,g)=>h(W7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Y7b=d=>`/entities/${d}/email-sender`,zxb=async(d,u)=>h(Y7b(d),{...u,method:"DELETE"}),$7b=d=>`/entities/${d}/email-sender/recheck`,Ixb=async(d,u)=>h($7b(d),{...u,method:"POST"});var qn={retrieveEntityNavSettings:b(axb,1),modifyEntityNavSettings:b(rxb,2),storeEntityNavCredentials:b(lxb,2),removeEntityNavCredentials:b(dxb,1),verifyEntityNavCredentials:b(cxb,1),getEntityKsefSetup:b(uxb,1),putEntityKsefSettings:b(pxb,2),putEntityKsefCredential:b(mxb,2),removeEntityKsefCredential:b(xxb,1),create:b(gxb,1),list:ne(yxb),get:b(Oxb,1),update:b(vxb,2),enableEntity:b(hxb,1),disableEntity:b(bxb,1),getEntityEmailSender:b(Sxb,1),putEntityEmailSender:b(fxb,2),deleteEntityEmailSender:b(zxb),recheckEntityEmailSender:b(Ixb,1)};var Q7b=()=>"/entities/api-keys",Bxb=async d=>h(Q7b(),{...d,method:"GET"}),J7b=()=>"/entities/api-keys",Exb=async(d,u)=>h(J7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X7b=d=>`/entities/api-keys/${d}`,Txb=async(d,u)=>h(X7b(d),{...u,method:"DELETE"}),e9b=()=>"/entities/api-keys/revoke-integration",Dxb=async d=>h(e9b(),{...d,method:"POST"});var Wn={listEntityApiKeys:b(Bxb,0),create:b(Exb,1),delete:b(Txb,1),revokeEntityApiKeyIntegration:b(Dxb,0)};var t9b=()=>"/entities/invitations",Rxb=async d=>h(t9b(),{...d,method:"GET"}),n9b=d=>`/entities/invitations/${d}`,_xb=async(d,u)=>h(n9b(d),{...u,method:"GET"}),s9b=d=>`/entities/invitations/${d}`,Nxb=async(d,u)=>h(s9b(d),{...u,method:"DELETE"}),o9b=d=>`/entities/invitations/${d}/resend`,Mxb=async(d,u)=>h(o9b(d),{...u,method:"POST"}),i9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},Uxb=async(d,u)=>h(i9b(d),{...u,method:"GET"}),a9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},Pxb=async(d,u,g)=>h(a9b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Yn={listEntityInvitations:b(Rxb,0),getEntityInvitation:b(_xb,1),cancelEntityInvitation:b(Nxb,1),resendEntityInvitation:b(Mxb,1),preview:b(Uxb,1),acceptEntityInvitation:b(Pxb,2)};var r9b=()=>"/stats/query",Cxb=async(d,u)=>h(r9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var $n={queryEntityStats:b(Cxb,1)};var l9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},wxb=async(d,u)=>h(l9b(d),{...u,method:"GET"}),d9b=()=>"/entities/users",Axb=async(d,u)=>h(d9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),c9b=()=>"/entities/users/access",Fxb=async d=>h(c9b(),{...d,method:"GET"}),u9b=d=>`/entities/users/${d}`,kxb=async(d,u,g)=>h(u9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),p9b=d=>`/entities/users/${d}`,jxb=async(d,u)=>h(p9b(d),{...u,method:"DELETE"}),m9b=d=>`/entities/users/${d}/token`,Hxb=async(d,u,g)=>h(m9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Qn={list:ne(wxb),addEntityUser:b(Axb,1),getAccess:b(Fxb,0),update:b(kxb,2),removeEntityUser:b(jxb,1),generateEntityUserToken:b(Hxb,2)};var x9b=d=>`/estimates/shareable/${d}`,Lxb=async(d,u)=>h(x9b(d),{...u,method:"GET"}),g9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/estimates/shareable/${d}/html?${T}`:`/estimates/shareable/${d}/html`},Gxb=async(d,u,g)=>h(g9b(d,u),{...g,method:"GET"}),y9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/estimates/shareable/${d}/pdf?${T}`:`/estimates/shareable/${d}/pdf`},Vxb=async(d,u,g)=>h(y9b(d,u),{...g,method:"GET"}),O9b=d=>`/estimates/shareable/${d}/eslog`,Kxb=async(d,u)=>h(O9b(d),{...u,method:"GET"}),v9b=()=>"/estimates",Zxb=async(d,u)=>h(v9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),h9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/estimates?${g}`:"/estimates"},qxb=async(d,u)=>h(h9b(d),{...u,method:"GET"}),b9b=()=>"/estimates/custom",Wxb=async(d,u)=>h(b9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),S9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/estimates/${d}?${T}`:`/estimates/${d}`},Yxb=async(d,u,g)=>h(S9b(d,u),{...g,method:"GET"}),f9b=d=>`/estimates/${d}`,$xb=async(d,u,g)=>h(f9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),z9b=d=>`/estimates/${d}/versions`,Qxb=async(d,u)=>h(z9b(d),{...u,method:"GET"}),I9b=(d,u)=>`/estimates/${d}/versions/${u}`,Jxb=async(d,u,g)=>h(I9b(d,u),{...g,method:"GET"}),B9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},Xxb=async(d,u,g)=>h(B9b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Jn={getShareableEstimate:b(Lxb,1),getShareableEstimateHtml:b(Gxb,2),getShareableEstimatePdf:b(Vxb,2),getShareableEstimateEslog:b(Kxb,1),create:b(Zxb,1),list:ne(qxb),createCustom:b(Wxb,1),get:b(Yxb,2),update:b($xb,2),getVersions:b(Qxb,1),getVersion:b(Jxb,2),renderEstimatePreview:b(Xxb,2)};var E9b=()=>"/expenses",egb=async(d,u)=>h(E9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),T9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses?${g}`:"/expenses"},tgb=async(d,u)=>h(T9b(d),{...u,method:"GET"}),D9b=()=>"/expenses/custom",ngb=async(d,u)=>h(D9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),R9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},sgb=async(d,u)=>h(R9b(d),{...u,method:"GET"}),_9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},ogb=async(d,u)=>h(_9b(d),{...u,method:"GET"}),N9b=()=>"/expenses/recognition/settings",igb=async d=>h(N9b(),{...d,method:"GET"}),M9b=()=>"/expenses/recognition/settings",agb=async(d,u)=>h(M9b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),U9b=()=>"/expenses/recognition/backfill",rgb=async(d,u)=>h(U9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),P9b=()=>"/expenses/recognitions",lgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(P9b(),{...u,method:"POST",body:g})},C9b=d=>`/expenses/recognitions/${d}`,dgb=async(d,u)=>h(C9b(d),{...u,method:"GET"}),w9b=d=>`/expenses/recognitions/${d}/retry`,cgb=async(d,u)=>h(w9b(d),{...u,method:"POST"}),A9b=()=>"/expenses/inbound-email",ugb=async d=>h(A9b(),{...d,method:"GET"}),F9b=()=>"/expenses/inbound-email",pgb=async d=>h(F9b(),{...d,method:"POST"}),k9b=()=>"/expenses/inbound-email",mgb=async d=>h(k9b(),{...d,method:"DELETE"}),j9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},xgb=async(d,u)=>h(j9b(d),{...u,method:"GET"}),H9b=()=>"/expenses/imports/shareable/preview",ggb=async(d,u)=>h(H9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L9b=()=>"/expenses/imports/shareable",ygb=async(d,u)=>h(L9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),G9b=d=>`/expenses/${d}/recognition`,Ogb=async(d,u)=>h(G9b(d),{...u,method:"GET"}),V9b=d=>`/expenses/${d}`,vgb=async(d,u)=>h(V9b(d),{...u,method:"GET"}),K9b=d=>`/expenses/${d}`,hgb=async(d,u,g)=>h(K9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Z9b=d=>`/expenses/${d}`,bgb=async(d,u)=>h(Z9b(d),{...u,method:"DELETE"}),q9b=d=>`/expenses/${d}/void`,Sgb=async(d,u)=>h(q9b(d),{...u,method:"POST"}),W9b=d=>`/expenses/${d}/restore`,fgb=async(d,u)=>h(W9b(d),{...u,method:"POST"}),Y9b=d=>`/expenses/${d}/attachments`,zgb=async(d,u,g)=>{let T=new FormData;return T.append("file",u.file),h(Y9b(d),{...g,method:"POST",body:T})},$9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/expenses/${d}/attachments?${T}`:`/expenses/${d}/attachments`},Igb=async(d,u,g)=>h($9b(d,u),{...g,method:"GET"}),Q9b=(d,u)=>`/expenses/${d}/attachments/${u}`,Bgb=async(d,u,g)=>h(Q9b(d,u),{...g,method:"DELETE"}),J9b=d=>`/expenses/${d}/payments`,Egb=async(d,u)=>h(J9b(d),{...u,method:"GET"}),X9b=d=>`/expenses/${d}/payments`,Tgb=async(d,u,g)=>h(X9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Xn={create:b(egb,1),list:ne(tgb),createCustom:b(ngb,1),exportExpenses:b(sgb,1),getExpenseCategoryReport:b(ogb,1),getRecognitionSettings:b(igb,0),updateRecognitionSettings:b(agb,1),backfillExpenseRecognition:b(rgb,1),createRecognition:b(lgb,1),getRecognition:b(dgb,1),retryRecognition:b(cgb,1),getExpenseInboundEmail:b(ugb,0),rotateExpenseInboundEmail:b(pgb,0),disableExpenseInboundEmail:b(mgb,0),listExpenseInboundEmailMessages:b(xgb,1),previewImportFromShareableLink:b(ggb,1),importFromShareableLink:b(ygb,1),getLatestRecognition:b(Ogb,1),get:b(vgb,1),update:b(hgb,2),delete:b(bgb,1),void:b(Sgb,1),restoreExpense:b(fgb,1),uploadExpenseAttachment:b(zgb,2),getExpenseAttachments:b(Igb,2),deleteExpenseAttachment:b(Bgb,2),getExpensePayments:b(Egb,1),createExpensePayment:b(Tgb,2)};var e8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},Dgb=async(d,u)=>h(e8b(d),{...u,method:"GET"}),t8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},Rgb=async(d,u)=>h(t8b(d),{...u,method:"GET"}),n8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},_gb=async(d,u)=>h(n8b(d),{...u,method:"GET"}),s8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},Ngb=async(d,u)=>h(s8b(d),{...u,method:"GET"}),o8b=()=>"/documents/export/pdf",Mgb=async(d,u)=>h(o8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),i8b=d=>`/documents/export/pdf/${d}`,Ugb=async(d,u)=>h(i8b(d),{...u,method:"GET"}),a8b=d=>`/documents/export/pdf/${d}/download`,Pgb=async(d,u)=>h(a8b(d),{...u,method:"GET"}),r8b=()=>"/documents/export/eslog",Cgb=async(d,u)=>h(r8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),l8b=d=>`/documents/export/eslog/${d}`,wgb=async(d,u)=>h(l8b(d),{...u,method:"GET"}),d8b=d=>`/documents/export/eslog/${d}/download`,Agb=async(d,u)=>h(d8b(d),{...u,method:"GET"});var es={exportDocuments:b(Dgb,1),exportSalesPerItem:b(Rgb,1),exportInventory:b(_gb,1),exportRevenueByCategory:b(Ngb,1),startPdfExport:b(Mgb,1),getPdfStatus:b(Ugb,1),downloadPdfExport:b(Pgb,1),startEslogExport:b(Cgb,1),getEslogStatus:b(wgb,1),downloadEslogExport:b(Agb,1)};var c8b=()=>"/files",Fgb=async(d,u)=>{let g=new FormData;return 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(c8b(),{...u,method:"POST",body:g})},u8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/files?${g}`:"/files"},kgb=async(d,u)=>h(u8b(d),{...u,method:"GET"}),p8b=d=>`/files/${d}`,jgb=async(d,u)=>h(p8b(d),{...u,method:"GET"}),m8b=d=>`/files/${d}`,Hgb=async(d,u)=>h(m8b(d),{...u,method:"DELETE"});var ts={uploadFile:b(Fgb,1),list:ne(kgb),get:b(jgb,1),delete:b(Hgb,1)};var x8b=()=>"/fiscalization/fina/settings/certificate",Lgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(x8b(),{...u,method:"POST",body:g})},g8b=()=>"/fiscalization/fina/settings/certificate",Ggb=async d=>h(g8b(),{...d,method:"GET"}),y8b=()=>"/fiscalization/fina/settings/certificate",Vgb=async d=>h(y8b(),{...d,method:"DELETE"});var ns={uploadFinaCertificate:b(Lgb,1),getFinaCertificate:b(Ggb,0),delete:b(Vgb,0)};var O8b=d=>`/fiscalization/fina/premises/${d}/devices`,Kgb=async(d,u)=>h(O8b(d),{...u,method:"GET"}),v8b=d=>`/fiscalization/fina/premises/${d}/devices`,Zgb=async(d,u,g)=>h(v8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),h8b=d=>`/fiscalization/fina/devices/${d}`,qgb=async(d,u)=>h(h8b(d),{...u,method:"GET"}),b8b=d=>`/fiscalization/fina/devices/${d}`,Wgb=async(d,u,g)=>h(b8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),S8b=d=>`/fiscalization/fina/devices/${d}`,Ygb=async(d,u)=>h(S8b(d),{...u,method:"DELETE"});var ss={listFinaDevices:b(Kgb,1),registerFinaDevice:b(Zgb,2),getFinaDevice:b(qgb,1),update:b(Wgb,2),delete:b(Ygb,1)};var f8b=()=>"/fiscalization/fina/premises",$gb=async d=>h(f8b(),{...d,method:"GET"}),z8b=()=>"/fiscalization/fina/premises",Qgb=async(d,u)=>h(z8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I8b=d=>`/fiscalization/fina/premises/${d}`,Jgb=async(d,u)=>h(I8b(d),{...u,method:"GET"}),B8b=d=>`/fiscalization/fina/premises/${d}`,Xgb=async(d,u,g)=>h(B8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),E8b=d=>`/fiscalization/fina/premises/${d}`,e0b=async(d,u)=>h(E8b(d),{...u,method:"DELETE"});var os={listFinaPremises:b($gb,0),create:b(Qgb,1),getFinaPremise:b(Jgb,1),update:b(Xgb,2),delete:b(e0b,1)};var T8b=()=>"/fiscalization/fina/settings",t0b=async d=>h(T8b(),{...d,method:"GET"}),D8b=()=>"/fiscalization/fina/settings",n0b=async(d,u)=>h(D8b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var is={list:b(t0b,0),update:b(n0b,1)};var R8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},s0b=async(d,u)=>h(R8b(d),{...u,method:"GET"}),_8b=()=>"/financial-categories",o0b=async(d,u)=>h(_8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),N8b=d=>`/financial-categories/${d}`,i0b=async(d,u,g)=>h(N8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M8b=d=>`/financial-categories/${d}`,a0b=async(d,u)=>h(M8b(d),{...u,method:"DELETE"}),U8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},r0b=async(d,u)=>h(U8b(d),{...u,method:"GET"}),P8b=()=>"/financial-categories/document-items/batch",l0b=async(d,u)=>h(P8b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),C8b=d=>`/financial-categories/document-items/${d}`,d0b=async(d,u,g)=>h(C8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var as={list:ne(s0b),create:b(o0b,1),update:b(i0b,2),delete:b(a0b,1),getRevenueByFinancialCategory:b(r0b,1),updateDocumentItemFinancialCategories:b(l0b,1),updateDocumentItemFinancialCategory:b(d0b,2)};var w8b=()=>"/fiscalization/furs/settings/certificate",c0b=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(w8b(),{...u,method:"POST",body:g})},A8b=()=>"/fiscalization/furs/settings/certificate",u0b=async d=>h(A8b(),{...d,method:"GET"}),F8b=()=>"/fiscalization/furs/settings/certificate",p0b=async d=>h(F8b(),{...d,method:"DELETE"});var rs={uploadFursCertificate:b(c0b,1),getFursCertificate:b(u0b,0),delete:b(p0b,0)};var k8b=d=>`/fiscalization/furs/premises/${d}/devices`,m0b=async(d,u)=>h(k8b(d),{...u,method:"GET"}),j8b=d=>`/fiscalization/furs/premises/${d}/devices`,x0b=async(d,u,g)=>h(j8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H8b=d=>`/fiscalization/furs/devices/${d}`,g0b=async(d,u)=>h(H8b(d),{...u,method:"GET"}),L8b=d=>`/fiscalization/furs/devices/${d}`,y0b=async(d,u,g)=>h(L8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var ls={listFursElectronicDevices:b(m0b,1),registerFursElectronicDevice:b(x0b,2),getFursElectronicDevice:b(g0b,1),update:b(y0b,2)};var G8b=()=>"/fiscalization/furs/internal-act/report.pdf",O0b=async d=>h(G8b(),{...d,method:"GET"}),V8b=()=>"/fiscalization/furs/internal-act/report.docx",v0b=async d=>h(V8b(),{...d,method:"GET"});var ds={generateFursInternalActPdf:b(O0b,0),generateFursInternalActDocx:b(v0b,0)};var K8b=()=>"/fiscalization/furs/premises",h0b=async d=>h(K8b(),{...d,method:"GET"}),Z8b=d=>`/fiscalization/furs/premises/${d}`,b0b=async(d,u)=>h(Z8b(d),{...u,method:"GET"}),q8b=d=>`/fiscalization/furs/premises/${d}`,S0b=async(d,u,g)=>h(q8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),W8b=()=>"/fiscalization/furs/premises/real-estate",f0b=async(d,u)=>h(W8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y8b=()=>"/fiscalization/furs/premises/movable",z0b=async(d,u)=>h(Y8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$8b=d=>`/fiscalization/furs/premises/${d}/close`,I0b=async(d,u)=>h($8b(d),{...u,method:"POST"});var cs={listFursBusinessPremises:b(h0b,0),getFursBusinessPremise:b(b0b,1),update:b(S0b,2),registerFursRealEstatePremise:b(f0b,1),registerFursMovablePremise:b(z0b,1),closeFursBusinessPremise:b(I0b,1)};var Q8b=()=>"/fiscalization/furs/settings",B0b=async d=>h(Q8b(),{...d,method:"GET"}),J8b=()=>"/fiscalization/furs/settings",E0b=async(d,u)=>h(J8b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var us={list:b(B0b,0),update:b(E0b,1)};var X8b=()=>"/health/live",T0b=async d=>h(X8b(),{...d,method:"GET"}),eYb=()=>"/health/ready",D0b=async d=>h(eYb(),{...d,method:"GET"}),tYb=()=>"/health",R0b=async d=>h(tYb(),{...d,method:"GET"});var ps={livenessCheck:b(T0b,0),readinessCheck:b(D0b,0),healthCheck:b(R0b,0)};var nYb=d=>`/invoices/${d}/nav/retry`,_0b=async(d,u)=>h(nYb(d),{...u,method:"POST"}),sYb=d=>`/invoices/${d}/nav/reconcile`,N0b=async(d,u)=>h(sYb(d),{...u,method:"POST"}),oYb=d=>`/invoices/${d}/nav/resolve`,M0b=async(d,u,g)=>h(oYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),iYb=d=>`/invoices/${d}/nav/annulment`,U0b=async(d,u,g)=>h(iYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),aYb=d=>`/invoices/shareable/${d}`,P0b=async(d,u)=>h(aYb(d),{...u,method:"GET"}),rYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/invoices/shareable/${d}/html?${T}`:`/invoices/shareable/${d}/html`},C0b=async(d,u,g)=>h(rYb(d,u),{...g,method:"GET"}),lYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/invoices/shareable/${d}/pdf?${T}`:`/invoices/shareable/${d}/pdf`},w0b=async(d,u,g)=>h(lYb(d,u),{...g,method:"GET"}),dYb=d=>`/invoices/shareable/${d}/eslog`,A0b=async(d,u)=>h(dYb(d),{...u,method:"GET"}),cYb=d=>`/invoices/${d}/ksef/recover`,F0b=async(d,u)=>h(cYb(d),{...u,method:"POST"}),uYb=d=>`/invoices/${d}/ksef`,k0b=async(d,u)=>h(uYb(d),{...u,method:"GET"}),pYb=d=>`/invoices/${d}/ksef/submit`,j0b=async(d,u)=>h(pYb(d),{...u,method:"POST"}),mYb=d=>`/invoices/${d}/ksef/upo`,H0b=async(d,u)=>h(mYb(d),{...u,method:"GET"}),xYb=()=>"/invoices",L0b=async(d,u)=>h(xYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),gYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invoices?${g}`:"/invoices"},G0b=async(d,u)=>h(gYb(d),{...u,method:"GET"}),yYb=()=>"/invoices/custom",V0b=async(d,u)=>h(yYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),OYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/invoices/${d}?${T}`:`/invoices/${d}`},K0b=async(d,u,g)=>h(OYb(d,u),{...g,method:"GET"}),vYb=d=>`/invoices/${d}`,Z0b=async(d,u,g)=>h(vYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hYb=d=>`/invoices/${d}/credit-options`,q0b=async(d,u)=>h(hYb(d),{...u,method:"GET"}),bYb=d=>`/invoices/${d}/xrechnung`,W0b=async(d,u)=>h(bYb(d),{...u,method:"GET"}),SYb=d=>`/invoices/${d}/zugferd`,Y0b=async(d,u)=>h(SYb(d),{...u,method:"GET"}),fYb=d=>`/invoices/${d}/versions`,$0b=async(d,u)=>h(fYb(d),{...u,method:"GET"}),zYb=(d,u)=>`/invoices/${d}/versions/${u}`,Q0b=async(d,u,g)=>h(zYb(d,u),{...g,method:"GET"}),IYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},J0b=async(d,u,g)=>h(IYb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),BYb=d=>`/invoices/${d}/void`,X0b=async(d,u,g)=>h(BYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),EYb=d=>`/invoices/${d}/fiscalize`,eyb=async(d,u)=>h(EYb(d),{...u,method:"POST"}),TYb=d=>`/invoices/${d}/change-buyer-oib`,tyb=async(d,u,g)=>h(TYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),DYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/html?${T}`:`/documents/${d}/html`},nyb=async(d,u,g)=>h(DYb(d,u),{...g,method:"GET"}),RYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/pdf?${T}`:`/documents/${d}/pdf`},syb=async(d,u,g)=>h(RYb(d,u),{...g,method:"GET"});function ms(d,u){let g=URL.createObjectURL(d),T=document.createElement("a");T.href=g,T.download=u,document.body.appendChild(T),T.click(),document.body.removeChild(T),URL.revokeObjectURL(g);}var oyb=b(syb,2),_Yb=Object.assign(async(d,u,g,T)=>{let z=await oyb(d,g,T);ms(z,u);},{__sdkOptionsIndex:3}),xs={retryInvoiceNav:b(_0b,1),reconcileInvoiceNav:b(N0b,1),resolveInvoiceNav:b(M0b,2),annulInvoiceNav:b(U0b,2),getShareableInvoice:b(P0b,1),getShareableInvoiceHtml:b(C0b,2),getShareableInvoicePdf:b(w0b,2),getShareableInvoiceEslog:b(A0b,1),recoverInvoiceFromKsef:b(F0b,1),getInvoiceKsefState:b(k0b,1),submitInvoiceToKsef:b(j0b,1),getInvoiceKsefUpo:b(H0b,1),create:b(L0b,1),list:ne(G0b),createCustom:b(V0b,1),get:b(K0b,2),update:b(Z0b,2),getCreditOptions:b(q0b,1),downloadInvoiceXRechnung:b(W0b,1),downloadInvoiceZugferd:b(Y0b,1),getVersions:b($0b,1),getVersion:b(Q0b,2),renderInvoicePreview:b(J0b,2),void:b(X0b,2),fiscalizeInvoice:b(eyb,1),changeInvoiceBuyerOib:b(tyb,2),renderHtml:b(nyb,2),renderPdf:oyb,downloadPdf:_Yb};var NYb=()=>"/items",iyb=async(d,u)=>h(NYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/items?${g}`:"/items"},ayb=async(d,u)=>h(MYb(d),{...u,method:"GET"}),UYb=()=>"/items/categories",ryb=async d=>h(UYb(),{...d,method:"GET"}),PYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},lyb=async(d,u)=>h(PYb(d),{...u,method:"GET"}),CYb=()=>"/items/import/preview",dyb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(CYb(),{...u,method:"POST",body:g})},wYb=()=>"/items/import",cyb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(wYb(),{...u,method:"POST",body:g})},AYb=d=>`/items/${d}`,uyb=async(d,u,g)=>h(AYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),FYb=d=>`/items/${d}`,pyb=async(d,u)=>h(FYb(d),{...u,method:"DELETE"}),kYb=d=>`/items/${d}/restore`,myb=async(d,u)=>h(kYb(d),{...u,method:"POST"}),jYb=d=>`/items/${d}/permanent`,xyb=async(d,u)=>h(jYb(d),{...u,method:"DELETE"}),HYb=d=>`/items/${d}/inventory`,gyb=async(d,u)=>h(HYb(d),{...u,method:"GET"}),LYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/items/${d}/inventory/movements?${T}`:`/items/${d}/inventory/movements`},yyb=async(d,u,g)=>h(LYb(d,u),{...g,method:"GET"}),GYb=d=>`/items/${d}/inventory/movements`,Oyb=async(d,u,g)=>h(GYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VYb=(d,u)=>`/items/${d}/inventory/movements/${u}`,vyb=async(d,u,g)=>h(VYb(d,u),{...g,method:"DELETE"}),KYb=d=>`/items/${d}/components`,hyb=async(d,u)=>h(KYb(d),{...u,method:"GET"}),ZYb=d=>`/items/${d}/components`,byb=async(d,u,g)=>h(ZYb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var gs={create:b(iyb,1),list:ne(ayb),categories:b(ryb,0),getItemsImportTemplate:b(lyb,1),preview:b(dyb,1),importItems:b(cyb,1),update:b(uyb,2),delete:b(pyb,1),restoreItem:b(myb,1),permanentDeleteItem:b(xyb,1),getItemInventory:b(gyb,1),getItemInventoryMovements:b(yyb,2),createItemInventoryMovement:b(Oyb,2),deleteItemInventoryMovement:b(vyb,2),listItemComponents:b(hyb,1),setItemComponents:b(byb,2)};var qYb=()=>"/legacy-migration/auth",Syb=async(d,u)=>h(qYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/legacy-migration/organizations/${d}?${T}`:`/legacy-migration/organizations/${d}`},fyb=async(d,u,g)=>h(WYb(d,u),{...g,method:"GET"}),YYb=()=>"/legacy-migration/jobs",zyb=async(d,u)=>h(YYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$Yb=()=>"/legacy-migration/jobs",Iyb=async d=>h($Yb(),{...d,method:"GET"}),QYb=d=>`/legacy-migration/jobs/${d}`,Byb=async(d,u)=>h(QYb(d),{...u,method:"GET"});var ys={legacyMigrationAuth:b(Syb,1),getLegacyMigrationOrganization:b(fyb,2),create:b(zyb,1),listMigrationJobs:b(Iyb,0),getMigrationJob:b(Byb,1)};var JYb=()=>"/locale/detect",Eyb=async d=>h(JYb(),{...d,method:"GET"});var Os={detectLocale:b(Eyb,0)};var XYb=()=>"/order-integrations/shopify/authorize",Tyb=async(d,u)=>h(XYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),e$b=()=>"/order-integrations/woocommerce/authorize",Dyb=async(d,u)=>h(e$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),t$b=()=>"/order-integrations/magento/authorize",Ryb=async(d,u)=>h(t$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),n$b=d=>`/order-integrations/magento/authorizations/${d}`,_yb=async(d,u)=>h(n$b(d),{...u,method:"GET"}),s$b=()=>"/order-integrations/shopify/resume-install",Nyb=async(d,u)=>h(s$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),o$b=d=>`/order-integrations/${d}/promote-shopify-billing`,Myb=async(d,u)=>h(o$b(d),{...u,method:"POST"}),i$b=d=>`/order-integrations/${d}/sync-shopify`,Uyb=async(d,u,g)=>h(i$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),a$b=d=>`/order-integrations/${d}/sync`,Pyb=async(d,u,g)=>h(a$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),r$b=()=>"/order-integrations/custom/connect",Cyb=async(d,u)=>h(r$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),l$b=d=>`/order-integrations/${d}/custom/rotate-secret`,wyb=async(d,u)=>h(l$b(d),{...u,method:"POST"}),d$b=d=>`/order-integrations/${d}/orders`,Ayb=async(d,u,g)=>h(d$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),c$b=()=>"/order-integrations",Fyb=async(d,u)=>h(c$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),u$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},kyb=async(d,u)=>h(u$b(d),{...u,method:"GET"}),p$b=d=>`/order-integrations/${d}`,jyb=async(d,u)=>h(p$b(d),{...u,method:"GET"}),m$b=d=>`/order-integrations/${d}`,Hyb=async(d,u,g)=>h(m$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),x$b=d=>`/order-integrations/${d}`,Lyb=async(d,u)=>h(x$b(d),{...u,method:"DELETE"});var vs={authorizeShopify:b(Tyb,1),authorizeWooCommerce:b(Dyb,1),authorizeMagento:b(Ryb,1),getMagentoAuthorization:b(_yb,1),resumeShopifyInstall:b(Nyb,1),promoteShopifyBilling:b(Myb,1),syncShopifyOrders:b(Uyb,2),syncOrderIntegration:b(Pyb,2),connectCustomStore:b(Cyb,1),rotateCustomStoreSecret:b(wyb,1),pushCustomStoreOrder:b(Ayb,2),create:b(Fyb,1),list:ne(kyb),get:b(jyb,1),update:b(Hyb,2),delete:b(Lyb,1)};var g$b=()=>"/orders",Gyb=async(d,u)=>h(g$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/orders?${g}`:"/orders"},Vyb=async(d,u)=>h(y$b(d),{...u,method:"GET"}),O$b=d=>`/orders/${d}`,Kyb=async(d,u)=>h(O$b(d),{...u,method:"GET"}),v$b=d=>`/orders/${d}`,Zyb=async(d,u,g)=>h(v$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),h$b=d=>`/orders/${d}`,qyb=async(d,u)=>h(h$b(d),{...u,method:"DELETE"}),b$b=d=>`/orders/${d}/process`,Wyb=async(d,u)=>h(b$b(d),{...u,method:"POST"}),S$b=d=>`/orders/${d}/cancel`,Yyb=async(d,u)=>h(S$b(d),{...u,method:"POST"}),f$b=d=>`/orders/${d}/reissue`,$yb=async(d,u)=>h(f$b(d),{...u,method:"POST"}),z$b=()=>"/orders/export/pdf",Qyb=async(d,u)=>h(z$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I$b=d=>`/orders/export/pdf/${d}`,Jyb=async(d,u)=>h(I$b(d),{...u,method:"GET"}),B$b=d=>`/orders/export/pdf/${d}/download`,Xyb=async(d,u)=>h(B$b(d),{...u,method:"GET"});var hs={create:b(Gyb,1),list:ne(Vyb),get:b(Kyb,1),update:b(Zyb,2),delete:b(qyb,1),processOrder:b(Wyb,1),cancelOrder:b(Yyb,1),reissueOrder:b($yb,1),startOrdersPdfExport:b(Qyb,1),getOrdersPdfExportJob:b(Jyb,1),downloadOrdersPdfExport:b(Xyb,1)};var E$b=()=>"/payment-reminders/send",eOb=async(d,u)=>h(E$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),T$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},tOb=async(d,u)=>h(T$b(d),{...u,method:"GET"});var bs={sendPaymentReminder:b(eOb,1),list:ne(tOb)};var D$b=()=>"/payments",nOb=async(d,u)=>h(D$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),R$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payments?${g}`:"/payments"},sOb=async(d,u)=>h(R$b(d),{...u,method:"GET"}),_$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/payments/${d}?${T}`:`/payments/${d}`},oOb=async(d,u,g)=>h(_$b(d,u),{...g,method:"GET"}),N$b=d=>`/payments/${d}`,iOb=async(d,u,g)=>h(N$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M$b=d=>`/payments/${d}`,aOb=async(d,u)=>h(M$b(d),{...u,method:"DELETE"}),U$b=d=>`/payments/${d}/restore`,rOb=async(d,u)=>h(U$b(d),{...u,method:"POST"}),P$b=d=>`/payments/${d}/permanent`,lOb=async(d,u)=>h(P$b(d),{...u,method:"DELETE"}),C$b=()=>"/bank-imports",dOb=async(d,u)=>{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.ledger_account_code!==void 0&&d.ledger_account_code!==null&&g.append("ledger_account_code",d.ledger_account_code),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),h(C$b(),{...u,method:"POST",body:g})},w$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},cOb=async(d,u)=>h(w$b(d),{...u,method:"GET"}),A$b=d=>`/bank-imports/${d}`,uOb=async(d,u)=>h(A$b(d),{...u,method:"GET"}),F$b=d=>`/bank-imports/${d}/summary`,pOb=async(d,u)=>h(F$b(d),{...u,method:"GET"}),k$b=d=>`/bank-imports/${d}/match`,mOb=async(d,u)=>h(k$b(d),{...u,method:"POST"}),j$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},xOb=async(d,u)=>h(j$b(d),{...u,method:"GET"}),H$b=d=>`/bank-transactions/${d}`,gOb=async(d,u)=>h(H$b(d),{...u,method:"GET"}),L$b=d=>`/bank-transactions/${d}/link`,yOb=async(d,u,g)=>h(L$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),G$b=d=>`/bank-transactions/${d}/confirm-fee`,OOb=async(d,u,g)=>h(G$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),V$b=d=>`/bank-transactions/${d}/categorize`,vOb=async(d,u,g)=>h(V$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),K$b=()=>"/bank-transactions/apply-category-suggestions",hOb=async(d,u)=>h(K$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Z$b=d=>`/bank-transactions/${d}/ignore`,bOb=async(d,u)=>h(Z$b(d),{...u,method:"POST"}),q$b=d=>`/bank-transactions/${d}/unlink`,SOb=async(d,u)=>h(q$b(d),{...u,method:"POST"});var Ss={create:b(nOb,1),list:ne(sOb),get:b(oOb,2),update:b(iOb,2),delete:b(aOb,1),restorePayment:b(rOb,1),permanentDeletePayment:b(lOb,1),importBankStatement:b(dOb,1),listBankImports:b(cOb,1),getBankImport:b(uOb,1),getBankImportSummary:b(pOb,1),rematchBankImport:b(mOb,1),listBankTransactions:b(xOb,1),getBankTransaction:b(gOb,1),linkBankTransaction:b(yOb,2),confirmBankTransactionFee:b(OOb,2),categorizeBankTransaction:b(vOb,2),applyBankTransactionCategorySuggestions:b(hOb,1),ignoreBankTransaction:b(bOb,1),unlinkBankTransaction:b(SOb,1)};var W$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},fOb=async(d,u)=>h(W$b(d),{...u,method:"GET"}),Y$b=()=>"/pos/tables",zOb=async(d,u)=>h(Y$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$$b=d=>`/pos/tables/${d}`,IOb=async(d,u,g)=>h($$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Q$b=d=>`/pos/tables/${d}`,BOb=async(d,u)=>h(Q$b(d),{...u,method:"DELETE"}),J$b=d=>`/pos/tabs/${d}/items`,EOb=async(d,u,g)=>h(J$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),X$b=d=>`/pos/tabs/${d}/claim`,TOb=async(d,u,g)=>h(X$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eQb=d=>`/pos/tabs/${d}/release`,DOb=async(d,u,g)=>h(eQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),tQb=d=>`/pos/tabs/${d}/close`,ROb=async(d,u,g)=>h(tQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),nQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},_Ob=async(d,u)=>h(nQb(d),{...u,method:"GET"}),sQb=()=>"/pos/tabs",NOb=async(d,u)=>h(sQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),oQb=d=>`/pos/tabs/${d}`,MOb=async(d,u)=>h(oQb(d),{...u,method:"GET"}),iQb=d=>`/pos/tabs/${d}`,UOb=async(d,u,g)=>h(iQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),aQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/pos/tabs/${d}?${T}`:`/pos/tabs/${d}`},POb=async(d,u,g)=>h(aQb(d,u),{...g,method:"DELETE"}),rQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},COb=async(d,u)=>h(rQb(d),{...u,method:"GET"}),lQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},wOb=async(d,u)=>h(lQb(d),{...u,method:"GET"}),dQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},AOb=async(d,u)=>h(dQb(d),{...u,method:"GET"}),cQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},FOb=async(d,u)=>h(cQb(d),{...u,method:"GET"}),uQb=()=>"/pos/operators",kOb=async d=>h(uQb(),{...d,method:"GET"}),pQb=()=>"/pos/operators/enrol",jOb=async(d,u)=>h(pQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),mQb=()=>"/pos/operators/switch",HOb=async(d,u)=>h(mQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),xQb=d=>`/pos/operators/${d}/pin`,LOb=async(d,u,g)=>h(xQb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),gQb=d=>`/pos/operators/${d}/pin`,GOb=async(d,u)=>h(gQb(d),{...u,method:"DELETE"});var yQb=b(POb,2),fs={listTables:ne(fOb),createTable:b(zOb,1),updateTable:b(IOb,2),deleteTable:b(BOb,1),appendTabItems:b(EOb,2),claimTab:b(TOb,2),releaseTab:b(DOb,2),closeTab:b(ROb,2),listTabs:ne(_Ob),createTab:b(NOb,1),getTab:b(MOb,1),updateTab:b(UOb,2),cancelTab:Object.assign((...d)=>yQb(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:b(COb,1),exportPosMonthlyReport:b(wOb,1),dailyReport:b(AOb,1),getPosMonthlyReport:b(FOb,1),listOperators:b(kOb,0),enrolPosOperator:b(jOb,1),switchOperator:b(HOb,1),setOperatorPin:b(LOb,2),clearOperatorPin:b(GOb,1)};var OQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/items/prices?${g}`:"/items/prices"},VOb=async(d,u)=>h(OQb(d),{...u,method:"GET"}),vQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/price-lists?${g}`:"/price-lists"},KOb=async(d,u)=>h(vQb(d),{...u,method:"GET"}),hQb=()=>"/price-lists",ZOb=async(d,u)=>h(hQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),bQb=d=>`/price-lists/${d}`,qOb=async(d,u)=>h(bQb(d),{...u,method:"GET"}),SQb=d=>`/price-lists/${d}`,WOb=async(d,u,g)=>h(SQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),fQb=d=>`/price-lists/${d}`,YOb=async(d,u)=>h(fQb(d),{...u,method:"DELETE"}),zQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/price-lists/${d}/prices?${T}`:`/price-lists/${d}/prices`},$Ob=async(d,u,g)=>h(zQb(d,u),{...g,method:"GET"}),IQb=d=>`/price-lists/${d}/prices`,QOb=async(d,u,g)=>h(IQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),BQb=d=>`/price-lists/${d}/prices/bulk`,JOb=async(d,u,g)=>h(BQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),EQb=(d,u)=>`/price-lists/${d}/prices/${u}`,XOb=async(d,u,g)=>h(EQb(d,u),{...g,method:"DELETE"});var zs={resolveItemPrices:b(VOb,1),list:ne(KOb),create:b(ZOb,1),get:b(qOb,1),update:b(WOb,2),delete:b(YOb,1),listPriceListPrices:b($Ob,2),upsertPriceListPrices:b(QOb,2),bulkSetPriceListPrices:b(JOb,2),removePriceListPrice:b(XOb,2)};var TQb=()=>"/fiscalization/pt/atcud-series",evb=async(d,u)=>h(TQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),DQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},tvb=async(d,u)=>h(DQb(d),{...u,method:"GET"}),RQb=d=>`/fiscalization/pt/atcud-series/${d}`,nvb=async(d,u)=>h(RQb(d),{...u,method:"GET"}),_Qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},svb=async(d,u)=>h(_Qb(d),{...u,method:"POST"}),NQb=d=>`/fiscalization/pt/atcud-series/${d}/retire`,ovb=async(d,u)=>h(NQb(d),{...u,method:"POST"});var Is={create:b(evb,1),list:ne(tvb),get:b(nvb,1),getActive:b(svb,1),retirePtAtcudSeries:b(ovb,1)};var MQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},ivb=async(d,u)=>h(MQb(d),{...u,method:"GET"});var Bs={generateReport:b(ivb,1)};var UQb=d=>`/purchase-orders/shareable/${d}`,avb=async(d,u)=>h(UQb(d),{...u,method:"GET"}),PQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/purchase-orders/shareable/${d}/html?${T}`:`/purchase-orders/shareable/${d}/html`},rvb=async(d,u,g)=>h(PQb(d,u),{...g,method:"GET"}),CQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/purchase-orders/shareable/${d}/pdf?${T}`:`/purchase-orders/shareable/${d}/pdf`},lvb=async(d,u,g)=>h(CQb(d,u),{...g,method:"GET"}),wQb=()=>"/purchase-orders",dvb=async(d,u)=>h(wQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),AQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},cvb=async(d,u)=>h(AQb(d),{...u,method:"GET"}),FQb=d=>`/purchase-orders/${d}`,uvb=async(d,u)=>h(FQb(d),{...u,method:"GET"}),kQb=d=>`/purchase-orders/${d}`,pvb=async(d,u,g)=>h(kQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),jQb=d=>`/purchase-orders/${d}/versions`,mvb=async(d,u)=>h(jQb(d),{...u,method:"GET"}),HQb=(d,u)=>`/purchase-orders/${d}/versions/${u}`,xvb=async(d,u,g)=>h(HQb(d,u),{...g,method:"GET"}),LQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},gvb=async(d,u,g)=>h(LQb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),GQb=d=>`/purchase-orders/${d}/void`,yvb=async(d,u,g)=>h(GQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Es={getShareablePurchaseOrder:b(avb,1),getShareablePurchaseOrderHtml:b(rvb,2),getShareablePurchaseOrderPdf:b(lvb,2),create:b(dvb,1),list:ne(cvb),get:b(uvb,1),update:b(pvb,2),getVersions:b(mvb,1),getVersion:b(xvb,2),renderPurchaseOrderPreview:b(gvb,2),void:b(yvb,2)};var VQb=()=>"/recurring-invoices",Ovb=async(d,u)=>h(VQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},vvb=async(d,u)=>h(KQb(d),{...u,method:"GET"}),ZQb=d=>`/recurring-invoices/${d}`,hvb=async(d,u)=>h(ZQb(d),{...u,method:"GET"}),qQb=d=>`/recurring-invoices/${d}`,bvb=async(d,u,g)=>h(qQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WQb=d=>`/recurring-invoices/${d}`,Svb=async(d,u)=>h(WQb(d),{...u,method:"DELETE"}),YQb=d=>`/recurring-invoices/${d}/restore`,fvb=async(d,u)=>h(YQb(d),{...u,method:"POST"}),$Qb=d=>`/recurring-invoices/${d}/permanent`,zvb=async(d,u)=>h($Qb(d),{...u,method:"DELETE"}),QQb=d=>`/recurring-invoices/${d}/pause`,Ivb=async(d,u)=>h(QQb(d),{...u,method:"POST"}),JQb=d=>`/recurring-invoices/${d}/resume`,Bvb=async(d,u)=>h(JQb(d),{...u,method:"POST"}),XQb=d=>`/recurring-invoices/${d}/trigger`,Evb=async(d,u)=>h(XQb(d),{...u,method:"POST"});var Ts={create:b(Ovb,1),list:ne(vvb),get:b(hvb,1),update:b(bvb,2),delete:b(Svb,1),restoreRecurringInvoice:b(fvb,1),permanentDeleteRecurringInvoice:b(zvb,1),pauseRecurringInvoice:b(Ivb,1),resumeRecurringInvoice:b(Bvb,1),triggerRecurringInvoice:b(Evb,1)};var eJb=()=>"/revenue-recognition/settings",Tvb=async d=>h(eJb(),{...d,method:"GET"}),tJb=()=>"/revenue-recognition/settings",Dvb=async(d,u)=>h(tJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nJb=()=>"/revenue-recognition/backfill",Rvb=async(d,u)=>h(nJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),sJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},_vb=async(d,u)=>h(sJb(d),{...u,method:"GET"}),oJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},Nvb=async(d,u)=>h(oJb(d),{...u,method:"GET"}),iJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},Mvb=async(d,u)=>h(iJb(d),{...u,method:"GET"}),aJb=d=>`/revenue-recognition/documents/${d}`,Uvb=async(d,u)=>h(aJb(d),{...u,method:"GET"});var Ds={getSettings:b(Tvb,0),updateSettings:b(Dvb,1),backfill:b(Rvb,1),getReport:b(_vb,1),getDetails:b(Nvb,1),listLines:b(Mvb,1),getDocumentSchedule:b(Uvb,1)};var rJb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/orders/${d}/shipment-draft?${T}`:`/orders/${d}/shipment-draft`},Pvb=async(d,u,g)=>h(rJb(d,u),{...g,method:"GET"}),lJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/shipments?${g}`:"/shipments"},Cvb=async(d,u)=>h(lJb(d),{...u,method:"GET"}),dJb=()=>"/shipments",wvb=async(d,u)=>h(dJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cJb=()=>"/shipments/labels",Avb=async(d,u)=>h(cJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),uJb=d=>`/shipments/${d}`,Fvb=async(d,u)=>h(uJb(d),{...u,method:"GET"}),pJb=d=>`/shipments/${d}/label`,kvb=async(d,u)=>h(pJb(d),{...u,method:"GET"}),mJb=d=>`/shipments/${d}/cancel`,jvb=async(d,u,g)=>h(mJb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Rs={getOrderShipmentDraft:b(Pvb,2),listShipments:b(Cvb,1),create:b(wvb,1),downloadShipmentLabels:b(Avb,1),getShipment:b(Fvb,1),downloadShipmentLabel:b(kvb,1),cancelShipment:b(jvb,2)};var xJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/shipping-connections?${g}`:"/shipping-connections"},Hvb=async(d,u)=>h(xJb(d),{...u,method:"GET"}),gJb=()=>"/shipping-connections",Lvb=async(d,u)=>h(gJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),yJb=d=>`/shipping-connections/${d}`,Gvb=async(d,u)=>h(yJb(d),{...u,method:"GET"}),OJb=d=>`/shipping-connections/${d}`,Vvb=async(d,u,g)=>h(OJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),vJb=d=>`/shipping-connections/${d}`,Kvb=async(d,u)=>h(vJb(d),{...u,method:"DELETE"});var _s={listShippingConnections:b(Hvb,1),create:b(Lvb,1),getShippingConnection:b(Gvb,1),update:b(Vvb,2),delete:b(Kvb,1)};var hJb=()=>"/stripe-app/marketplace-authorize",Zvb=async(d,u)=>h(hJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),bJb=()=>"/stripe-app/connect",qvb=async(d,u)=>h(bJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),SJb=()=>"/stripe-app/entity-connection",Wvb=async d=>h(SJb(),{...d,method:"GET"}),fJb=()=>"/stripe-app/entity-connection",Yvb=async d=>h(fJb(),{...d,method:"DELETE"}),zJb=()=>"/stripe-app/entity-settings",$vb=async d=>h(zJb(),{...d,method:"GET"}),IJb=()=>"/stripe-app/entity-settings",Qvb=async(d,u)=>h(IJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Ns={stripeAppMarketplaceAuthorize:b(Zvb,1),stripeAppConnect:b(qvb,1),stripeAppEntityGetConnection:b(Wvb,0),stripeAppEntityDisconnect:b(Yvb,0),stripeAppEntityGetSettings:b($vb,0),stripeAppEntityUpdateSettings:b(Qvb,1)};var BJb=()=>"/subscriptions",Jvb=async d=>h(BJb(),{...d,method:"GET"}),EJb=()=>"/subscriptions/spending-limit",Xvb=async(d,u)=>h(EJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TJb=()=>"/subscriptions/check-entity-limit",ehb=async d=>h(TJb(),{...d,method:"GET"});var Ms={getCurrent:b(Jvb,0),update:b(Xvb,1),checkEntityLimit:b(ehb,0)};var DJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},thb=async(d,u)=>h(DJb(d),{...u,method:"GET"});var Us={listUsTaxRateEstimates:b(thb,1)};var RJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},nhb=async(d,u)=>h(RJb(d),{...u,method:"GET"}),_Jb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},shb=async(d,u)=>h(_Jb(d),{...u,method:"GET"}),NJb=()=>"/tax-reports/payments",ohb=async(d,u)=>h(NJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MJb=d=>`/tax-reports/payments/${d}`,ihb=async(d,u,g)=>h(MJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),UJb=d=>`/tax-reports/payments/${d}`,ahb=async(d,u)=>h(UJb(d),{...u,method:"DELETE"}),PJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},rhb=async(d,u)=>h(PJb(d),{...u,method:"GET"}),CJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},lhb=async(d,u)=>h(CJb(d),{...u,method:"POST"}),wJb=()=>"/tax-reports/si/profile",dhb=async d=>h(wJb(),{...d,method:"GET"}),AJb=()=>"/tax-reports/si/profile",chb=async(d,u)=>h(AJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),FJb=()=>"/tax-reports/si/yearly/normirani/review",uhb=async(d,u)=>h(FJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kJb=()=>"/tax-reports/si/yearly/normirani/export",phb=async(d,u)=>h(kJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jJb=()=>"/tax-reports/si/accounting/vod/export",mhb=async(d,u)=>h(jJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HJb=()=>"/tax-reports/si/accounting/minimax/export",xhb=async(d,u)=>h(HJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),LJb=()=>"/tax-reports/si/accounting/vasco/export",ghb=async(d,u)=>h(LJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),GJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},yhb=async(d,u)=>h(GJb(d),{...u,method:"GET"});var Ps={getTaxLiabilityReport:b(nhb,1),list:ne(shb),create:b(ohb,1),update:b(ihb,2),delete:b(ahb,1),getEuOssReport:b(rhb,1),generateKirExport:b(lhb,1),getSloveniaTaxProfile:b(dhb,0),updateSloveniaTaxProfile:b(chb,1),reviewSloveniaYearlyNormiraniReport:b(uhb,1),exportSloveniaYearlyNormiraniReport:b(phb,1),exportSloveniaVodXml:b(mhb,1),exportSloveniaMinimaxXml:b(xhb,1),exportSloveniaVascoXml:b(ghb,1),exportQuickbooksCsv:b(yhb,1),listEmployees:b(Ae,1),registerEmployee:b(Fe,1),getEmployee:b(ke,1),modifyEmployee:b(je,2),archiveEmployee:b(He,1),getEmployeeAttendance:b(Le,2),replaceEmployeeAttendance:b(Ge,3),resolvePayrollParameters:b(Ve,1),getPayrollParameterHistory:b(Ke,1),setPayrollParameterOverride:b(Ze,3),preview:b(qe,1),draftVatReturn:b(We,1),listVatReturns:b(Ye,1),getVatReturn:b($e,1),recomputeVatReturn:b(Qe,1),approveVatReturn:b(Je,1),submitVatReturn:b(Xe,2),reopenVatReturn:b(et,1),exportVatReturn:b(tt,2),listFilings:b(nt,1),completeFiling:b(st,2),reopenFiling:b(ot,1),dismissFiling:b(it,2),listAccountFilingsCalendar:b(at,1)};var VJb=()=>"/taxes",Ohb=async(d,u)=>h(VJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/taxes?${g}`:"/taxes"},vhb=async(d,u)=>h(KJb(d),{...u,method:"GET"}),ZJb=d=>`/taxes/${d}`,hhb=async(d,u,g)=>h(ZJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qJb=d=>`/taxes/${d}`,bhb=async(d,u,g)=>h(qJb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WJb=d=>`/taxes/${d}`,Shb=async(d,u)=>h(WJb(d),{...u,method:"DELETE"}),YJb=d=>`/taxes/${d}/restore`,fhb=async(d,u)=>h(YJb(d),{...u,method:"POST"}),$Jb=d=>`/taxes/${d}/permanent`,zhb=async(d,u)=>h($Jb(d),{...u,method:"DELETE"});var Cs={create:b(Ohb,1),list:ne(vhb),update:b(hhb,2),replaceTax:b(bhb,2),delete:b(Shb,1),restoreTax:b(fhb,1),permanentDeleteTax:b(zhb,1)};var QJb=()=>"/fiscalization/ticketbai/settings",Ihb=async d=>h(QJb(),{...d,method:"GET"}),JJb=()=>"/fiscalization/ticketbai/settings",Bhb=async(d,u)=>h(JJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),XJb=()=>"/fiscalization/ticketbai/settings/certificate",Ehb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(XJb(),{...u,method:"POST",body:g})},eXb=d=>`/fiscalization/ticketbai/records/${d}`,Thb=async(d,u)=>h(eXb(d),{...u,method:"GET"}),tXb=d=>`/fiscalization/ticketbai/records/${d}/xml`,Dhb=async(d,u)=>h(tXb(d),{...u,method:"GET"}),nXb=d=>`/fiscalization/ticketbai/records/${d}/retry`,Rhb=async(d,u)=>h(nXb(d),{...u,method:"POST"}),sXb=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,_hb=async(d,u)=>h(sXb(d),{...u,method:"POST"});var ws={getSettings:b(Ihb,0),updateSettings:b(Bhb,1),uploadCertificate:b(Ehb,1),getRecord:b(Thb,1),downloadRecordXml:b(Dhb,1),retryRecord:b(Rhb,1),reconcileRecord:b(_hb,1)};var oXb=()=>"/transaction-type/check",Nhb=async(d,u)=>h(oXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var As={checkTransactionType:b(Nhb,1)};var iXb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},Mhb=async(d,u)=>h(iXb(d),{...u,method:"GET"}),aXb=()=>"/travel-orders",Uhb=async(d,u)=>h(aXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),rXb=()=>"/travel-orders/preview",Phb=async(d,u)=>h(rXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lXb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},Chb=async(d,u,g)=>h(lXb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),dXb=()=>"/travel-orders/route-distance",whb=async(d,u)=>h(dXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cXb=d=>`/travel-orders/${d}`,Ahb=async(d,u)=>h(cXb(d),{...u,method:"GET"}),uXb=d=>`/travel-orders/${d}`,Fhb=async(d,u,g)=>h(uXb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),pXb=d=>`/travel-orders/${d}`,khb=async(d,u)=>h(pXb(d),{...u,method:"DELETE"}),mXb=d=>`/travel-orders/${d}/approve`,jhb=async(d,u)=>h(mXb(d),{...u,method:"POST"}),xXb=d=>`/travel-orders/${d}/settle`,Hhb=async(d,u)=>h(xXb(d),{...u,method:"POST"}),gXb=d=>`/travel-orders/${d}/reopen`,Lhb=async(d,u,g)=>h(gXb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),yXb=d=>`/travel-orders/${d}/cancel`,Ghb=async(d,u)=>h(yXb(d),{...u,method:"POST"}),OXb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/travel-orders/${d}/pdf?${T}`:`/travel-orders/${d}/pdf`},Vhb=async(d,u,g)=>h(OXb(d,u),{...g,method:"GET"}),vXb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/travel-orders/${d}/html?${T}`:`/travel-orders/${d}/html`},Khb=async(d,u,g)=>h(vXb(d,u),{...g,method:"GET"});var Fs={list:ne(Mhb),create:b(Uhb,1),preview:b(Phb,1),renderTravelOrderPreview:b(Chb,2),calculateTravelOrderRouteDistance:b(whb,1),get:b(Ahb,1),update:b(Fhb,2),delete:b(khb,1),approveTravelOrder:b(jhb,1),settleTravelOrder:b(Hhb,1),reopenTravelOrder:b(Lhb,2),cancelTravelOrder:b(Ghb,1),renderPdf:b(Vhb,2),renderHtml:b(Khb,2)};var Ce="https://eu.spaceinvoices.com";var hXb=d=>`/documents/${d}/ujp`,Zhb=async(d,u)=>h(hXb(d),{...u,method:"GET"});var ks={download:b(Zhb,1)};var bXb=()=>"/upload/image",qhb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(bXb(),{...u,method:"POST",body:g})};var js={uploadImage:b(qhb,1)};var SXb=()=>"/accounts/two-factor-policy",Whb=async d=>h(SXb(),{...d,method:"GET"}),fXb=()=>"/accounts/two-factor-policy",Yhb=async(d,u)=>h(fXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),zXb=d=>`/entities/${d}/two-factor-policy`,$hb=async(d,u)=>h(zXb(d),{...u,method:"GET"}),IXb=d=>`/entities/${d}/two-factor-policy`,Qhb=async(d,u,g)=>h(IXb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),BXb=()=>"/users/two-factor/setup",Jhb=async(d,u)=>h(BXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),EXb=()=>"/users/two-factor/enable",Xhb=async(d,u)=>h(EXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TXb=()=>"/users/me/two-factor",ebb=async d=>h(TXb(),{...d,method:"GET"}),DXb=()=>"/users/me/two-factor/setup",tbb=async(d,u)=>h(DXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),RXb=()=>"/users/me/two-factor/enable",nbb=async(d,u)=>h(RXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_Xb=()=>"/users/me/two-factor/disable",sbb=async(d,u)=>h(_Xb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),NXb=()=>"/users/two-factor/verify",obb=async(d,u)=>h(NXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MXb=()=>"/users/login",ibb=async(d,u)=>h(MXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),UXb=()=>"/users/signup",abb=async(d,u)=>h(UXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),PXb=()=>"/users/password-reset",rbb=async(d,u)=>h(PXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),CXb=()=>"/users/password-reset/confirm",lbb=async(d,u)=>h(CXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wXb=()=>"/users/me/accounts",dbb=async d=>h(wXb(),{...d,method:"GET"}),AXb=()=>"/users/me",cbb=async d=>h(AXb(),{...d,method:"GET"}),FXb=()=>"/users/me",ubb=async(d,u)=>h(FXb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kXb=()=>"/users/me/account-deletion",pbb=async d=>h(kXb(),{...d,method:"POST"}),jXb=()=>"/users/me/settings/furs",mbb=async(d,u)=>h(jXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HXb=()=>"/users/me/settings/fina",xbb=async(d,u)=>h(HXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Hs={getAccountTwoFactorPolicy:b(Whb,0),updateAccountTwoFactorPolicy:b(Yhb,1),getEntityTwoFactorPolicy:b($hb,1),updateEntityTwoFactorPolicy:b(Qhb,2),setupRequiredTwoFactor:b(Jhb,1),enableRequiredTwoFactor:b(Xhb,1),getTwoFactorConfiguration:b(ebb,0),setupTwoFactor:b(tbb,1),enableTwoFactor:b(nbb,1),disableTwoFactor:b(sbb,1),verifyTwoFactor:b(obb,1),login:b(ibb,1),signup:b(abb,1),requestPasswordReset:b(rbb,1),confirmPasswordReset:b(lbb,1),listMyAccounts:b(dbb,0),getMe:b(cbb,0),update:b(ubb,1),requestAccountDeletion:b(pbb,0),updateFursSettings:b(mbb,1),updateFinaSettings:b(xbb,1)};var LXb=()=>"/fiscalization/verifactu/settings",gbb=async d=>h(LXb(),{...d,method:"GET"}),GXb=()=>"/fiscalization/verifactu/settings",ybb=async(d,u)=>h(GXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),VXb=()=>"/fiscalization/verifactu/certificate",Obb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(VXb(),{...u,method:"POST",body:g})},KXb=d=>`/fiscalization/verifactu/records/${d}`,vbb=async(d,u)=>h(KXb(d),{...u,method:"GET"}),ZXb=d=>`/fiscalization/verifactu/records/${d}/retry`,hbb=async(d,u)=>h(ZXb(d),{...u,method:"POST"}),qXb=d=>`/fiscalization/verifactu/records/${d}/correct`,bbb=async(d,u,g)=>h(qXb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WXb=d=>`/fiscalization/verifactu/records/${d}/cancel`,Sbb=async(d,u,g)=>h(WXb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Ls={getSettings:b(gbb,0),updateSettings:b(ybb,1),uploadCertificate:b(Obb,1),getEvidence:b(vbb,1),retryRecord:b(hbb,1),correctRecord:b(bbb,2),cancelRecord:b(Sbb,2)};var YXb=()=>"/vies/check",fbb=async(d,u)=>h(YXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Gs={checkVies:b(fbb,1)};var $Xb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},zbb=async(d,u)=>h($Xb(d),{...u,method:"GET"}),QXb=()=>"/warehouses",Ibb=async(d,u)=>h(QXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),JXb=d=>`/warehouses/${d}`,Bbb=async(d,u)=>h(JXb(d),{...u,method:"GET"}),XXb=d=>`/warehouses/${d}`,Ebb=async(d,u,g)=>h(XXb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eeS=d=>`/warehouses/${d}`,Tbb=async(d,u)=>h(eeS(d),{...u,method:"DELETE"});var Vs={list:ne(zbb),create:b(Ibb,1),get:b(Bbb,1),update:b(Ebb,2),delete:b(Tbb,1)};var teS=()=>"/webhooks",Dbb=async(d,u)=>h(teS(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),neS=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},Rbb=async(d,u)=>h(neS(d),{...u,method:"GET"}),seS=d=>`/webhooks/${d}`,_bb=async(d,u)=>h(seS(d),{...u,method:"GET"}),oeS=d=>`/webhooks/${d}`,Nbb=async(d,u,g)=>h(oeS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),ieS=d=>`/webhooks/${d}`,Mbb=async(d,u)=>h(ieS(d),{...u,method:"DELETE"}),aeS=d=>`/webhooks/${d}/test`,Ubb=async(d,u)=>h(aeS(d),{...u,method:"POST"});var reS=d=>`/webhooks/${d}/rotate-secret`,Pbb=async(d,u)=>h(reS(d),{...u,method:"POST"});var Ks={create:b(Dbb,1),list:ne(Rbb),get:b(_bb,1),update:b(Nbb,2),delete:b(Mbb,1),testWebhook:b(Ubb,1),rotateWebhookSecret:b(Pbb,1)};var leS=()=>"/white-label-subscriptions",Cbb=async d=>h(leS(),{...d,method:"GET"}),deS=()=>"/white-label-subscriptions/plans",wbb=async d=>h(deS(),{...d,method:"GET"}),ceS=d=>`/white-label-subscriptions/check-feature/${d}`,Abb=async(d,u)=>h(ceS(d),{...u,method:"GET"}),ueS=d=>`/white-label-subscriptions/check-limit/${d}`,Fbb=async(d,u)=>h(ueS(d),{...u,method:"GET"}),peS=()=>"/white-label-subscriptions/billing-email",kbb=async(d,u)=>h(peS(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zs={getCurrentWLSubscription:b(Cbb,0),list:b(wbb,0),checkWLFeature:b(Abb,1),checkWLLimit:b(Fbb,1),update:b(kbb,1)};var meS=()=>"/white-labels/current",jbb=async d=>h(meS(),{...d,method:"GET"}),xeS=()=>"/white-labels/me",Hbb=async d=>h(xeS(),{...d,method:"GET"});var qs={getCurrentWhiteLabel:b(jbb,0),getMyWhiteLabel:b(Hbb,0)};var Pe=class{sdkConfig;accountWebhooks=Y(Tn,()=>this.sdkConfig);accounting=Y(Dn,()=>this.sdkConfig);activities=Y(Rn,()=>this.sdkConfig);advanceInvoices=Y(_n,()=>this.sdkConfig);businessUnits=Y(Nn,()=>this.sdkConfig);companyRegistry=Y(Mn,()=>this.sdkConfig);creditNotes=Y(Un,()=>this.sdkConfig);currency=Y(Pn,()=>this.sdkConfig);customers=Y(Cn,()=>this.sdkConfig);deliveryNotes=Y(wn,()=>this.sdkConfig);documents=Y(kn,()=>this.sdkConfig);eInvoicing=Y(Ln,()=>this.sdkConfig);eSlog=Y(Gn,()=>this.sdkConfig);eetCertificate=Y(Vn,()=>this.sdkConfig);eetSettings=Y(Kn,()=>this.sdkConfig);email=Y(Zn,()=>this.sdkConfig);entities=Y(qn,()=>this.sdkConfig);entityApiKeys=Y(Wn,()=>this.sdkConfig);entityInvitations=Y(Yn,()=>this.sdkConfig);entityStats=Y($n,()=>this.sdkConfig);entityUsers=Y(Qn,()=>this.sdkConfig);estimates=Y(Jn,()=>this.sdkConfig);expenses=Y(Xn,()=>this.sdkConfig);exports=Y(es,()=>this.sdkConfig);files=Y(ts,()=>this.sdkConfig);finaCertificate=Y(ns,()=>this.sdkConfig);finaDevices=Y(ss,()=>this.sdkConfig);finaPremises=Y(os,()=>this.sdkConfig);finaSettings=Y(is,()=>this.sdkConfig);financialCategories=Y(as,()=>this.sdkConfig);fursCertificate=Y(rs,()=>this.sdkConfig);fursDevices=Y(ls,()=>this.sdkConfig);fursInternalAct=Y(ds,()=>this.sdkConfig);fursPremises=Y(cs,()=>this.sdkConfig);fursSettings=Y(us,()=>this.sdkConfig);health=Y(ps,()=>this.sdkConfig);invoices=Y(xs,()=>this.sdkConfig);items=Y(gs,()=>this.sdkConfig);legacyMigration=Y(ys,()=>this.sdkConfig);locale=Y(Os,()=>this.sdkConfig);orderIntegrations=Y(vs,()=>this.sdkConfig);orders=Y(hs,()=>this.sdkConfig);paymentReminders=Y(bs,()=>this.sdkConfig);payments=Y(Ss,()=>this.sdkConfig);pointOfSale=Y(fs,()=>this.sdkConfig);priceLists=Y(zs,()=>this.sdkConfig);ptAtcudSeries=Y(Is,()=>this.sdkConfig);ptSafT=Y(Bs,()=>this.sdkConfig);purchaseOrders=Y(Es,()=>this.sdkConfig);recurringInvoices=Y(Ts,()=>this.sdkConfig);revenueRecognition=Y(Ds,()=>this.sdkConfig);shipments=Y(Rs,()=>this.sdkConfig);shippingConnections=Y(_s,()=>this.sdkConfig);stripeApp=Y(Ns,()=>this.sdkConfig);subscriptions=Y(Ms,()=>this.sdkConfig);taxRateEstimates=Y(Us,()=>this.sdkConfig);taxReports=Y(Ps,()=>this.sdkConfig);taxes=Y(Cs,()=>this.sdkConfig);ticketBai=Y(ws,()=>this.sdkConfig);transactionType=Y(As,()=>this.sdkConfig);travelOrders=Y(Fs,()=>this.sdkConfig);ujp=Y(ks,()=>this.sdkConfig);upload=Y(js,()=>this.sdkConfig);users=Y(Hs,()=>this.sdkConfig);veriFactu=Y(Ls,()=>this.sdkConfig);vies=Y(Gs,()=>this.sdkConfig);warehouses=Y(Vs,()=>this.sdkConfig);webhooks=Y(Ks,()=>this.sdkConfig);whiteLabelSubscriptions=Y(Zs,()=>this.sdkConfig);whiteLabels=Y(qs,()=>this.sdkConfig);constructor(u){let g=typeof u=="string"?{accessToken:u}:u,T=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Ce,getAccessToken:T,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function geS(d){let u=typeof d=="string"?{accessToken:d}:d,g=typeof u.accessToken=="function"?u.accessToken:()=>u.accessToken;eub({baseUrl:u.basePath??Ce,getAccessToken:g,clientName:u.clientName??"js-sdk",onUnauthorized:u.onUnauthorized,requestTimeoutMs:u.requestTimeoutMs}),Bn(u.accountId??null);}
|
|
144
|
+
Searches across number, traveler name, purpose, origin, and destination.`)}),ZGb=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.")}),iob=200,aob=0,rob=1e6,lob=/^\d{4}-\d{2}-\d{2}$/,qGb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(iob).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(aob).max(rob).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(lob).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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")}),WGb=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.")}),dob=200,cob=200,uob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,pob=500,mob=500,xob=500,gob=/^[A-Za-z]{2}$/,yob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Oob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,vob=20,hob=0,bob=1e5,Sob=0,fob=60,zob=0,Iob=1e4,Bob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Eob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Tob=500,Dob=500,Rob=0,_ob=1e5,Nob=0,Mob=60,Uob=62,Pob=0,Cob=1e6,wob=200,Aob=0,Fob=1e6,kob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,job=100,Hob=2e3,YGb=e.object({traveler_name:e.string().min(1).max(dob).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(cob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(uob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(pob).describe("Business purpose of the trip."),origin:e.string().max(mob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(xob).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(gob).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.string().regex(yob).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e.string().regex(Oob).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(vob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(hob).max(bob).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(Sob).max(fob).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e.number().gt(zob).max(Iob).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Bob).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(Eob).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(Tob).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(Dob).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(Rob).max(_ob).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(Nob).max(Mob).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Uob).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e.number().min(Pob).max(Cob).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(wob).describe("Description of the cost line."),amount:e.number().gt(Aob).max(Fob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(kob).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(job).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Hob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),$Gb=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.")}),Lob=200,Gob=200,Vob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Kob=500,Zob=500,qob=500,Wob=/^[A-Za-z]{2}$/,Yob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,$ob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Qob=20,Job=0,Xob=1e5,eib=0,tib=60,nib=0,sib=1e4,oib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,iib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,aib=500,rib=500,lib=0,dib=1e5,cib=0,uib=60,pib=62,mib=0,xib=1e6,gib=200,yib=0,Oib=1e6,vib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,hib=100,bib=2e3,QGb=e.object({traveler_name:e.string().min(1).max(Lob).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Gob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Vob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Kob).describe("Business purpose of the trip."),origin:e.string().max(Zob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(qob).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(Wob).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.string().regex(Yob).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e.string().regex($ob).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(Qob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(Job).max(Xob).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(eib).max(tib).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e.number().gt(nib).max(sib).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(oib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(iib).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(aib).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(rib).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(lib).max(dib).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(cib).max(uib).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(pib).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e.number().min(mib).max(xib).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(gib).describe("Description of the cost line."),amount:e.number().gt(yib).max(Oib).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(vib).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(hib).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(bib).nullish().describe("Free-text note. Omit or send null to leave unset.")}),JGb=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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),Sib=2,fib=5,zib=2,Iib=5,XGb=e.object({locale:e.string().min(Sib).max(fib).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(zib).max(Iib).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.")}),eVb=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.")}),Bib=200,Eib=200,Tib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Dib=500,Rib=500,_ib=500,Nib=/^[A-Za-z]{2}$/,Mib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Uib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Pib=20,Cib=0,wib=1e5,Aib=0,Fib=60,kib=0,jib=1e4,Hib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Lib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Gib=500,Vib=500,Kib=0,Zib=1e5,qib=0,Wib=60,Yib=62,$ib=0,Qib=1e6,Jib=200,Xib=0,eab=1e6,tab=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nab=100,sab=2e3,tVb=e.object({traveler_name:e.string().min(1).max(Bib).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Eib).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Tib).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Dib).describe("Business purpose of the trip."),origin:e.string().max(Rib).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(_ib).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(Nib).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.string().regex(Mib).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e.string().regex(Uib).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(Pib).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(Cib).max(wib).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(Aib).max(Fib).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e.number().gt(kib).max(jib).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Hib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(Lib).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(Gib).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(Vib).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(Kib).max(Zib).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(qib).max(Wib).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Yib).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e.number().min($ib).max(Qib).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(Jib).describe("Description of the cost line."),amount:e.number().gt(Xib).max(eab).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(tab).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(nab).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(sab).nullish().describe("Free-text note. Omit or send null to leave unset.")}),nVb=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.")}),oab=3,iab=300,aab=3,rab=300,sVb=e.object({from:e.string().min(oab).max(iab).describe("Starting address to geocode."),to:e.string().min(aab).max(rab).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.")}),oVb=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.")}),lab=/^[a-z]{3,4}_[0-9a-f]{24}$/,iVb=e.object({id:e.stringFormat("resource-id",lab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aVb=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.")}),dab=200,cab=0,uab=1e6,pab=/^\d{4}-\d{2}-\d{2}$/,rVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(dab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(cab).max(uab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(pab).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),mab=/^[a-z]{3,4}_[0-9a-f]{24}$/,lVb=e.object({id:e.stringFormat("resource-id",mab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dVb=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.")}),xab=200,gab=200,yab=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Oab=500,vab=500,hab=500,bab=/^[A-Za-z]{2}$/,Sab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,fab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,zab=20,Iab=0,Bab=1e5,Eab=0,Tab=60,Dab=0,Rab=1e4,_ab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Nab=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Mab=500,Uab=500,Pab=0,Cab=1e5,wab=0,Aab=60,Fab=62,kab=0,jab=1e6,Hab=200,Lab=0,Gab=1e6,Vab=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Kab=100,Zab=2e3,cVb=e.object({traveler_name:e.string().min(1).max(xab).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(gab).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(yab).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(Oab).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(vab).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(hab).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(bab).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.string().regex(Sab).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with return_at when converting it back to a single trip with `trips: []`."),return_at:e.string().regex(fab).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with departure_at when converting it back to a single trip with `trips: []`."),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(zab).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(Iab).max(Bab).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear. Not accepted as a non-null value for a collective order, where it is derived from the trips."),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(Eab).max(Tab).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0. Not accepted as a non-null value for a collective order, where it is derived from the trips."),foreign_daily_rate:e.number().gt(Dab).max(Rab).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),trips:e.array(e.object({departure_at:e.string().regex(_ab).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.string().regex(Nab).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e.string().min(1).max(Mab).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e.string().min(1).max(Uab).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e.number().min(Pab).max(Cab).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e.number().min(wab).max(Aab).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).max(Fab).nullish().describe("Replaces the whole list of trips (the order becomes, or stays, a collective order). Omit (or send null) to leave the trips unchanged. To convert a collective order back to a single trip, send an empty array (`trips: []`) together with both departure_at and return_at (a request with only one of them is rejected); distance_km and breakfasts_provided then take the request values or reset to null and 0. An empty array on a single-trip order is a no-op."),advance_amount:e.number().min(kab).max(jab).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(Hab).describe("Description of the cost line."),amount:e.number().gt(Lab).max(Gab).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Vab).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Kab).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(Zab).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),qab=200,Wab=0,Yab=1e6,$ab=/^\d{4}-\d{2}-\d{2}$/,uVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(qab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Wab).max(Yab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex($ab).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),Qab=/^[a-z]{3,4}_[0-9a-f]{24}$/,pVb=e.object({id:e.stringFormat("resource-id",Qab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),mVb=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.")}),Jab=/^[a-z]{3,4}_[0-9a-f]{24}$/,xVb=e.object({id:e.stringFormat("resource-id",Jab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),gVb=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.")}),Xab=200,erb=0,trb=1e6,nrb=/^\d{4}-\d{2}-\d{2}$/,yVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Xab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(erb).max(trb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(nrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),srb=/^[a-z]{3,4}_[0-9a-f]{24}$/,OVb=e.object({id:e.stringFormat("resource-id",srb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),vVb=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.")}),orb=200,irb=0,arb=1e6,rrb=/^\d{4}-\d{2}-\d{2}$/,hVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(orb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(irb).max(arb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(rrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),lrb=/^[a-z]{3,4}_[0-9a-f]{24}$/,bVb=e.object({id:e.stringFormat("resource-id",lrb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SVb=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.")}),drb=3,crb=500,fVb=e.object({reason:e.string().min(drb).max(crb).describe("Why this settled travel order is being reopened for correction. Required.")}),urb=200,prb=0,mrb=1e6,xrb=/^\d{4}-\d{2}-\d{2}$/,zVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(urb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(prb).max(mrb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(xrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),grb=/^[a-z]{3,4}_[0-9a-f]{24}$/,IVb=e.object({id:e.stringFormat("resource-id",grb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),BVb=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.")}),yrb=200,Orb=0,vrb=1e6,hrb=/^\d{4}-\d{2}-\d{2}$/,EVb=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). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(yrb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Orb).max(vrb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(hrb).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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),brb=/^[a-z]{3,4}_[0-9a-f]{24}$/,TVb=e.object({id:e.stringFormat("resource-id",brb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Srb=2,frb=5,zrb=2,Irb=5,DVb=e.object({locale:e.string().min(Srb).max(frb).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(zrb).max(Irb).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.")}),RVb=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.")}),Brb=/^[a-z]{3,4}_[0-9a-f]{24}$/,_Vb=e.object({id:e.stringFormat("resource-id",Brb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Erb=2,Trb=5,Drb=2,Rrb=5,NVb=e.object({locale:e.string().min(Erb).max(Trb).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(Drb).max(Rrb).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.")}),MVb=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 xn={};$(xn,{DownloadUjpPackageHeader:()=>PVb,DownloadUjpPackageParams:()=>UVb});var UVb=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),PVb=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 gn={};$(gn,{UploadImageBody:()=>wVb,UploadImageHeader:()=>CVb,UploadImageResponse:()=>AVb});var CVb=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.")}),wVb=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)")}),AVb=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 yn={};$(yn,{ConfirmPasswordResetBody:()=>xKb,ConfirmPasswordResetResponse:()=>gKb,DisableTwoFactorBody:()=>iKb,DisableTwoFactorResponse:()=>aKb,EnableRequiredTwoFactorBody:()=>JVb,EnableRequiredTwoFactorResponse:()=>XVb,EnableTwoFactorBody:()=>sKb,EnableTwoFactorResponse:()=>oKb,GetAccountTwoFactorPolicyHeader:()=>FVb,GetAccountTwoFactorPolicyResponse:()=>kVb,GetEntityTwoFactorPolicyHeader:()=>VVb,GetEntityTwoFactorPolicyParams:()=>GVb,GetEntityTwoFactorPolicyResponse:()=>KVb,GetMeResponse:()=>OKb,GetTwoFactorConfigurationResponse:()=>eKb,ListMyAccountsResponse:()=>yKb,LoginBody:()=>dKb,LoginResponse:()=>cKb,PatchMeBody:()=>vKb,PatchMeResponse:()=>hKb,RequestPasswordResetBody:()=>pKb,RequestPasswordResetResponse:()=>mKb,SetupRequiredTwoFactorBody:()=>$Vb,SetupRequiredTwoFactorResponse:()=>QVb,SetupTwoFactorBody:()=>tKb,SetupTwoFactorResponse:()=>nKb,SignupBody:()=>uKb,UpdateAccountTwoFactorPolicyBody:()=>HVb,UpdateAccountTwoFactorPolicyHeader:()=>jVb,UpdateAccountTwoFactorPolicyResponse:()=>LVb,UpdateEntityTwoFactorPolicyBody:()=>WVb,UpdateEntityTwoFactorPolicyHeader:()=>qVb,UpdateEntityTwoFactorPolicyParams:()=>ZVb,UpdateEntityTwoFactorPolicyResponse:()=>YVb,UpdateUserFinaSettingsBody:()=>IKb,UpdateUserFinaSettingsHeader:()=>zKb,UpdateUserFinaSettingsResponse:()=>BKb,UpdateUserFursSettingsBody:()=>SKb,UpdateUserFursSettingsHeader:()=>bKb,UpdateUserFursSettingsResponse:()=>fKb,VerifyTwoFactorBody:()=>rKb,VerifyTwoFactorResponse:()=>lKb,confirmPasswordResetBodyPasswordMin:()=>jlb,confirmPasswordResetBodyPasswordRegExp:()=>Hlb,disableTwoFactorBodyCodeMax:()=>Xrb,disableTwoFactorBodyCodeMin:()=>Jrb,disableTwoFactorBodyPasswordMax:()=>Qrb,enableRequiredTwoFactorBodyCodeRegExp:()=>Frb,enableRequiredTwoFactorBodyTokenRegExp:()=>Arb,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>Grb,enableRequiredTwoFactorResponseSessionOneIdMax:()=>krb,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>Vrb,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>Lrb,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>Hrb,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>jrb,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>Wrb,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>Zrb,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>Krb,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>qrb,enableTwoFactorBodyCodeRegExp:()=>$rb,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>_rb,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>Urb,getEntityTwoFactorPolicyPathIdRegExp:()=>Mrb,getMeResponseAccountIdMax:()=>Klb,getMeResponseEmailMax:()=>Glb,getMeResponseIdMax:()=>Llb,getMeResponseNameMax:()=>Vlb,loginBodyShopifyReturnUrlMax:()=>glb,loginBodyShopifyReturnUrlMin:()=>xlb,loginBodyShopifyReturnUrlRegExp:()=>ylb,loginResponseOneEntityIdMax:()=>Slb,loginResponseOneIdMax:()=>Olb,loginResponseOneImpersonatorUserIdMax:()=>flb,loginResponseOneScopeMax:()=>blb,loginResponseOneTtlDefault:()=>hlb,loginResponseOneUserIdMax:()=>vlb,loginResponseTwoUserAccountIdMax:()=>Elb,loginResponseTwoUserEmailMax:()=>Ilb,loginResponseTwoUserIdMax:()=>zlb,loginResponseTwoUserNameMax:()=>Blb,patchMeBodyNameMin:()=>Zlb,patchMeResponseAccountIdMax:()=>$lb,patchMeResponseEmailMax:()=>Wlb,patchMeResponseIdMax:()=>qlb,patchMeResponseNameMax:()=>Ylb,requestPasswordResetBodyShopifyReturnUrlMax:()=>Flb,requestPasswordResetBodyShopifyReturnUrlMin:()=>Alb,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>klb,setupRequiredTwoFactorBodyTokenRegExp:()=>wrb,setupTwoFactorBodyPasswordMax:()=>Yrb,signupBodyNameMin:()=>Tlb,signupBodyPasswordMin:()=>Dlb,signupBodyPasswordRegExp:()=>Rlb,signupBodySignupAttributionFbclidMax:()=>wlb,signupBodySignupAttributionGbraidMax:()=>Plb,signupBodySignupAttributionGclidMax:()=>Ulb,signupBodySignupAttributionUtmCampaignMax:()=>Mlb,signupBodySignupAttributionUtmMediumMax:()=>Nlb,signupBodySignupAttributionUtmSourceMax:()=>_lb,signupBodySignupAttributionWbraidMax:()=>Clb,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>Nrb,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>Crb,updateEntityTwoFactorPolicyPathIdRegExp:()=>Prb,updateUserFinaSettingsResponseAccountIdMax:()=>odb,updateUserFinaSettingsResponseEmailMax:()=>ndb,updateUserFinaSettingsResponseIdMax:()=>tdb,updateUserFinaSettingsResponseNameMax:()=>sdb,updateUserFursSettingsResponseAccountIdMax:()=>edb,updateUserFursSettingsResponseEmailMax:()=>Jlb,updateUserFursSettingsResponseIdMax:()=>Qlb,updateUserFursSettingsResponseNameMax:()=>Xlb,verifyTwoFactorBodyCodeMax:()=>slb,verifyTwoFactorBodyCodeMin:()=>nlb,verifyTwoFactorBodyTokenMax:()=>elb,verifyTwoFactorBodyTokenRegExp:()=>tlb,verifyTwoFactorResponseOneEntityIdMax:()=>llb,verifyTwoFactorResponseOneIdMax:()=>olb,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>dlb,verifyTwoFactorResponseOneScopeMax:()=>rlb,verifyTwoFactorResponseOneTtlDefault:()=>alb,verifyTwoFactorResponseOneUserIdMax:()=>ilb,verifyTwoFactorResponseTwoUserAccountIdMax:()=>mlb,verifyTwoFactorResponseTwoUserEmailMax:()=>ulb,verifyTwoFactorResponseTwoUserIdMax:()=>clb,verifyTwoFactorResponseTwoUserNameMax:()=>plb});var _rb=/^acc_[0-9a-fA-F]{24}$/,FVb=e.object({"x-account-id":e.string().regex(_rb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),kVb=e.object({required:e.boolean()}),Nrb=/^acc_[0-9a-fA-F]{24}$/,jVb=e.object({"x-account-id":e.string().regex(Nrb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),HVb=e.object({required:e.boolean()}),LVb=e.object({required:e.boolean()}),Mrb=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,GVb=e.object({id:e.stringFormat("resource-id",Mrb).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Urb=/^acc_[0-9a-fA-F]{24}$/,VVb=e.object({"x-account-id":e.string().regex(Urb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),KVb=e.object({required:e.boolean()}),Prb=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,ZVb=e.object({id:e.stringFormat("resource-id",Prb).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Crb=/^acc_[0-9a-fA-F]{24}$/,qVb=e.object({"x-account-id":e.string().regex(Crb).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),WVb=e.object({required:e.boolean()}),YVb=e.object({required:e.boolean()}),wrb=/^session_2fa_setup_[a-f0-9]{64}$/,$Vb=e.object({token:e.string().regex(wrb)}),QVb=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),Arb=/^session_2fa_setup_[a-f0-9]{64}$/,Frb=/^\d{6}$/,JVb=e.object({token:e.string().regex(Arb),code:e.string().regex(Frb)}),krb=100,jrb=36,Hrb=31536e3,Lrb=50,Grb=36,Vrb=36,Krb=36,Zrb=255,qrb=255,Wrb=36,XVb=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(krb),user_id:e.string().max(jrb),ttl:e.number().default(Hrb).describe("Token time-to-live in seconds"),scope:e.string().max(Lrb).nullish(),entity_id:e.string().max(Grb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Vrb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Krb),email:e.string().max(Zrb),name:e.string().max(qrb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Wrb).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")}),eKb=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),Yrb=1024,tKb=e.object({password:e.string().max(Yrb).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),nKb=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),$rb=/^\d{6}$/,sKb=e.object({code:e.string().regex($rb)}),oKb=e.object({recovery_codes:e.array(e.string())}),Qrb=1024,Jrb=6,Xrb=32,iKb=e.object({password:e.string().max(Qrb).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(Jrb).max(Xrb).describe("Six-digit authenticator code or a single-use recovery code.")}),aKb=e.object({enabled:e.literal(false)}),elb=100,tlb=/^session_2fa_[a-zA-Z0-9]+$/,nlb=6,slb=32,rKb=e.object({token:e.string().max(elb).regex(tlb),code:e.string().min(nlb).max(slb).describe("Six-digit authenticator code or a single-use recovery code.")}),olb=100,ilb=36,alb=31536e3,rlb=50,llb=36,dlb=36,clb=36,ulb=255,plb=255,mlb=36,lKb=e.object({id:e.string().max(olb),user_id:e.string().max(ilb),ttl:e.number().default(alb).describe("Token time-to-live in seconds"),scope:e.string().max(rlb).nullish(),entity_id:e.string().max(llb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(dlb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(clb),email:e.string().max(ulb),name:e.string().max(plb).nullish(),email_verified:e.boolean(),account_id:e.string().max(mlb).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"),xlb=86,glb=86,ylb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,dKb=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(xlb).max(glb).regex(ylb).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.")}),Olb=100,vlb=36,hlb=31536e3,blb=50,Slb=36,flb=36,zlb=36,Ilb=255,Blb=255,Elb=36,cKb=e.object({id:e.string().max(Olb),user_id:e.string().max(vlb),ttl:e.number().default(hlb).describe("Token time-to-live in seconds"),scope:e.string().max(blb).nullish(),entity_id:e.string().max(Slb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(flb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(zlb),email:e.string().max(Ilb),name:e.string().max(Blb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Elb).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"),Tlb=2,Dlb=8,Rlb=/[a-z]/,_lb=150,Nlb=150,Mlb=150,Ulb=512,Plb=512,Clb=512,wlb=512,uKb=e.object({email:e.email(),name:e.string().min(Tlb).nullish(),password:e.string().min(Dlb).regex(Rlb),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(_lb).nullish(),utm_medium:e.string().min(1).max(Nlb).nullish(),utm_campaign:e.string().min(1).max(Mlb).nullish(),gclid:e.string().min(1).max(Ulb).nullish(),gbraid:e.string().min(1).max(Plb).nullish(),wbraid:e.string().min(1).max(Clb).nullish(),fbclid:e.string().min(1).max(wlb).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.")}),Alb=86,Flb=86,klb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,pKb=e.object({email:e.email(),shopify_return_url:e.string().min(Alb).max(Flb).regex(klb).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.")}),mKb=e.object({message:e.string()}),jlb=8,Hlb=/[a-z]/,xKb=e.object({token:e.string().min(1),password:e.string().min(jlb).regex(Hlb)}),gKb=e.object({message:e.string()}),yKb=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.")}))}),Llb=36,Glb=255,Vlb=255,Klb=36,OKb=e.object({id:e.string().max(Llb),email:e.string().max(Glb),name:e.string().max(Vlb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Klb).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({})}),Zlb=2,vKb=e.object({name:e.string().min(Zlb).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.")}),qlb=36,Wlb=255,Ylb=255,$lb=36,hKb=e.object({id:e.string().max(qlb),email:e.string().max(Wlb),name:e.string().max(Ylb).nullish(),email_verified:e.boolean(),account_id:e.string().max($lb).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({})}),bKb=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.")}),SKb=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"),Qlb=36,Jlb=255,Xlb=255,edb=36,fKb=e.object({id:e.string().max(Qlb),email:e.string().max(Jlb),name:e.string().max(Xlb).nullish(),email_verified:e.boolean(),account_id:e.string().max(edb).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({})}),zKb=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.")}),IKb=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"),tdb=36,ndb=255,sdb=255,odb=36,BKb=e.object({id:e.string().max(tdb),email:e.string().max(ndb),name:e.string().max(sdb).nullish(),email_verified:e.boolean(),account_id:e.string().max(odb).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 On={};$(On,{CancelVerifactuRecordBody:()=>ZKb,CancelVerifactuRecordHeader:()=>KKb,CancelVerifactuRecordParams:()=>VKb,CancelVerifactuRecordResponse:()=>qKb,CorrectVerifactuRecordBody:()=>LKb,CorrectVerifactuRecordHeader:()=>HKb,CorrectVerifactuRecordParams:()=>jKb,CorrectVerifactuRecordResponse:()=>GKb,GetVerifactuEvidenceHeader:()=>CKb,GetVerifactuEvidenceParams:()=>PKb,GetVerifactuEvidenceResponse:()=>wKb,GetVerifactuSettingsHeader:()=>EKb,GetVerifactuSettingsResponse:()=>TKb,RetryVerifactuRecordHeader:()=>FKb,RetryVerifactuRecordParams:()=>AKb,RetryVerifactuRecordResponse:()=>kKb,UpdateVerifactuSettingsBody:()=>RKb,UpdateVerifactuSettingsHeader:()=>DKb,UpdateVerifactuSettingsResponse:()=>_Kb,UploadVerifactuCertificateBody:()=>MKb,UploadVerifactuCertificateHeader:()=>NKb,UploadVerifactuCertificateResponse:()=>UKb,cancelVerifactuRecordBodyReasonMax:()=>mdb,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>ddb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>udb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>cdb,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>pdb,correctVerifactuRecordBodyReasonMax:()=>ldb,getVerifactuSettingsResponsePendingRecordsMin:()=>idb,updateVerifactuSettingsResponsePendingRecordsMin:()=>adb,uploadVerifactuCertificateResponsePendingRecordsMin:()=>rdb});var EKb=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.")}),idb=0,TKb=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(idb).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."),DKb=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.")}),RKb=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."),adb=0,_Kb=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(adb).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."),NKb=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.")}),MKb=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.")}),rdb=0,UKb=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(rdb).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."),PKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),CKb=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.")}),wKb=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."),AKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),FKb=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.")}),kKb=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."),jKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),HKb=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.")}),ldb=500,ddb=500,cdb=0,udb=/^\d{2}$/,pdb=12,LKb=e.object({reason:e.string().min(1).max(ldb).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(ddb).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(cdb).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(udb).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(pdb).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."),GKb=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."),VKb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),KKb=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.")}),mdb=500,ZKb=e.object({reason:e.string().min(1).max(mdb).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),qKb=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 vn={};$(vn,{CheckViesBody:()=>WKb,CheckViesResponse:()=>YKb,checkViesBodyCustomerCountryCodeMax:()=>vdb,checkViesBodyCustomerCountryCodeMin:()=>Odb,checkViesBodyIssuerCountryCodeMax:()=>gdb,checkViesBodyIssuerCountryCodeMin:()=>xdb,checkViesBodyIssuerIsTaxSubjectDefault:()=>ydb,checkViesResponseCustomerCountryCodeMax:()=>fdb,checkViesResponseCustomerCountryCodeMin:()=>Sdb,checkViesResponseIssuerCountryCodeMax:()=>bdb,checkViesResponseIssuerCountryCodeMin:()=>hdb,checkViesResponseVatIdCountryCodeMax:()=>Idb,checkViesResponseVatIdCountryCodeMin:()=>zdb});var xdb=2,gdb=2,ydb=true,Odb=2,vdb=2,WKb=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(xdb).max(gdb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(ydb).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(Odb).max(vdb).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.")}),hdb=2,bdb=2,Sdb=2,fdb=2,zdb=2,Idb=2,YKb=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(hdb).max(bdb).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(Sdb).max(fdb).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, except for a Polish issuer, whose type follows the buyer)"),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(zdb).max(Idb).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 hn={};$(hn,{CreateWarehouseBody:()=>eZb,CreateWarehouseHeader:()=>XKb,DeleteWarehouseHeader:()=>dZb,DeleteWarehouseParams:()=>lZb,GetWarehouseByIdHeader:()=>nZb,GetWarehouseByIdParams:()=>tZb,GetWarehouseByIdResponse:()=>sZb,GetWarehousesHeader:()=>QKb,GetWarehousesQueryParams:()=>$Kb,GetWarehousesResponse:()=>JKb,UpdateWarehouseBody:()=>aZb,UpdateWarehouseHeader:()=>iZb,UpdateWarehouseParams:()=>oZb,UpdateWarehouseResponse:()=>rZb,createWarehouseBodyNameMax:()=>_db,deleteWarehousePathIdRegExp:()=>jdb,getWarehouseByIdPathIdRegExp:()=>Ndb,getWarehouseByIdResponseEntityIdMax:()=>Udb,getWarehouseByIdResponseIdMax:()=>Mdb,getWarehouseByIdResponseNameMax:()=>Pdb,getWarehousesQueryLimitDefault:()=>Bdb,getWarehousesQueryLimitMax:()=>Edb,getWarehousesResponseDataItemEntityIdMax:()=>Ddb,getWarehousesResponseDataItemIdMax:()=>Tdb,getWarehousesResponseDataItemNameMax:()=>Rdb,updateWarehouseBodyNameMax:()=>wdb,updateWarehousePathIdRegExp:()=>Cdb,updateWarehouseResponseEntityIdMax:()=>Fdb,updateWarehouseResponseIdMax:()=>Adb,updateWarehouseResponseNameMax:()=>kdb});var Bdb=10,Edb=100,$Kb=e.object({limit:e.number().min(1).max(Edb).default(Bdb).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.")}),QKb=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.")}),Tdb=36,Ddb=36,Rdb=200,JKb=e.object({data:e.array(e.object({id:e.string().max(Tdb),entity_id:e.string().max(Ddb),name:e.string().max(Rdb),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")}),XKb=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.")}),_db=200,eZb=e.object({name:e.string().min(1).max(_db).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.")}),Ndb=/^wh_[0-9a-f]{24}$/,tZb=e.object({id:e.stringFormat("resource-id",Ndb).describe("Warehouse identifier (wh_ prefix).")}),nZb=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.")}),Mdb=36,Udb=36,Pdb=200,sZb=e.object({id:e.string().max(Mdb),entity_id:e.string().max(Udb),name:e.string().max(Pdb),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."),Cdb=/^wh_[0-9a-f]{24}$/,oZb=e.object({id:e.stringFormat("resource-id",Cdb).describe("Warehouse identifier (wh_ prefix).")}),iZb=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.")}),wdb=200,aZb=e.object({name:e.string().min(1).max(wdb).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.")}),Adb=36,Fdb=36,kdb=200,rZb=e.object({id:e.string().max(Adb),entity_id:e.string().max(Fdb),name:e.string().max(kdb),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."),jdb=/^wh_[0-9a-f]{24}$/,lZb=e.object({id:e.stringFormat("resource-id",jdb).describe("Warehouse identifier (wh_ prefix).")}),dZb=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 bn={};$(bn,{CreateWebhookBody:()=>uZb,CreateWebhookHeader:()=>cZb,DeleteWebhookHeader:()=>zZb,DeleteWebhookParams:()=>fZb,DeleteWebhookResponse:()=>IZb,GetWebhookByIdHeader:()=>yZb,GetWebhookByIdParams:()=>gZb,GetWebhookByIdResponse:()=>OZb,GetWebhookDeliveriesHeader:()=>_Zb,GetWebhookDeliveriesParams:()=>DZb,GetWebhookDeliveriesQueryParams:()=>RZb,GetWebhookDeliveriesResponse:()=>NZb,GetWebhooksHeader:()=>mZb,GetWebhooksQueryParams:()=>pZb,GetWebhooksResponse:()=>xZb,RotateWebhookSecretHeader:()=>UZb,RotateWebhookSecretParams:()=>MZb,RotateWebhookSecretResponse:()=>PZb,TestWebhookHeader:()=>EZb,TestWebhookParams:()=>BZb,TestWebhookResponse:()=>TZb,UpdateWebhookBody:()=>bZb,UpdateWebhookHeader:()=>hZb,UpdateWebhookParams:()=>vZb,UpdateWebhookResponse:()=>SZb,createWebhookBodyActiveDefault:()=>Gdb,createWebhookBodyDescriptionMax:()=>Ldb,createWebhookBodyUrlMax:()=>Hdb,deleteWebhookPathIdRegExp:()=>ucb,getWebhookByIdPathIdRegExp:()=>Qdb,getWebhookByIdResponseDescriptionMax:()=>tcb,getWebhookByIdResponseEntityIdMax:()=>Xdb,getWebhookByIdResponseIdMax:()=>Jdb,getWebhookByIdResponseMetadataDefault:()=>ncb,getWebhookByIdResponseUrlMax:()=>ecb,getWebhookDeliveriesPathIdRegExp:()=>Tcb,getWebhookDeliveriesQueryLimitDefault:()=>Dcb,getWebhookDeliveriesQueryLimitMax:()=>Rcb,getWebhookDeliveriesResponseDataItemAttemptMax:()=>kcb,getWebhookDeliveriesResponseDataItemAttemptMin:()=>Fcb,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>Gcb,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>Lcb,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Mcb,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>Acb,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>Ucb,getWebhookDeliveriesResponseDataItemIdMax:()=>_cb,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>Hcb,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>jcb,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>wcb,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>Ccb,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>Pcb,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Ncb,getWebhooksQueryLimitDefault:()=>Vdb,getWebhooksQueryLimitMax:()=>Kdb,getWebhooksResponseDataItemDescriptionMax:()=>Ydb,getWebhooksResponseDataItemEntityIdMax:()=>qdb,getWebhooksResponseDataItemIdMax:()=>Zdb,getWebhooksResponseDataItemMetadataDefault:()=>$db,getWebhooksResponseDataItemUrlMax:()=>Wdb,rotateWebhookSecretPathIdRegExp:()=>Vcb,rotateWebhookSecretResponseDescriptionMax:()=>Wcb,rotateWebhookSecretResponseEntityIdMax:()=>Zcb,rotateWebhookSecretResponseIdMax:()=>Kcb,rotateWebhookSecretResponseMetadataDefault:()=>$cb,rotateWebhookSecretResponseSecretMax:()=>Ycb,rotateWebhookSecretResponseUrlMax:()=>qcb,testWebhookPathIdRegExp:()=>pcb,testWebhookResponseAttemptMax:()=>fcb,testWebhookResponseAttemptMin:()=>Scb,testWebhookResponseDurationMsMax:()=>Ecb,testWebhookResponseDurationMsMin:()=>Bcb,testWebhookResponseEntityIdMax:()=>gcb,testWebhookResponseErrorMessageMax:()=>bcb,testWebhookResponseEventTypeMax:()=>ycb,testWebhookResponseIdMax:()=>mcb,testWebhookResponseMaxAttemptsMax:()=>Icb,testWebhookResponseMaxAttemptsMin:()=>zcb,testWebhookResponseResponseBodyMax:()=>hcb,testWebhookResponseResponseStatusMax:()=>vcb,testWebhookResponseResponseStatusMin:()=>Ocb,testWebhookResponseWebhookIdMax:()=>xcb,updateWebhookBodyDescriptionMax:()=>icb,updateWebhookBodyUrlMax:()=>ocb,updateWebhookPathIdRegExp:()=>scb,updateWebhookResponseDescriptionMax:()=>dcb,updateWebhookResponseEntityIdMax:()=>rcb,updateWebhookResponseIdMax:()=>acb,updateWebhookResponseMetadataDefault:()=>ccb,updateWebhookResponseUrlMax:()=>lcb});var cZb=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.")}),Hdb=2048,Ldb=500,Gdb=true,uZb=e.object({url:e.url().max(Hdb).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Ldb).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).min(1).describe("Events that trigger this webhook. Use an exact event name, `<resource>.*` for every event of one resource, `document.<action>` or `document.*` for every document type, or `*` for every event."),active:e.boolean().default(Gdb).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.")}),Vdb=10,Kdb=100,pZb=e.object({limit:e.number().min(1).max(Kdb).default(Vdb).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.")}),mZb=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.")}),Zdb=36,qdb=36,Wdb=2048,Ydb=500,$db={},xZb=e.object({data:e.array(e.object({id:e.string().max(Zdb),entity_id:e.string().max(qdb),url:e.string().max(Wdb),description:e.string().max(Ydb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default($db).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")}),Qdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,gZb=e.object({id:e.stringFormat("resource-id",Qdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yZb=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.")}),Jdb=36,Xdb=36,ecb=2048,tcb=500,ncb={},OZb=e.object({id:e.string().max(Jdb),entity_id:e.string().max(Xdb),url:e.string().max(ecb),description:e.string().max(tcb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(ncb).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)"),scb=/^[a-z]{3,4}_[0-9a-f]{24}$/,vZb=e.object({id:e.stringFormat("resource-id",scb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hZb=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.")}),ocb=2048,icb=500,bZb=e.object({url:e.url().max(ocb).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(icb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).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.")}),acb=36,rcb=36,lcb=2048,dcb=500,ccb={},SZb=e.object({id:e.string().max(acb),entity_id:e.string().max(rcb),url:e.string().max(lcb),description:e.string().max(dcb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(ccb).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)"),ucb=/^[a-z]{3,4}_[0-9a-f]{24}$/,fZb=e.object({id:e.stringFormat("resource-id",ucb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zZb=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.")}),IZb=e.object({success:e.boolean()}),pcb=/^[a-z]{3,4}_[0-9a-f]{24}$/,BZb=e.object({id:e.stringFormat("resource-id",pcb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),EZb=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.")}),mcb=36,xcb=36,gcb=36,ycb=100,Ocb=-2147483648,vcb=2147483647,hcb=1e4,bcb=2e3,Scb=-2147483648,fcb=2147483647,zcb=-2147483648,Icb=2147483647,Bcb=-2147483648,Ecb=2147483647,TZb=e.object({id:e.string().max(mcb),webhook_id:e.string().max(xcb),entity_id:e.string().max(gcb),event_type:e.string().max(ycb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Ocb).max(vcb).nullish(),response_body:e.string().max(hcb).nullish(),error_message:e.string().max(bcb).nullish(),attempt:e.number().min(Scb).max(fcb),max_attempts:e.number().min(zcb).max(Icb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Bcb).max(Ecb).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Tcb=/^[a-z]{3,4}_[0-9a-f]{24}$/,DZb=e.object({id:e.stringFormat("resource-id",Tcb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Dcb=10,Rcb=100,RZb=e.object({limit:e.number().min(1).max(Rcb).default(Dcb).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.")}),_Zb=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.")}),_cb=36,Ncb=36,Mcb=36,Ucb=100,Pcb=-2147483648,Ccb=2147483647,wcb=1e4,Acb=2e3,Fcb=-2147483648,kcb=2147483647,jcb=-2147483648,Hcb=2147483647,Lcb=-2147483648,Gcb=2147483647,NZb=e.object({data:e.array(e.object({id:e.string().max(_cb),webhook_id:e.string().max(Ncb),entity_id:e.string().max(Mcb),event_type:e.string().max(Ucb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Pcb).max(Ccb).nullish(),response_body:e.string().max(wcb).nullish(),error_message:e.string().max(Acb).nullish(),attempt:e.number().min(Fcb).max(kcb),max_attempts:e.number().min(jcb).max(Hcb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Lcb).max(Gcb).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")}),Vcb=/^[a-z]{3,4}_[0-9a-f]{24}$/,MZb=e.object({id:e.stringFormat("resource-id",Vcb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),UZb=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.")}),Kcb=36,Zcb=36,qcb=2048,Wcb=500,Ycb=64,$cb={},PZb=e.object({id:e.string().max(Kcb),entity_id:e.string().max(Zcb),url:e.string().max(qcb),description:e.string().max(Wcb).nullish(),secret:e.string().max(Ycb),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","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.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","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","shipment.created","shipment.cancelled","delivery_note.created","delivery_note.sent","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","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","shipment.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default($cb).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 Sn={};$(Sn,{CheckWLFeatureParams:()=>AZb,CheckWLFeatureResponse:()=>FZb,CheckWLLimitParams:()=>kZb,CheckWLLimitResponse:()=>jZb,GetCurrentWLSubscriptionResponse:()=>CZb,GetWLSubscriptionPlansResponse:()=>wZb,UpdateWLSubscriptionBillingEmailBody:()=>HZb,UpdateWLSubscriptionBillingEmailResponse:()=>LZb,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>Qcb,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>Jcb});var Qcb=0,Jcb=null,CZb=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(Qcb).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(Jcb).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"),wZb=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"),AZb=e.object({feature:e.string().describe("Feature slug to check")}),FZb=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"),kZb=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),jZb=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"),HZb=e.object({billing_email:e.email().nullable()}),LZb=e.object({billing_email:e.string().nullable()});var fn={};$(fn,{GetCurrentWhiteLabelResponse:()=>GZb,GetMyWhiteLabelResponse:()=>VZb});var GZb=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."),signup_enabled:e.boolean().optional().describe("Whether self sign-up is allowed on this white label's domains. When false, sign-up and new-user OAuth sign-in are refused; invited users can still accept invitations. Owned by the production white-label record: the sandbox record reports the production value. Treat a missing value as true."),entity_creation_enabled:e.boolean().optional().describe("Whether white-label entity users can create entities (companies). Account members and account API keys are not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),entity_invitations_enabled:e.boolean().optional().describe("Whether white-label entity users can invite users to entities. Silent provisioning by account administrators is not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),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"),VZb=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."),signup_enabled:e.boolean().optional().describe("Whether self sign-up is allowed on this white label's domains. When false, sign-up and new-user OAuth sign-in are refused; invited users can still accept invitations. Owned by the production white-label record: the sandbox record reports the production value. Treat a missing value as true."),entity_creation_enabled:e.boolean().optional().describe("Whether white-label entity users can create entities (companies). Account members and account API keys are not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),entity_invitations_enabled:e.boolean().optional().describe("Whether white-label entity users can invite users to entities. Silent provisioning by account administrators is not affected. Owned by the production white-label record and applies to sandbox entities too. Treat a missing value as true."),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 KZb=125e3,zn=null,we=null,In=false;function eub(d){zn=d;}function Bn(d){we=d,d==null&&(In=false);}function ZZb(){In||(In=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 qZb(){return we}function WZb(){if(!zn)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return zn}function YZb(d){if(!d)return {};if(d instanceof Headers){let u={};return d.forEach((g,T)=>{u[T]=g;}),u}if(Array.isArray(d)){let u={};for(let[g,T]of d)u[g]=T;return u}return d}function $Zb(d,u){if(u==null||u<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,T=()=>{g.abort(d?.reason);};if(d?.aborted)return T(),{signal:g.signal,cleanup:()=>{}};let z=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${u}ms`));},u),M=()=>{clearTimeout(z),d?.removeEventListener("abort",T);};return d?.addEventListener("abort",T,{once:true}),g.signal.addEventListener("abort",M,{once:true}),{signal:g.signal,cleanup:M}}async function h(d,u){let{timeoutMs:g,sdkConfig:T,...z}=u??{},M=T??WZb(),ve=await Promise.resolve(M.getAccessToken()),fe=`${M.baseUrl}${d}`,Oe={...YZb(z.headers)};if(M.clientName&&Object.assign(Oe,rt(M.clientName)),z.body===void 0||z.body===null)for(let ze of Object.keys(Oe))ze.toLowerCase()==="content-type"&&delete Oe[ze];ve&&(Oe.Authorization=`Bearer ${ve}`);let De=Oe["x-account-id"]||Oe["X-Account-Id"]||M.accountId||null;!De&&we&&(T&&ZZb(),De=we),De&&!Oe["x-account-id"]&&!Oe["X-Account-Id"]&&(Oe["x-account-id"]=De);let Re=$Zb(z.signal,g===void 0?M.requestTimeoutMs??KZb:g);try{let ze=await fetch(fe,{...z,headers:Oe,signal:Re.signal});ze.status===401&&M.onUnauthorized&&M.onUnauthorized(ze);let Ne,Lbb=ze.headers.get("content-length"),_e=ze.headers.get("content-type"),Gbb=ze.headers.get("content-disposition");if(Lbb==="0"||ze.status===204)Ne=void 0;else if(_e?.includes("application/pdf")||_e?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||_e?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||_e?.includes("text/csv")||_e?.includes("application/octet-stream")||_e?.includes("application/zip")||_e?.includes("application/x-zip-compressed")||_e?.includes("image/"))Ne=await ze.blob();else if(_e?.includes("application/xml")||_e?.includes("text/xml"))Ne=Gbb?.toLowerCase().includes("attachment")?await ze.blob():await ze.text();else if(_e?.includes("text/html"))Ne=await ze.text();else try{Ne=await ze.json();}catch{Ne=void 0;}return {data:Ne,status:ze.status,headers:ze.headers}}finally{Re.cleanup();}}var QZb=1e3;function JZb(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let u=d;return Array.isArray(u.data)&&!!u.pagination&&typeof u.pagination=="object"&&!Array.isArray(u.pagination)}function XZb(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*eqb(d,u,g){let T=g?`listAll(${g})`:"listAll()",z=u?.next_cursor,M=0;for(;;){if(M>=1e3)throw new Error(`${T} 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.`);M++;let ve=z,fe=await d({...u,next_cursor:ve});if(!JZb(fe))throw new Error(`${T} cannot paginate this method: its response is ${XZb(fe)}, 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 Oe of fe.data)yield Oe;let Ee=fe.pagination.next_cursor;if(!Ee)return;if(Ee===ve)throw new Error(`${T} received the same cursor it just sent (${ve}) after ${M} 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=Ee;}}var tqb=()=>"/account-webhooks",tub=async(d,u)=>h(tqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},nub=async(d,u)=>h(nqb(d),{...u,method:"GET"}),sqb=d=>`/account-webhooks/${d}`,sub=async(d,u)=>h(sqb(d),{...u,method:"GET"}),oqb=d=>`/account-webhooks/${d}`,oub=async(d,u,g)=>h(oqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),iqb=d=>`/account-webhooks/${d}`,iub=async(d,u)=>h(iqb(d),{...u,method:"DELETE"}),aqb=d=>`/account-webhooks/${d}/test`,aub=async(d,u)=>h(aqb(d),{...u,method:"POST"});var rqb=d=>`/account-webhooks/${d}/rotate-secret`,rub=async(d,u)=>h(rqb(d),{...u,method:"POST"});async function lqb(d,u){return d(...u)}function lub(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let u={};return (d.entity_id||d.account_id||d.request_id)&&(u.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&&(u.signal=d.signal),d.timeoutMs!==void 0&&(u.timeoutMs=d.timeoutMs),d.sdkConfig&&(u.sdkConfig=d.sdkConfig),u}function b(d,u){let g=async(...z)=>{let M=z[z.length-1],ve=M&&typeof M=="object"&&("entity_id"in M||"account_id"in M||"request_id"in M||"signal"in M||"timeoutMs"in M||"sdkConfig"in M||Object.keys(M).length===0),fe,Ee;ve?(fe=z.slice(0,-1),Ee=lub(M)):fe=[...z];let Oe=Math.max(0,d.length-1);for(;fe.length<Oe;)fe.push(void 0);fe.push(Ee);let De=await lqb(d,fe);if(De.status>=200&&De.status<300)return De.data;let Re=new Error(`API error: ${De.status}`);throw Re.status=De.status,Re.data=De.data,Re};return u===void 0?g:Object.assign(((...z)=>{let M=[...z];return M[u]??={},g(...M)}),{__sdkOptionsIndex:u})}function se(d){return Object.assign(async g=>{let{entity_id:T,account_id:z,request_id:M,signal:ve,timeoutMs:fe,sdkConfig:Ee,...Oe}=g||{},De=lub({entity_id:T,account_id:z,request_id:M,signal:ve,timeoutMs:fe,sdkConfig:Ee}),Re=await d(Oe,De);if(Re.status===200)return Re.data;let ze=new Error(`API error: ${Re.status}`);throw ze.status=Re.status,ze.data=Re.data,ze},{__sdkListMethod:true})}function En(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 dub(d,u){let g=d.__sdkOptionsIndex;return Object.assign((...z)=>{let M=z[g-1];return En(M)&&Object.keys(M).length>0&&!u.some(ve=>ve in M)&&(z[g]={...M,...z[g]},z[g-1]=void 0),d(...z)},{__sdkOptionsIndex:g})}function Y(d,u){let g=Object.entries(d).map(([T,z])=>typeof z!="function"?[T,z]:[T,(...M)=>{let ve=u(),fe=M[M.length-1],Ee=z;if(Ee.__sdkListMethod){let Oe=M[0];M[0]=Oe&&typeof Oe=="object"?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else if(typeof Ee.__sdkOptionsIndex=="number"){let Oe=M[Ee.__sdkOptionsIndex];M[Ee.__sdkOptionsIndex]=En(Oe)?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else En(fe)?M[M.length-1]={...fe,sdkConfig:ve}:M.push({sdkConfig:ve});return z(...M)}]);return Object.fromEntries(g)}var Tn={create:b(tub,1),list:se(nub),get:b(sub,1),update:b(oub,2),delete:b(iub,1),testAccountWebhook:b(aub,1),rotateAccountWebhookSecret:b(rub,1)};var dqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/employees?${g}`:"/employees"},Ae=async(d,u)=>h(dqb(d),{...u,method:"GET"}),cqb=()=>"/employees",Fe=async(d,u)=>h(cqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),uqb=d=>`/employees/${d}`,ke=async(d,u)=>h(uqb(d),{...u,method:"GET"}),pqb=d=>`/employees/${d}`,je=async(d,u,g)=>h(pqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),mqb=d=>`/employees/${d}`,He=async(d,u)=>h(mqb(d),{...u,method:"DELETE"}),xqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/employees/${d}/attendance?${T}`:`/employees/${d}/attendance`},Le=async(d,u,g)=>h(xqb(d,u),{...g,method:"GET"}),gqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/employees/${d}/attendance?${T}`:`/employees/${d}/attendance`},Ge=async(d,u,g,T)=>h(gqb(d,g),{...T,method:"PUT",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),yqb=d=>`/employees/${d}/compensation`,cub=async(d,u)=>h(yqb(d),{...u,method:"GET"}),Oqb=d=>`/employees/${d}/compensation`,uub=async(d,u,g)=>h(Oqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),vqb=(d,u)=>`/employees/${d}/compensation/${u}`,pub=async(d,u,g,T)=>h(vqb(d,u),{...T,method:"PATCH",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(g)}),hqb=(d,u)=>`/employees/${d}/compensation/${u}`,mub=async(d,u,g)=>h(hqb(d,u),{...g,method:"DELETE"}),bqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fixed-assets?${g}`:"/fixed-assets"},xub=async(d,u)=>h(bqb(d),{...u,method:"GET"}),Sqb=()=>"/fixed-assets",gub=async(d,u)=>h(Sqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),fqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register?${g}`:"/fixed-assets/register"},yub=async(d,u)=>h(fqb(d),{...u,method:"GET"}),zqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register/export?${g}`:"/fixed-assets/register/export"},Oub=async(d,u)=>h(zqb(d),{...u,method:"GET"}),Iqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/fixed-assets/${d}?${T}`:`/fixed-assets/${d}`},vub=async(d,u,g)=>h(Iqb(d,u),{...g,method:"GET"}),Bqb=d=>`/fixed-assets/${d}`,hub=async(d,u,g)=>h(Bqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Eqb=d=>`/fixed-assets/${d}`,bub=async(d,u)=>h(Eqb(d),{...u,method:"DELETE"}),Tqb=d=>`/fixed-assets/${d}/dispose`,Sub=async(d,u,g)=>h(Tqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Dqb=d=>`/fixed-assets/${d}/undo-disposal`,fub=async(d,u)=>h(Dqb(d),{...u,method:"POST"}),Rqb=d=>`/fixed-assets/${d}/schedule`,zub=async(d,u)=>h(Rqb(d),{...u,method:"GET"}),_qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},Ve=async(d,u)=>h(_qb(d),{...u,method:"GET"}),Nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},Ke=async(d,u)=>h(Nqb(d),{...u,method:"GET"}),Mqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/payroll/parameters/${d}?${T}`:`/payroll/parameters/${d}`},Ze=async(d,u,g,T)=>h(Mqb(d,g),{...T,method:"PUT",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),Uqb=()=>"/payroll/runs",Iub=async(d,u)=>h(Uqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Pqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payroll/runs?${g}`:"/payroll/runs"},Bub=async(d,u)=>h(Pqb(d),{...u,method:"GET"}),Cqb=d=>`/payroll/runs/${d}`,Eub=async(d,u)=>h(Cqb(d),{...u,method:"GET"}),wqb=d=>`/payroll/runs/${d}`,Tub=async(d,u)=>h(wqb(d),{...u,method:"DELETE"}),Aqb=d=>`/payroll/runs/${d}/recompute`,Dub=async(d,u,g)=>h(Aqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Fqb=d=>`/payroll/runs/${d}/approve`,Rub=async(d,u)=>h(Fqb(d),{...u,method:"POST"}),kqb=d=>`/payroll/runs/${d}/reopen`,_ub=async(d,u)=>h(kqb(d),{...u,method:"POST"}),jqb=d=>`/payroll/runs/${d}/mark-paid`,Nub=async(d,u,g)=>h(jqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Hqb=d=>`/payroll/runs/${d}/export`,Mub=async(d,u)=>h(Hqb(d),{...u,method:"GET"}),Lqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},qe=async(d,u)=>h(Lqb(d),{...u,method:"GET"}),Gqb=()=>"/vat-returns",We=async(d,u)=>h(Gqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Vqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},Ye=async(d,u)=>h(Vqb(d),{...u,method:"GET"}),Kqb=d=>`/vat-returns/${d}`,$e=async(d,u)=>h(Kqb(d),{...u,method:"GET"}),Zqb=d=>`/vat-returns/${d}`,Uub=async(d,u,g)=>h(Zqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qqb=d=>`/vat-returns/${d}/recompute`,Qe=async(d,u)=>h(qqb(d),{...u,method:"POST"}),Wqb=d=>`/vat-returns/${d}/approve`,Je=async(d,u)=>h(Wqb(d),{...u,method:"POST"}),Yqb=d=>`/vat-returns/${d}/submit`,Xe=async(d,u,g)=>h(Yqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),$qb=d=>`/vat-returns/${d}/reopen`,et=async(d,u)=>h($qb(d),{...u,method:"POST"}),Qqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/vat-returns/${d}/export?${T}`:`/vat-returns/${d}/export`},tt=async(d,u,g)=>h(Qqb(d,u),{...g,method:"GET"}),Jqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/filings?${g}`:"/filings"},nt=async(d,u)=>h(Jqb(d),{...u,method:"GET"}),Xqb=d=>`/filings/${d}/complete`,st=async(d,u,g)=>h(Xqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eWb=d=>`/filings/${d}/reopen`,ot=async(d,u)=>h(eWb(d),{...u,method:"POST"}),tWb=d=>`/filings/${d}/dismiss`,it=async(d,u,g)=>h(tWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),nWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},at=async(d,u)=>h(nWb(d),{...u,method:"GET"}),sWb=()=>"/ledger/accounts",Pub=async d=>h(sWb(),{...d,method:"GET"}),oWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/trial-balance?${g}`:"/ledger/trial-balance"},Cub=async(d,u)=>h(oWb(d),{...u,method:"GET"}),iWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/profit-and-loss?${g}`:"/ledger/profit-and-loss"},wub=async(d,u)=>h(iWb(d),{...u,method:"GET"}),aWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/balance-sheet?${g}`:"/ledger/balance-sheet"},Aub=async(d,u)=>h(aWb(d),{...u,method:"GET"}),rWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/entries?${g}`:"/ledger/entries"},Fub=async(d,u)=>h(rWb(d),{...u,method:"GET"}),lWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/ledger/reconciliations?${g}`:"/ledger/reconciliations"},kub=async(d,u)=>h(lWb(d),{...u,method:"GET"}),dWb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,jub=async(d,u,g,T)=>h(dWb(d,u),{...T,method:"PUT",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(g)}),cWb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,Hub=async(d,u,g)=>h(cWb(d,u),{...g,method:"DELETE"}),uWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/journal-entries?${g}`:"/journal-entries"},Lub=async(d,u)=>h(uWb(d),{...u,method:"GET"}),pWb=()=>"/journal-entries",Gub=async(d,u)=>h(pWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),mWb=d=>`/journal-entries/${d}`,Vub=async(d,u)=>h(mWb(d),{...u,method:"GET"}),xWb=d=>`/journal-entries/${d}`,Kub=async(d,u,g)=>h(xWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),gWb=d=>`/journal-entries/${d}`,Zub=async(d,u)=>h(gWb(d),{...u,method:"DELETE"}),yWb=()=>"/vendor-tax-profiles",qub=async d=>h(yWb(),{...d,method:"GET"}),OWb=d=>`/vendor-tax-profiles/${d}`,Wub=async(d,u,g)=>h(OWb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),vWb=d=>`/us-tax-years/${d}`,Yub=async(d,u)=>h(vWb(d),{...u,method:"GET"}),hWb=d=>`/us-tax-years/${d}/export`,$ub=async(d,u)=>h(hWb(d),{...u,method:"GET"});var Dn={listEmployees:b(Ae,1),registerEmployee:b(Fe,1),getEmployee:b(ke,1),modifyEmployee:b(je,2),archiveEmployee:b(He,1),getEmployeeAttendance:b(Le,2),replaceEmployeeAttendance:b(Ge,3),listEmployeeCompensation:b(cub,1),registerEmployeeCompensation:b(uub,2),modifyEmployeeCompensation:b(pub,3),removeEmployeeCompensation:b(mub,2),listFixedAssets:b(xub,1),registerFixedAsset:b(gub,1),getFixedAssetRegister:b(yub,1),exportFixedAssetRegister:b(Oub,1),getFixedAsset:b(vub,2),modifyFixedAsset:b(hub,2),archiveFixedAsset:b(bub,1),disposeFixedAsset:b(Sub,2),undoFixedAssetDisposal:b(fub,1),getFixedAssetSchedule:b(zub,1),resolvePayrollParameters:b(Ve,1),getPayrollParameterHistory:b(Ke,1),setPayrollParameterOverride:b(Ze,3),draftPayrollRun:b(Iub,1),listPayrollRuns:b(Bub,1),getPayrollRun:b(Eub,1),discardPayrollRun:b(Tub,1),recomputePayrollRun:b(Dub,2),approvePayrollRun:b(Rub,1),reopenPayrollRun:b(_ub,1),markPayrollRunPaid:dub(b(Nub,2),["paid_at"]),exportPayrollRun:b(Mub,1),preview:b(qe,1),draftVatReturn:b(We,1),listVatReturns:b(Ye,1),getVatReturn:b($e,1),update:b(Uub,2),recomputeVatReturn:b(Qe,1),approveVatReturn:b(Je,1),submitVatReturn:b(Xe,2),reopenVatReturn:b(et,1),exportVatReturn:b(tt,2),listFilings:b(nt,1),completeFiling:b(st,2),reopenFiling:b(ot,1),dismissFiling:b(it,2),listAccountFilingsCalendar:b(at,1),listLedgerAccounts:b(Pub,0),getTrialBalance:b(Cub,1),getProfitAndLossReport:b(wub,1),getBalanceSheet:b(Aub,1),listLedgerEntries:b(Fub,1),listBankReconciliations:b(kub,1),markBankReconciled:b(jub,3),reopenBankReconciliation:b(Hub,2),listJournalEntries:b(Lub,1),recordJournalEntry:b(Gub,1),getJournalEntry:b(Vub,1),reviseJournalEntry:b(Kub,2),archiveJournalEntry:b(Zub,1),listVendorTaxProfiles:b(qub,0),setVendorTaxProfile:b(Wub,2),getUsTaxYearWorksheet:b(Yub,1),exportUsTaxYearWorksheet:b($ub,1)};var bWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/activities?${g}`:"/activities"},Qub=async(d,u)=>h(bWb(d),{...u,method:"GET"});var Rn={list:se(Qub)};var SWb=d=>`/advance-invoices/${d}/nav/retry`,Jub=async(d,u)=>h(SWb(d),{...u,method:"POST"}),fWb=d=>`/advance-invoices/${d}/nav/reconcile`,Xub=async(d,u)=>h(fWb(d),{...u,method:"POST"}),zWb=d=>`/advance-invoices/${d}/nav/resolve`,epb=async(d,u,g)=>h(zWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),IWb=d=>`/advance-invoices/${d}/nav/annulment`,tpb=async(d,u,g)=>h(IWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),BWb=d=>`/advance-invoices/shareable/${d}`,npb=async(d,u)=>h(BWb(d),{...u,method:"GET"}),EWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/advance-invoices/shareable/${d}/html?${T}`:`/advance-invoices/shareable/${d}/html`},spb=async(d,u,g)=>h(EWb(d,u),{...g,method:"GET"}),TWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/advance-invoices/shareable/${d}/pdf?${T}`:`/advance-invoices/shareable/${d}/pdf`},opb=async(d,u,g)=>h(TWb(d,u),{...g,method:"GET"}),DWb=d=>`/advance-invoices/shareable/${d}/eslog`,ipb=async(d,u)=>h(DWb(d),{...u,method:"GET"}),RWb=()=>"/advance-invoices",apb=async(d,u)=>h(RWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_Wb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},rpb=async(d,u)=>h(_Wb(d),{...u,method:"GET"}),NWb=()=>"/advance-invoices/custom",lpb=async(d,u)=>h(NWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/advance-invoices/${d}?${T}`:`/advance-invoices/${d}`},dpb=async(d,u,g)=>h(MWb(d,u),{...g,method:"GET"}),UWb=d=>`/advance-invoices/${d}`,cpb=async(d,u,g)=>h(UWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),PWb=d=>`/advance-invoices/${d}/versions`,upb=async(d,u)=>h(PWb(d),{...u,method:"GET"}),CWb=(d,u)=>`/advance-invoices/${d}/versions/${u}`,ppb=async(d,u,g)=>h(CWb(d,u),{...g,method:"GET"}),wWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},mpb=async(d,u,g)=>h(wWb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),AWb=d=>`/advance-invoices/${d}/void`,xpb=async(d,u,g)=>h(AWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var _n={retryAdvanceInvoiceNav:b(Jub,1),reconcileAdvanceInvoiceNav:b(Xub,1),resolveAdvanceInvoiceNav:b(epb,2),annulAdvanceInvoiceNav:b(tpb,2),getShareableAdvanceInvoice:b(npb,1),getShareableAdvanceInvoiceHtml:b(spb,2),getShareableAdvanceInvoicePdf:b(opb,2),getShareableAdvanceInvoiceEslog:b(ipb,1),create:b(apb,1),list:se(rpb),createCustom:b(lpb,1),get:b(dpb,2),update:b(cpb,2),getVersions:b(upb,1),getVersion:b(ppb,2),renderAdvanceInvoicePreview:b(mpb,2),void:b(xpb,2)};var FWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/business-units?${g}`:"/business-units"},gpb=async(d,u)=>h(FWb(d),{...u,method:"GET"}),kWb=()=>"/business-units",ypb=async(d,u)=>h(kWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/business-units/${d}?${T}`:`/business-units/${d}`},Opb=async(d,u,g)=>h(jWb(d,u),{...g,method:"GET"}),HWb=d=>`/business-units/${d}`,vpb=async(d,u,g)=>h(HWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),LWb=d=>`/business-units/${d}`,hpb=async(d,u)=>h(LWb(d),{...u,method:"DELETE"});var Nn={list:se(gpb),create:b(ypb,1),get:b(Opb,2),update:b(vpb,2),delete:b(hpb,1)};var GWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},bpb=async(d,u)=>h(GWb(d),{...u,method:"GET"}),VWb=()=>"/company-registry/countries",Spb=async d=>h(VWb(),{...d,method:"GET"});var Mn={searchCompanyRegistry:b(bpb,1),list:b(Spb,0)};var KWb=d=>`/credit-notes/${d}/nav/retry`,fpb=async(d,u)=>h(KWb(d),{...u,method:"POST"}),ZWb=d=>`/credit-notes/${d}/nav/reconcile`,zpb=async(d,u)=>h(ZWb(d),{...u,method:"POST"}),qWb=d=>`/credit-notes/${d}/nav/resolve`,Ipb=async(d,u,g)=>h(qWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WWb=d=>`/credit-notes/${d}/nav/annulment`,Bpb=async(d,u,g)=>h(WWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),YWb=d=>`/credit-notes/shareable/${d}`,Epb=async(d,u)=>h(YWb(d),{...u,method:"GET"}),$Wb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/credit-notes/shareable/${d}/html?${T}`:`/credit-notes/shareable/${d}/html`},Tpb=async(d,u,g)=>h($Wb(d,u),{...g,method:"GET"}),QWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/credit-notes/shareable/${d}/pdf?${T}`:`/credit-notes/shareable/${d}/pdf`},Dpb=async(d,u,g)=>h(QWb(d,u),{...g,method:"GET"}),JWb=d=>`/credit-notes/shareable/${d}/eslog`,Rpb=async(d,u)=>h(JWb(d),{...u,method:"GET"}),XWb=d=>`/credit-notes/${d}/ksef/recover`,_pb=async(d,u)=>h(XWb(d),{...u,method:"POST"}),e6b=d=>`/credit-notes/${d}/ksef`,Npb=async(d,u)=>h(e6b(d),{...u,method:"GET"}),t6b=d=>`/credit-notes/${d}/ksef/submit`,Mpb=async(d,u)=>h(t6b(d),{...u,method:"POST"}),n6b=d=>`/credit-notes/${d}/ksef/upo`,Upb=async(d,u)=>h(n6b(d),{...u,method:"GET"}),s6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},Ppb=async(d,u,g)=>h(s6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),o6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},Cpb=async(d,u)=>h(o6b(d),{...u,method:"GET"}),i6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},wpb=async(d,u,g)=>h(i6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),a6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/credit-notes/${d}?${T}`:`/credit-notes/${d}`},Apb=async(d,u,g)=>h(a6b(d,u),{...g,method:"GET"}),r6b=d=>`/credit-notes/${d}`,Fpb=async(d,u,g)=>h(r6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),l6b=d=>`/credit-notes/${d}/xrechnung`,kpb=async(d,u)=>h(l6b(d),{...u,method:"GET"}),d6b=d=>`/credit-notes/${d}/zugferd`,jpb=async(d,u)=>h(d6b(d),{...u,method:"GET"}),c6b=d=>`/credit-notes/${d}/versions`,Hpb=async(d,u)=>h(c6b(d),{...u,method:"GET"}),u6b=(d,u)=>`/credit-notes/${d}/versions/${u}`,Lpb=async(d,u,g)=>h(u6b(d,u),{...g,method:"GET"}),p6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},Gpb=async(d,u,g)=>h(p6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),m6b=d=>`/credit-notes/${d}/fiscalize`,Vpb=async(d,u)=>h(m6b(d),{...u,method:"POST"}),x6b=d=>`/credit-notes/${d}/void`,Kpb=async(d,u,g)=>h(x6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});function Zpb(d){let u=b(d);function g(T,z,M){let ve=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(Oe=>Oe in z),fe=ve?void 0:z,Ee=ve?{...z,...M}:M;return u(T,fe??{},Ee??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Un={retryCreditNoteNav:b(fpb,1),reconcileCreditNoteNav:b(zpb,1),resolveCreditNoteNav:b(Ipb,2),annulCreditNoteNav:b(Bpb,2),getShareableCreditNote:b(Epb,1),getShareableCreditNoteHtml:b(Tpb,2),getShareableCreditNotePdf:b(Dpb,2),getShareableCreditNoteEslog:b(Rpb,1),recoverCreditNoteFromKsef:b(_pb,1),getCreditNoteKsefState:b(Npb,1),submitCreditNoteToKsef:b(Mpb,1),getCreditNoteKsefUpo:b(Upb,1),create:Zpb(Ppb),list:se(Cpb),createCustom:Zpb(wpb),get:b(Apb,2),update:b(Fpb,2),downloadCreditNoteXRechnung:b(kpb,1),downloadCreditNoteZugferd:b(jpb,1),getVersions:b(Hpb,1),getVersion:b(Lpb,2),renderCreditNotePreview:b(Gpb,2),fiscalizeCreditNote:b(Vpb,1),void:b(Kpb,2)};var g6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},qpb=async(d,u)=>h(g6b(d),{...u,method:"GET"});var Pn={getExchangeRate:b(qpb,1)};var y6b=()=>"/customers",Wpb=async(d,u)=>h(y6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),O6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/customers?${g}`:"/customers"},Ypb=async(d,u)=>h(O6b(d),{...u,method:"GET"}),v6b=d=>`/customers/${d}`,$pb=async(d,u)=>h(v6b(d),{...u,method:"GET"}),h6b=d=>`/customers/${d}`,Qpb=async(d,u,g)=>h(h6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),b6b=d=>`/customers/${d}`,Jpb=async(d,u)=>h(b6b(d),{...u,method:"DELETE"}),S6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/customers/${d}/sold-items?${T}`:`/customers/${d}/sold-items`},Xpb=async(d,u,g)=>h(S6b(d,u),{...g,method:"GET"}),f6b=d=>`/customers/${d}/restore`,emb=async(d,u)=>h(f6b(d),{...u,method:"POST"}),z6b=d=>`/customers/${d}/permanent`,tmb=async(d,u)=>h(z6b(d),{...u,method:"DELETE"});var Cn={create:b(Wpb,1),list:se(Ypb),get:b($pb,1),update:b(Qpb,2),delete:b(Jpb,1),listCustomerSoldItems:b(Xpb,2),restoreCustomer:b(emb,1),permanentDeleteCustomer:b(tmb,1)};var I6b=d=>`/delivery-notes/shareable/${d}`,nmb=async(d,u)=>h(I6b(d),{...u,method:"GET"}),B6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/delivery-notes/shareable/${d}/html?${T}`:`/delivery-notes/shareable/${d}/html`},smb=async(d,u,g)=>h(B6b(d,u),{...g,method:"GET"}),E6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/delivery-notes/shareable/${d}/pdf?${T}`:`/delivery-notes/shareable/${d}/pdf`},omb=async(d,u,g)=>h(E6b(d,u),{...g,method:"GET"}),T6b=()=>"/delivery-notes",imb=async(d,u)=>h(T6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),D6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},amb=async(d,u)=>h(D6b(d),{...u,method:"GET"}),R6b=()=>"/delivery-notes/custom",rmb=async(d,u)=>h(R6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/delivery-notes/${d}?${T}`:`/delivery-notes/${d}`},lmb=async(d,u,g)=>h(_6b(d,u),{...g,method:"GET"}),N6b=d=>`/delivery-notes/${d}`,dmb=async(d,u,g)=>h(N6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M6b=d=>`/delivery-notes/${d}/versions`,cmb=async(d,u)=>h(M6b(d),{...u,method:"GET"}),U6b=(d,u)=>`/delivery-notes/${d}/versions/${u}`,umb=async(d,u,g)=>h(U6b(d,u),{...g,method:"GET"}),P6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},pmb=async(d,u,g)=>h(P6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),C6b=d=>`/delivery-notes/${d}/void`,mmb=async(d,u,g)=>h(C6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),w6b=d=>`/delivery-notes/${d}/sign`,xmb=async(d,u,g)=>h(w6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),A6b=d=>`/delivery-notes/${d}/quantities`,gmb=async(d,u,g)=>h(A6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var wn={getShareableDeliveryNote:b(nmb,1),getShareableDeliveryNoteHtml:b(smb,2),getShareableDeliveryNotePdf:b(omb,2),create:b(imb,1),list:se(amb),createCustom:b(rmb,1),get:b(lmb,2),update:b(dmb,2),getVersions:b(cmb,1),getVersion:b(umb,2),renderDeliveryNotePreview:b(pmb,2),void:b(mmb,2),signDeliveryNote:b(xmb,2),setDeliveryNoteQuantities:b(gmb,2)};var F6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},ymb=async(d,u)=>h(F6b(d),{...u,method:"GET"}),k6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},Omb=async(d,u,g)=>h(k6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),j6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/finalize?${T}`:`/documents/${d}/finalize`},vmb=async(d,u,g,T)=>h(j6b(d,g),{...T,method:"POST",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),H6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/fiscalize?${T}`:`/documents/${d}/fiscalize`},hmb=async(d,u,g,T)=>h(H6b(d,g),{...T,method:"POST",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(u)}),L6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/register-output?${T}`:`/documents/${d}/register-output`},bmb=async(d,u,g)=>h(L6b(d,u),{...g,method:"POST"}),G6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}?${T}`:`/documents/${d}`},Smb=async(d,u,g)=>h(G6b(d,u),{...g,method:"DELETE"}),V6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/restore?${T}`:`/documents/${d}/restore`},fmb=async(d,u,g)=>h(V6b(d,u),{...g,method:"POST"}),K6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/permanent?${T}`:`/documents/${d}/permanent`},zmb=async(d,u,g)=>h(K6b(d,u),{...g,method:"DELETE"}),Z6b=d=>`/documents/${d}/send`,Imb=async(d,u,g)=>h(Z6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),q6b=d=>`/documents/${d}/share`,Bmb=async(d,u)=>h(q6b(d),{...u,method:"POST"}),W6b=d=>`/documents/${d}/share`,Emb=async(d,u)=>h(W6b(d),{...u,method:"GET"}),Y6b=d=>`/documents/${d}/share`,Tmb=async(d,u)=>h(Y6b(d),{...u,method:"DELETE"});var An=b(hmb,3);function $6b(d){return !!d&&typeof d=="object"&&"type"in d}function Fn(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 Q6b=async(d,u,g,T)=>{if(Fn(u))return An(d,void 0,void 0,u);if($6b(u))return An(d,void 0,u,g);let z=Fn(g)?void 0:g,M=Fn(g)?g:T;return An(d,u,z,M)},kn={getNextNumber:b(ymb,1),calculateDocumentPreview:b(Omb,2),finalizeDocument:b(vmb,3),fiscalizeDocument:Q6b,registerDocumentOutput:b(bmb,2),delete:b(Smb,2),restoreDocument:b(fmb,2),permanentDeleteDocument:b(zmb,2),sendDocument:b(Imb,2),shareDocument:b(Bmb,1),getShareableId:b(Emb,1),unshareDocument:b(Tmb,1)};var J6b=()=>"/e-invoicing/fina-eracun/settings",Dmb=async d=>h(J6b(),{...d,method:"GET"}),X6b=()=>"/e-invoicing/fina-eracun/settings",Rmb=async(d,u)=>h(X6b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),e7b=()=>"/e-invoicing/fina-eracun/enrollment/verify",_mb=async d=>h(e7b(),{...d,method:"POST"}),t7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/fina-eracun/enrollment/authorization-form?${g}`:"/e-invoicing/fina-eracun/enrollment/authorization-form"},Nmb=async(d,u)=>h(t7b(d),{...u,method:"GET"}),n7b=()=>"/e-invoicing/settings",Mmb=async d=>h(n7b(),{...d,method:"GET"}),s7b=()=>"/e-invoicing/settings",Umb=async(d,u)=>h(s7b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),o7b=()=>"/e-invoicing/enrollment/sync",Pmb=async d=>h(o7b(),{...d,method:"POST"}),i7b=()=>"/e-invoicing/enrollment/verification-link",Cmb=async d=>h(i7b(),{...d,method:"POST"}),a7b=()=>"/e-invoicing/enrollment/authorize",wmb=async(d,u)=>h(a7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),r7b=()=>"/e-invoicing/enrollment/disconnect",Amb=async d=>h(r7b(),{...d,method:"POST"}),l7b=()=>"/e-invoicing/france/directory/lookup",Fmb=async(d,u)=>h(l7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),d7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},kmb=async(d,u)=>h(d7b(d),{...u,method:"GET"}),c7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/e-invoicing/received-documents/${d}/download?${T}`:`/e-invoicing/received-documents/${d}/download`},jmb=async(d,u,g)=>h(c7b(d,u),{...g,method:"GET"}),u7b=d=>`/e-invoicing/received-documents/${d}/accept`,Hmb=async(d,u)=>h(u7b(d),{...u,method:"POST"}),p7b=d=>`/e-invoicing/received-documents/${d}/lifecycle`,Lmb=async(d,u,g)=>h(p7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),m7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},Gmb=async(d,u)=>h(m7b(d),{...u,method:"GET"}),x7b=d=>`/e-invoicing/reporting-records/${d}/retry`,Vmb=async(d,u)=>h(x7b(d),{...u,method:"POST"}),g7b=()=>"/e-invoicing/supplier",Kmb=async(d,u)=>h(g7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y7b=()=>"/e-invoicing/supplier",Zmb=async d=>h(y7b(),{...d,method:"GET"});var O7b=()=>"/e-invoicing/recipients/check",qmb=async(d,u)=>h(O7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v7b=()=>"/e-invoicing/customer-search",Wmb=async(d,u)=>h(v7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),h7b=d=>`/e-invoicing/documents/${d}/send`,Ymb=async(d,u,g)=>h(h7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),b7b=(d,u)=>`/e-invoicing/send/${d}/${u}`,$mb=async(d,u,g,T)=>h(b7b(d,u),{...T,method:"POST",headers:{"Content-Type":"application/json",...T?.headers},body:JSON.stringify(g)}),S7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},Qmb=async(d,u)=>h(S7b(d),{...u,method:"GET"}),f7b=d=>`/e-invoicing/submissions/${d}`,jn=async(d,u)=>h(f7b(d),{...u,method:"GET"}),z7b=d=>`/e-invoicing/submissions/${d}/retry`,Hn=async(d,u)=>h(z7b(d),{...u,method:"POST"});var Ln={getEInvoicingSubmission:b(jn,1),retryEInvoicingSubmission:b(Hn,1),getFinaEracunSettings:b(Dmb,0),updateFinaEracunSettings:b(Rmb,1),verifyFinaEracunEnrollment:b(_mb,0),getFinaEracunAuthorizationForm:b(Nmb,1),list:b(Mmb,0),update:b(Umb,1),syncEInvoicingEnrollment:b(Pmb,0),create:b(Cmb,0),createEInvoicingEnrollmentAuthorization:b(wmb,1),disconnectEInvoicingEnrollment:b(Amb,0),lookupFranceEInvoicingDirectory:b(Fmb,1),listReceivedEInvoices:b(kmb,1),downloadReceivedEInvoice:b(jmb,2),acceptReceivedEInvoice:b(Hmb,1),sendReceivedEInvoiceLifecycle:b(Lmb,2),listFrenchEReportingRecords:b(Gmb,1),retryFrenchEReportingRecord:b(Vmb,1),registerEInvoicingSupplier:b(Kmb,1),getEInvoicingSupplier:b(Zmb,0),checkEInvoicingRecipient:b(qmb,1),searchEInvoicingCustomer:b(Wmb,1),sendEInvoicingDocument:b(Ymb,2),sendEInvoice:b($mb,3),listEInvoicingSubmissions:b(Qmb,1),get:b(jn,1),retryEInvoicingSubmissionById:b(Hn,1)};var I7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/eslog/${d}/validate?${T}`:`/eslog/${d}/validate`},Jmb=async(d,u,g)=>h(I7b(d,u),{...g,method:"POST"}),B7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/eslog/${d}/download?${T}`:`/eslog/${d}/download`},Xmb=async(d,u,g)=>h(B7b(d,u),{...g,method:"GET"});var Gn={validate:b(Jmb,2),download:b(Xmb,2)};var E7b=()=>"/fiscalization/eet/settings/certificate",exb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(E7b(),{...u,method:"POST",body:g})},T7b=()=>"/fiscalization/eet/settings/certificate",txb=async d=>h(T7b(),{...d,method:"GET"}),D7b=()=>"/fiscalization/eet/settings/certificate",nxb=async d=>h(D7b(),{...d,method:"DELETE"});var Vn={uploadEetCertificate:b(exb,1),getEetCertificate:b(txb,0),delete:b(nxb,0)};var R7b=()=>"/fiscalization/eet/settings",sxb=async d=>h(R7b(),{...d,method:"GET"}),_7b=()=>"/fiscalization/eet/settings",oxb=async(d,u)=>h(_7b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Kn={list:b(sxb,0),update:b(oxb,1)};var N7b=()=>"/email/send",ixb=async(d,u)=>h(N7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zn={sendEmail:b(ixb,1)};var M7b=d=>`/entities/${d}/nav`,axb=async(d,u)=>h(M7b(d),{...u,method:"GET"}),U7b=d=>`/entities/${d}/nav`,rxb=async(d,u,g)=>h(U7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),P7b=d=>`/entities/${d}/nav/credentials`,lxb=async(d,u,g)=>h(P7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),C7b=d=>`/entities/${d}/nav/credentials`,dxb=async(d,u)=>h(C7b(d),{...u,method:"DELETE"}),w7b=d=>`/entities/${d}/nav/credentials/verify`,cxb=async(d,u)=>h(w7b(d),{...u,method:"POST"}),A7b=d=>`/entities/${d}/ksef`,uxb=async(d,u)=>h(A7b(d),{...u,method:"GET"}),F7b=d=>`/entities/${d}/ksef`,pxb=async(d,u,g)=>h(F7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),k7b=d=>`/entities/${d}/ksef/credentials`,mxb=async(d,u,g)=>h(k7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),j7b=d=>`/entities/${d}/ksef/credentials`,xxb=async(d,u)=>h(j7b(d),{...u,method:"DELETE"}),H7b=()=>"/entities",gxb=async(d,u)=>h(H7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/entities?${g}`:"/entities"},yxb=async(d,u)=>h(L7b(d),{...u,method:"GET"}),G7b=d=>`/entities/${d}`,Oxb=async(d,u)=>h(G7b(d),{...u,method:"GET"}),V7b=d=>`/entities/${d}`,vxb=async(d,u,g)=>h(V7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),K7b=d=>`/entities/${d}/enable`,hxb=async(d,u)=>h(K7b(d),{...u,method:"POST"}),Z7b=d=>`/entities/${d}/disable`,bxb=async(d,u)=>h(Z7b(d),{...u,method:"POST"}),q7b=d=>`/entities/${d}/email-sender`,Sxb=async(d,u)=>h(q7b(d),{...u,method:"GET"}),W7b=d=>`/entities/${d}/email-sender`,fxb=async(d,u,g)=>h(W7b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Y7b=d=>`/entities/${d}/email-sender`,zxb=async(d,u)=>h(Y7b(d),{...u,method:"DELETE"}),$7b=d=>`/entities/${d}/email-sender/recheck`,Ixb=async(d,u)=>h($7b(d),{...u,method:"POST"});var qn={retrieveEntityNavSettings:b(axb,1),modifyEntityNavSettings:b(rxb,2),storeEntityNavCredentials:b(lxb,2),removeEntityNavCredentials:b(dxb,1),verifyEntityNavCredentials:b(cxb,1),getEntityKsefSetup:b(uxb,1),putEntityKsefSettings:b(pxb,2),putEntityKsefCredential:b(mxb,2),removeEntityKsefCredential:b(xxb,1),create:b(gxb,1),list:se(yxb),get:b(Oxb,1),update:b(vxb,2),enableEntity:b(hxb,1),disableEntity:b(bxb,1),getEntityEmailSender:b(Sxb,1),putEntityEmailSender:b(fxb,2),deleteEntityEmailSender:b(zxb),recheckEntityEmailSender:b(Ixb,1)};var Q7b=()=>"/entities/api-keys",Bxb=async d=>h(Q7b(),{...d,method:"GET"}),J7b=()=>"/entities/api-keys",Exb=async(d,u)=>h(J7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X7b=d=>`/entities/api-keys/${d}`,Txb=async(d,u)=>h(X7b(d),{...u,method:"DELETE"}),e9b=()=>"/entities/api-keys/revoke-integration",Dxb=async d=>h(e9b(),{...d,method:"POST"});var Wn={listEntityApiKeys:b(Bxb,0),create:b(Exb,1),delete:b(Txb,1),revokeEntityApiKeyIntegration:b(Dxb,0)};var t9b=()=>"/entities/invitations",Rxb=async d=>h(t9b(),{...d,method:"GET"}),n9b=d=>`/entities/invitations/${d}`,_xb=async(d,u)=>h(n9b(d),{...u,method:"GET"}),s9b=d=>`/entities/invitations/${d}`,Nxb=async(d,u)=>h(s9b(d),{...u,method:"DELETE"}),o9b=d=>`/entities/invitations/${d}/resend`,Mxb=async(d,u)=>h(o9b(d),{...u,method:"POST"}),i9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},Uxb=async(d,u)=>h(i9b(d),{...u,method:"GET"}),a9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},Pxb=async(d,u,g)=>h(a9b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Yn={listEntityInvitations:b(Rxb,0),getEntityInvitation:b(_xb,1),cancelEntityInvitation:b(Nxb,1),resendEntityInvitation:b(Mxb,1),preview:b(Uxb,1),acceptEntityInvitation:b(Pxb,2)};var r9b=()=>"/stats/query",Cxb=async(d,u)=>h(r9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var $n={queryEntityStats:b(Cxb,1)};var l9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},wxb=async(d,u)=>h(l9b(d),{...u,method:"GET"}),d9b=()=>"/entities/users",Axb=async(d,u)=>h(d9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),c9b=()=>"/entities/users/access",Fxb=async d=>h(c9b(),{...d,method:"GET"}),u9b=d=>`/entities/users/${d}`,kxb=async(d,u,g)=>h(u9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),p9b=d=>`/entities/users/${d}`,jxb=async(d,u)=>h(p9b(d),{...u,method:"DELETE"}),m9b=d=>`/entities/users/${d}/token`,Hxb=async(d,u,g)=>h(m9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Qn={list:se(wxb),addEntityUser:b(Axb,1),getAccess:b(Fxb,0),update:b(kxb,2),removeEntityUser:b(jxb,1),generateEntityUserToken:b(Hxb,2)};var x9b=d=>`/estimates/shareable/${d}`,Lxb=async(d,u)=>h(x9b(d),{...u,method:"GET"}),g9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/estimates/shareable/${d}/html?${T}`:`/estimates/shareable/${d}/html`},Gxb=async(d,u,g)=>h(g9b(d,u),{...g,method:"GET"}),y9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/estimates/shareable/${d}/pdf?${T}`:`/estimates/shareable/${d}/pdf`},Vxb=async(d,u,g)=>h(y9b(d,u),{...g,method:"GET"}),O9b=d=>`/estimates/shareable/${d}/eslog`,Kxb=async(d,u)=>h(O9b(d),{...u,method:"GET"}),v9b=()=>"/estimates",Zxb=async(d,u)=>h(v9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),h9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/estimates?${g}`:"/estimates"},qxb=async(d,u)=>h(h9b(d),{...u,method:"GET"}),b9b=()=>"/estimates/custom",Wxb=async(d,u)=>h(b9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),S9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/estimates/${d}?${T}`:`/estimates/${d}`},Yxb=async(d,u,g)=>h(S9b(d,u),{...g,method:"GET"}),f9b=d=>`/estimates/${d}`,$xb=async(d,u,g)=>h(f9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),z9b=d=>`/estimates/${d}/versions`,Qxb=async(d,u)=>h(z9b(d),{...u,method:"GET"}),I9b=(d,u)=>`/estimates/${d}/versions/${u}`,Jxb=async(d,u,g)=>h(I9b(d,u),{...g,method:"GET"}),B9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},Xxb=async(d,u,g)=>h(B9b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Jn={getShareableEstimate:b(Lxb,1),getShareableEstimateHtml:b(Gxb,2),getShareableEstimatePdf:b(Vxb,2),getShareableEstimateEslog:b(Kxb,1),create:b(Zxb,1),list:se(qxb),createCustom:b(Wxb,1),get:b(Yxb,2),update:b($xb,2),getVersions:b(Qxb,1),getVersion:b(Jxb,2),renderEstimatePreview:b(Xxb,2)};var E9b=()=>"/expenses",egb=async(d,u)=>h(E9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),T9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses?${g}`:"/expenses"},tgb=async(d,u)=>h(T9b(d),{...u,method:"GET"}),D9b=()=>"/expenses/custom",ngb=async(d,u)=>h(D9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),R9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},sgb=async(d,u)=>h(R9b(d),{...u,method:"GET"}),_9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},ogb=async(d,u)=>h(_9b(d),{...u,method:"GET"}),N9b=()=>"/expenses/recognition/settings",igb=async d=>h(N9b(),{...d,method:"GET"}),M9b=()=>"/expenses/recognition/settings",agb=async(d,u)=>h(M9b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),U9b=()=>"/expenses/recognition/backfill",rgb=async(d,u)=>h(U9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),P9b=()=>"/expenses/recognitions",lgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(P9b(),{...u,method:"POST",body:g})},C9b=d=>`/expenses/recognitions/${d}`,dgb=async(d,u)=>h(C9b(d),{...u,method:"GET"}),w9b=d=>`/expenses/recognitions/${d}/retry`,cgb=async(d,u)=>h(w9b(d),{...u,method:"POST"}),A9b=()=>"/expenses/inbound-email",ugb=async d=>h(A9b(),{...d,method:"GET"}),F9b=()=>"/expenses/inbound-email",pgb=async d=>h(F9b(),{...d,method:"POST"}),k9b=()=>"/expenses/inbound-email",mgb=async d=>h(k9b(),{...d,method:"DELETE"}),j9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},xgb=async(d,u)=>h(j9b(d),{...u,method:"GET"}),H9b=()=>"/expenses/imports/shareable/preview",ggb=async(d,u)=>h(H9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L9b=()=>"/expenses/imports/shareable",ygb=async(d,u)=>h(L9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),G9b=d=>`/expenses/${d}/recognition`,Ogb=async(d,u)=>h(G9b(d),{...u,method:"GET"}),V9b=d=>`/expenses/${d}`,vgb=async(d,u)=>h(V9b(d),{...u,method:"GET"}),K9b=d=>`/expenses/${d}`,hgb=async(d,u,g)=>h(K9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Z9b=d=>`/expenses/${d}`,bgb=async(d,u)=>h(Z9b(d),{...u,method:"DELETE"}),q9b=d=>`/expenses/${d}/void`,Sgb=async(d,u)=>h(q9b(d),{...u,method:"POST"}),W9b=d=>`/expenses/${d}/restore`,fgb=async(d,u)=>h(W9b(d),{...u,method:"POST"}),Y9b=d=>`/expenses/${d}/attachments`,zgb=async(d,u,g)=>{let T=new FormData;return T.append("file",u.file),h(Y9b(d),{...g,method:"POST",body:T})},$9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/expenses/${d}/attachments?${T}`:`/expenses/${d}/attachments`},Igb=async(d,u,g)=>h($9b(d,u),{...g,method:"GET"}),Q9b=(d,u)=>`/expenses/${d}/attachments/${u}`,Bgb=async(d,u,g)=>h(Q9b(d,u),{...g,method:"DELETE"}),J9b=d=>`/expenses/${d}/payments`,Egb=async(d,u)=>h(J9b(d),{...u,method:"GET"}),X9b=d=>`/expenses/${d}/payments`,Tgb=async(d,u,g)=>h(X9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Xn={create:b(egb,1),list:se(tgb),createCustom:b(ngb,1),exportExpenses:b(sgb,1),getExpenseCategoryReport:b(ogb,1),getRecognitionSettings:b(igb,0),updateRecognitionSettings:b(agb,1),backfillExpenseRecognition:b(rgb,1),createRecognition:b(lgb,1),getRecognition:b(dgb,1),retryRecognition:b(cgb,1),getExpenseInboundEmail:b(ugb,0),rotateExpenseInboundEmail:b(pgb,0),disableExpenseInboundEmail:b(mgb,0),listExpenseInboundEmailMessages:b(xgb,1),previewImportFromShareableLink:b(ggb,1),importFromShareableLink:b(ygb,1),getLatestRecognition:b(Ogb,1),get:b(vgb,1),update:b(hgb,2),delete:b(bgb,1),void:b(Sgb,1),restoreExpense:b(fgb,1),uploadExpenseAttachment:b(zgb,2),getExpenseAttachments:b(Igb,2),deleteExpenseAttachment:b(Bgb,2),getExpensePayments:b(Egb,1),createExpensePayment:b(Tgb,2)};var e8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},Dgb=async(d,u)=>h(e8b(d),{...u,method:"GET"}),t8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},Rgb=async(d,u)=>h(t8b(d),{...u,method:"GET"}),n8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},_gb=async(d,u)=>h(n8b(d),{...u,method:"GET"}),s8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},Ngb=async(d,u)=>h(s8b(d),{...u,method:"GET"}),o8b=()=>"/documents/export/pdf",Mgb=async(d,u)=>h(o8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),i8b=d=>`/documents/export/pdf/${d}`,Ugb=async(d,u)=>h(i8b(d),{...u,method:"GET"}),a8b=d=>`/documents/export/pdf/${d}/download`,Pgb=async(d,u)=>h(a8b(d),{...u,method:"GET"}),r8b=()=>"/documents/export/eslog",Cgb=async(d,u)=>h(r8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),l8b=d=>`/documents/export/eslog/${d}`,wgb=async(d,u)=>h(l8b(d),{...u,method:"GET"}),d8b=d=>`/documents/export/eslog/${d}/download`,Agb=async(d,u)=>h(d8b(d),{...u,method:"GET"});var es={exportDocuments:b(Dgb,1),exportSalesPerItem:b(Rgb,1),exportInventory:b(_gb,1),exportRevenueByCategory:b(Ngb,1),startPdfExport:b(Mgb,1),getPdfStatus:b(Ugb,1),downloadPdfExport:b(Pgb,1),startEslogExport:b(Cgb,1),getEslogStatus:b(wgb,1),downloadEslogExport:b(Agb,1)};var c8b=()=>"/files",Fgb=async(d,u)=>{let g=new FormData;return 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(c8b(),{...u,method:"POST",body:g})},u8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/files?${g}`:"/files"},kgb=async(d,u)=>h(u8b(d),{...u,method:"GET"}),p8b=d=>`/files/${d}`,jgb=async(d,u)=>h(p8b(d),{...u,method:"GET"}),m8b=d=>`/files/${d}`,Hgb=async(d,u)=>h(m8b(d),{...u,method:"DELETE"});var ts={uploadFile:b(Fgb,1),list:se(kgb),get:b(jgb,1),delete:b(Hgb,1)};var x8b=()=>"/fiscalization/fina/settings/certificate",Lgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(x8b(),{...u,method:"POST",body:g})},g8b=()=>"/fiscalization/fina/settings/certificate",Ggb=async d=>h(g8b(),{...d,method:"GET"}),y8b=()=>"/fiscalization/fina/settings/certificate",Vgb=async d=>h(y8b(),{...d,method:"DELETE"});var ns={uploadFinaCertificate:b(Lgb,1),getFinaCertificate:b(Ggb,0),delete:b(Vgb,0)};var O8b=d=>`/fiscalization/fina/premises/${d}/devices`,Kgb=async(d,u)=>h(O8b(d),{...u,method:"GET"}),v8b=d=>`/fiscalization/fina/premises/${d}/devices`,Zgb=async(d,u,g)=>h(v8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),h8b=d=>`/fiscalization/fina/devices/${d}`,qgb=async(d,u)=>h(h8b(d),{...u,method:"GET"}),b8b=d=>`/fiscalization/fina/devices/${d}`,Wgb=async(d,u,g)=>h(b8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),S8b=d=>`/fiscalization/fina/devices/${d}`,Ygb=async(d,u)=>h(S8b(d),{...u,method:"DELETE"});var ss={listFinaDevices:b(Kgb,1),registerFinaDevice:b(Zgb,2),getFinaDevice:b(qgb,1),update:b(Wgb,2),delete:b(Ygb,1)};var f8b=()=>"/fiscalization/fina/premises",$gb=async d=>h(f8b(),{...d,method:"GET"}),z8b=()=>"/fiscalization/fina/premises",Qgb=async(d,u)=>h(z8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I8b=d=>`/fiscalization/fina/premises/${d}`,Jgb=async(d,u)=>h(I8b(d),{...u,method:"GET"}),B8b=d=>`/fiscalization/fina/premises/${d}`,Xgb=async(d,u,g)=>h(B8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),E8b=d=>`/fiscalization/fina/premises/${d}`,e0b=async(d,u)=>h(E8b(d),{...u,method:"DELETE"});var os={listFinaPremises:b($gb,0),create:b(Qgb,1),getFinaPremise:b(Jgb,1),update:b(Xgb,2),delete:b(e0b,1)};var T8b=()=>"/fiscalization/fina/settings",t0b=async d=>h(T8b(),{...d,method:"GET"}),D8b=()=>"/fiscalization/fina/settings",n0b=async(d,u)=>h(D8b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var is={list:b(t0b,0),update:b(n0b,1)};var R8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},s0b=async(d,u)=>h(R8b(d),{...u,method:"GET"}),_8b=()=>"/financial-categories",o0b=async(d,u)=>h(_8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),N8b=d=>`/financial-categories/${d}`,i0b=async(d,u,g)=>h(N8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M8b=d=>`/financial-categories/${d}`,a0b=async(d,u)=>h(M8b(d),{...u,method:"DELETE"}),U8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},r0b=async(d,u)=>h(U8b(d),{...u,method:"GET"}),P8b=()=>"/financial-categories/document-items/batch",l0b=async(d,u)=>h(P8b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),C8b=d=>`/financial-categories/document-items/${d}`,d0b=async(d,u,g)=>h(C8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var as={list:se(s0b),create:b(o0b,1),update:b(i0b,2),delete:b(a0b,1),getRevenueByFinancialCategory:b(r0b,1),updateDocumentItemFinancialCategories:b(l0b,1),updateDocumentItemFinancialCategory:b(d0b,2)};var w8b=()=>"/fiscalization/furs/settings/certificate",c0b=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(w8b(),{...u,method:"POST",body:g})},A8b=()=>"/fiscalization/furs/settings/certificate",u0b=async d=>h(A8b(),{...d,method:"GET"}),F8b=()=>"/fiscalization/furs/settings/certificate",p0b=async d=>h(F8b(),{...d,method:"DELETE"});var rs={uploadFursCertificate:b(c0b,1),getFursCertificate:b(u0b,0),delete:b(p0b,0)};var k8b=d=>`/fiscalization/furs/premises/${d}/devices`,m0b=async(d,u)=>h(k8b(d),{...u,method:"GET"}),j8b=d=>`/fiscalization/furs/premises/${d}/devices`,x0b=async(d,u,g)=>h(j8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H8b=d=>`/fiscalization/furs/devices/${d}`,g0b=async(d,u)=>h(H8b(d),{...u,method:"GET"}),L8b=d=>`/fiscalization/furs/devices/${d}`,y0b=async(d,u,g)=>h(L8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var ls={listFursElectronicDevices:b(m0b,1),registerFursElectronicDevice:b(x0b,2),getFursElectronicDevice:b(g0b,1),update:b(y0b,2)};var G8b=()=>"/fiscalization/furs/internal-act/report.pdf",O0b=async d=>h(G8b(),{...d,method:"GET"}),V8b=()=>"/fiscalization/furs/internal-act/report.docx",v0b=async d=>h(V8b(),{...d,method:"GET"});var ds={generateFursInternalActPdf:b(O0b,0),generateFursInternalActDocx:b(v0b,0)};var K8b=()=>"/fiscalization/furs/premises",h0b=async d=>h(K8b(),{...d,method:"GET"}),Z8b=d=>`/fiscalization/furs/premises/${d}`,b0b=async(d,u)=>h(Z8b(d),{...u,method:"GET"}),q8b=d=>`/fiscalization/furs/premises/${d}`,S0b=async(d,u,g)=>h(q8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),W8b=()=>"/fiscalization/furs/premises/real-estate",f0b=async(d,u)=>h(W8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y8b=()=>"/fiscalization/furs/premises/movable",z0b=async(d,u)=>h(Y8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$8b=d=>`/fiscalization/furs/premises/${d}/close`,I0b=async(d,u)=>h($8b(d),{...u,method:"POST"});var cs={listFursBusinessPremises:b(h0b,0),getFursBusinessPremise:b(b0b,1),update:b(S0b,2),registerFursRealEstatePremise:b(f0b,1),registerFursMovablePremise:b(z0b,1),closeFursBusinessPremise:b(I0b,1)};var Q8b=()=>"/fiscalization/furs/settings",B0b=async d=>h(Q8b(),{...d,method:"GET"}),J8b=()=>"/fiscalization/furs/settings",E0b=async(d,u)=>h(J8b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var us={list:b(B0b,0),update:b(E0b,1)};var X8b=()=>"/health/live",T0b=async d=>h(X8b(),{...d,method:"GET"}),eYb=()=>"/health/ready",D0b=async d=>h(eYb(),{...d,method:"GET"}),tYb=()=>"/health",R0b=async d=>h(tYb(),{...d,method:"GET"});var ps={livenessCheck:b(T0b,0),readinessCheck:b(D0b,0),healthCheck:b(R0b,0)};var nYb=d=>`/invoices/${d}/nav/retry`,_0b=async(d,u)=>h(nYb(d),{...u,method:"POST"}),sYb=d=>`/invoices/${d}/nav/reconcile`,N0b=async(d,u)=>h(sYb(d),{...u,method:"POST"}),oYb=d=>`/invoices/${d}/nav/resolve`,M0b=async(d,u,g)=>h(oYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),iYb=d=>`/invoices/${d}/nav/annulment`,U0b=async(d,u,g)=>h(iYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),aYb=d=>`/invoices/shareable/${d}`,P0b=async(d,u)=>h(aYb(d),{...u,method:"GET"}),rYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/invoices/shareable/${d}/html?${T}`:`/invoices/shareable/${d}/html`},C0b=async(d,u,g)=>h(rYb(d,u),{...g,method:"GET"}),lYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/invoices/shareable/${d}/pdf?${T}`:`/invoices/shareable/${d}/pdf`},w0b=async(d,u,g)=>h(lYb(d,u),{...g,method:"GET"}),dYb=d=>`/invoices/shareable/${d}/eslog`,A0b=async(d,u)=>h(dYb(d),{...u,method:"GET"}),cYb=d=>`/invoices/${d}/ksef/recover`,F0b=async(d,u)=>h(cYb(d),{...u,method:"POST"}),uYb=d=>`/invoices/${d}/ksef`,k0b=async(d,u)=>h(uYb(d),{...u,method:"GET"}),pYb=d=>`/invoices/${d}/ksef/submit`,j0b=async(d,u)=>h(pYb(d),{...u,method:"POST"}),mYb=d=>`/invoices/${d}/ksef/upo`,H0b=async(d,u)=>h(mYb(d),{...u,method:"GET"}),xYb=()=>"/invoices",L0b=async(d,u)=>h(xYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),gYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invoices?${g}`:"/invoices"},G0b=async(d,u)=>h(gYb(d),{...u,method:"GET"}),yYb=()=>"/invoices/custom",V0b=async(d,u)=>h(yYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),OYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/invoices/${d}?${T}`:`/invoices/${d}`},K0b=async(d,u,g)=>h(OYb(d,u),{...g,method:"GET"}),vYb=d=>`/invoices/${d}`,Z0b=async(d,u,g)=>h(vYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hYb=d=>`/invoices/${d}/credit-options`,q0b=async(d,u)=>h(hYb(d),{...u,method:"GET"}),bYb=d=>`/invoices/${d}/xrechnung`,W0b=async(d,u)=>h(bYb(d),{...u,method:"GET"}),SYb=d=>`/invoices/${d}/zugferd`,Y0b=async(d,u)=>h(SYb(d),{...u,method:"GET"}),fYb=d=>`/invoices/${d}/versions`,$0b=async(d,u)=>h(fYb(d),{...u,method:"GET"}),zYb=(d,u)=>`/invoices/${d}/versions/${u}`,Q0b=async(d,u,g)=>h(zYb(d,u),{...g,method:"GET"}),IYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},J0b=async(d,u,g)=>h(IYb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),BYb=d=>`/invoices/${d}/void`,X0b=async(d,u,g)=>h(BYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),EYb=d=>`/invoices/${d}/fiscalize`,eyb=async(d,u)=>h(EYb(d),{...u,method:"POST"}),TYb=d=>`/invoices/${d}/change-buyer-oib`,tyb=async(d,u,g)=>h(TYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),DYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/html?${T}`:`/documents/${d}/html`},nyb=async(d,u,g)=>h(DYb(d,u),{...g,method:"GET"}),RYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/documents/${d}/pdf?${T}`:`/documents/${d}/pdf`},syb=async(d,u,g)=>h(RYb(d,u),{...g,method:"GET"});function ms(d,u){let g=URL.createObjectURL(d),T=document.createElement("a");T.href=g,T.download=u,document.body.appendChild(T),T.click(),document.body.removeChild(T),URL.revokeObjectURL(g);}var oyb=b(syb,2),_Yb=Object.assign(async(d,u,g,T)=>{let z=await oyb(d,g,T);ms(z,u);},{__sdkOptionsIndex:3}),xs={retryInvoiceNav:b(_0b,1),reconcileInvoiceNav:b(N0b,1),resolveInvoiceNav:b(M0b,2),annulInvoiceNav:b(U0b,2),getShareableInvoice:b(P0b,1),getShareableInvoiceHtml:b(C0b,2),getShareableInvoicePdf:b(w0b,2),getShareableInvoiceEslog:b(A0b,1),recoverInvoiceFromKsef:b(F0b,1),getInvoiceKsefState:b(k0b,1),submitInvoiceToKsef:b(j0b,1),getInvoiceKsefUpo:b(H0b,1),create:b(L0b,1),list:se(G0b),createCustom:b(V0b,1),get:b(K0b,2),update:b(Z0b,2),getCreditOptions:b(q0b,1),downloadInvoiceXRechnung:b(W0b,1),downloadInvoiceZugferd:b(Y0b,1),getVersions:b($0b,1),getVersion:b(Q0b,2),renderInvoicePreview:b(J0b,2),void:b(X0b,2),fiscalizeInvoice:b(eyb,1),changeInvoiceBuyerOib:b(tyb,2),renderHtml:b(nyb,2),renderPdf:oyb,downloadPdf:_Yb};var NYb=()=>"/items",iyb=async(d,u)=>h(NYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/items?${g}`:"/items"},ayb=async(d,u)=>h(MYb(d),{...u,method:"GET"}),UYb=()=>"/items/categories",ryb=async d=>h(UYb(),{...d,method:"GET"}),PYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},lyb=async(d,u)=>h(PYb(d),{...u,method:"GET"}),CYb=()=>"/items/import/preview",dyb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(CYb(),{...u,method:"POST",body:g})},wYb=()=>"/items/import",cyb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(wYb(),{...u,method:"POST",body:g})},AYb=d=>`/items/${d}`,uyb=async(d,u,g)=>h(AYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),FYb=d=>`/items/${d}`,pyb=async(d,u)=>h(FYb(d),{...u,method:"DELETE"}),kYb=d=>`/items/${d}/restore`,myb=async(d,u)=>h(kYb(d),{...u,method:"POST"}),jYb=d=>`/items/${d}/permanent`,xyb=async(d,u)=>h(jYb(d),{...u,method:"DELETE"}),HYb=d=>`/items/${d}/inventory`,gyb=async(d,u)=>h(HYb(d),{...u,method:"GET"}),LYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/items/${d}/inventory/movements?${T}`:`/items/${d}/inventory/movements`},yyb=async(d,u,g)=>h(LYb(d,u),{...g,method:"GET"}),GYb=d=>`/items/${d}/inventory/movements`,Oyb=async(d,u,g)=>h(GYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VYb=(d,u)=>`/items/${d}/inventory/movements/${u}`,vyb=async(d,u,g)=>h(VYb(d,u),{...g,method:"DELETE"}),KYb=d=>`/items/${d}/components`,hyb=async(d,u)=>h(KYb(d),{...u,method:"GET"}),ZYb=d=>`/items/${d}/components`,byb=async(d,u,g)=>h(ZYb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var gs={create:b(iyb,1),list:se(ayb),categories:b(ryb,0),getItemsImportTemplate:b(lyb,1),preview:b(dyb,1),importItems:b(cyb,1),update:b(uyb,2),delete:b(pyb,1),restoreItem:b(myb,1),permanentDeleteItem:b(xyb,1),getItemInventory:b(gyb,1),getItemInventoryMovements:b(yyb,2),createItemInventoryMovement:b(Oyb,2),deleteItemInventoryMovement:b(vyb,2),listItemComponents:b(hyb,1),setItemComponents:b(byb,2)};var qYb=()=>"/legacy-migration/auth",Syb=async(d,u)=>h(qYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/legacy-migration/organizations/${d}?${T}`:`/legacy-migration/organizations/${d}`},fyb=async(d,u,g)=>h(WYb(d,u),{...g,method:"GET"}),YYb=()=>"/legacy-migration/jobs",zyb=async(d,u)=>h(YYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$Yb=()=>"/legacy-migration/jobs",Iyb=async d=>h($Yb(),{...d,method:"GET"}),QYb=d=>`/legacy-migration/jobs/${d}`,Byb=async(d,u)=>h(QYb(d),{...u,method:"GET"});var ys={legacyMigrationAuth:b(Syb,1),getLegacyMigrationOrganization:b(fyb,2),create:b(zyb,1),listMigrationJobs:b(Iyb,0),getMigrationJob:b(Byb,1)};var JYb=()=>"/locale/detect",Eyb=async d=>h(JYb(),{...d,method:"GET"});var Os={detectLocale:b(Eyb,0)};var XYb=()=>"/order-integrations/shopify/authorize",Tyb=async(d,u)=>h(XYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),e$b=()=>"/order-integrations/woocommerce/authorize",Dyb=async(d,u)=>h(e$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),t$b=()=>"/order-integrations/magento/authorize",Ryb=async(d,u)=>h(t$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),n$b=d=>`/order-integrations/magento/authorizations/${d}`,_yb=async(d,u)=>h(n$b(d),{...u,method:"GET"}),s$b=()=>"/order-integrations/shopify/resume-install",Nyb=async(d,u)=>h(s$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),o$b=d=>`/order-integrations/${d}/promote-shopify-billing`,Myb=async(d,u)=>h(o$b(d),{...u,method:"POST"}),i$b=d=>`/order-integrations/${d}/sync-shopify`,Uyb=async(d,u,g)=>h(i$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),a$b=d=>`/order-integrations/${d}/sync`,Pyb=async(d,u,g)=>h(a$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),r$b=()=>"/order-integrations/custom/connect",Cyb=async(d,u)=>h(r$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),l$b=d=>`/order-integrations/${d}/custom/rotate-secret`,wyb=async(d,u)=>h(l$b(d),{...u,method:"POST"}),d$b=d=>`/order-integrations/${d}/orders`,Ayb=async(d,u,g)=>h(d$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),c$b=()=>"/order-integrations",Fyb=async(d,u)=>h(c$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),u$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},kyb=async(d,u)=>h(u$b(d),{...u,method:"GET"}),p$b=d=>`/order-integrations/${d}`,jyb=async(d,u)=>h(p$b(d),{...u,method:"GET"}),m$b=d=>`/order-integrations/${d}`,Hyb=async(d,u,g)=>h(m$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),x$b=d=>`/order-integrations/${d}`,Lyb=async(d,u)=>h(x$b(d),{...u,method:"DELETE"});var vs={authorizeShopify:b(Tyb,1),authorizeWooCommerce:b(Dyb,1),authorizeMagento:b(Ryb,1),getMagentoAuthorization:b(_yb,1),resumeShopifyInstall:b(Nyb,1),promoteShopifyBilling:b(Myb,1),syncShopifyOrders:b(Uyb,2),syncOrderIntegration:b(Pyb,2),connectCustomStore:b(Cyb,1),rotateCustomStoreSecret:b(wyb,1),pushCustomStoreOrder:b(Ayb,2),create:b(Fyb,1),list:se(kyb),get:b(jyb,1),update:b(Hyb,2),delete:b(Lyb,1)};var g$b=()=>"/orders",Gyb=async(d,u)=>h(g$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/orders?${g}`:"/orders"},Vyb=async(d,u)=>h(y$b(d),{...u,method:"GET"}),O$b=d=>`/orders/${d}`,Kyb=async(d,u)=>h(O$b(d),{...u,method:"GET"}),v$b=d=>`/orders/${d}`,Zyb=async(d,u,g)=>h(v$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),h$b=d=>`/orders/${d}`,qyb=async(d,u)=>h(h$b(d),{...u,method:"DELETE"}),b$b=d=>`/orders/${d}/process`,Wyb=async(d,u)=>h(b$b(d),{...u,method:"POST"}),S$b=d=>`/orders/${d}/cancel`,Yyb=async(d,u)=>h(S$b(d),{...u,method:"POST"}),f$b=d=>`/orders/${d}/reissue`,$yb=async(d,u)=>h(f$b(d),{...u,method:"POST"}),z$b=()=>"/orders/export/pdf",Qyb=async(d,u)=>h(z$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I$b=d=>`/orders/export/pdf/${d}`,Jyb=async(d,u)=>h(I$b(d),{...u,method:"GET"}),B$b=d=>`/orders/export/pdf/${d}/download`,Xyb=async(d,u)=>h(B$b(d),{...u,method:"GET"});var hs={create:b(Gyb,1),list:se(Vyb),get:b(Kyb,1),update:b(Zyb,2),delete:b(qyb,1),processOrder:b(Wyb,1),cancelOrder:b(Yyb,1),reissueOrder:b($yb,1),startOrdersPdfExport:b(Qyb,1),getOrdersPdfExportJob:b(Jyb,1),downloadOrdersPdfExport:b(Xyb,1)};var E$b=()=>"/payment-reminders/send",eOb=async(d,u)=>h(E$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),T$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},tOb=async(d,u)=>h(T$b(d),{...u,method:"GET"});var bs={sendPaymentReminder:b(eOb,1),list:se(tOb)};var D$b=()=>"/payments",nOb=async(d,u)=>h(D$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),R$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/payments?${g}`:"/payments"},sOb=async(d,u)=>h(R$b(d),{...u,method:"GET"}),_$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/payments/${d}?${T}`:`/payments/${d}`},oOb=async(d,u,g)=>h(_$b(d,u),{...g,method:"GET"}),N$b=d=>`/payments/${d}`,iOb=async(d,u,g)=>h(N$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M$b=d=>`/payments/${d}`,aOb=async(d,u)=>h(M$b(d),{...u,method:"DELETE"}),U$b=d=>`/payments/${d}/restore`,rOb=async(d,u)=>h(U$b(d),{...u,method:"POST"}),P$b=d=>`/payments/${d}/permanent`,lOb=async(d,u)=>h(P$b(d),{...u,method:"DELETE"}),C$b=()=>"/bank-imports",dOb=async(d,u)=>{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.ledger_account_code!==void 0&&d.ledger_account_code!==null&&g.append("ledger_account_code",d.ledger_account_code),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),h(C$b(),{...u,method:"POST",body:g})},w$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},cOb=async(d,u)=>h(w$b(d),{...u,method:"GET"}),A$b=d=>`/bank-imports/${d}`,uOb=async(d,u)=>h(A$b(d),{...u,method:"GET"}),F$b=d=>`/bank-imports/${d}/summary`,pOb=async(d,u)=>h(F$b(d),{...u,method:"GET"}),k$b=d=>`/bank-imports/${d}/match`,mOb=async(d,u)=>h(k$b(d),{...u,method:"POST"}),j$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},xOb=async(d,u)=>h(j$b(d),{...u,method:"GET"}),H$b=d=>`/bank-transactions/${d}`,gOb=async(d,u)=>h(H$b(d),{...u,method:"GET"}),L$b=d=>`/bank-transactions/${d}/link`,yOb=async(d,u,g)=>h(L$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),G$b=d=>`/bank-transactions/${d}/confirm-fee`,OOb=async(d,u,g)=>h(G$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),V$b=d=>`/bank-transactions/${d}/categorize`,vOb=async(d,u,g)=>h(V$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),K$b=()=>"/bank-transactions/apply-category-suggestions",hOb=async(d,u)=>h(K$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Z$b=d=>`/bank-transactions/${d}/ignore`,bOb=async(d,u)=>h(Z$b(d),{...u,method:"POST"}),q$b=d=>`/bank-transactions/${d}/unlink`,SOb=async(d,u)=>h(q$b(d),{...u,method:"POST"});var Ss={create:b(nOb,1),list:se(sOb),get:b(oOb,2),update:b(iOb,2),delete:b(aOb,1),restorePayment:b(rOb,1),permanentDeletePayment:b(lOb,1),importBankStatement:b(dOb,1),listBankImports:b(cOb,1),getBankImport:b(uOb,1),getBankImportSummary:b(pOb,1),rematchBankImport:b(mOb,1),listBankTransactions:b(xOb,1),getBankTransaction:b(gOb,1),linkBankTransaction:b(yOb,2),confirmBankTransactionFee:b(OOb,2),categorizeBankTransaction:b(vOb,2),applyBankTransactionCategorySuggestions:b(hOb,1),ignoreBankTransaction:b(bOb,1),unlinkBankTransaction:b(SOb,1)};var W$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},fOb=async(d,u)=>h(W$b(d),{...u,method:"GET"}),Y$b=()=>"/pos/tables",zOb=async(d,u)=>h(Y$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$$b=d=>`/pos/tables/${d}`,IOb=async(d,u,g)=>h($$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Q$b=d=>`/pos/tables/${d}`,BOb=async(d,u)=>h(Q$b(d),{...u,method:"DELETE"}),J$b=d=>`/pos/tabs/${d}/items`,EOb=async(d,u,g)=>h(J$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),X$b=d=>`/pos/tabs/${d}/claim`,TOb=async(d,u,g)=>h(X$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eQb=d=>`/pos/tabs/${d}/release`,DOb=async(d,u,g)=>h(eQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),tQb=d=>`/pos/tabs/${d}/close`,ROb=async(d,u,g)=>h(tQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),nQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},_Ob=async(d,u)=>h(nQb(d),{...u,method:"GET"}),sQb=()=>"/pos/tabs",NOb=async(d,u)=>h(sQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),oQb=d=>`/pos/tabs/${d}`,MOb=async(d,u)=>h(oQb(d),{...u,method:"GET"}),iQb=d=>`/pos/tabs/${d}`,UOb=async(d,u,g)=>h(iQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),aQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/pos/tabs/${d}?${T}`:`/pos/tabs/${d}`},POb=async(d,u,g)=>h(aQb(d,u),{...g,method:"DELETE"}),rQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},COb=async(d,u)=>h(rQb(d),{...u,method:"GET"}),lQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},wOb=async(d,u)=>h(lQb(d),{...u,method:"GET"}),dQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},AOb=async(d,u)=>h(dQb(d),{...u,method:"GET"}),cQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},FOb=async(d,u)=>h(cQb(d),{...u,method:"GET"}),uQb=()=>"/pos/operators",kOb=async d=>h(uQb(),{...d,method:"GET"}),pQb=()=>"/pos/operators/enrol",jOb=async(d,u)=>h(pQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),mQb=()=>"/pos/operators/switch",HOb=async(d,u)=>h(mQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),xQb=d=>`/pos/operators/${d}/pin`,LOb=async(d,u,g)=>h(xQb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),gQb=d=>`/pos/operators/${d}/pin`,GOb=async(d,u)=>h(gQb(d),{...u,method:"DELETE"});var yQb=b(POb,2),fs={listTables:se(fOb),createTable:b(zOb,1),updateTable:b(IOb,2),deleteTable:b(BOb,1),appendTabItems:b(EOb,2),claimTab:b(TOb,2),releaseTab:b(DOb,2),closeTab:b(ROb,2),listTabs:se(_Ob),createTab:b(NOb,1),getTab:b(MOb,1),updateTab:b(UOb,2),cancelTab:Object.assign((...d)=>yQb(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:b(COb,1),exportPosMonthlyReport:b(wOb,1),dailyReport:b(AOb,1),getPosMonthlyReport:b(FOb,1),listOperators:b(kOb,0),enrolPosOperator:b(jOb,1),switchOperator:b(HOb,1),setOperatorPin:b(LOb,2),clearOperatorPin:b(GOb,1)};var OQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/items/prices?${g}`:"/items/prices"},VOb=async(d,u)=>h(OQb(d),{...u,method:"GET"}),vQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/price-lists?${g}`:"/price-lists"},KOb=async(d,u)=>h(vQb(d),{...u,method:"GET"}),hQb=()=>"/price-lists",ZOb=async(d,u)=>h(hQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),bQb=d=>`/price-lists/${d}`,qOb=async(d,u)=>h(bQb(d),{...u,method:"GET"}),SQb=d=>`/price-lists/${d}`,WOb=async(d,u,g)=>h(SQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),fQb=d=>`/price-lists/${d}`,YOb=async(d,u)=>h(fQb(d),{...u,method:"DELETE"}),zQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/price-lists/${d}/prices?${T}`:`/price-lists/${d}/prices`},$Ob=async(d,u,g)=>h(zQb(d,u),{...g,method:"GET"}),IQb=d=>`/price-lists/${d}/prices`,QOb=async(d,u,g)=>h(IQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),BQb=d=>`/price-lists/${d}/prices/bulk`,JOb=async(d,u,g)=>h(BQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),EQb=(d,u)=>`/price-lists/${d}/prices/${u}`,XOb=async(d,u,g)=>h(EQb(d,u),{...g,method:"DELETE"});var zs={resolveItemPrices:b(VOb,1),list:se(KOb),create:b(ZOb,1),get:b(qOb,1),update:b(WOb,2),delete:b(YOb,1),listPriceListPrices:b($Ob,2),upsertPriceListPrices:b(QOb,2),bulkSetPriceListPrices:b(JOb,2),removePriceListPrice:b(XOb,2)};var TQb=()=>"/fiscalization/pt/atcud-series",evb=async(d,u)=>h(TQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),DQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},tvb=async(d,u)=>h(DQb(d),{...u,method:"GET"}),RQb=d=>`/fiscalization/pt/atcud-series/${d}`,nvb=async(d,u)=>h(RQb(d),{...u,method:"GET"}),_Qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},svb=async(d,u)=>h(_Qb(d),{...u,method:"POST"}),NQb=d=>`/fiscalization/pt/atcud-series/${d}/retire`,ovb=async(d,u)=>h(NQb(d),{...u,method:"POST"});var Is={create:b(evb,1),list:se(tvb),get:b(nvb,1),getActive:b(svb,1),retirePtAtcudSeries:b(ovb,1)};var MQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},ivb=async(d,u)=>h(MQb(d),{...u,method:"GET"});var Bs={generateReport:b(ivb,1)};var UQb=d=>`/purchase-orders/shareable/${d}`,avb=async(d,u)=>h(UQb(d),{...u,method:"GET"}),PQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/purchase-orders/shareable/${d}/html?${T}`:`/purchase-orders/shareable/${d}/html`},rvb=async(d,u,g)=>h(PQb(d,u),{...g,method:"GET"}),CQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/purchase-orders/shareable/${d}/pdf?${T}`:`/purchase-orders/shareable/${d}/pdf`},lvb=async(d,u,g)=>h(CQb(d,u),{...g,method:"GET"}),wQb=()=>"/purchase-orders",dvb=async(d,u)=>h(wQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),AQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},cvb=async(d,u)=>h(AQb(d),{...u,method:"GET"}),FQb=d=>`/purchase-orders/${d}`,uvb=async(d,u)=>h(FQb(d),{...u,method:"GET"}),kQb=d=>`/purchase-orders/${d}`,pvb=async(d,u,g)=>h(kQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),jQb=d=>`/purchase-orders/${d}/versions`,mvb=async(d,u)=>h(jQb(d),{...u,method:"GET"}),HQb=(d,u)=>`/purchase-orders/${d}/versions/${u}`,xvb=async(d,u,g)=>h(HQb(d,u),{...g,method:"GET"}),LQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},gvb=async(d,u,g)=>h(LQb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),GQb=d=>`/purchase-orders/${d}/void`,yvb=async(d,u,g)=>h(GQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Es={getShareablePurchaseOrder:b(avb,1),getShareablePurchaseOrderHtml:b(rvb,2),getShareablePurchaseOrderPdf:b(lvb,2),create:b(dvb,1),list:se(cvb),get:b(uvb,1),update:b(pvb,2),getVersions:b(mvb,1),getVersion:b(xvb,2),renderPurchaseOrderPreview:b(gvb,2),void:b(yvb,2)};var VQb=()=>"/recurring-invoices",Ovb=async(d,u)=>h(VQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},vvb=async(d,u)=>h(KQb(d),{...u,method:"GET"}),ZQb=d=>`/recurring-invoices/${d}`,hvb=async(d,u)=>h(ZQb(d),{...u,method:"GET"}),qQb=d=>`/recurring-invoices/${d}`,bvb=async(d,u,g)=>h(qQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WQb=d=>`/recurring-invoices/${d}`,Svb=async(d,u)=>h(WQb(d),{...u,method:"DELETE"}),YQb=d=>`/recurring-invoices/${d}/restore`,fvb=async(d,u)=>h(YQb(d),{...u,method:"POST"}),$Qb=d=>`/recurring-invoices/${d}/permanent`,zvb=async(d,u)=>h($Qb(d),{...u,method:"DELETE"}),QQb=d=>`/recurring-invoices/${d}/pause`,Ivb=async(d,u)=>h(QQb(d),{...u,method:"POST"}),JQb=d=>`/recurring-invoices/${d}/resume`,Bvb=async(d,u)=>h(JQb(d),{...u,method:"POST"}),XQb=d=>`/recurring-invoices/${d}/trigger`,Evb=async(d,u)=>h(XQb(d),{...u,method:"POST"});var Ts={create:b(Ovb,1),list:se(vvb),get:b(hvb,1),update:b(bvb,2),delete:b(Svb,1),restoreRecurringInvoice:b(fvb,1),permanentDeleteRecurringInvoice:b(zvb,1),pauseRecurringInvoice:b(Ivb,1),resumeRecurringInvoice:b(Bvb,1),triggerRecurringInvoice:b(Evb,1)};var eJb=()=>"/revenue-recognition/settings",Tvb=async d=>h(eJb(),{...d,method:"GET"}),tJb=()=>"/revenue-recognition/settings",Dvb=async(d,u)=>h(tJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nJb=()=>"/revenue-recognition/backfill",Rvb=async(d,u)=>h(nJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),sJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},_vb=async(d,u)=>h(sJb(d),{...u,method:"GET"}),oJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},Nvb=async(d,u)=>h(oJb(d),{...u,method:"GET"}),iJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},Mvb=async(d,u)=>h(iJb(d),{...u,method:"GET"}),aJb=d=>`/revenue-recognition/documents/${d}`,Uvb=async(d,u)=>h(aJb(d),{...u,method:"GET"});var Ds={getSettings:b(Tvb,0),updateSettings:b(Dvb,1),backfill:b(Rvb,1),getReport:b(_vb,1),getDetails:b(Nvb,1),listLines:b(Mvb,1),getDocumentSchedule:b(Uvb,1)};var rJb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/orders/${d}/shipment-draft?${T}`:`/orders/${d}/shipment-draft`},Pvb=async(d,u,g)=>h(rJb(d,u),{...g,method:"GET"}),lJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/shipments?${g}`:"/shipments"},Cvb=async(d,u)=>h(lJb(d),{...u,method:"GET"}),dJb=()=>"/shipments",wvb=async(d,u)=>h(dJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cJb=()=>"/shipments/labels",Avb=async(d,u)=>h(cJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),uJb=d=>`/shipments/${d}`,Fvb=async(d,u)=>h(uJb(d),{...u,method:"GET"}),pJb=d=>`/shipments/${d}/label`,kvb=async(d,u)=>h(pJb(d),{...u,method:"GET"}),mJb=d=>`/shipments/${d}/cancel`,jvb=async(d,u,g)=>h(mJb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Rs={getOrderShipmentDraft:b(Pvb,2),listShipments:b(Cvb,1),create:b(wvb,1),downloadShipmentLabels:b(Avb,1),getShipment:b(Fvb,1),downloadShipmentLabel:b(kvb,1),cancelShipment:b(jvb,2)};var xJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/shipping-connections?${g}`:"/shipping-connections"},Hvb=async(d,u)=>h(xJb(d),{...u,method:"GET"}),gJb=()=>"/shipping-connections",Lvb=async(d,u)=>h(gJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),yJb=d=>`/shipping-connections/${d}`,Gvb=async(d,u)=>h(yJb(d),{...u,method:"GET"}),OJb=d=>`/shipping-connections/${d}`,Vvb=async(d,u,g)=>h(OJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),vJb=d=>`/shipping-connections/${d}`,Kvb=async(d,u)=>h(vJb(d),{...u,method:"DELETE"});var _s={listShippingConnections:b(Hvb,1),create:b(Lvb,1),getShippingConnection:b(Gvb,1),update:b(Vvb,2),delete:b(Kvb,1)};var hJb=()=>"/stripe-app/marketplace-authorize",Zvb=async(d,u)=>h(hJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),bJb=()=>"/stripe-app/connect",qvb=async(d,u)=>h(bJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),SJb=()=>"/stripe-app/entity-connection",Wvb=async d=>h(SJb(),{...d,method:"GET"}),fJb=()=>"/stripe-app/entity-connection",Yvb=async d=>h(fJb(),{...d,method:"DELETE"}),zJb=()=>"/stripe-app/entity-settings",$vb=async d=>h(zJb(),{...d,method:"GET"}),IJb=()=>"/stripe-app/entity-settings",Qvb=async(d,u)=>h(IJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Ns={stripeAppMarketplaceAuthorize:b(Zvb,1),stripeAppConnect:b(qvb,1),stripeAppEntityGetConnection:b(Wvb,0),stripeAppEntityDisconnect:b(Yvb,0),stripeAppEntityGetSettings:b($vb,0),stripeAppEntityUpdateSettings:b(Qvb,1)};var BJb=()=>"/subscriptions",Jvb=async d=>h(BJb(),{...d,method:"GET"}),EJb=()=>"/subscriptions/spending-limit",Xvb=async(d,u)=>h(EJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TJb=()=>"/subscriptions/check-entity-limit",ehb=async d=>h(TJb(),{...d,method:"GET"});var Ms={getCurrent:b(Jvb,0),update:b(Xvb,1),checkEntityLimit:b(ehb,0)};var DJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},thb=async(d,u)=>h(DJb(d),{...u,method:"GET"});var Us={listUsTaxRateEstimates:b(thb,1)};var RJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},nhb=async(d,u)=>h(RJb(d),{...u,method:"GET"}),_Jb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},shb=async(d,u)=>h(_Jb(d),{...u,method:"GET"}),NJb=()=>"/tax-reports/payments",ohb=async(d,u)=>h(NJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MJb=d=>`/tax-reports/payments/${d}`,ihb=async(d,u,g)=>h(MJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),UJb=d=>`/tax-reports/payments/${d}`,ahb=async(d,u)=>h(UJb(d),{...u,method:"DELETE"}),PJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},rhb=async(d,u)=>h(PJb(d),{...u,method:"GET"}),CJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},lhb=async(d,u)=>h(CJb(d),{...u,method:"POST"}),wJb=()=>"/tax-reports/si/profile",dhb=async d=>h(wJb(),{...d,method:"GET"}),AJb=()=>"/tax-reports/si/profile",chb=async(d,u)=>h(AJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),FJb=()=>"/tax-reports/si/yearly/normirani/review",uhb=async(d,u)=>h(FJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kJb=()=>"/tax-reports/si/yearly/normirani/export",phb=async(d,u)=>h(kJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jJb=()=>"/tax-reports/si/accounting/vod/export",mhb=async(d,u)=>h(jJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HJb=()=>"/tax-reports/si/accounting/minimax/export",xhb=async(d,u)=>h(HJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),LJb=()=>"/tax-reports/si/accounting/vasco/export",ghb=async(d,u)=>h(LJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),GJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},yhb=async(d,u)=>h(GJb(d),{...u,method:"GET"});var Ps={getTaxLiabilityReport:b(nhb,1),list:se(shb),create:b(ohb,1),update:b(ihb,2),delete:b(ahb,1),getEuOssReport:b(rhb,1),generateKirExport:b(lhb,1),getSloveniaTaxProfile:b(dhb,0),updateSloveniaTaxProfile:b(chb,1),reviewSloveniaYearlyNormiraniReport:b(uhb,1),exportSloveniaYearlyNormiraniReport:b(phb,1),exportSloveniaVodXml:b(mhb,1),exportSloveniaMinimaxXml:b(xhb,1),exportSloveniaVascoXml:b(ghb,1),exportQuickbooksCsv:b(yhb,1),listEmployees:b(Ae,1),registerEmployee:b(Fe,1),getEmployee:b(ke,1),modifyEmployee:b(je,2),archiveEmployee:b(He,1),getEmployeeAttendance:b(Le,2),replaceEmployeeAttendance:b(Ge,3),resolvePayrollParameters:b(Ve,1),getPayrollParameterHistory:b(Ke,1),setPayrollParameterOverride:b(Ze,3),preview:b(qe,1),draftVatReturn:b(We,1),listVatReturns:b(Ye,1),getVatReturn:b($e,1),recomputeVatReturn:b(Qe,1),approveVatReturn:b(Je,1),submitVatReturn:b(Xe,2),reopenVatReturn:b(et,1),exportVatReturn:b(tt,2),listFilings:b(nt,1),completeFiling:b(st,2),reopenFiling:b(ot,1),dismissFiling:b(it,2),listAccountFilingsCalendar:b(at,1)};var VJb=()=>"/taxes",Ohb=async(d,u)=>h(VJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/taxes?${g}`:"/taxes"},vhb=async(d,u)=>h(KJb(d),{...u,method:"GET"}),ZJb=d=>`/taxes/${d}`,hhb=async(d,u,g)=>h(ZJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qJb=d=>`/taxes/${d}`,bhb=async(d,u,g)=>h(qJb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WJb=d=>`/taxes/${d}`,Shb=async(d,u)=>h(WJb(d),{...u,method:"DELETE"}),YJb=d=>`/taxes/${d}/restore`,fhb=async(d,u)=>h(YJb(d),{...u,method:"POST"}),$Jb=d=>`/taxes/${d}/permanent`,zhb=async(d,u)=>h($Jb(d),{...u,method:"DELETE"});var Cs={create:b(Ohb,1),list:se(vhb),update:b(hhb,2),replaceTax:b(bhb,2),delete:b(Shb,1),restoreTax:b(fhb,1),permanentDeleteTax:b(zhb,1)};var QJb=()=>"/fiscalization/ticketbai/settings",Ihb=async d=>h(QJb(),{...d,method:"GET"}),JJb=()=>"/fiscalization/ticketbai/settings",Bhb=async(d,u)=>h(JJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),XJb=()=>"/fiscalization/ticketbai/settings/certificate",Ehb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(XJb(),{...u,method:"POST",body:g})},eXb=d=>`/fiscalization/ticketbai/records/${d}`,Thb=async(d,u)=>h(eXb(d),{...u,method:"GET"}),tXb=d=>`/fiscalization/ticketbai/records/${d}/xml`,Dhb=async(d,u)=>h(tXb(d),{...u,method:"GET"}),nXb=d=>`/fiscalization/ticketbai/records/${d}/retry`,Rhb=async(d,u)=>h(nXb(d),{...u,method:"POST"}),sXb=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,_hb=async(d,u)=>h(sXb(d),{...u,method:"POST"});var ws={getSettings:b(Ihb,0),updateSettings:b(Bhb,1),uploadCertificate:b(Ehb,1),getRecord:b(Thb,1),downloadRecordXml:b(Dhb,1),retryRecord:b(Rhb,1),reconcileRecord:b(_hb,1)};var oXb=()=>"/transaction-type/check",Nhb=async(d,u)=>h(oXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var As={checkTransactionType:b(Nhb,1)};var iXb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},Mhb=async(d,u)=>h(iXb(d),{...u,method:"GET"}),aXb=()=>"/travel-orders",Uhb=async(d,u)=>h(aXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),rXb=()=>"/travel-orders/preview",Phb=async(d,u)=>h(rXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lXb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},Chb=async(d,u,g)=>h(lXb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),dXb=()=>"/travel-orders/route-distance",whb=async(d,u)=>h(dXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cXb=d=>`/travel-orders/${d}`,Ahb=async(d,u)=>h(cXb(d),{...u,method:"GET"}),uXb=d=>`/travel-orders/${d}`,Fhb=async(d,u,g)=>h(uXb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),pXb=d=>`/travel-orders/${d}`,khb=async(d,u)=>h(pXb(d),{...u,method:"DELETE"}),mXb=d=>`/travel-orders/${d}/approve`,jhb=async(d,u)=>h(mXb(d),{...u,method:"POST"}),xXb=d=>`/travel-orders/${d}/settle`,Hhb=async(d,u)=>h(xXb(d),{...u,method:"POST"}),gXb=d=>`/travel-orders/${d}/reopen`,Lhb=async(d,u,g)=>h(gXb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),yXb=d=>`/travel-orders/${d}/cancel`,Ghb=async(d,u)=>h(yXb(d),{...u,method:"POST"}),OXb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/travel-orders/${d}/pdf?${T}`:`/travel-orders/${d}/pdf`},Vhb=async(d,u,g)=>h(OXb(d,u),{...g,method:"GET"}),vXb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([z,M])=>{M!==void 0&&g.append(z,M===null?"null":M.toString());});let T=g.toString();return T.length>0?`/travel-orders/${d}/html?${T}`:`/travel-orders/${d}/html`},Khb=async(d,u,g)=>h(vXb(d,u),{...g,method:"GET"});var Fs={list:se(Mhb),create:b(Uhb,1),preview:b(Phb,1),renderTravelOrderPreview:b(Chb,2),calculateTravelOrderRouteDistance:b(whb,1),get:b(Ahb,1),update:b(Fhb,2),delete:b(khb,1),approveTravelOrder:b(jhb,1),settleTravelOrder:b(Hhb,1),reopenTravelOrder:b(Lhb,2),cancelTravelOrder:b(Ghb,1),renderPdf:b(Vhb,2),renderHtml:b(Khb,2)};var Ce="https://eu.spaceinvoices.com";var hXb=d=>`/documents/${d}/ujp`,Zhb=async(d,u)=>h(hXb(d),{...u,method:"GET"});var ks={download:b(Zhb,1)};var bXb=()=>"/upload/image",qhb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),h(bXb(),{...u,method:"POST",body:g})};var js={uploadImage:b(qhb,1)};var SXb=()=>"/accounts/two-factor-policy",Whb=async d=>h(SXb(),{...d,method:"GET"}),fXb=()=>"/accounts/two-factor-policy",Yhb=async(d,u)=>h(fXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),zXb=d=>`/entities/${d}/two-factor-policy`,$hb=async(d,u)=>h(zXb(d),{...u,method:"GET"}),IXb=d=>`/entities/${d}/two-factor-policy`,Qhb=async(d,u,g)=>h(IXb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),BXb=()=>"/users/two-factor/setup",Jhb=async(d,u)=>h(BXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),EXb=()=>"/users/two-factor/enable",Xhb=async(d,u)=>h(EXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TXb=()=>"/users/me/two-factor",ebb=async d=>h(TXb(),{...d,method:"GET"}),DXb=()=>"/users/me/two-factor/setup",tbb=async(d,u)=>h(DXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),RXb=()=>"/users/me/two-factor/enable",nbb=async(d,u)=>h(RXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_Xb=()=>"/users/me/two-factor/disable",sbb=async(d,u)=>h(_Xb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),NXb=()=>"/users/two-factor/verify",obb=async(d,u)=>h(NXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MXb=()=>"/users/login",ibb=async(d,u)=>h(MXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),UXb=()=>"/users/signup",abb=async(d,u)=>h(UXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),PXb=()=>"/users/password-reset",rbb=async(d,u)=>h(PXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),CXb=()=>"/users/password-reset/confirm",lbb=async(d,u)=>h(CXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wXb=()=>"/users/me/accounts",dbb=async d=>h(wXb(),{...d,method:"GET"}),AXb=()=>"/users/me",cbb=async d=>h(AXb(),{...d,method:"GET"}),FXb=()=>"/users/me",ubb=async(d,u)=>h(FXb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kXb=()=>"/users/me/account-deletion",pbb=async d=>h(kXb(),{...d,method:"POST"}),jXb=()=>"/users/me/settings/furs",mbb=async(d,u)=>h(jXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HXb=()=>"/users/me/settings/fina",xbb=async(d,u)=>h(HXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Hs={getAccountTwoFactorPolicy:b(Whb,0),updateAccountTwoFactorPolicy:b(Yhb,1),getEntityTwoFactorPolicy:b($hb,1),updateEntityTwoFactorPolicy:b(Qhb,2),setupRequiredTwoFactor:b(Jhb,1),enableRequiredTwoFactor:b(Xhb,1),getTwoFactorConfiguration:b(ebb,0),setupTwoFactor:b(tbb,1),enableTwoFactor:b(nbb,1),disableTwoFactor:b(sbb,1),verifyTwoFactor:b(obb,1),login:b(ibb,1),signup:b(abb,1),requestPasswordReset:b(rbb,1),confirmPasswordReset:b(lbb,1),listMyAccounts:b(dbb,0),getMe:b(cbb,0),update:b(ubb,1),requestAccountDeletion:b(pbb,0),updateFursSettings:b(mbb,1),updateFinaSettings:b(xbb,1)};var LXb=()=>"/fiscalization/verifactu/settings",gbb=async d=>h(LXb(),{...d,method:"GET"}),GXb=()=>"/fiscalization/verifactu/settings",ybb=async(d,u)=>h(GXb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),VXb=()=>"/fiscalization/verifactu/certificate",Obb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(VXb(),{...u,method:"POST",body:g})},KXb=d=>`/fiscalization/verifactu/records/${d}`,vbb=async(d,u)=>h(KXb(d),{...u,method:"GET"}),ZXb=d=>`/fiscalization/verifactu/records/${d}/retry`,hbb=async(d,u)=>h(ZXb(d),{...u,method:"POST"}),qXb=d=>`/fiscalization/verifactu/records/${d}/correct`,bbb=async(d,u,g)=>h(qXb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WXb=d=>`/fiscalization/verifactu/records/${d}/cancel`,Sbb=async(d,u,g)=>h(WXb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Ls={getSettings:b(gbb,0),updateSettings:b(ybb,1),uploadCertificate:b(Obb,1),getEvidence:b(vbb,1),retryRecord:b(hbb,1),correctRecord:b(bbb,2),cancelRecord:b(Sbb,2)};var YXb=()=>"/vies/check",fbb=async(d,u)=>h(YXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Gs={checkVies:b(fbb,1)};var $Xb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},zbb=async(d,u)=>h($Xb(d),{...u,method:"GET"}),QXb=()=>"/warehouses",Ibb=async(d,u)=>h(QXb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),JXb=d=>`/warehouses/${d}`,Bbb=async(d,u)=>h(JXb(d),{...u,method:"GET"}),XXb=d=>`/warehouses/${d}`,Ebb=async(d,u,g)=>h(XXb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eeS=d=>`/warehouses/${d}`,Tbb=async(d,u)=>h(eeS(d),{...u,method:"DELETE"});var Vs={list:se(zbb),create:b(Ibb,1),get:b(Bbb,1),update:b(Ebb,2),delete:b(Tbb,1)};var teS=()=>"/webhooks",Dbb=async(d,u)=>h(teS(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),neS=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([T,z])=>{z!==void 0&&u.append(T,z===null?"null":z.toString());});let g=u.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},Rbb=async(d,u)=>h(neS(d),{...u,method:"GET"}),seS=d=>`/webhooks/${d}`,_bb=async(d,u)=>h(seS(d),{...u,method:"GET"}),oeS=d=>`/webhooks/${d}`,Nbb=async(d,u,g)=>h(oeS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),ieS=d=>`/webhooks/${d}`,Mbb=async(d,u)=>h(ieS(d),{...u,method:"DELETE"}),aeS=d=>`/webhooks/${d}/test`,Ubb=async(d,u)=>h(aeS(d),{...u,method:"POST"});var reS=d=>`/webhooks/${d}/rotate-secret`,Pbb=async(d,u)=>h(reS(d),{...u,method:"POST"});var Ks={create:b(Dbb,1),list:se(Rbb),get:b(_bb,1),update:b(Nbb,2),delete:b(Mbb,1),testWebhook:b(Ubb,1),rotateWebhookSecret:b(Pbb,1)};var leS=()=>"/white-label-subscriptions",Cbb=async d=>h(leS(),{...d,method:"GET"}),deS=()=>"/white-label-subscriptions/plans",wbb=async d=>h(deS(),{...d,method:"GET"}),ceS=d=>`/white-label-subscriptions/check-feature/${d}`,Abb=async(d,u)=>h(ceS(d),{...u,method:"GET"}),ueS=d=>`/white-label-subscriptions/check-limit/${d}`,Fbb=async(d,u)=>h(ueS(d),{...u,method:"GET"}),peS=()=>"/white-label-subscriptions/billing-email",kbb=async(d,u)=>h(peS(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zs={getCurrentWLSubscription:b(Cbb,0),list:b(wbb,0),checkWLFeature:b(Abb,1),checkWLLimit:b(Fbb,1),update:b(kbb,1)};var meS=()=>"/white-labels/current",jbb=async d=>h(meS(),{...d,method:"GET"}),xeS=()=>"/white-labels/me",Hbb=async d=>h(xeS(),{...d,method:"GET"});var qs={getCurrentWhiteLabel:b(jbb,0),getMyWhiteLabel:b(Hbb,0)};var Pe=class{sdkConfig;accountWebhooks=Y(Tn,()=>this.sdkConfig);accounting=Y(Dn,()=>this.sdkConfig);activities=Y(Rn,()=>this.sdkConfig);advanceInvoices=Y(_n,()=>this.sdkConfig);businessUnits=Y(Nn,()=>this.sdkConfig);companyRegistry=Y(Mn,()=>this.sdkConfig);creditNotes=Y(Un,()=>this.sdkConfig);currency=Y(Pn,()=>this.sdkConfig);customers=Y(Cn,()=>this.sdkConfig);deliveryNotes=Y(wn,()=>this.sdkConfig);documents=Y(kn,()=>this.sdkConfig);eInvoicing=Y(Ln,()=>this.sdkConfig);eSlog=Y(Gn,()=>this.sdkConfig);eetCertificate=Y(Vn,()=>this.sdkConfig);eetSettings=Y(Kn,()=>this.sdkConfig);email=Y(Zn,()=>this.sdkConfig);entities=Y(qn,()=>this.sdkConfig);entityApiKeys=Y(Wn,()=>this.sdkConfig);entityInvitations=Y(Yn,()=>this.sdkConfig);entityStats=Y($n,()=>this.sdkConfig);entityUsers=Y(Qn,()=>this.sdkConfig);estimates=Y(Jn,()=>this.sdkConfig);expenses=Y(Xn,()=>this.sdkConfig);exports=Y(es,()=>this.sdkConfig);files=Y(ts,()=>this.sdkConfig);finaCertificate=Y(ns,()=>this.sdkConfig);finaDevices=Y(ss,()=>this.sdkConfig);finaPremises=Y(os,()=>this.sdkConfig);finaSettings=Y(is,()=>this.sdkConfig);financialCategories=Y(as,()=>this.sdkConfig);fursCertificate=Y(rs,()=>this.sdkConfig);fursDevices=Y(ls,()=>this.sdkConfig);fursInternalAct=Y(ds,()=>this.sdkConfig);fursPremises=Y(cs,()=>this.sdkConfig);fursSettings=Y(us,()=>this.sdkConfig);health=Y(ps,()=>this.sdkConfig);invoices=Y(xs,()=>this.sdkConfig);items=Y(gs,()=>this.sdkConfig);legacyMigration=Y(ys,()=>this.sdkConfig);locale=Y(Os,()=>this.sdkConfig);orderIntegrations=Y(vs,()=>this.sdkConfig);orders=Y(hs,()=>this.sdkConfig);paymentReminders=Y(bs,()=>this.sdkConfig);payments=Y(Ss,()=>this.sdkConfig);pointOfSale=Y(fs,()=>this.sdkConfig);priceLists=Y(zs,()=>this.sdkConfig);ptAtcudSeries=Y(Is,()=>this.sdkConfig);ptSafT=Y(Bs,()=>this.sdkConfig);purchaseOrders=Y(Es,()=>this.sdkConfig);recurringInvoices=Y(Ts,()=>this.sdkConfig);revenueRecognition=Y(Ds,()=>this.sdkConfig);shipments=Y(Rs,()=>this.sdkConfig);shippingConnections=Y(_s,()=>this.sdkConfig);stripeApp=Y(Ns,()=>this.sdkConfig);subscriptions=Y(Ms,()=>this.sdkConfig);taxRateEstimates=Y(Us,()=>this.sdkConfig);taxReports=Y(Ps,()=>this.sdkConfig);taxes=Y(Cs,()=>this.sdkConfig);ticketBai=Y(ws,()=>this.sdkConfig);transactionType=Y(As,()=>this.sdkConfig);travelOrders=Y(Fs,()=>this.sdkConfig);ujp=Y(ks,()=>this.sdkConfig);upload=Y(js,()=>this.sdkConfig);users=Y(Hs,()=>this.sdkConfig);veriFactu=Y(Ls,()=>this.sdkConfig);vies=Y(Gs,()=>this.sdkConfig);warehouses=Y(Vs,()=>this.sdkConfig);webhooks=Y(Ks,()=>this.sdkConfig);whiteLabelSubscriptions=Y(Zs,()=>this.sdkConfig);whiteLabels=Y(qs,()=>this.sdkConfig);constructor(u){let g=typeof u=="string"?{accessToken:u}:u,T=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Ce,getAccessToken:T,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function geS(d){let u=typeof d=="string"?{accessToken:d}:d,g=typeof u.accessToken=="function"?u.accessToken:()=>u.accessToken;eub({baseUrl:u.basePath??Ce,getAccessToken:g,clientName:u.clientName??"js-sdk",onUnauthorized:u.onUnauthorized,requestTimeoutMs:u.requestTimeoutMs}),Bn(u.accountId??null);}
|
|
145
145
|
export{veS as AccountInfoRole,feS as AccountWebhookDeliveryStatus,IeS as AccountWebhookResponseEventsItem,EeS as AccountWebhookWithSecretEventsItem,beS as AccountingSettingsVatPeriod,DeS as AddEntityUserBodyRole,_eS as AdvanceInvoiceCalculationMode,MeS as AdvanceInvoiceItemClassification,PeS as AdvanceInvoiceItemType,weS as AdvanceInvoiceTransactionType,FeS as ApplyCategorySuggestionsResponseResultsItemStatus,jeS as AttendanceDayKind,LeS as AttendanceDaySickReason,VeS as AuthorizeShopifyBodyAutoProcessOn,ZeS as AvailablePlansAllowedPaymentProvidersItem,WeS as AvailablePlansBillingProfile,$eS as AvailablePlansCurrencyCode,JeS as AvailablePlansStripePublishableKeyKind,etS as BankImportParseErrorCauseCode,ntS as BankReconciliationMonthStatementBalanceSource,otS as BankReconciliationMonthStatus,atS as BankReconciliationsResponseAccountCode,ltS as BankStatementImportSourceFormat,ctS as BankStatementImportStatus,ptS as BankTransactionConflictErrorCauseCode,xtS as BankTransactionDetailMatchStatus,ytS as BankTransactionDetailSourceFormat,vtS as BankTransactionMatchInfoDocumentType,btS as BankTransactionMatchStatus,ftS as BankTransactionSourceFormat,ItS as BankTransactionSuggestedDocumentDocumentType,EtS as BulkSetPriceListPricesBodySource,DtS as BusinessUnitSettingsInputPdfTemplate,_tS as BusinessUnitSettingsPdfTemplate,Ws as CLIENT_HEADER_NAME,PtS as CalculateDocumentPreviewCalculationMode,wtS as CalculateDocumentPreviewType,FtS as CalculateTravelOrderRouteDistance422Field,MtS as CalculatedItemType,jtS as CalculationSettingsDefaultMode,LtS as CheckEInvoicingRecipientRequestDocumentType,VtS as CompanyRegistryResultSettingsSloveniaVatProfile,ZtS as CompleteAdvanceInvoicePreviewCalculationMode,WtS as CompleteAdvanceInvoicePreviewCreationSource,$tS as CompleteCreditNotePreviewCalculationMode,JtS as CompleteCreditNotePreviewCreationSource,enS as CompleteDeliveryNotePreviewCalculationMode,nnS as CompleteDeliveryNotePreviewCreationSource,onS as CompleteEstimatePreviewCalculationMode,anS as CompleteEstimatePreviewCreationSource,lnS as CompleteEstimatePreviewTitleType,cnS as CompleteInvoicePreviewCalculationMode,pnS as CompleteInvoicePreviewCreationSource,xnS as CompletePurchaseOrderPreviewCalculationMode,ynS as CompletePurchaseOrderPreviewCreationSource,vnS as CreateAccountWebhookBodyEventsItem,bnS as CreateAdvanceInvoiceCalculationMode,fnS as CreateCheckoutRequestBillingInterval,InS as CreateCreditNoteCalculationMode,EnS as CreateCustomerBodyContactType,DnS as CreateDeliveryNoteCalculationMode,_nS as CreateDocumentItemClassification,MnS as CreateDocumentItemType,PnS as CreateDocumentPaymentType,wnS as CreateEntityApiKeyBodyPurpose,FnS as CreateEntityBodyEnvironment,jnS as CreateEntityBodySettingsPdfTemplate,LnS as CreateEstimateCalculationMode,VnS as CreateEstimateTitleType,ZnS as CreateExpenseBodyCalculationMode,WnS as CreateExpenseBodyPaymentsItemType,$nS as CreateExpenseBodyTransactionType,JnS as CreateExpenseBodyType,esS as CreateExpenseItemClassification,nsS as CreateExpenseItemType,osS as CreateExpensePaymentBodyType,asS as CreateFinaInvoiceDataPaymentType,lsS as CreateInvoiceCalculationMode,csS as CreateItemBodyClassification,psS as CreateItemBodyUsage,xsS as CreateItemInventoryMovementBodyType,ysS as CreateMigrationJobRequestEnvironment,vsS as CreateMigrationJobResponseStatus,bsS as CreateOrderBodyPaymentStatus,fsS as CreateOrderBodySource,IsS as CreateOrderIntegrationBodySource,EsS as CreatePaymentBodyType,DsS as CreatePtAtcudSeriesBodyDocumentType,_sS as CreatePurchaseOrderCalculationMode,MsS as CreatePurchaseOrderItemClassification,PsS as CreatePurchaseOrderItemType,wsS as CreateRecurringInvoiceBodyFrequency,FsS as CreateShipmentRequestParcelType,jsS as CreateShippingConnectionRequestCarrier,LsS as CreateTaxPaymentType,VsS as CreateTravelOrderBodyTripType,ZsS as CreateWebhookBodyEventsItem,WsS as CreationSource,$sS as CreditNoteCalculationMode,JsS as CreditNoteItemClassification,eoS as CreditNoteItemType,noS as CreditNoteTransactionType,ooS as CryptoEquivalentCode,aoS as CryptoEquivalentsSettingsCodesItem,loS as CryptoWalletCode,coS as CurrentSubscriptionAllowedPaymentProvidersItem,poS as CurrentSubscriptionBillingProfile,xoS as CurrentSubscriptionCurrencyCode,yoS as CurrentSubscriptionPaymentProvider,voS as CurrentSubscriptionStripePublishableKeyKind,boS as CustomCreateAdvanceInvoiceCalculationMode,foS as CustomCreateCreditNoteCalculationMode,IoS as CustomCreateDeliveryNoteCalculationMode,EoS as CustomCreateEstimateCalculationMode,DoS as CustomCreateEstimateTitleType,_oS as CustomCreateExpenseTransactionType,MoS as CustomCreateExpenseType,PoS as CustomCreateInvoiceCalculationMode,woS as CustomDocumentItemClassification,FoS as CustomDocumentItemType,joS as CustomExpenseItemClassification,LoS as CustomExpenseItemType,VoS as CustomExpenseWriteCalculationMode,ZoS as CustomExpenseWritePaymentsItemType,WoS as CustomExpenseWriteTransactionType,$oS as CustomExpenseWriteType,JoS as CustomStoreConnectRequestAutoProcessOn,eiS as CustomStoreOrderItemsItemKind,niS as CustomStoreOrderResultAction,Ce as DEFAULT_BASE_URL,oiS as DeleteDocumentType,aiS as DeliveryNoteCalculationMode,liS as DeliveryNoteItemClassification,ciS as DeliveryNoteItemType,piS as DeliveryNoteTransactionType,xiS as DocumentCalculationCalculationMode,yiS as DocumentCalculationTransactionType,viS as DocumentItemEInvoicingVatCategoryCode,biS as DocumentItemRevenueRecognitionMethod,fiS as DocumentRelationRelatedDocumentTitleType,IiS as DocumentRelationRelatedDocumentType,EiS as DocumentRelationSourceType,DiS as DocumentRelationTargetType,_iS as DocumentVersionDocumentType,MiS as DownloadDocumentEslogType,PiS as DownloadReceivedEInvoiceFormat,jiS as EInvoicingDeliveryRoute,LiS as EInvoicingEnrollmentChannel,ViS as EInvoicingEnrollmentEnvironment,ZiS as EInvoicingEnrollmentState,WiS as EInvoicingRecipientCheckResponseDocumentType,wiS as EetFiscalizationResponseStatus,FiS as EffectiveItemPriceSource,$iS as EmailSenderDomainVerificationStatus,JiS as EmailSenderEffectiveSource,eaS as EmailSenderEmailVerificationStatus,naS as EmailSenderVerificationStatus,oaS as EntityApiKeyEnvironment,aaS as EntityApiKeyListItemEnvironment,laS as EntityApiKeyListItemPurpose,caS as EntityApiKeyPurpose,paS as EntityBankAccountInputType,xaS as EntityBankAccountType,yaS as EntityEnvironment,vaS as EntityInvitationPreviewRole,baS as EntityInvitationPreviewStatus,faS as EntityInvitationRole,IaS as EntityInvitationStatus,EaS as EntitySettingsPdfTemplate,DaS as EntitySettingsUpdatePdfTemplate,_aS as EntityUserRole,MaS as EntityUsersAccessAccountRole,PaS as EntityUsersAccessEntityRole,waS as EslogDataValidationStatus,FaS as EslogExportByDateRangeTypesItem,jaS as EstimateCalculationMode,LaS as EstimateItemClassification,VaS as EstimateItemType,ZaS as EstimateTitleType,WaS as EstimateTransactionType,$aS as EuOssReportResponseEligibilityReason,JaS as EuOssReportResponseNoticesItem,erS as EuOssThresholdAmount,nrS as EuOssThresholdCurrencyCode,orS as EuOssThresholdStatus,arS as ExpenseCategoryReportResponseBasis,lrS as ExpenseCategoryReportResponseCalculationMode,crS as ExpenseCategoryReportResponseGroupBy,prS as ExpenseImportDraftItemClassification,xrS as ExpenseImportDraftItemType,yrS as ExpenseImportResultAttachmentStatus,vrS as ExpenseImportSourceDocumentType,brS as ExpenseImportWarningCode,frS as ExpenseInboundEmailAttachmentMode,IrS as ExpenseInboundEmailMessageStatus,ErS as ExpenseItemClassification,DrS as ExpenseItemRecognitionMethod,_rS as ExpenseItemType,MrS as ExpensePaymentOpenBalanceErrorCauseCode,PrS as ExpenseRecognitionJobSimulationMode,wrS as ExpenseRecognitionJobStatus,FrS as ExpenseRecognitionJobWarningsItemCode,jrS as ExpenseRecognitionSettingsDefaultMethod,LrS as ExpenseRecognitionSettingsResponseDefaultMethod,VrS as ExpenseSummaryClassification,ZrS as ExpenseType,WrS as ExportDocumentsFormat,$rS as ExportDocumentsLanguage,JrS as ExportDocumentsType,elS as ExportExpensesDateBasis,nlS as ExportExpensesFormat,olS as ExportExpensesLanguage,alS as ExportFixedAssetRegisterFormat,llS as ExportInventoryFormat,clS as ExportInventoryLanguage,plS as ExportPosDailyReportFormat,xlS as ExportPosDailyReportLanguage,ylS as ExportPosMonthlyReportFormat,vlS as ExportPosMonthlyReportLanguage,blS as ExportRevenueByCategoryFormat,flS as ExportRevenueByCategoryLanguage,IlS as ExportSalesPerItemFormat,ElS as ExportSalesPerItemLanguage,DlS as ExportVatReturnFormat,_lS as ExportVatReturnSelfReport,MlS as FilingKind,PlS as FilingObligationType,wlS as FilingState,FlS as FilingStatus,jlS as FilingVerification,LlS as FinaEracunDocumentDataStatus,VlS as FinaEracunEnrollmentEnvironment,ZlS as FinaEracunEnrollmentStatus,WlS as FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason,$lS as FinaFiscalizationResponseStatus,JlS as FinalizeDocumentType,cdS as FiscalRecoveryErrorCauseCode,edS as FiscalizationProviderErrorCauseProvider,ndS as FiscalizationProviderErrorCauseType,odS as FiscalizationProviderErrorCode,adS as FiscalizeDocumentType,ldS as FiscalizedOutputRegistrationFiscalizationProvider,pdS as FixedAssetCategory,xdS as FixedAssetClass,ydS as FixedAssetDisposalType,vdS as FixedAssetStatus,bdS as FixedAssetTaxRateBasis,fdS as FrenchEReportingRecordKind,IdS as FrenchEReportingRecordStatus,EdS as FursFiscalizationResponseStatus,DdS as FursPremiseSuccessResponseEnvironment,_dS as GeneratePtSaftReportMode,MdS as GermanEInvoicingDataValidationStatus,PdS as GetActivePtAtcudSeriesDocumentType,wdS as GetActivities200DataItemActorType,FdS as GetEetSettings200CertificateStatus,jdS as GetEntitiesEnvironment,LdS as GetEslogExportStatus200Status,VdS as GetExpenseCategoryReportBasis,ZdS as GetExpenseCategoryReportGroupBy,WdS as GetFilesCategory,$dS as GetFinaSettings200CertificateStatus,JdS as GetFinaSettings200NumberingSequence,ecS as GetFursSettings200CertificateStatus,ncS as GetFursSettings200NumberingStrategy,ocS as GetItemsImportTemplateFormat,acS as GetItemsImportTemplateLanguage,lcS as GetItemsUsage,ccS as GetLegacyMigrationOrganization200UnsupportedItemCode,pcS as GetNextDocumentNumberType,xcS as GetOrdersPdfExportJob200Status,ycS as GetPaymentRemindersStatus,vcS as GetPaymentRemindersTrigger,bcS as GetPayrollParameterHistoryScope,fcS as GetPdfExportStatus200Status,IcS as GetRevenueRecognitionDetailsBasis,EcS as GetRevenueRecognitionDetailsGroupBy,DcS as GetRevenueRecognitionReportBasis,_cS as GetRevenueRecognitionReportGroupBy,McS as GetShareableAdvanceInvoiceHtmlLanguage,PcS as GetShareableAdvanceInvoiceHtmlLocale,wcS as GetShareableAdvanceInvoicePdfLanguage,FcS as GetShareableAdvanceInvoicePdfLocale,jcS as GetShareableCreditNoteHtmlLanguage,LcS as GetShareableCreditNoteHtmlLocale,VcS as GetShareableCreditNotePdfLanguage,ZcS as GetShareableCreditNotePdfLocale,WcS as GetShareableDeliveryNoteHtmlLanguage,$cS as GetShareableDeliveryNoteHtmlLocale,JcS as GetShareableDeliveryNotePdfLanguage,euS as GetShareableDeliveryNotePdfLocale,nuS as GetShareableEstimateHtmlLanguage,ouS as GetShareableEstimateHtmlLocale,auS as GetShareableEstimatePdfLanguage,luS as GetShareableEstimatePdfLocale,cuS as GetShareableInvoiceHtmlLanguage,puS as GetShareableInvoiceHtmlLocale,xuS as GetShareableInvoicePdfLanguage,yuS as GetShareableInvoicePdfLocale,vuS as GetShareablePurchaseOrderHtmlLanguage,buS as GetShareablePurchaseOrderHtmlLocale,fuS as GetShareablePurchaseOrderPdfLanguage,IuS as GetShareablePurchaseOrderPdfLocale,EuS as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,DuS as GetSloveniaTaxProfile200BusinessForm,_uS as GetSloveniaTaxProfile200BusinessFormSource,MuS as GetSloveniaTaxProfile200IncomeTaxRegime,PuS as GetSloveniaTaxProfile200InferredBusinessForm,wuS as GetSloveniaTaxProfile200TaxResidency,FuS as GetSloveniaTaxProfile200VatProfile,juS as GetSloveniaTaxProfile200YearlyReportingAccountingType,LuS as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,VuS as HolidayCompensationMethod,ZuS as ImportBankStatementBodyLedgerAccountCode,WuS as ImportBankStatementBodySourceFormat,$uS as InventoryMovementResponseType,JuS as InvoiceCalculationMode,epS as InvoiceItemClassification,npS as InvoiceItemType,opS as InvoiceTransactionType,apS as ItalyLineTaxDataNature,lpS as ItemClassification,xpS as ItemUsage,cpS as ItemsImportReportRowsItemAction,ppS as ItemsImportReportRowsItemStock,ypS as JournalEntryKind,vpS as KsefDocumentDataStatus,bpS as KsefEntitySettingsObligation,fpS as KsefSettingsResponseCredentialStatus,IpS as KsefSettingsResponseEnvironment,EpS as KsefSettingsResponseObligation,DpS as LedgerAccountCode,_pS as LedgerAccountDeductibility,MpS as LedgerAccountType,PpS as LedgerPaymentAccountDirection,wpS as LedgerPaymentAccountPaymentType,FpS as LedgerPostingSourceType,jpS as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,LpS as LegalDetailsLegalForm,VpS as LineDiscountInputType,ZpS as LineDiscountType,WpS as LinkBankTransactionBodyDocumentType,$pS as ListAccountFilingsCalendarEnvironment,JpS as ListBankReconciliationsAccountCode,emS as ListEmployeesStatus,nmS as ListFixedAssetsCategory,omS as ListFixedAssetsStatus,amS as ListPtAtcudSeriesDocumentType,lmS as ListReceivedEInvoicesState,cmS as ListRevenueRecognitionLinesBasis,pmS as ListRevenueRecognitionLinesGroupBy,xmS as ListShipmentsStatus,QZb as MAX_LIST_ALL_PAGES,ymS as MagentoAuthorizationStatusFailureReason,vmS as MagentoAuthorizationStatusStatus,bmS as MagentoAuthorizeRequestAutoProcessOn,fmS as MigrationJobResponseStatus,ImS as ModifyEmployeeBodyCommuteMode,EmS as ModifyEmployeeBodyEmploymentType,DmS as ModifyEmployeeBodyGeneralAllowanceMode,_mS as ModifyEmployeeBodyStatus,MmS as ModifyEmployeeBodyTaxResidency,PmS as ModifyEmployeeCompensationBodyCommuteMode,wmS as ModifyEmployeeCompensationBodyEmploymentType,FmS as MovablePremisePremiseType,jmS as NavAnnulmentRequestAnnulmentCode,LmS as NavDocumentDataOperation,VmS as NavDocumentMessageSeverity,ZmS as NavDocumentStatus,WmS as NavEnvironment,$mS as NavErrorBodyConflictsItemSource,JmS as NavErrorBodyConflictsItemTypesItem0,exS as NavErrorBodyConflictsItemTypesItem1,nxS as NavInvoiceAppearance,oxS as NavObligation,axS as NavResolveRequestOutcome,lxS as NavVatTreatmentDomesticReverseChargeType,cxS as NavVatTreatmentExemptionCase,pxS as NavVatTreatmentExemptionType,xxS as NavVatTreatmentNoVatChargeType,yxS as NavVatTreatmentOutOfScopeCase,vxS as NavVatTreatmentOutOfScopeType,bxS as OrderBasePaymentStatus,fxS as OrderBaseSource,IxS as OrderBaseStatus,ExS as OrderIntegrationBaseAutoProcessOn,DxS as OrderIntegrationBaseDocumentCurrency,_xS as OrderIntegrationBaseSource,MxS as OrderItemKind,PxS as OrderItemResponseKind,wxS as OrdersPdfExportRequestLanguage,FxS as OrdersPdfExportRequestOutput,jxS as PartialAdvanceInvoicePreviewCalculationMode,LxS as PartialAdvanceInvoicePreviewCreationSource,VxS as PartialAdvanceInvoicePreviewItemsItemClassification,ZxS as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,WxS as PartialAdvanceInvoicePreviewItemsItemType,$xS as PartialCreditNotePreviewCalculationMode,JxS as PartialCreditNotePreviewCreationSource,egS as PartialCreditNotePreviewItemsItemClassification,ngS as PartialCreditNotePreviewItemsItemDiscountsItemType,ogS as PartialCreditNotePreviewItemsItemType,agS as PartialDeliveryNotePreviewCalculationMode,lgS as PartialDeliveryNotePreviewCreationSource,cgS as PartialDeliveryNotePreviewItemsItemClassification,pgS as PartialDeliveryNotePreviewItemsItemDiscountsItemType,xgS as PartialDeliveryNotePreviewItemsItemType,ygS as PartialEstimatePreviewCalculationMode,vgS as PartialEstimatePreviewCreationSource,bgS as PartialEstimatePreviewItemsItemClassification,fgS as PartialEstimatePreviewItemsItemDiscountsItemType,IgS as PartialEstimatePreviewItemsItemType,EgS as PartialEstimatePreviewTitleType,DgS as PartialInvoicePreviewCalculationMode,_gS as PartialInvoicePreviewCreationSource,MgS as PartialInvoicePreviewItemsItemClassification,PgS as PartialInvoicePreviewItemsItemDiscountsItemType,wgS as PartialInvoicePreviewItemsItemType,FgS as PartialPurchaseOrderPreviewCalculationMode,jgS as PartialPurchaseOrderPreviewCreationSource,LgS as PartialPurchaseOrderPreviewItemsItemClassification,VgS as PartialPurchaseOrderPreviewItemsItemDiscountsItemType,ZgS as PartialPurchaseOrderPreviewItemsItemType,WgS as PatchEntityBodySettingsPdfTemplate,$gS as PatchMeBodyLocale,JgS as PaymentReminderStatus,e0S as PaymentReminderTrigger,n0S as PaymentType,o0S as PayrollParameterRowScope,a0S as PayrollRunStatus,l0S as PdfExportByDateRangeLanguage,c0S as PdfExportByDateRangeLocale,p0S as PdfExportByDateRangeTypesItem,x0S as PdfExportByDocumentIdsLanguage,y0S as PdfExportByDocumentIdsLocale,v0S as PermanentDeleteDocumentType,b0S as PosTabConflictCode,f0S as PosTabResponseStatus,I0S as PreviewTravelOrderBodyTripType,E0S as PtAtcudSeriesDocumentType,D0S as PurchaseOrderBusinessUnitSettingsInputPdfTemplate,_0S as PurchaseOrderCalculationMode,M0S as PurchaseOrderItemClassification,P0S as PurchaseOrderItemType,w0S as PurchaseOrderTransactionType,F0S as PurchaseOrderVersionDocumentType,j0S as PutKsefCredentialEnvironment,L0S as ReceivedEInvoiceAttachmentStatus,V0S as ReceivedEInvoiceLifecycleRequestAction,Z0S as ReceivedEInvoiceLifecycleRequestReasonCode,W0S as ReceivedEInvoiceProvider,$0S as ReceivedEInvoiceState,J0S as RecurringInvoiceBaseFrequency,eyS as RecurringInvoiceBaseStatus,nyS as RegisterDocumentOutputType,oyS as RegisterEmployeeBodyCommuteMode,ayS as RegisterEmployeeBodyEmploymentType,lyS as RegisterEmployeeBodyGeneralAllowanceMode,cyS as RegisterEmployeeBodyStatus,pyS as RegisterEmployeeBodyTaxResidency,xyS as RegisterEmployeeCompensationBodyCommuteMode,yyS as RegisterEmployeeCompensationBodyEmploymentType,vyS as RegisterFursMovablePremiseBodyMovablePremisePremiseType,byS as RenderAdvanceInvoicePreviewEpcQrEnabled,fyS as RenderAdvanceInvoicePreviewHub3QrEnabled,IyS as RenderAdvanceInvoicePreviewPartial,EyS as RenderAdvanceInvoicePreviewSwissQrBillEnabled,DyS as RenderAdvanceInvoicePreviewTemplate,_yS as RenderAdvanceInvoicePreviewUpnQrDisplayMode,MyS as RenderAdvanceInvoicePreviewUpnQrEnabled,PyS as RenderCreditNotePreviewEpcQrEnabled,wyS as RenderCreditNotePreviewHub3QrEnabled,FyS as RenderCreditNotePreviewPartial,jyS as RenderCreditNotePreviewSwissQrBillEnabled,LyS as RenderCreditNotePreviewTemplate,VyS as RenderCreditNotePreviewUpnQrDisplayMode,ZyS as RenderCreditNotePreviewUpnQrEnabled,WyS as RenderDeliveryNotePreviewEpcQrEnabled,$yS as RenderDeliveryNotePreviewHub3QrEnabled,JyS as RenderDeliveryNotePreviewPartial,eOS as RenderDeliveryNotePreviewSwissQrBillEnabled,nOS as RenderDeliveryNotePreviewTemplate,oOS as RenderDeliveryNotePreviewUpnQrDisplayMode,aOS as RenderDeliveryNotePreviewUpnQrEnabled,lOS as RenderDocumentHtmlTemplate,cOS as RenderDocumentPdfTemplate,pOS as RenderEstimatePreviewEpcQrEnabled,xOS as RenderEstimatePreviewHub3QrEnabled,yOS as RenderEstimatePreviewPartial,vOS as RenderEstimatePreviewSwissQrBillEnabled,bOS as RenderEstimatePreviewTemplate,fOS as RenderEstimatePreviewUpnQrDisplayMode,IOS as RenderEstimatePreviewUpnQrEnabled,EOS as RenderInvoicePreviewEpcQrEnabled,DOS as RenderInvoicePreviewHub3QrEnabled,_OS as RenderInvoicePreviewPartial,MOS as RenderInvoicePreviewSwissQrBillEnabled,POS as RenderInvoicePreviewTemplate,wOS as RenderInvoicePreviewUpnQrDisplayMode,FOS as RenderInvoicePreviewUpnQrEnabled,jOS as RenderPurchaseOrderPreviewEpcQrEnabled,LOS as RenderPurchaseOrderPreviewHub3QrEnabled,VOS as RenderPurchaseOrderPreviewPartial,ZOS as RenderPurchaseOrderPreviewSwissQrBillEnabled,WOS as RenderPurchaseOrderPreviewTemplate,$OS as RenderPurchaseOrderPreviewUpnQrDisplayMode,JOS as RenderPurchaseOrderPreviewUpnQrEnabled,evS as RenderTravelOrderPreviewBodyTripType,nvS as ReplaceEmployeeAttendanceBodyDaysItemKind,ovS as ReplaceEmployeeAttendanceBodyDaysItemSickReason,avS as RestoreDocumentType,lvS as RevenueRecognitionDetailsResponseCalculationMode,cvS as RevenueRecognitionLinesResponseCalculationMode,pvS as RevenueRecognitionReportResponseBasis,xvS as RevenueRecognitionReportResponseCalculationMode,yvS as RevenueRecognitionReportResponseGroupBy,vvS as RevenueRecognitionSettingsDefaultMethod,bvS as RevenueRecognitionSettingsResponseDefaultMethod,fvS as ReviewSloveniaYearlyNormiraniReport200FilingKind,IvS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,EvS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,DvS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,_vS as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,MvS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,PvS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,wvS as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,FvS as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,jvS as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,LvS as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,VvS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,ZvS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,WvS as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,$vS as SdiLifecycleDataCountryCode,JvS as SdiLifecycleDataStatus,ehS as SendDocument200Status,nhS as SendEmail200Status,ohS as SendEmailBodyLanguage,ahS as SendEmailBodyLocale,lhS as SendPaymentReminderBodyLocale,chS as SendPaymentReminderResponseStatus,phS as SetVendorTaxProfileClassification,xhS as ShipmentCarrier,yhS as ShipmentDraftParcelType,vhS as ShipmentLabelFormat,bhS as ShipmentParcelType,fhS as ShipmentStatus,IhS as ShippingConnectionCarrier,EhS as ShippingConnectionSettingsInputLabelFormat,DhS as ShippingConnectionSettingsLabelFormat,_hS as ShippingConnectionSettingsPatchLabelFormat,MhS as SloveniaAccountingExportsSettingsPreferredFormat,PhS as SloveniaEntitySettingsBusinessForm,whS as SloveniaEntitySettingsIncomeTaxRegime,FhS as SloveniaEntitySettingsTaxResidency,jhS as SloveniaEntitySettingsVatProfile,LhS as SloveniaYearlyReportingSettingsAccountingType,VhS as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,Pe as SpaceInvoices,ZhS as StartEslogExport202Status,WhS as StartOrdersPdfExport202Status,$hS as StartPdfExport202Status,JhS as StatsQueryRequestMetricsItemType,ebS as StatsQueryRequestOrderByItemDirection,nbS as StatsQueryRequestTable,obS as StripeAppConnectionEntityEnvironment,abS as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,lbS as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,cbS as SubscriptionTier,pbS as SyncOrderIntegrationResponseCompletionState,xbS as SyncShopifyOrdersResponseCompletionState,ybS as TaxPaymentType,vbS as TaxWorksheetForm5472ReportingCorporationCountryOfIncorporation,bbS as TicketBaiDocumentDataExemptionCause,fbS as TicketBaiDocumentDataNonSubjectCause,IbS as TicketBaiDocumentDataOperationType,EbS as TicketBaiDocumentDataRecipientIdType,DbS as TicketBaiDocumentDataRectificationCode,_bS as TicketBaiDocumentDataStatus,MbS as TicketBaiDocumentDataTaxTreatment,PbS as TicketBaiDocumentDataVatRegime,wbS as TicketBaiDocumentInputExemptionCause,FbS as TicketBaiDocumentInputNonSubjectCause,jbS as TicketBaiDocumentInputOperationType,LbS as TicketBaiDocumentInputRecipientIdType,VbS as TicketBaiDocumentInputRectificationCode,ZbS as TicketBaiDocumentInputTaxTreatment,WbS as TicketBaiDocumentInputVatRegime,$bS as TicketBaiRecordDocumentType,JbS as TicketBaiRecordEnvironment,eSS as TicketBaiRecordOperation,nSS as TicketBaiRecordRecentAttemptsItemKind,oSS as TicketBaiRecordRecentAttemptsItemStatus,aSS as TicketBaiRecordStatus,lSS as TicketBaiRecordTerritory,cSS as TicketBaiSettingsBlockersItem,pSS as TicketBaiSettingsEnvironment,xSS as TicketBaiSettingsLroeModel,ySS as TicketBaiSettingsTerritory,vSS as TransactionTypeCheckRequestItemsItemClassification,bSS as TransactionTypeCheckRequestItemsItemType,fSS as TransactionTypeCheckRequestSupplyType,ISS as TransactionTypeCheckResponseSupplyScope,ESS as TransactionTypeCheckResponseTransactionType,DSS as TransactionTypeCheckResponseWarningCode,_SS as TravelOrderCostType,MSS as TravelOrderCurrencyCode,PSS as TravelOrderPerDiemBand,wSS as TravelOrderRouteDistanceProvider,FSS as TravelOrderStatus,jSS as TravelOrderTransport,LSS as TravelOrderTripType,VSS as TrialBalanceRowType,ZSS as UjpDataValidationStatus,WSS as UpdateAccountWebhookBodyEventsItem,$SS as UpdateCustomerBodyContactType,JSS as UpdateEetSettings200CertificateStatus,efS as UpdateEntityUserRoleBodyRole,nfS as UpdateEstimateTitleType,ofS as UpdateExpenseBodyCalculationMode,afS as UpdateExpenseBodyTransactionType,lfS as UpdateExpenseBodyType,cfS as UpdateExpenseRecognitionSettingsDefaultMethod,pfS as UpdateFinaSettings200CertificateStatus,xfS as UpdateFinaSettings200NumberingSequence,yfS as UpdateFinaSettingsBodyNumberingSequence,vfS as UpdateFixedAssetRequestCategory,bfS as UpdateFursSettings200CertificateStatus,ffS as UpdateFursSettings200NumberingStrategy,IfS as UpdateFursSettingsBodyNumberingStrategy,EfS as UpdateItemBodyClassification,DfS as UpdateItemBodyUsage,_fS as UpdateKsefSettingsObligation,MfS as UpdateNavSettingsInvoiceAppearance,PfS as UpdateNavSettingsObligation,wfS as UpdateOrderBodyPaymentStatus,FfS as UpdateOrderIntegrationBodyAutoProcessOn,jfS as UpdateOrderIntegrationBodyDocumentCurrency,LfS as UpdatePaymentBodyType,VfS as UpdateRecurringInvoiceBodyFrequency,ZfS as UpdateRevenueRecognitionSettingsDefaultMethod,WfS as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,$fS as UpdateSloveniaTaxProfile200BusinessForm,JfS as UpdateSloveniaTaxProfile200BusinessFormSource,ezS as UpdateSloveniaTaxProfile200IncomeTaxRegime,nzS as UpdateSloveniaTaxProfile200InferredBusinessForm,ozS as UpdateSloveniaTaxProfile200TaxResidency,azS as UpdateSloveniaTaxProfile200VatProfile,lzS as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,czS as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,pzS as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,xzS as UpdateSloveniaTaxProfileBodyBusinessForm,yzS as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,vzS as UpdateSloveniaTaxProfileBodyTaxResidency,bzS as UpdateSloveniaTaxProfileBodyVatProfile,fzS as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,IzS as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,EzS as UpdateTaxPaymentType,DzS as UpdateTicketBaiSettingsLroeModel,_zS as UpdateTicketBaiSettingsTerritory,MzS as UpdateTravelOrderBodyTransport,PzS as UpdateTravelOrderBodyTripType,wzS as UpdateVerifactuSettingsTerritory,FzS as UpdateWebhookBodyEventsItem,jzS as UploadFileBodyCategory,LzS as UpnQrSettingsDisplayMode,VzS as UsTaxYearWorksheetCompanyStateOfIncorporation,ZzS as ValidateDocumentEslogType,WzS as ValidationErrorConflictsItemSource,$zS as ValidationErrorConflictsItemTypesItem0,JzS as ValidationErrorConflictsItemTypesItem1,eIS as VatReturnPreviewVatPeriodSetting,nIS as VatReturnRecapitulativeDifferenceReason,oIS as VatReturnRecapitulativeSectionBRowPreviousValueSource,aIS as VatReturnStatus,lIS as VatReturnVatPeriodSetting,cIS as VendorTaxClassification,pIS as VerifactuDocumentInputCustomerIdType,xIS as VerifactuDocumentInputInvoiceType,yIS as VerifactuDocumentInputTaxTreatmentsItemQualification,vIS as VerifactuDocumentInputTaxTreatmentsItemTax,bIS as VerifactuDocumentStatus,fIS as VerifactuEvidenceKind,IIS as VerifactuSettingsEligibility,EIS as VerifactuSettingsEnvironment,DIS as VerifactuSettingsTerritory,_IS as WebhookDeliveryStatus,MIS as WebhookResponseEventsItem,PIS as WebhookWithSecretEventsItem,wIS as WhiteLabelConfigEnvironment,FIS as WhiteLabelPlanCurrencyCode,jIS as WooCommerceAuthorizeRequestAutoProcessOn,Tn as accountWebhooks,Dn as accounting,Rn as activities,_n as advanceInvoices,Nn as businessUnits,Mn as companyRegistry,Un as creditNotes,Pn as currency,Cn as customers,Pe as default,wn as deliveryNotes,kn as documents,ms as downloadBlob,Ln as eInvoicing,Gn as eSlog,Vn as eetCertificate,Kn as eetSettings,Zn as email,qn as entities,Wn as entityApiKeys,Yn as entityInvitations,$n as entityStats,Qn as entityUsers,Jn as estimates,Xn as expenses,es as exports,ts as files,ns as finaCertificate,ss as finaDevices,os as finaPremises,is as finaSettings,as as financialCategories,rs as fursCertificate,ls as fursDevices,ds as fursInternalAct,cs as fursPremises,us as fursSettings,qZb as getAccountId,rt as getClientHeaders,ps as health,geS as initSDK,xs as invoices,gs as items,ys as legacyMigration,eqb as listAll,Os as locale,vs as orderIntegrations,hs as orders,bs as paymentReminders,Ss as payments,fs as pointOfSale,zs as priceLists,Is as ptAtcudSeries,Bs as ptSafT,Es as purchaseOrders,Ts as recurringInvoices,Ds as revenueRecognition,Bn as setAccountId,Rs as shipments,_s as shippingConnections,Ns as stripeApp,Ms as subscriptions,Us as taxRateEstimates,Ps as taxReports,Cs as taxes,ws as ticketBai,As as transactionType,Fs as travelOrders,ks as ujp,js as upload,Hs as users,Ls as veriFactu,Gs as vies,Vs as warehouses,Ks as webhooks,Zs as whiteLabelSubscriptions,qs as whiteLabels,Xcb as zod};
|