@spaceinvoices/js-sdk 14.16.0 → 14.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -229,7 +229,7 @@ Defaults to true (best-effort). When omitted, behaves like true but won't fail t
|
|
|
229
229
|
Searches are case-insensitive and match partial strings.
|
|
230
230
|
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),KvS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),s2v=36,o2v=36,i2v=36,a2v=255,r2v=-2147483648,l2v=2147483647,d2v=-2147483648,u2v=2147483647,c2v=-2147483648,p2v=2147483647,m2v=-2147483648,x2v=2147483647,g2v=10,y2v=10,O2v=10,v2v=10,S2v=255,h2v=-2147483648,b2v=2147483647,z2v=-2147483648,f2v=2147483647,B2v=36,T2v=1e3,ZvS=e.object({data:e.array(e.object({id:e.string().max(s2v),entity_id:e.string().max(o2v),document_id:e.string().max(i2v),name:e.string().max(a2v),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(r2v).max(l2v),day_of_week:e.number().min(d2v).max(u2v).nullish(),day_of_month:e.number().min(c2v).max(p2v).nullish(),month_of_year:e.number().min(m2v).max(x2v).nullish(),start_date:e.string().max(g2v),end_date:e.string().max(y2v).nullish(),next_run_date:e.string().max(O2v).nullish(),last_run_date:e.string().max(v2v).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(S2v).nullish(),payment_terms_days:e.number().min(h2v).max(b2v).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(z2v).max(f2v),last_generated_invoice_id:e.string().max(B2v).nullish(),last_error:e.string().max(T2v).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),I2v=/^[a-z]{3,4}_[0-9a-f]{24}$/,qvS=e.object({id:e.stringFormat("resource-id",I2v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),WvS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),E2v=36,D2v=36,R2v=36,_2v=255,N2v=-2147483648,M2v=2147483647,U2v=-2147483648,P2v=2147483647,C2v=-2147483648,w2v=2147483647,A2v=-2147483648,F2v=2147483647,k2v=10,j2v=10,H2v=10,L2v=10,G2v=255,V2v=-2147483648,K2v=2147483647,Z2v=-2147483648,q2v=2147483647,W2v=36,Y2v=1e3,YvS=e.object({id:e.string().max(E2v),entity_id:e.string().max(D2v),document_id:e.string().max(R2v),name:e.string().max(_2v),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(N2v).max(M2v),day_of_week:e.number().min(U2v).max(P2v).nullish(),day_of_month:e.number().min(C2v).max(w2v).nullish(),month_of_year:e.number().min(A2v).max(F2v).nullish(),start_date:e.string().max(k2v),end_date:e.string().max(j2v).nullish(),next_run_date:e.string().max(H2v).nullish(),last_run_date:e.string().max(L2v).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(G2v).nullish(),payment_terms_days:e.number().min(V2v).max(K2v).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Z2v).max(q2v),last_generated_invoice_id:e.string().max(W2v).nullish(),last_error:e.string().max(Y2v).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),$2v=/^[a-z]{3,4}_[0-9a-f]{24}$/,$vS=e.object({id:e.stringFormat("resource-id",$2v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),QvS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q2v=255,J2v=-2147483648,X2v=2147483647,eCv=-2147483648,tCv=2147483647,nCv=-2147483648,sCv=2147483647,oCv=-2147483648,iCv=2147483647,aCv=/^\d{4}-\d{2}-\d{2}$/,rCv=/^\d{4}-\d{2}-\d{2}$/,lCv=255,dCv=-2147483648,uCv=2147483647,JvS=e.object({name:e.string().max(Q2v).optional(),frequency:e.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e.number().min(J2v).max(X2v).optional(),day_of_week:e.number().min(eCv).max(tCv).nullish(),day_of_month:e.number().min(nCv).max(sCv).nullish(),month_of_year:e.number().min(oCv).max(iCv).nullish(),start_date:e.string().regex(aCv).optional(),end_date:e.string().regex(rCv).nullish(),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(lCv).nullish(),payment_terms_days:e.number().min(dCv).max(uCv).nullish(),notify_owner:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),cCv=36,pCv=36,mCv=36,xCv=255,gCv=-2147483648,yCv=2147483647,OCv=-2147483648,vCv=2147483647,SCv=-2147483648,hCv=2147483647,bCv=-2147483648,zCv=2147483647,fCv=10,BCv=10,TCv=10,ICv=10,ECv=255,DCv=-2147483648,RCv=2147483647,_Cv=-2147483648,NCv=2147483647,MCv=36,UCv=1e3,XvS=e.object({id:e.string().max(cCv),entity_id:e.string().max(pCv),document_id:e.string().max(mCv),name:e.string().max(xCv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(gCv).max(yCv),day_of_week:e.number().min(OCv).max(vCv).nullish(),day_of_month:e.number().min(SCv).max(hCv).nullish(),month_of_year:e.number().min(bCv).max(zCv).nullish(),start_date:e.string().max(fCv),end_date:e.string().max(BCv).nullish(),next_run_date:e.string().max(TCv).nullish(),last_run_date:e.string().max(ICv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(ECv).nullish(),payment_terms_days:e.number().min(DCv).max(RCv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(_Cv).max(NCv),last_generated_invoice_id:e.string().max(MCv).nullish(),last_error:e.string().max(UCv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),PCv=/^[a-z]{3,4}_[0-9a-f]{24}$/,eSS=e.object({id:e.stringFormat("resource-id",PCv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),tSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CCv=/^[a-z]{3,4}_[0-9a-f]{24}$/,nSS=e.object({id:e.stringFormat("resource-id",CCv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),sSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wCv=36,ACv=36,FCv=36,kCv=255,jCv=-2147483648,HCv=2147483647,LCv=-2147483648,GCv=2147483647,VCv=-2147483648,KCv=2147483647,ZCv=-2147483648,qCv=2147483647,WCv=10,YCv=10,$Cv=10,QCv=10,JCv=255,XCv=-2147483648,ewv=2147483647,twv=-2147483648,nwv=2147483647,swv=36,owv=1e3,oSS=e.object({id:e.string().max(wCv),entity_id:e.string().max(ACv),document_id:e.string().max(FCv),name:e.string().max(kCv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(jCv).max(HCv),day_of_week:e.number().min(LCv).max(GCv).nullish(),day_of_month:e.number().min(VCv).max(KCv).nullish(),month_of_year:e.number().min(ZCv).max(qCv).nullish(),start_date:e.string().max(WCv),end_date:e.string().max(YCv).nullish(),next_run_date:e.string().max($Cv).nullish(),last_run_date:e.string().max(QCv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(JCv).nullish(),payment_terms_days:e.number().min(XCv).max(ewv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(twv).max(nwv),last_generated_invoice_id:e.string().max(swv).nullish(),last_error:e.string().max(owv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),iwv=/^[a-z]{3,4}_[0-9a-f]{24}$/,iSS=e.object({id:e.stringFormat("resource-id",iwv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),awv=/^[a-z]{3,4}_[0-9a-f]{24}$/,rSS=e.object({id:e.stringFormat("resource-id",awv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),lSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),rwv=36,lwv=36,dwv=36,uwv=255,cwv=-2147483648,pwv=2147483647,mwv=-2147483648,xwv=2147483647,gwv=-2147483648,ywv=2147483647,Owv=-2147483648,vwv=2147483647,Swv=10,hwv=10,bwv=10,zwv=10,fwv=255,Bwv=-2147483648,Twv=2147483647,Iwv=-2147483648,Ewv=2147483647,Dwv=36,Rwv=1e3,dSS=e.object({id:e.string().max(rwv),entity_id:e.string().max(lwv),document_id:e.string().max(dwv),name:e.string().max(uwv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(cwv).max(pwv),day_of_week:e.number().min(mwv).max(xwv).nullish(),day_of_month:e.number().min(gwv).max(ywv).nullish(),month_of_year:e.number().min(Owv).max(vwv).nullish(),start_date:e.string().max(Swv),end_date:e.string().max(hwv).nullish(),next_run_date:e.string().max(bwv).nullish(),last_run_date:e.string().max(zwv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(fwv).nullish(),payment_terms_days:e.number().min(Bwv).max(Twv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Iwv).max(Ewv),last_generated_invoice_id:e.string().max(Dwv).nullish(),last_error:e.string().max(Rwv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),_wv=/^[a-z]{3,4}_[0-9a-f]{24}$/,uSS=e.object({id:e.stringFormat("resource-id",_wv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),cSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Nwv=36,Mwv=36,Uwv=36,Pwv=255,Cwv=-2147483648,wwv=2147483647,Awv=-2147483648,Fwv=2147483647,kwv=-2147483648,jwv=2147483647,Hwv=-2147483648,Lwv=2147483647,Gwv=10,Vwv=10,Kwv=10,Zwv=10,qwv=255,Wwv=-2147483648,Ywv=2147483647,$wv=-2147483648,Qwv=2147483647,Jwv=36,Xwv=1e3,pSS=e.object({id:e.string().max(Nwv),entity_id:e.string().max(Mwv),document_id:e.string().max(Uwv),name:e.string().max(Pwv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(Cwv).max(wwv),day_of_week:e.number().min(Awv).max(Fwv).nullish(),day_of_month:e.number().min(kwv).max(jwv).nullish(),month_of_year:e.number().min(Hwv).max(Lwv).nullish(),start_date:e.string().max(Gwv),end_date:e.string().max(Vwv).nullish(),next_run_date:e.string().max(Kwv).nullish(),last_run_date:e.string().max(Zwv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(qwv).nullish(),payment_terms_days:e.number().min(Wwv).max(Ywv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min($wv).max(Qwv),last_generated_invoice_id:e.string().max(Jwv).nullish(),last_error:e.string().max(Xwv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),eAv=/^[a-z]{3,4}_[0-9a-f]{24}$/,mSS=e.object({id:e.stringFormat("resource-id",eAv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),tAv=100,xSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist."),"X-Request-Id":e.string().max(tAv).optional().describe("Stable identifier for retrying the same intentional recurring-invoice trigger without creating another invoice. A concurrent retry while the first trigger is still processing returns `409 conflict`. See the [idempotency guide](https://docs.spaceinvoices.com/guides/idempotency/).")}),nAv=36,sAv=36,oAv=36,iAv=255,aAv=-2147483648,rAv=2147483647,lAv=-2147483648,dAv=2147483647,uAv=-2147483648,cAv=2147483647,pAv=-2147483648,mAv=2147483647,xAv=10,gAv=10,yAv=10,OAv=10,vAv=255,SAv=-2147483648,hAv=2147483647,bAv=-2147483648,zAv=2147483647,fAv=36,BAv=1e3,gSS=e.object({id:e.string().max(nAv),entity_id:e.string().max(sAv),document_id:e.string().max(oAv),name:e.string().max(iAv),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(aAv).max(rAv),day_of_week:e.number().min(lAv).max(dAv).nullish(),day_of_month:e.number().min(uAv).max(cAv).nullish(),month_of_year:e.number().min(pAv).max(mAv).nullish(),start_date:e.string().max(xAv),end_date:e.string().max(gAv).nullish(),next_run_date:e.string().max(yAv).nullish(),last_run_date:e.string().max(OAv).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(vAv).nullish(),payment_terms_days:e.number().min(SAv).max(hAv).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(bAv).max(zAv),last_generated_invoice_id:e.string().max(fAv).nullish(),last_error:e.string().max(BAv).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule");var zt={};W(zt,{BackfillRevenueRecognitionBody:()=>zSS,BackfillRevenueRecognitionHeader:()=>bSS,BackfillRevenueRecognitionResponse:()=>fSS,GetRevenueRecognitionDetailsHeader:()=>DSS,GetRevenueRecognitionDetailsQueryParams:()=>ESS,GetRevenueRecognitionDetailsResponse:()=>RSS,GetRevenueRecognitionDocumentScheduleHeader:()=>PSS,GetRevenueRecognitionDocumentScheduleParams:()=>USS,GetRevenueRecognitionDocumentScheduleResponse:()=>CSS,GetRevenueRecognitionReportHeader:()=>TSS,GetRevenueRecognitionReportQueryParams:()=>BSS,GetRevenueRecognitionReportResponse:()=>ISS,GetRevenueRecognitionSettingsHeader:()=>ySS,GetRevenueRecognitionSettingsResponse:()=>OSS,ListRevenueRecognitionLinesHeader:()=>NSS,ListRevenueRecognitionLinesQueryParams:()=>_SS,ListRevenueRecognitionLinesResponse:()=>MSS,UpdateRevenueRecognitionSettingsBody:()=>SSS,UpdateRevenueRecognitionSettingsHeader:()=>vSS,UpdateRevenueRecognitionSettingsResponse:()=>hSS,backfillRevenueRecognitionBodyDryRunDefault:()=>DAv,getRevenueRecognitionDetailsQueryBasisDefault:()=>NAv,getRevenueRecognitionDetailsQueryFinancialCategoryKeyMax:()=>UAv,getRevenueRecognitionDetailsQueryGroupByDefault:()=>MAv,getRevenueRecognitionDocumentSchedulePathIdRegExp:()=>FAv,getRevenueRecognitionReportQueryBasisDefault:()=>RAv,getRevenueRecognitionReportQueryGroupByDefault:()=>_Av,getRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>TAv,listRevenueRecognitionLinesQueryBasisDefault:()=>PAv,listRevenueRecognitionLinesQueryFinancialCategoryKeyMax:()=>wAv,listRevenueRecognitionLinesQueryGroupByDefault:()=>CAv,listRevenueRecognitionLinesQueryLimitMax:()=>AAv,updateRevenueRecognitionSettingsBodyDefaultMethodDefault:()=>IAv,updateRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>EAv});var ySS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TAv="off",OSS=e.object({default_method:e.enum(["off","service_period_daily"]).default(TAv).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),vSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),IAv="off",SSS=e.object({default_method:e.union([e.literal("off"),e.literal("service_period_daily"),e.literal(null)]).nullish().default(IAv).describe("Entity default for generated revenue recognition entries. Send null to clear back to the default off behavior.")}),EAv="off",hSS=e.object({default_method:e.enum(["off","service_period_daily"]).default(EAv).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),bSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),DAv=false,zSS=e.object({date_from:e.string().nullish().describe("Optional document issue date lower bound in YYYY-MM-DD format."),date_to:e.string().nullish().describe("Optional document issue date upper bound in YYYY-MM-DD format."),dry_run:e.boolean().default(DAv).describe("When true, counts eligible documents without writing entries.")}),fSS=e.object({processed_documents:e.number(),generated_entries:e.number(),dry_run:e.boolean()}),RAv="recognized",_Av="financial_category",BSS=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(RAv).describe("recognized returns revenue recognized inside each period. deferred returns the remaining future recognition balance at the end of each period."),group_by:e.enum(["financial_category"]).default(_Av).describe("Report grouping dimension.")}),TSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ISS=e.object({basis:e.enum(["recognized","deferred"]),group_by:e.enum(["financial_category"]),calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]).describe("How report values were calculated. recognition_entries uses generated service-period schedules; document_date_fallback uses finalized document-item totals by issue date while automation is off; mixed combines document-date fallback with explicit line-level recognition entries."),periods:e.array(e.object({period:e.string(),date_from:e.string(),date_to:e.string()})),series:e.array(e.object({key:e.string(),financial_category_id:e.string().nullable(),name:e.string(),color:e.string().nullable(),values:e.array(e.number()),total:e.number()})),totals:e.array(e.number()),total:e.number(),currency_code:e.string(),date_from:e.string(),date_to:e.string()}),NAv="recognized",MAv="financial_category",UAv=200,ESS=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(NAv).describe("recognized returns the entries recognized inside the date range. deferred returns the entries still to be recognized after date_to from documents dated on or before date_to, so the total equals the deferred balance at date_to."),group_by:e.enum(["financial_category"]).default(MAv).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e.string().max(UAv).nullish().describe("Optional category key (for example `office-supplies`), as an alternative to financial_category_id. Cannot be combined with financial_category_id. An unknown key selects nothing, like an unknown ID. Use null/omit for all categories.")}),DSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),RSS=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({id:e.string(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),document_item_id:e.string(),document_item_name:e.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number(),recognized_amount:e.number(),period_start:e.string(),period_end:e.string(),service_period_start:e.string(),service_period_end:e.string(),method:e.string()})),total:e.number(),currency_code:e.string()}),PAv="recognized",CAv="financial_category",wAv=200,AAv=100,_SS=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(PAv).describe("recognized returns the entries recognized inside the date range. deferred returns the entries still to be recognized after date_to from documents dated on or before date_to, so the total equals the deferred balance at date_to."),group_by:e.enum(["financial_category"]).default(CAv).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e.string().max(wAv).nullish().describe("Optional category key (for example `office-supplies`), as an alternative to financial_category_id. Cannot be combined with financial_category_id. An unknown key selects nothing, like an unknown ID. Use null/omit for all categories."),uncategorized:e.boolean().nullish().describe("When true, only lines without a financial category. Cannot be combined with financial_category_id or financial_category_key."),limit:e.number().min(1).max(AAv).nullish().describe("Number of lines per page (1-100). Defaults to 20; null or omitted uses the default."),next_cursor:e.string().nullish().describe("Opaque cursor from pagination.next_cursor of the previous response. Null or omitted starts at the first page."),prev_cursor:e.string().nullish().describe("Opaque cursor from pagination.prev_cursor of the previous response. Null or omitted starts at the first page.")}),NSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MSS=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({document_item_id:e.string(),document_item_name:e.string().nullable(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number().describe("Net amount of the whole document line."),amount:e.number().describe("Sum of the line's entries in the selection: recognized inside the range, or still deferred after date_to."),entry_count:e.number(),first_period_start:e.string(),last_period_start:e.string(),service_period_start:e.string(),service_period_end:e.string()})),total:e.number().describe("Sum of amount across every line in the selection, not only this page."),currency_code:e.string(),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),FAv=/^[a-z]{3,4}_[0-9a-f]{24}$/,USS=e.object({id:e.stringFormat("resource-id",FAv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CSS=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({id:e.string(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),document_item_id:e.string(),document_item_name:e.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number(),recognized_amount:e.number(),period_start:e.string(),period_end:e.string(),service_period_start:e.string(),service_period_end:e.string(),method:e.string()})),total:e.number(),currency_code:e.string()}).and(e.object({document_id:e.string()}));var ft={};W(ft,{StripeAppConnectBody:()=>FSS,StripeAppEntityDisconnectResponse:()=>jSS,StripeAppEntityGetConnectionResponse:()=>kSS,StripeAppEntityGetSettingsResponse:()=>HSS,StripeAppEntityUpdateSettingsBody:()=>LSS,StripeAppEntityUpdateSettingsResponse:()=>GSS,StripeAppMarketplaceAuthorizeBody:()=>wSS,StripeAppMarketplaceAuthorizeResponse:()=>ASS,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>kAv,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>HAv,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>jAv});var wSS=e.object({entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account")}),ASS=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),FSS=e.object({state:e.string().min(1).describe("State token from the authorize step"),entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account"),force:e.boolean().nullish().describe("If true, disconnects any existing connection for this Stripe account before connecting. Null is treated as false.")}),kSS=e.object({id:e.string().describe("Connection ID"),stripe_account_id:e.string().describe("Connected Stripe account ID"),entity_id:e.string().describe("Connected Space Invoices entity ID"),entity_name:e.string().optional().describe("Connected Space Invoices entity name"),entity_environment:e.enum(["live","sandbox"]).optional().describe("Connected Space Invoices entity environment"),entity_is_tax_subject:e.boolean().optional().describe("Whether the connected entity is configured to charge tax"),white_label_id:e.string().describe("White-label context for this connection"),auto_invoice_config:e.object({enabled:e.boolean(),events:e.array(e.string()),default_note:e.string().optional()}).describe("Auto-invoice configuration"),created_at:e.iso.datetime({}).describe("When the connection was created")}),jSS=e.object({message:e.string()}),HSS=e.object({auto_invoice_enabled:e.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e.array(e.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),kAv=500,jAv=0,HAv=100,LSS=e.object({auto_invoice_enabled:e.boolean().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:e.array(e.enum(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().max(kAv).nullish().describe("Default note to include on auto-created invoices. Set to null to clear the note."),default_tax_rate:e.number().min(jAv).max(HAv).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),GSS=e.object({auto_invoice_enabled:e.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e.array(e.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")});var Bt={};W(Bt,{CheckEntityLimitResponse:()=>qSS,GetCurrentSubscriptionResponse:()=>VSS,UpdateSpendingLimitBody:()=>KSS,UpdateSpendingLimitResponse:()=>ZSS,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>LAv,updateSpendingLimitBodySpendingLimitCentsMin:()=>GAv});var LAv=0,VSS=e.object({subscription:e.object({id:e.string(),account_id:e.string(),tier:e.enum(["free","metered"]),spending_limit_cents:e.number().nullable(),is_internal:e.boolean(),created_at:e.string(),updated_at:e.string()}),usage:e.object({documents_count:e.number(),e_invoicing_send_count:e.number().default(LAv),entities_active:e.number(),period_start:e.string(),period_end:e.string()}),limits:e.object({entities:e.number().nullable().describe("Max entities for free tier (null for metered)"),documents_per_month:e.number().nullable().describe("Max docs per month for free tier (null for metered)")}),is_over_limit:e.boolean()}).describe("Current subscription and usage for Space Invoices account"),GAv=0,KSS=e.object({spending_limit_cents:e.number().min(GAv).nullable()}).describe("Request to update spending limit for metered tier"),ZSS=e.object({spending_limit_cents:e.number().nullable()}).describe("Updated spending limit"),qSS=e.object({can_create:e.boolean(),current_count:e.number(),limit:e.number().nullable()});var Tt={};W(Tt,{ListUsTaxRateEstimatesHeader:()=>YSS,ListUsTaxRateEstimatesQueryParams:()=>WSS,ListUsTaxRateEstimatesResponse:()=>$SS,listUsTaxRateEstimatesQueryStateMax:()=>ZAv,listUsTaxRateEstimatesQueryStateMin:()=>KAv,listUsTaxRateEstimatesQueryZipCodeRegExp:()=>VAv,listUsTaxRateEstimatesResponseDataItemCityRateMax:()=>iFv,listUsTaxRateEstimatesResponseDataItemCityRateMin:()=>oFv,listUsTaxRateEstimatesResponseDataItemCountryCodeMax:()=>WAv,listUsTaxRateEstimatesResponseDataItemCountyRateMax:()=>sFv,listUsTaxRateEstimatesResponseDataItemCountyRateMin:()=>nFv,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMax:()=>XAv,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMin:()=>JAv,listUsTaxRateEstimatesResponseDataItemIdMax:()=>qAv,listUsTaxRateEstimatesResponseDataItemRiskLevelMax:()=>dFv,listUsTaxRateEstimatesResponseDataItemRiskLevelMin:()=>lFv,listUsTaxRateEstimatesResponseDataItemSourceMax:()=>uFv,listUsTaxRateEstimatesResponseDataItemSourceMonthMax:()=>cFv,listUsTaxRateEstimatesResponseDataItemSpecialRateMax:()=>rFv,listUsTaxRateEstimatesResponseDataItemSpecialRateMin:()=>aFv,listUsTaxRateEstimatesResponseDataItemStateMax:()=>YAv,listUsTaxRateEstimatesResponseDataItemStateRateMax:()=>tFv,listUsTaxRateEstimatesResponseDataItemStateRateMin:()=>eFv,listUsTaxRateEstimatesResponseDataItemTaxRegionNameMax:()=>QAv,listUsTaxRateEstimatesResponseDataItemZipCodeMax:()=>$Av});var VAv=/^\d{5}$/,KAv=2,ZAv=2,WSS=e.object({zip_code:e.string().regex(VAv).describe("US ZIP code to look up."),state:e.string().min(KAv).max(ZAv).optional().describe("Optional two-letter US state filter.")}),YSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qAv=36,WAv=2,YAv=2,$Av=10,QAv=255,JAv=-140737488355328,XAv=0x7fffffffffff,eFv=-140737488355328,tFv=0x7fffffffffff,nFv=-140737488355328,sFv=0x7fffffffffff,oFv=-140737488355328,iFv=0x7fffffffffff,aFv=-140737488355328,rFv=0x7fffffffffff,lFv=-2147483648,dFv=2147483647,uFv=50,cFv=7,$SS=e.object({data:e.array(e.object({id:e.string().max(qAv),country_code:e.string().max(WAv),state:e.string().max(YAv),zip_code:e.string().max($Av),tax_region_name:e.string().max(QAv),estimated_combined_rate:e.number().min(JAv).max(XAv),state_rate:e.number().min(eFv).max(tFv),county_rate:e.number().min(nFv).max(sFv),city_rate:e.number().min(oFv).max(iFv),special_rate:e.number().min(aFv).max(rFv),risk_level:e.number().min(lFv).max(dFv),source:e.string().max(uFv),source_month:e.string().max(cFv),imported_at:e.iso.datetime({})}).describe("Imported ZIP-level tax-rate estimate. This is informational and must be verified before use."))});var It={};W(It,{ApproveVatReturnHeader:()=>RbS,ApproveVatReturnParams:()=>DbS,ApproveVatReturnResponse:()=>_bS,ArchiveEmployeeHeader:()=>uhS,ArchiveEmployeeParams:()=>dhS,CompleteFilingBody:()=>ZbS,CompleteFilingHeader:()=>KbS,CompleteFilingParams:()=>VbS,CompleteFilingResponse:()=>qbS,CreateTaxPaymentBody:()=>FhS,CreateTaxPaymentHeader:()=>AhS,DeleteTaxPaymentHeader:()=>VhS,DeleteTaxPaymentParams:()=>GhS,DismissFilingBody:()=>XbS,DismissFilingHeader:()=>JbS,DismissFilingParams:()=>QbS,DismissFilingResponse:()=>ezS,DraftVatReturnBody:()=>vbS,DraftVatReturnHeader:()=>ObS,ExportQuickbooksCsvHeader:()=>mbS,ExportQuickbooksCsvQueryParams:()=>pbS,ExportSloveniaMinimaxXmlBody:()=>dbS,ExportSloveniaMinimaxXmlHeader:()=>lbS,ExportSloveniaVascoXmlBody:()=>cbS,ExportSloveniaVascoXmlHeader:()=>ubS,ExportSloveniaVodXmlBody:()=>rbS,ExportSloveniaVodXmlHeader:()=>abS,ExportSloveniaYearlyNormiraniReportBody:()=>ibS,ExportSloveniaYearlyNormiraniReportHeader:()=>obS,ExportVatReturnHeader:()=>jbS,ExportVatReturnParams:()=>FbS,ExportVatReturnQueryParams:()=>kbS,GenerateKirExportHeader:()=>YhS,GenerateKirExportQueryParams:()=>WhS,GetEmployeeAttendanceHeader:()=>mhS,GetEmployeeAttendanceParams:()=>chS,GetEmployeeAttendanceQueryParams:()=>phS,GetEmployeeAttendanceResponse:()=>xhS,GetEmployeeHeader:()=>shS,GetEmployeeParams:()=>nhS,GetEmployeeResponse:()=>ohS,GetEuOssReportHeader:()=>ZhS,GetEuOssReportQueryParams:()=>KhS,GetEuOssReportResponse:()=>qhS,GetPayrollParameterHistoryHeader:()=>BhS,GetPayrollParameterHistoryQueryParams:()=>fhS,GetPayrollParameterHistoryResponse:()=>ThS,GetSloveniaTaxProfileHeader:()=>$hS,GetSloveniaTaxProfileResponse:()=>QhS,GetTaxLiabilityReportHeader:()=>MhS,GetTaxLiabilityReportQueryParams:()=>NhS,GetTaxLiabilityReportResponse:()=>UhS,GetTaxPaymentsHeader:()=>ChS,GetTaxPaymentsQueryParams:()=>PhS,GetTaxPaymentsResponse:()=>whS,GetVatReturnHeader:()=>fbS,GetVatReturnParams:()=>zbS,GetVatReturnResponse:()=>BbS,ListAccountFilingsCalendarHeader:()=>nzS,ListAccountFilingsCalendarQueryParams:()=>tzS,ListAccountFilingsCalendarResponse:()=>szS,ListEmployeesHeader:()=>JSS,ListEmployeesQueryParams:()=>QSS,ListEmployeesResponse:()=>XSS,ListFilingsHeader:()=>LbS,ListFilingsQueryParams:()=>HbS,ListFilingsResponse:()=>GbS,ListVatReturnsHeader:()=>hbS,ListVatReturnsQueryParams:()=>SbS,ListVatReturnsResponse:()=>bbS,ModifyEmployeeBody:()=>rhS,ModifyEmployeeHeader:()=>ahS,ModifyEmployeeParams:()=>ihS,ModifyEmployeeResponse:()=>lhS,PreviewVatReturnHeader:()=>gbS,PreviewVatReturnQueryParams:()=>xbS,PreviewVatReturnResponse:()=>ybS,RecomputeVatReturnHeader:()=>IbS,RecomputeVatReturnParams:()=>TbS,RecomputeVatReturnResponse:()=>EbS,RegisterEmployeeBody:()=>thS,RegisterEmployeeHeader:()=>ehS,ReopenFilingHeader:()=>YbS,ReopenFilingParams:()=>WbS,ReopenFilingResponse:()=>$bS,ReopenVatReturnHeader:()=>wbS,ReopenVatReturnParams:()=>CbS,ReopenVatReturnResponse:()=>AbS,ReplaceEmployeeAttendanceBody:()=>vhS,ReplaceEmployeeAttendanceHeader:()=>OhS,ReplaceEmployeeAttendanceParams:()=>ghS,ReplaceEmployeeAttendanceQueryParams:()=>yhS,ReplaceEmployeeAttendanceResponse:()=>ShS,ResolvePayrollParametersHeader:()=>bhS,ResolvePayrollParametersQueryParams:()=>hhS,ResolvePayrollParametersResponse:()=>zhS,ReviewSloveniaYearlyNormiraniReportBody:()=>nbS,ReviewSloveniaYearlyNormiraniReportHeader:()=>tbS,ReviewSloveniaYearlyNormiraniReportResponse:()=>sbS,SetPayrollParameterOverrideBody:()=>RhS,SetPayrollParameterOverrideHeader:()=>DhS,SetPayrollParameterOverrideParams:()=>IhS,SetPayrollParameterOverrideQueryParams:()=>EhS,SetPayrollParameterOverrideResponse:()=>_hS,SubmitVatReturnBody:()=>UbS,SubmitVatReturnHeader:()=>MbS,SubmitVatReturnParams:()=>NbS,SubmitVatReturnResponse:()=>PbS,UpdateSloveniaTaxProfileBody:()=>XhS,UpdateSloveniaTaxProfileHeader:()=>JhS,UpdateSloveniaTaxProfileResponse:()=>ebS,UpdateTaxPaymentBody:()=>HhS,UpdateTaxPaymentHeader:()=>jhS,UpdateTaxPaymentParams:()=>khS,UpdateTaxPaymentResponse:()=>LhS,approveVatReturnPathIdRegExp:()=>Y1v,archiveEmployeePathIdRegExp:()=>kkv,completeFilingBodyNoteMax:()=>s4v,completeFilingPathIdRegExp:()=>n4v,createTaxPaymentBodyAmountExclusiveMin:()=>Cjv,createTaxPaymentBodyCurrencyCodeMax:()=>Ajv,createTaxPaymentBodyCurrencyCodeMin:()=>wjv,createTaxPaymentBodyNoteMax:()=>kjv,createTaxPaymentBodyReferenceMax:()=>Fjv,deleteTaxPaymentPathIdRegExp:()=>Vjv,dismissFilingBodyReasonMax:()=>a4v,dismissFilingPathIdRegExp:()=>i4v,draftVatReturnBodyMonthMax:()=>G1v,draftVatReturnBodyQuarterMax:()=>V1v,draftVatReturnBodyYearMax:()=>L1v,draftVatReturnBodyYearMin:()=>H1v,exportSloveniaYearlyNormiraniReportBodyManualValuesForeignTaxCreditAmountMin:()=>P1v,exportSloveniaYearlyNormiraniReportBodyManualValuesPriorAdvanceIncomeTaxAmountMin:()=>C1v,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentDecreaseMin:()=>w1v,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentIncreaseMin:()=>A1v,exportSloveniaYearlyNormiraniReportBodyManualValuesWithholdingTaxAmountMin:()=>U1v,exportSloveniaYearlyNormiraniReportBodyYearMax:()=>M1v,exportSloveniaYearlyNormiraniReportBodyYearMin:()=>N1v,exportVatReturnPathIdRegExp:()=>X1v,generateKirExportQueryMonthRegExp:()=>oHv,generateKirExportQueryQuarterRegExp:()=>iHv,generateKirExportQueryYearRegExp:()=>sHv,getEmployeeAttendancePathIdRegExp:()=>jkv,getEmployeeAttendanceQueryMonthMax:()=>Gkv,getEmployeeAttendanceQueryYearMax:()=>Lkv,getEmployeeAttendanceQueryYearMin:()=>Hkv,getEmployeePathIdRegExp:()=>u5v,getEmployeeResponseAddressMax:()=>S5v,getEmployeeResponseCityMax:()=>b5v,getEmployeeResponseCommuteAmountMonthlyMax:()=>k5v,getEmployeeResponseCommuteAmountMonthlyMin:()=>F5v,getEmployeeResponseCommuteKmOneWayMax:()=>A5v,getEmployeeResponseCommuteKmOneWayMin:()=>w5v,getEmployeeResponseCommuteModeMax:()=>C5v,getEmployeeResponseCountryCodeMax:()=>z5v,getEmployeeResponseEmailMax:()=>y5v,getEmployeeResponseEmploymentEndRegExp:()=>T5v,getEmployeeResponseEmploymentStartRegExp:()=>B5v,getEmployeeResponseEmploymentTypeMax:()=>I5v,getEmployeeResponseEntityIdMax:()=>p5v,getEmployeeResponseFirstNameMax:()=>x5v,getEmployeeResponseGeneralAllowanceModeMax:()=>H5v,getEmployeeResponseGrossSalaryMonthlyMax:()=>_5v,getEmployeeResponseGrossSalaryMonthlyMin:()=>R5v,getEmployeeResponseIbanMax:()=>f5v,getEmployeeResponseIdMax:()=>c5v,getEmployeeResponseLastNameMax:()=>g5v,getEmployeeResponseMealAllowancePerDayMax:()=>P5v,getEmployeeResponseMealAllowancePerDayMin:()=>U5v,getEmployeeResponsePersonalIdMax:()=>v5v,getEmployeeResponsePostCodeMax:()=>h5v,getEmployeeResponseSeniorityBonusPercentMax:()=>M5v,getEmployeeResponseSeniorityBonusPercentMin:()=>N5v,getEmployeeResponseStatusMax:()=>m5v,getEmployeeResponseTaxNumberMax:()=>O5v,getEmployeeResponseTaxResidencyMax:()=>j5v,getEmployeeResponseWeeklyHoursMax:()=>D5v,getEmployeeResponseWeeklyHoursMin:()=>E5v,getEuOssReportQueryYearMax:()=>Zjv,getEuOssReportQueryYearMin:()=>Kjv,getEuOssReportResponseIssuerCountryCodeMax:()=>Wjv,getEuOssReportResponseIssuerCountryCodeMin:()=>qjv,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMax:()=>eHv,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMin:()=>Xjv,getEuOssReportResponsePeriodsItemCountriesItemCreditNoteCountMin:()=>nHv,getEuOssReportResponsePeriodsItemCountriesItemInvoiceCountMin:()=>tHv,getEuOssReportResponsePeriodsItemCreditNoteCountMin:()=>Jjv,getEuOssReportResponsePeriodsItemInvoiceCountMin:()=>Qjv,getEuOssReportResponseReportingCurrencyCodeMax:()=>$jv,getEuOssReportResponseReportingCurrencyCodeMin:()=>Yjv,getPayrollParameterHistoryQueryCountryCodeDefault:()=>ijv,getPayrollParameterHistoryQueryCountryCodeMax:()=>rjv,getPayrollParameterHistoryQueryCountryCodeMin:()=>ajv,getPayrollParameterHistoryResponseDataItemCountryCodeMax:()=>djv,getPayrollParameterHistoryResponseDataItemEffectiveFromRegExp:()=>xjv,getPayrollParameterHistoryResponseDataItemEffectiveToRegExp:()=>gjv,getPayrollParameterHistoryResponseDataItemEntityIdMax:()=>yjv,getPayrollParameterHistoryResponseDataItemIdMax:()=>ljv,getPayrollParameterHistoryResponseDataItemKeyMax:()=>ujv,getPayrollParameterHistoryResponseDataItemUnitMax:()=>mjv,getPayrollParameterHistoryResponseDataItemValueNumericMax:()=>pjv,getPayrollParameterHistoryResponseDataItemValueNumericMin:()=>cjv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>pHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>cHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>uHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>DHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>_Hv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>RHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>MHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>UHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>NHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>PHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>CHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>wHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>yHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>vHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>OHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>dHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>SHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>bHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>hHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>fHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>BHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>zHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>THv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>IHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>EHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>mHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>gHv,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>xHv,getSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>aHv,getSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>lHv,getSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>rHv,getVatReturnPathIdRegExp:()=>q1v,listAccountFilingsCalendarHeaderXAccountIdRegExp:()=>u4v,listAccountFilingsCalendarQueryEnvironmentDefault:()=>d4v,listAccountFilingsCalendarQueryFromRegExp:()=>r4v,listAccountFilingsCalendarQueryToRegExp:()=>l4v,listEmployeesQueryLimitDefault:()=>pFv,listEmployeesQueryLimitMax:()=>mFv,listEmployeesResponseDataItemAddressMax:()=>zFv,listEmployeesResponseDataItemCityMax:()=>BFv,listEmployeesResponseDataItemCommuteAmountMonthlyMax:()=>LFv,listEmployeesResponseDataItemCommuteAmountMonthlyMin:()=>HFv,listEmployeesResponseDataItemCommuteKmOneWayMax:()=>jFv,listEmployeesResponseDataItemCommuteKmOneWayMin:()=>kFv,listEmployeesResponseDataItemCommuteModeMax:()=>FFv,listEmployeesResponseDataItemCountryCodeMax:()=>TFv,listEmployeesResponseDataItemEmailMax:()=>SFv,listEmployeesResponseDataItemEmploymentEndRegExp:()=>DFv,listEmployeesResponseDataItemEmploymentStartRegExp:()=>EFv,listEmployeesResponseDataItemEmploymentTypeMax:()=>RFv,listEmployeesResponseDataItemEntityIdMax:()=>gFv,listEmployeesResponseDataItemFirstNameMax:()=>OFv,listEmployeesResponseDataItemGeneralAllowanceModeMax:()=>VFv,listEmployeesResponseDataItemGrossSalaryMonthlyMax:()=>UFv,listEmployeesResponseDataItemGrossSalaryMonthlyMin:()=>MFv,listEmployeesResponseDataItemIbanMax:()=>IFv,listEmployeesResponseDataItemIdMax:()=>xFv,listEmployeesResponseDataItemLastNameMax:()=>vFv,listEmployeesResponseDataItemMealAllowancePerDayMax:()=>AFv,listEmployeesResponseDataItemMealAllowancePerDayMin:()=>wFv,listEmployeesResponseDataItemPersonalIdMax:()=>bFv,listEmployeesResponseDataItemPostCodeMax:()=>fFv,listEmployeesResponseDataItemSeniorityBonusPercentMax:()=>CFv,listEmployeesResponseDataItemSeniorityBonusPercentMin:()=>PFv,listEmployeesResponseDataItemStatusMax:()=>yFv,listEmployeesResponseDataItemTaxNumberMax:()=>hFv,listEmployeesResponseDataItemTaxResidencyMax:()=>GFv,listEmployeesResponseDataItemWeeklyHoursMax:()=>NFv,listEmployeesResponseDataItemWeeklyHoursMin:()=>_Fv,listFilingsQueryFromRegExp:()=>e4v,listFilingsQueryToRegExp:()=>t4v,listVatReturnsQueryLimitDefault:()=>K1v,listVatReturnsQueryLimitMax:()=>Z1v,modifyEmployeeBodyAddressMax:()=>Z5v,modifyEmployeeBodyCityMax:()=>W5v,modifyEmployeeBodyCommuteAmountMonthlyMin:()=>rkv,modifyEmployeeBodyCommuteKmOneWayMin:()=>akv,modifyEmployeeBodyCountryCodeMax:()=>$5v,modifyEmployeeBodyCountryCodeMin:()=>Y5v,modifyEmployeeBodyEmailMax:()=>K5v,modifyEmployeeBodyEmploymentEndRegExp:()=>X5v,modifyEmployeeBodyEmploymentStartRegExp:()=>J5v,modifyEmployeeBodyFirstNameMax:()=>G5v,modifyEmployeeBodyGrossSalaryMonthlyMin:()=>nkv,modifyEmployeeBodyIbanMax:()=>Q5v,modifyEmployeeBodyLastNameMax:()=>V5v,modifyEmployeeBodyMealAllowancePerDayMin:()=>ikv,modifyEmployeeBodyPostCodeMax:()=>q5v,modifyEmployeeBodySeniorityBonusPercentMax:()=>okv,modifyEmployeeBodySeniorityBonusPercentMin:()=>skv,modifyEmployeeBodyWeeklyHoursExclusiveMin:()=>ekv,modifyEmployeeBodyWeeklyHoursMax:()=>tkv,modifyEmployeePathIdRegExp:()=>L5v,modifyEmployeeResponseAddressMax:()=>ykv,modifyEmployeeResponseCityMax:()=>vkv,modifyEmployeeResponseCommuteAmountMonthlyMax:()=>wkv,modifyEmployeeResponseCommuteAmountMonthlyMin:()=>Ckv,modifyEmployeeResponseCommuteKmOneWayMax:()=>Pkv,modifyEmployeeResponseCommuteKmOneWayMin:()=>Ukv,modifyEmployeeResponseCommuteModeMax:()=>Mkv,modifyEmployeeResponseCountryCodeMax:()=>Skv,modifyEmployeeResponseEmailMax:()=>mkv,modifyEmployeeResponseEmploymentEndRegExp:()=>zkv,modifyEmployeeResponseEmploymentStartRegExp:()=>bkv,modifyEmployeeResponseEmploymentTypeMax:()=>fkv,modifyEmployeeResponseEntityIdMax:()=>dkv,modifyEmployeeResponseFirstNameMax:()=>ckv,modifyEmployeeResponseGeneralAllowanceModeMax:()=>Fkv,modifyEmployeeResponseGrossSalaryMonthlyMax:()=>Ekv,modifyEmployeeResponseGrossSalaryMonthlyMin:()=>Ikv,modifyEmployeeResponseIbanMax:()=>hkv,modifyEmployeeResponseIdMax:()=>lkv,modifyEmployeeResponseLastNameMax:()=>pkv,modifyEmployeeResponseMealAllowancePerDayMax:()=>Nkv,modifyEmployeeResponseMealAllowancePerDayMin:()=>_kv,modifyEmployeeResponsePersonalIdMax:()=>gkv,modifyEmployeeResponsePostCodeMax:()=>Okv,modifyEmployeeResponseSeniorityBonusPercentMax:()=>Rkv,modifyEmployeeResponseSeniorityBonusPercentMin:()=>Dkv,modifyEmployeeResponseStatusMax:()=>ukv,modifyEmployeeResponseTaxNumberMax:()=>xkv,modifyEmployeeResponseTaxResidencyMax:()=>Akv,modifyEmployeeResponseWeeklyHoursMax:()=>Tkv,modifyEmployeeResponseWeeklyHoursMin:()=>Bkv,previewVatReturnQueryMonthRegExp:()=>k1v,previewVatReturnQueryQuarterRegExp:()=>j1v,previewVatReturnQueryYearRegExp:()=>F1v,recomputeVatReturnPathIdRegExp:()=>W1v,registerEmployeeBodyAddressMax:()=>WFv,registerEmployeeBodyCityMax:()=>$Fv,registerEmployeeBodyCommuteAmountMonthlyMin:()=>d5v,registerEmployeeBodyCommuteKmOneWayMin:()=>l5v,registerEmployeeBodyCountryCodeMax:()=>JFv,registerEmployeeBodyCountryCodeMin:()=>QFv,registerEmployeeBodyEmailMax:()=>qFv,registerEmployeeBodyEmploymentEndRegExp:()=>t5v,registerEmployeeBodyEmploymentStartRegExp:()=>e5v,registerEmployeeBodyFirstNameMax:()=>KFv,registerEmployeeBodyGrossSalaryMonthlyMin:()=>o5v,registerEmployeeBodyIbanMax:()=>XFv,registerEmployeeBodyLastNameMax:()=>ZFv,registerEmployeeBodyMealAllowancePerDayMin:()=>r5v,registerEmployeeBodyPostCodeMax:()=>YFv,registerEmployeeBodySeniorityBonusPercentMax:()=>a5v,registerEmployeeBodySeniorityBonusPercentMin:()=>i5v,registerEmployeeBodyWeeklyHoursExclusiveMin:()=>n5v,registerEmployeeBodyWeeklyHoursMax:()=>s5v,reopenFilingPathIdRegExp:()=>o4v,reopenVatReturnPathIdRegExp:()=>J1v,replaceEmployeeAttendanceBodyDaysItemDateRegExp:()=>Wkv,replaceEmployeeAttendanceBodyDaysItemHoursMax:()=>$kv,replaceEmployeeAttendanceBodyDaysItemHoursMin:()=>Ykv,replaceEmployeeAttendanceBodyDaysItemNoteMax:()=>Qkv,replaceEmployeeAttendancePathIdRegExp:()=>Vkv,replaceEmployeeAttendanceQueryMonthMax:()=>qkv,replaceEmployeeAttendanceQueryYearMax:()=>Zkv,replaceEmployeeAttendanceQueryYearMin:()=>Kkv,resolvePayrollParametersQueryAsOfRegExp:()=>tjv,resolvePayrollParametersQueryCountryCodeDefault:()=>Jkv,resolvePayrollParametersQueryCountryCodeMax:()=>ejv,resolvePayrollParametersQueryCountryCodeMin:()=>Xkv,resolvePayrollParametersResponseAsOfRegExp:()=>njv,resolvePayrollParametersResponseParametersEffectiveFromRegExp:()=>sjv,resolvePayrollParametersResponseParametersEffectiveToRegExp:()=>ojv,reviewSloveniaYearlyNormiraniReportBodyYearMax:()=>ZLv,reviewSloveniaYearlyNormiraniReportBodyYearMin:()=>KLv,reviewSloveniaYearlyNormiraniReportResponseManualValuesForeignTaxCreditAmountMin:()=>E1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesPriorAdvanceIncomeTaxAmountMin:()=>D1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentDecreaseMin:()=>R1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentIncreaseMin:()=>_1v,reviewSloveniaYearlyNormiraniReportResponseManualValuesWithholdingTaxAmountMin:()=>I1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>t1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>e1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePayablesMax:()=>XLv,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>O1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>S1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>v1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>b1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>z1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>h1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>f1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>B1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>T1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>i1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>r1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>a1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesMax:()=>JLv,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>l1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>u1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>d1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>p1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>m1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>c1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>x1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>g1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>y1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat22Max:()=>n1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat5Max:()=>o1v,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat95Max:()=>s1v,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingActivityCodesItemRegExp:()=>YLv,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultForeignTaxCreditAmountMin:()=>QLv,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultWithholdingTaxAmountMin:()=>$Lv,reviewSloveniaYearlyNormiraniReportResponseYearMax:()=>WLv,reviewSloveniaYearlyNormiraniReportResponseYearMin:()=>qLv,setPayrollParameterOverrideBodyEffectiveFromRegExp:()=>bjv,setPayrollParameterOverrideBodyEffectiveToRegExp:()=>zjv,setPayrollParameterOverrideBodyNoteMax:()=>Tjv,setPayrollParameterOverrideBodySourceTitleMax:()=>Bjv,setPayrollParameterOverrideBodySourceUrlMax:()=>fjv,setPayrollParameterOverrideBodyUnitMax:()=>hjv,setPayrollParameterOverrideQueryCountryCodeDefault:()=>Ojv,setPayrollParameterOverrideQueryCountryCodeMax:()=>Sjv,setPayrollParameterOverrideQueryCountryCodeMin:()=>vjv,setPayrollParameterOverrideResponseCountryCodeMax:()=>Ejv,setPayrollParameterOverrideResponseEffectiveFromRegExp:()=>Mjv,setPayrollParameterOverrideResponseEffectiveToRegExp:()=>Ujv,setPayrollParameterOverrideResponseEntityIdMax:()=>Pjv,setPayrollParameterOverrideResponseIdMax:()=>Ijv,setPayrollParameterOverrideResponseKeyMax:()=>Djv,setPayrollParameterOverrideResponseUnitMax:()=>Njv,setPayrollParameterOverrideResponseValueNumericMax:()=>_jv,setPayrollParameterOverrideResponseValueNumericMin:()=>Rjv,submitVatReturnBodyNotesMax:()=>Q1v,submitVatReturnPathIdRegExp:()=>$1v,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesPaidMax:()=>GHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesReceivedMax:()=>LHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPayablesMax:()=>HHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense22Max:()=>iLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense5Max:()=>rLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense95Max:()=>aLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuGoodsMax:()=>dLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuServicesMax:()=>uLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseExemptMax:()=>lLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseReverseChargeMax:()=>cLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryGoodsMax:()=>pLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryServicesMax:()=>mLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable22Max:()=>qHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable5Max:()=>YHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable95Max:()=>WHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesMax:()=>jHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue22Max:()=>$Hv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue5Max:()=>JHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue95Max:()=>QHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuGoodsMax:()=>eLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuServicesMax:()=>tLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueExemptMax:()=>XHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueReverseChargeMax:()=>nLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryGoodsMax:()=>sLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryServicesMax:()=>oLv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat22Max:()=>VHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat5Max:()=>ZHv,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat95Max:()=>KHv,updateSloveniaTaxProfileBodyYearlyReportingActivityCodesItemRegExp:()=>AHv,updateSloveniaTaxProfileBodyYearlyReportingDefaultForeignTaxCreditAmountMin:()=>kHv,updateSloveniaTaxProfileBodyYearlyReportingDefaultWithholdingTaxAmountMin:()=>FHv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>hLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>SLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>vLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>wLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>FLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>ALv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>jLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>HLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>kLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>LLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>GLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>VLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>BLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>ILv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>TLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>OLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>ELv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>RLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>DLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>NLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>MLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>_Lv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>ULv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>PLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>CLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>bLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>fLv,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>zLv,updateSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>xLv,updateSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>yLv,updateSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>gLv,updateTaxPaymentBodyAmountExclusiveMin:()=>Hjv,updateTaxPaymentBodyNoteMax:()=>Gjv,updateTaxPaymentBodyReferenceMax:()=>Ljv,updateTaxPaymentPathIdRegExp:()=>jjv});var pFv=10,mFv=100,QSS=e.object({limit:e.number().min(1).max(mFv).default(pFv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.union([e.literal("active"),e.literal("inactive"),e.literal(null)]).nullish().describe("Filter by employee status. Omit to return both active and inactive employees.")}),JSS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xFv=36,gFv=36,yFv=20,OFv=255,vFv=255,SFv=255,hFv=20,bFv=20,zFv=500,fFv=20,BFv=100,TFv=2,IFv=50,EFv=/^\d{4}-\d{2}-\d{2}$/,DFv=/^\d{4}-\d{2}-\d{2}$/,RFv=20,_Fv=-140737488355328,NFv=0x7fffffffffff,MFv=-140737488355328,UFv=0x7fffffffffff,PFv=-140737488355328,CFv=0x7fffffffffff,wFv=-140737488355328,AFv=0x7fffffffffff,FFv=20,kFv=-140737488355328,jFv=0x7fffffffffff,HFv=-140737488355328,LFv=0x7fffffffffff,GFv=20,VFv=20,XSS=e.object({data:e.array(e.object({id:e.string().max(xFv),entity_id:e.string().max(gFv),status:e.string().max(yFv),first_name:e.string().max(OFv),last_name:e.string().max(vFv),email:e.string().max(SFv).nullish(),tax_number:e.string().max(hFv),personal_id:e.string().max(bFv).nullish(),address:e.string().max(zFv).nullish(),post_code:e.string().max(fFv).nullish(),city:e.string().max(BFv).nullish(),country_code:e.string().max(TFv).nullish(),iban:e.string().max(IFv).nullish(),employment_start:e.string().regex(EFv),employment_end:e.string().regex(DFv).nullish(),employment_type:e.string().max(RFv),weekly_hours:e.number().min(_Fv).max(NFv),gross_salary_monthly:e.number().min(MFv).max(UFv),seniority_bonus_percent:e.number().min(PFv).max(CFv),meal_allowance_per_day:e.number().min(wFv).max(AFv).nullish(),commute_mode:e.string().max(FFv),commute_km_one_way:e.number().min(kFv).max(jFv).nullish(),commute_amount_monthly:e.number().min(HFv).max(LFv).nullish(),works_remotely:e.boolean(),tax_residency:e.string().max(GFv),general_allowance_mode:e.string().max(VFv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Employee record used as the basis for payroll and attendance.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ehS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KFv=255,ZFv=255,qFv=255,WFv=500,YFv=20,$Fv=100,QFv=2,JFv=2,XFv=50,e5v=/^\d{4}-\d{2}-\d{2}$/,t5v=/^\d{4}-\d{2}-\d{2}$/,n5v=0,s5v=168,o5v=0,i5v=0,a5v=100,r5v=0,l5v=0,d5v=0,thS=e.object({status:e.union([e.literal("active"),e.literal("inactive"),e.literal(null)]).nullish(),first_name:e.string().min(1).max(KFv),last_name:e.string().min(1).max(ZFv),email:e.string().max(qFv).nullish(),tax_number:e.string().describe("Slovenian tax number (davcna stevilka), 8 digits. An optional SI prefix is stripped."),personal_id:e.string().nullish().describe("Slovenian unique master citizen number (EMSO), 13 digits. Validated on length/digits only."),address:e.string().max(WFv).nullish(),post_code:e.string().max(YFv).nullish(),city:e.string().max($Fv).nullish(),country_code:e.string().min(QFv).max(JFv).nullish(),iban:e.string().max(XFv).nullish(),employment_start:e.string().regex(e5v),employment_end:e.string().regex(t5v).nullish(),employment_type:e.union([e.literal("full_time"),e.literal("part_time"),e.literal(null)]).nullish(),weekly_hours:e.number().gt(n5v).max(s5v).nullish(),gross_salary_monthly:e.number().min(o5v),seniority_bonus_percent:e.number().min(i5v).max(a5v).nullish(),meal_allowance_per_day:e.number().min(r5v).nullish(),commute_mode:e.union([e.literal("none"),e.literal("per_km"),e.literal("public_transport"),e.literal(null)]).nullish(),commute_km_one_way:e.number().min(l5v).nullish(),commute_amount_monthly:e.number().min(d5v).nullish(),works_remotely:e.boolean().nullish(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish(),general_allowance_mode:e.union([e.literal("standard"),e.literal("none"),e.literal(null)]).nullish(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),u5v=/^[a-z]{3,4}_[0-9a-f]{24}$/,nhS=e.object({id:e.stringFormat("resource-id",u5v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),shS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),c5v=36,p5v=36,m5v=20,x5v=255,g5v=255,y5v=255,O5v=20,v5v=20,S5v=500,h5v=20,b5v=100,z5v=2,f5v=50,B5v=/^\d{4}-\d{2}-\d{2}$/,T5v=/^\d{4}-\d{2}-\d{2}$/,I5v=20,E5v=-140737488355328,D5v=0x7fffffffffff,R5v=-140737488355328,_5v=0x7fffffffffff,N5v=-140737488355328,M5v=0x7fffffffffff,U5v=-140737488355328,P5v=0x7fffffffffff,C5v=20,w5v=-140737488355328,A5v=0x7fffffffffff,F5v=-140737488355328,k5v=0x7fffffffffff,j5v=20,H5v=20,ohS=e.object({id:e.string().max(c5v),entity_id:e.string().max(p5v),status:e.string().max(m5v),first_name:e.string().max(x5v),last_name:e.string().max(g5v),email:e.string().max(y5v).nullish(),tax_number:e.string().max(O5v),personal_id:e.string().max(v5v).nullish(),address:e.string().max(S5v).nullish(),post_code:e.string().max(h5v).nullish(),city:e.string().max(b5v).nullish(),country_code:e.string().max(z5v).nullish(),iban:e.string().max(f5v).nullish(),employment_start:e.string().regex(B5v),employment_end:e.string().regex(T5v).nullish(),employment_type:e.string().max(I5v),weekly_hours:e.number().min(E5v).max(D5v),gross_salary_monthly:e.number().min(R5v).max(_5v),seniority_bonus_percent:e.number().min(N5v).max(M5v),meal_allowance_per_day:e.number().min(U5v).max(P5v).nullish(),commute_mode:e.string().max(C5v),commute_km_one_way:e.number().min(w5v).max(A5v).nullish(),commute_amount_monthly:e.number().min(F5v).max(k5v).nullish(),works_remotely:e.boolean(),tax_residency:e.string().max(j5v),general_allowance_mode:e.string().max(H5v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Employee record used as the basis for payroll and attendance."),L5v=/^[a-z]{3,4}_[0-9a-f]{24}$/,ihS=e.object({id:e.stringFormat("resource-id",L5v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ahS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),G5v=255,V5v=255,K5v=255,Z5v=500,q5v=20,W5v=100,Y5v=2,$5v=2,Q5v=50,J5v=/^\d{4}-\d{2}-\d{2}$/,X5v=/^\d{4}-\d{2}-\d{2}$/,ekv=0,tkv=168,nkv=0,skv=0,okv=100,ikv=0,akv=0,rkv=0,rhS=e.object({status:e.union([e.literal("active"),e.literal("inactive"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),first_name:e.string().min(1).max(G5v).nullish().describe("Required attribute; omit or send null to leave it unchanged."),last_name:e.string().min(1).max(V5v).nullish().describe("Required attribute; omit or send null to leave it unchanged."),email:e.string().max(K5v).nullish(),tax_number:e.string().nullish().describe("Required attribute; omit or send null to leave it unchanged."),personal_id:e.string().nullish().describe("Slovenian unique master citizen number (EMSO), 13 digits. Validated on length/digits only."),address:e.string().max(Z5v).nullish(),post_code:e.string().max(q5v).nullish(),city:e.string().max(W5v).nullish(),country_code:e.string().min(Y5v).max($5v).nullish(),iban:e.string().max(Q5v).nullish(),employment_start:e.string().regex(J5v).nullish().describe("Required attribute; omit or send null to leave it unchanged."),employment_end:e.string().regex(X5v).nullish(),employment_type:e.union([e.literal("full_time"),e.literal("part_time"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),weekly_hours:e.number().gt(ekv).max(tkv).nullish().describe("Required attribute; omit or send null to leave it unchanged."),gross_salary_monthly:e.number().min(nkv).nullish().describe("Required attribute; omit or send null to leave it unchanged."),seniority_bonus_percent:e.number().min(skv).max(okv).nullish().describe("Required attribute; omit or send null to leave it unchanged."),meal_allowance_per_day:e.number().min(ikv).nullish(),commute_mode:e.union([e.literal("none"),e.literal("per_km"),e.literal("public_transport"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),commute_km_one_way:e.number().min(akv).nullish(),commute_amount_monthly:e.number().min(rkv).nullish(),works_remotely:e.boolean().nullish().describe("Required attribute; omit or send null to leave it unchanged."),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),general_allowance_mode:e.union([e.literal("standard"),e.literal("none"),e.literal(null)]).nullish().describe("Required attribute; omit or send null to leave it unchanged."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),lkv=36,dkv=36,ukv=20,ckv=255,pkv=255,mkv=255,xkv=20,gkv=20,ykv=500,Okv=20,vkv=100,Skv=2,hkv=50,bkv=/^\d{4}-\d{2}-\d{2}$/,zkv=/^\d{4}-\d{2}-\d{2}$/,fkv=20,Bkv=-140737488355328,Tkv=0x7fffffffffff,Ikv=-140737488355328,Ekv=0x7fffffffffff,Dkv=-140737488355328,Rkv=0x7fffffffffff,_kv=-140737488355328,Nkv=0x7fffffffffff,Mkv=20,Ukv=-140737488355328,Pkv=0x7fffffffffff,Ckv=-140737488355328,wkv=0x7fffffffffff,Akv=20,Fkv=20,lhS=e.object({id:e.string().max(lkv),entity_id:e.string().max(dkv),status:e.string().max(ukv),first_name:e.string().max(ckv),last_name:e.string().max(pkv),email:e.string().max(mkv).nullish(),tax_number:e.string().max(xkv),personal_id:e.string().max(gkv).nullish(),address:e.string().max(ykv).nullish(),post_code:e.string().max(Okv).nullish(),city:e.string().max(vkv).nullish(),country_code:e.string().max(Skv).nullish(),iban:e.string().max(hkv).nullish(),employment_start:e.string().regex(bkv),employment_end:e.string().regex(zkv).nullish(),employment_type:e.string().max(fkv),weekly_hours:e.number().min(Bkv).max(Tkv),gross_salary_monthly:e.number().min(Ikv).max(Ekv),seniority_bonus_percent:e.number().min(Dkv).max(Rkv),meal_allowance_per_day:e.number().min(_kv).max(Nkv).nullish(),commute_mode:e.string().max(Mkv),commute_km_one_way:e.number().min(Ukv).max(Pkv).nullish(),commute_amount_monthly:e.number().min(Ckv).max(wkv).nullish(),works_remotely:e.boolean(),tax_residency:e.string().max(Akv),general_allowance_mode:e.string().max(Fkv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Employee record used as the basis for payroll and attendance."),kkv=/^[a-z]{3,4}_[0-9a-f]{24}$/,dhS=e.object({id:e.stringFormat("resource-id",kkv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jkv=/^[a-z]{3,4}_[0-9a-f]{24}$/,chS=e.object({id:e.stringFormat("resource-id",jkv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Hkv=2e3,Lkv=2030,Gkv=12,phS=e.object({year:e.number().min(Hkv).max(Lkv),month:e.number().min(1).max(Gkv)}),mhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xhS=e.object({employee_id:e.string(),year:e.number(),month:e.number(),days:e.array(e.object({date:e.string(),kind:e.enum(["worked","sick","vacation","public_holiday","paid_leave","unpaid","other","weekend"]),hours:e.number(),sick_reason:e.union([e.literal("illness"),e.literal("injury_outside_work"),e.literal("occupational"),e.literal("care"),e.literal("isolation"),e.literal("donation"),e.literal("other"),e.literal(null)]).nullable(),note:e.string().nullable(),stored:e.boolean().describe("Whether this day has a persisted attendance_days row.")})),summary:e.object({working_days:e.number().describe("Working days in the month per the SI calendar."),worked:e.number(),sick:e.number(),vacation:e.number(),public_holiday:e.number(),paid_leave:e.number(),unpaid:e.number(),other:e.number(),weekend:e.number()})}),Vkv=/^[a-z]{3,4}_[0-9a-f]{24}$/,ghS=e.object({id:e.stringFormat("resource-id",Vkv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Kkv=2e3,Zkv=2030,qkv=12,yhS=e.object({year:e.number().min(Kkv).max(Zkv),month:e.number().min(1).max(qkv)}),OhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wkv=/^\d{4}-\d{2}-\d{2}$/,Ykv=0,$kv=24,Qkv=1e3,vhS=e.object({days:e.array(e.object({date:e.string().regex(Wkv),kind:e.enum(["worked","sick","vacation","public_holiday","paid_leave","unpaid","other"]),hours:e.number().min(Ykv).max($kv).nullish(),sick_reason:e.union([e.literal("illness"),e.literal("injury_outside_work"),e.literal("occupational"),e.literal("care"),e.literal("isolation"),e.literal("donation"),e.literal("other"),e.literal(null)]).nullish(),note:e.string().max(Qkv).nullish()}))}),ShS=e.object({employee_id:e.string(),year:e.number(),month:e.number(),days:e.array(e.object({date:e.string(),kind:e.enum(["worked","sick","vacation","public_holiday","paid_leave","unpaid","other","weekend"]),hours:e.number(),sick_reason:e.union([e.literal("illness"),e.literal("injury_outside_work"),e.literal("occupational"),e.literal("care"),e.literal("isolation"),e.literal("donation"),e.literal("other"),e.literal(null)]).nullable(),note:e.string().nullable(),stored:e.boolean().describe("Whether this day has a persisted attendance_days row.")})),summary:e.object({working_days:e.number().describe("Working days in the month per the SI calendar."),worked:e.number(),sick:e.number(),vacation:e.number(),public_holiday:e.number(),paid_leave:e.number(),unpaid:e.number(),other:e.number(),weekend:e.number()})}),Jkv="SI",Xkv=2,ejv=2,tjv=/^\d{4}-\d{2}-\d{2}$/,hhS=e.object({country_code:e.string().min(Xkv).max(ejv).default(Jkv),as_of:e.string().regex(tjv).optional().describe("Resolve parameters effective on this date. Defaults to today.")}),bhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),njv=/^\d{4}-\d{2}-\d{2}$/,sjv=/^\d{4}-\d{2}-\d{2}$/,ojv=/^\d{4}-\d{2}-\d{2}$/,zhS=e.object({country_code:e.string(),as_of:e.string().regex(njv),parameters:e.record(e.string(),e.object({value:e.union([e.number(),e.record(e.string(),e.unknown()),e.null()]).describe("value_numeric when set, otherwise value_json."),unit:e.string().nullable(),effective_from:e.string().regex(sjv),effective_to:e.string().regex(ojv).nullable(),verified:e.boolean(),source_url:e.string().nullable(),source_title:e.string().nullable(),is_override:e.boolean().describe("True when this value came from an entity override.")}))}),ijv="SI",ajv=2,rjv=2,fhS=e.object({country_code:e.string().min(ajv).max(rjv).default(ijv),key:e.string().min(1)}),BhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ljv=36,djv=2,ujv=200,cjv=-140737488355328,pjv=0x7fffffffffff,mjv=50,xjv=/^\d{4}-\d{2}-\d{2}$/,gjv=/^\d{4}-\d{2}-\d{2}$/,yjv=36,ThS=e.object({data:e.array(e.object({id:e.string().max(ljv),country_code:e.string().max(djv),key:e.string().max(ujv),value_numeric:e.number().min(cjv).max(pjv).nullish(),value_json:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),unit:e.string().max(mjv).nullish(),effective_from:e.string().regex(xjv),effective_to:e.string().regex(gjv).nullish(),source_url:e.string().nullish(),source_title:e.string().nullish(),verified:e.boolean(),note:e.string().nullish(),entity_id:e.string().max(yjv).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A single effective-dated payroll parameter row (statutory or entity-override)."))}),IhS=e.object({key:e.string().min(1).describe("Dotted payroll parameter key.")}),Ojv="SI",vjv=2,Sjv=2,EhS=e.object({country_code:e.string().min(vjv).max(Sjv).default(Ojv)}),DhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hjv=50,bjv=/^\d{4}-\d{2}-\d{2}$/,zjv=/^\d{4}-\d{2}-\d{2}$/,fjv=1e3,Bjv=500,Tjv=2e3,RhS=e.object({value:e.number().nullish(),value_json:e.record(e.string(),e.unknown()).nullish(),unit:e.string().max(hjv).nullish(),effective_from:e.string().regex(bjv),effective_to:e.string().regex(zjv).nullish(),source_url:e.string().max(fjv).nullish(),source_title:e.string().max(Bjv).nullish(),note:e.string().max(Tjv).nullish()}),Ijv=36,Ejv=2,Djv=200,Rjv=-140737488355328,_jv=0x7fffffffffff,Njv=50,Mjv=/^\d{4}-\d{2}-\d{2}$/,Ujv=/^\d{4}-\d{2}-\d{2}$/,Pjv=36,_hS=e.object({id:e.string().max(Ijv),country_code:e.string().max(Ejv),key:e.string().max(Djv),value_numeric:e.number().min(Rjv).max(_jv).nullish(),value_json:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),unit:e.string().max(Njv).nullish(),effective_from:e.string().regex(Mjv),effective_to:e.string().regex(Ujv).nullish(),source_url:e.string().nullish(),source_title:e.string().nullish(),verified:e.boolean(),note:e.string().nullish(),entity_id:e.string().max(Pjv).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("A single effective-dated payroll parameter row (statutory or entity-override)."),NhS=e.object({date_from:e.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),MhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UhS=e.object({date_from:e.string(),date_to:e.string(),currency_code:e.string(),totals:e.object({output_tax:e.number(),output_tax_adjustments:e.number(),input_tax:e.number(),input_tax_adjustments:e.number(),reverse_charge_tax:e.number(),non_deductible_input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number()}),by_rate:e.array(e.object({rate:e.number().nullable(),output_tax:e.number(),output_tax_adjustments:e.number(),input_tax:e.number(),input_tax_adjustments:e.number(),reverse_charge_tax:e.number(),non_deductible_input_tax:e.number(),net_tax_due:e.number()})),payments:e.array(e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),remaining:e.number(),warnings:e.array(e.object({code:e.string(),message:e.string(),document_id:e.string().nullable(),document_type:e.string().nullable()}))}),PhS=e.object({date_from:e.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),ChS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),whS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}))}),AhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cjv=0,wjv=3,Ajv=3,Fjv=100,kjv=500,FhS=e.object({date_from:e.iso.date().describe("Tax period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Tax period end date in YYYY-MM-DD format."),amount:e.number().gt(Cjv).describe("Amount paid to the tax authority."),currency_code:e.string().min(wjv).max(Ajv).nullish().describe("Payment currency. Defaults to and must match the entity currency."),payment_date:e.iso.date().nullish().describe("Payment date in YYYY-MM-DD format. Defaults to today."),type:e.union([e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),e.null()]).optional().describe("How the tax authority payment was made. Defaults to bank_transfer when omitted or null."),reference:e.string().max(Fjv).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(kjv).nullish().describe("Internal note for this tax payment."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),jjv=/^txpay_[0-9a-f]{24}$/,khS=e.object({id:e.string().regex(jjv).describe("Tax payment identifier")}),jhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hjv=0,Ljv=100,Gjv=500,HhS=e.object({amount:e.number().gt(Hjv).optional().describe("Amount paid to the tax authority."),payment_date:e.iso.date().optional().describe("Replacement payment date in YYYY-MM-DD format. Omit to leave it unchanged."),type:e.enum(["bank_transfer","card","cash","check","other"]).optional().describe("Replacement payment type. Omit to leave it unchanged; null is not accepted."),reference:e.string().max(Ljv).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(Gjv).nullish().describe("Internal note for this tax payment."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),LhS=e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Vjv=/^txpay_[0-9a-f]{24}$/,GhS=e.object({id:e.string().regex(Vjv).describe("Tax payment identifier")}),VhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Kjv=2021,Zjv=2100,KhS=e.object({year:e.number().min(Kjv).max(Zjv).optional().describe("Calendar year to review together with its preceding year.")}),ZhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qjv=2,Wjv=2,Yjv=3,$jv=3,Qjv=0,Jjv=0,Xjv=2,eHv=2,tHv=0,nHv=0,qhS=e.object({entity_id:e.string(),eligible:e.boolean(),eligibility_reason:e.enum(["eligible","issuer_not_in_eu","issuer_country_not_supported","entity_not_tax_subject"]),issuer_country_code:e.string().min(qjv).max(Wjv).nullable(),reporting_currency_code:e.string().min(Yjv).max($jv).nullable(),selected_year:e.number(),auto_apply_destination_vat:e.boolean(),threshold:e.object({amount:e.literal(1e4),currency_code:e.enum(["EUR"]),comparison_available:e.boolean(),status:e.enum(["below_threshold","exceeds_threshold","comparison_unavailable"]),selected_year_net_sales:e.number(),preceding_year_net_sales:e.number()}).describe("Comparison with the EU-wide EUR 10,000 threshold. Status is unavailable when the entity reporting currency is not EUR."),periods:e.array(e.object({year:e.number(),invoice_count:e.number().min(Qjv),credit_note_count:e.number().min(Jjv),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),countries:e.array(e.object({country_code:e.string().min(Xjv).max(eHv),country_name:e.string(),invoice_count:e.number().min(tHv),credit_note_count:e.number().min(nHv),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),standard_vat_rate:e.number().nullable(),reduced_vat_rates:e.array(e.number())}).describe("Operational intra-EU B2C sales totals for one destination country."))}).describe("EU OSS tracking totals for one calendar year.")),guidance_url:e.url(),vat_rates_verified_through:e.iso.date(),notices:e.array(e.enum(["scope_requires_review","vat_rates_reference_only","vat_rates_last_verified","stored_conversion_data_only"]))}).describe("Operational EU OSS tracker for finalized intra-EU B2C invoices and credit notes. It is not a legal filing determination."),sHv=/^\d{4}$/,oHv=/^(1[0-2]|[1-9])$/,iHv=/^[1-4]$/,WhS=e.object({year:e.string().regex(sHv).describe("Year for the combined KIR/KPR export (e.g., 2025)"),month:e.string().regex(oHv).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e.string().regex(iHv).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),YhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$hS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aHv=/^\d{2}\.\d{3}$/,rHv=0,lHv=0,dHv=8,uHv=8,cHv=8,pHv=8,mHv=8,xHv=8,gHv=8,yHv=8,OHv=8,vHv=8,SHv=8,hHv=8,bHv=8,zHv=8,fHv=8,BHv=8,THv=8,IHv=8,EHv=8,DHv=8,RHv=8,_Hv=8,NHv=8,MHv=8,UHv=8,PHv=8,CHv=8,wHv=8,QhS=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(aHv).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(rHv).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(lHv).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(dHv).nullish(),payables:e.string().max(uHv).nullish(),advances_received:e.string().max(cHv).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(pHv).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(mHv).nullish(),sales_vat_95:e.string().max(xHv).nullish(),sales_vat_5:e.string().max(gHv).nullish(),purchase_vat_recoverable_22:e.string().max(yHv).nullish(),purchase_vat_recoverable_95:e.string().max(OHv).nullish(),purchase_vat_recoverable_5:e.string().max(vHv).nullish(),sales_revenue_22:e.string().max(SHv).nullish(),sales_revenue_95:e.string().max(hHv).nullish(),sales_revenue_5:e.string().max(bHv).nullish(),sales_revenue_exempt:e.string().max(zHv).nullish(),sales_revenue_eu_goods:e.string().max(fHv).nullish(),sales_revenue_eu_services:e.string().max(BHv).nullish(),sales_revenue_reverse_charge:e.string().max(THv).nullish(),sales_revenue_third_country_goods:e.string().max(IHv).nullish(),sales_revenue_third_country_services:e.string().max(EHv).nullish(),purchase_expense_22:e.string().max(DHv).nullish(),purchase_expense_95:e.string().max(RHv).nullish(),purchase_expense_5:e.string().max(_Hv).nullish(),purchase_expense_exempt:e.string().max(NHv).nullish(),purchase_expense_eu_goods:e.string().max(MHv).nullish(),purchase_expense_eu_services:e.string().max(UHv).nullish(),purchase_expense_reverse_charge:e.string().max(PHv).nullish(),purchase_expense_third_country_goods:e.string().max(CHv).nullish(),purchase_expense_third_country_services:e.string().max(wHv).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),JhS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AHv=/^\d{2}\.\d{3}$/,FHv=0,kHv=0,jHv=8,HHv=8,LHv=8,GHv=8,VHv=8,KHv=8,ZHv=8,qHv=8,WHv=8,YHv=8,$Hv=8,QHv=8,JHv=8,XHv=8,eLv=8,tLv=8,nLv=8,sLv=8,oLv=8,iLv=8,aLv=8,rLv=8,lLv=8,dLv=8,uLv=8,cLv=8,pLv=8,mLv=8,XhS=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullish().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullish().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullish().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().nullish(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(AHv).describe("Slovenian SKD activity code used for yearly reporting.")).nullish(),registration_number:e.string().nullish(),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullish().describe("Accounting or records mode used for the yearly filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullish().describe("Insurance basis used to determine the applicable normirani rules."),default_withholding_tax_amount:e.number().min(FHv).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e.number().min(kHv).nullish().describe("Monetary amount in EUR.")}).nullish(),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullish().describe("Stored preferred export format for Slovenian accounting handoff."),konto_mappings:e.object({receivables:e.string().max(jHv).nullish(),payables:e.string().max(HHv).nullish(),advances_received:e.string().max(LHv).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(GHv).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(VHv).nullish(),sales_vat_95:e.string().max(KHv).nullish(),sales_vat_5:e.string().max(ZHv).nullish(),purchase_vat_recoverable_22:e.string().max(qHv).nullish(),purchase_vat_recoverable_95:e.string().max(WHv).nullish(),purchase_vat_recoverable_5:e.string().max(YHv).nullish(),sales_revenue_22:e.string().max($Hv).nullish(),sales_revenue_95:e.string().max(QHv).nullish(),sales_revenue_5:e.string().max(JHv).nullish(),sales_revenue_exempt:e.string().max(XHv).nullish(),sales_revenue_eu_goods:e.string().max(eLv).nullish(),sales_revenue_eu_services:e.string().max(tLv).nullish(),sales_revenue_reverse_charge:e.string().max(nLv).nullish(),sales_revenue_third_country_goods:e.string().max(sLv).nullish(),sales_revenue_third_country_services:e.string().max(oLv).nullish(),purchase_expense_22:e.string().max(iLv).nullish(),purchase_expense_95:e.string().max(aLv).nullish(),purchase_expense_5:e.string().max(rLv).nullish(),purchase_expense_exempt:e.string().max(lLv).nullish(),purchase_expense_eu_goods:e.string().max(dLv).nullish(),purchase_expense_eu_services:e.string().max(uLv).nullish(),purchase_expense_reverse_charge:e.string().max(cLv).nullish(),purchase_expense_third_country_goods:e.string().max(pLv).nullish(),purchase_expense_third_country_services:e.string().max(mLv).nullish()}).nullish()}).nullish()}),xLv=/^\d{2}\.\d{3}$/,gLv=0,yLv=0,OLv=8,vLv=8,SLv=8,hLv=8,bLv=8,zLv=8,fLv=8,BLv=8,TLv=8,ILv=8,ELv=8,DLv=8,RLv=8,_Lv=8,NLv=8,MLv=8,ULv=8,PLv=8,CLv=8,wLv=8,ALv=8,FLv=8,kLv=8,jLv=8,HLv=8,LLv=8,GLv=8,VLv=8,ebS=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(xLv).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(gLv).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(yLv).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(OLv).nullish(),payables:e.string().max(vLv).nullish(),advances_received:e.string().max(SLv).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(hLv).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(bLv).nullish(),sales_vat_95:e.string().max(zLv).nullish(),sales_vat_5:e.string().max(fLv).nullish(),purchase_vat_recoverable_22:e.string().max(BLv).nullish(),purchase_vat_recoverable_95:e.string().max(TLv).nullish(),purchase_vat_recoverable_5:e.string().max(ILv).nullish(),sales_revenue_22:e.string().max(ELv).nullish(),sales_revenue_95:e.string().max(DLv).nullish(),sales_revenue_5:e.string().max(RLv).nullish(),sales_revenue_exempt:e.string().max(_Lv).nullish(),sales_revenue_eu_goods:e.string().max(NLv).nullish(),sales_revenue_eu_services:e.string().max(MLv).nullish(),sales_revenue_reverse_charge:e.string().max(ULv).nullish(),sales_revenue_third_country_goods:e.string().max(PLv).nullish(),sales_revenue_third_country_services:e.string().max(CLv).nullish(),purchase_expense_22:e.string().max(wLv).nullish(),purchase_expense_95:e.string().max(ALv).nullish(),purchase_expense_5:e.string().max(FLv).nullish(),purchase_expense_exempt:e.string().max(kLv).nullish(),purchase_expense_eu_goods:e.string().max(jLv).nullish(),purchase_expense_eu_services:e.string().max(HLv).nullish(),purchase_expense_reverse_charge:e.string().max(LLv).nullish(),purchase_expense_third_country_goods:e.string().max(GLv).nullish(),purchase_expense_third_country_services:e.string().max(VLv).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),tbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KLv=2025,ZLv=2100,nbS=e.object({year:e.number().min(KLv).max(ZLv).describe("Tax year for the yearly Slovenia eDavki filing.")}),qLv=2025,WLv=2100,YLv=/^\d{2}\.\d{3}$/,$Lv=0,QLv=0,JLv=8,XLv=8,e1v=8,t1v=8,n1v=8,s1v=8,o1v=8,i1v=8,a1v=8,r1v=8,l1v=8,d1v=8,u1v=8,c1v=8,p1v=8,m1v=8,x1v=8,g1v=8,y1v=8,O1v=8,v1v=8,S1v=8,h1v=8,b1v=8,z1v=8,f1v=8,B1v=8,T1v=8,I1v=0,E1v=0,D1v=0,R1v=0,_1v=0,sbS=e.object({entity_id:e.string(),year:e.number().min(qLv).max(WLv).describe("Tax year for the yearly Slovenia eDavki filing."),filing_kind:e.enum(["regular_annual"]),profile:e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(YLv).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min($Lv).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(QLv).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(JLv).nullish(),payables:e.string().max(XLv).nullish(),advances_received:e.string().max(e1v).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(t1v).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(n1v).nullish(),sales_vat_95:e.string().max(s1v).nullish(),sales_vat_5:e.string().max(o1v).nullish(),purchase_vat_recoverable_22:e.string().max(i1v).nullish(),purchase_vat_recoverable_95:e.string().max(a1v).nullish(),purchase_vat_recoverable_5:e.string().max(r1v).nullish(),sales_revenue_22:e.string().max(l1v).nullish(),sales_revenue_95:e.string().max(d1v).nullish(),sales_revenue_5:e.string().max(u1v).nullish(),sales_revenue_exempt:e.string().max(c1v).nullish(),sales_revenue_eu_goods:e.string().max(p1v).nullish(),sales_revenue_eu_services:e.string().max(m1v).nullish(),sales_revenue_reverse_charge:e.string().max(x1v).nullish(),sales_revenue_third_country_goods:e.string().max(g1v).nullish(),sales_revenue_third_country_services:e.string().max(y1v).nullish(),purchase_expense_22:e.string().max(O1v).nullish(),purchase_expense_95:e.string().max(v1v).nullish(),purchase_expense_5:e.string().max(S1v).nullish(),purchase_expense_exempt:e.string().max(h1v).nullish(),purchase_expense_eu_goods:e.string().max(b1v).nullish(),purchase_expense_eu_services:e.string().max(z1v).nullish(),purchase_expense_reverse_charge:e.string().max(f1v).nullish(),purchase_expense_third_country_goods:e.string().max(B1v).nullish(),purchase_expense_third_country_services:e.string().max(T1v).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),auto_values:e.object({total_invoice_revenue:e.number(),total_credit_note_reduction:e.number(),computed_revenue:e.number(),adjusted_revenue:e.number(),normative_expense_rate:e.number(),normative_expenses:e.number(),tax_base:e.number(),income_tax_rate:e.number(),income_tax_amount:e.number(),advance_tax_amount:e.number(),monthly_installment_amount:e.number(),quarterly_installment_amount:e.number()}),manual_values:e.object({withholding_tax_amount:e.number().min(I1v).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(E1v).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(D1v).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(R1v).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(_1v).describe("Monetary amount in EUR.")}),derived_flags:e.object({has_foreign_customers:e.boolean(),has_foreign_tax_numbers:e.boolean(),has_non_eur_documents:e.boolean()}),warnings:e.array(e.object({code:e.string(),message:e.string(),severity:e.enum(["info","warning"])})),issue_details:e.array(e.object({code:e.string(),title:e.string(),summary:e.string(),explanation:e.string(),action:e.string().nullable(),severity:e.enum(["info","warning"]),official_sources:e.array(e.object({label:e.string(),url:e.url(),issuer:e.enum(["FURS","PISRS"])})),affected_documents:e.array(e.object({id:e.string(),type:e.enum(["invoice","credit_note"]),number:e.string(),date:e.string(),customer_name:e.string().nullable(),customer_country_code:e.string().nullable(),customer_tax_number:e.string().nullable(),currency_code:e.string(),total:e.number(),total_converted:e.number().nullable(),reason:e.string(),document_path:e.string()}))})),rule_summary:e.object({normative_expense_rule:e.string(),income_tax_rule:e.string(),advance_rule:e.string()})}),obS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),N1v=2025,M1v=2100,U1v=0,P1v=0,C1v=0,w1v=0,A1v=0,ibS=e.object({year:e.number().min(N1v).max(M1v).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e.object({withholding_tax_amount:e.number().min(U1v).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(P1v).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(C1v).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(w1v).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(A1v).describe("Monetary amount in EUR.")})}),abS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),rbS=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),lbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dbS=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),ubS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),cbS=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),pbS=e.object({date_from:e.iso.date().describe("Inclusive lower bound of the issued or supplier document date, in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive upper bound of the issued or supplier document date, in YYYY-MM-DD format. The range cannot exceed one year.")}),mbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),F1v=/^\d{4}$/,k1v=/^(1[0-2]|[1-9])$/,j1v=/^[1-4]$/,xbS=e.object({year:e.string().regex(F1v).describe("Year for the VAT return period (e.g. 2026)."),month:e.string().regex(k1v).optional().describe("Month (1-12) for a monthly period. Cannot be used with quarter."),quarter:e.string().regex(j1v).optional().describe("Quarter (1-4) for a quarterly period. Cannot be used with month.")}),gbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ybS=e.object({period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),deadline:e.object({due_date:e.string().describe("DDV-O submission deadline (YYYY-MM-DD)."),kir_kpr_prefill_cutoff:e.string().describe("Date by which KIR/KPR must be submitted for FURS to compose a pre-filled DDV-O (documented-but-unverified 3-working-day rule).")}),rpo_required:e.boolean().optional().describe("True when the monthly period owes the recapitulative statement (RP-O), so the DDV-O deadline is the 20th of the next month. The deadline and cut-off use the same answer."),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string())}),ObS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),H1v=2e3,L1v=2100,G1v=12,V1v=4,vbS=e.object({year:e.number().min(H1v).max(L1v).describe("Year for the VAT return period."),month:e.number().min(1).max(G1v).nullish().describe("Month (1-12) for a monthly period. Cannot be used with quarter. Explicit null is treated as omitted."),quarter:e.number().min(1).max(V1v).nullish().describe("Quarter (1-4) for a quarterly period. Cannot be used with month. Explicit null is treated as omitted.")}),K1v=10,Z1v=100,SbS=e.object({limit:e.number().min(1).max(Z1v).default(K1v).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),hbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),bbS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),q1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,zbS=e.object({id:e.stringFormat("resource-id",q1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),fbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),BbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),W1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,TbS=e.object({id:e.stringFormat("resource-id",W1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),IbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),EbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Y1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,DbS=e.object({id:e.stringFormat("resource-id",Y1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),RbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_bS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),$1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,NbS=e.object({id:e.stringFormat("resource-id",$1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),MbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q1v=2e3,UbS=e.object({submitted_at:e.iso.datetime({}).nullish().describe("When the return was submitted to eDavki. Defaults to now when omitted. Must not be in the future (5 minutes of clock skew are tolerated) and must not be before the approval time; otherwise the request is rejected with 422."),notes:e.string().max(Q1v).nullish().describe("Free-text notes recorded alongside the submission.")}),PbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),J1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,CbS=e.object({id:e.stringFormat("resource-id",J1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),wbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AbS=e.object({id:e.string(),entity_id:e.string(),period:e.object({year:e.number(),month:e.number().nullable(),quarter:e.number().nullable(),from:e.string(),to:e.string(),label:e.string()}),vat_period_setting:e.enum(["monthly","quarterly"]),period_matches_setting:e.boolean(),status:e.enum(["draft","approved","submitted"]),boxes:e.object({11:e.string(),12:e.string(),13:e.string(),14:e.string(),15:e.string(),21:e.string(),22:e.string(),23:e.string(),24:e.string(),25:e.string(),26:e.string(),31:e.string(),32:e.string(),33:e.string(),34:e.string(),35:e.string(),41:e.string(),42:e.string(),43:e.string(),51:e.string(),52:e.string(),"11a":e.string(),"22a":e.string(),"23a":e.string(),"24a":e.string(),"24b":e.string(),"24c":e.string(),"25a":e.string(),"25b":e.string(),"31a":e.string(),"32a":e.string(),"42a":e.string()}),record_counts:e.object({kir:e.number(),kpr:e.number()}),warnings:e.array(e.string()),computed_at:e.iso.datetime({}),approved_by_user_id:e.string().nullable(),approved_at:e.iso.datetime({}).nullable(),submitted_by_user_id:e.string().nullable(),submitted_at:e.iso.datetime({}).nullable(),notes:e.string().nullable(),metadata:e.record(e.string(),e.unknown()),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),X1v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,FbS=e.object({id:e.stringFormat("resource-id",X1v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),kbS=e.object({format:e.enum(["ddv_o_xml"]).describe("Export format for a VAT return filing.")}),jbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),e4v=/^\d{4}-\d{2}-\d{2}$/,t4v=/^\d{4}-\d{2}-\d{2}$/,HbS=e.object({from:e.string().regex(e4v).describe("Range start (inclusive), YYYY-MM-DD."),to:e.string().regex(t4v).describe("Range end (inclusive), YYYY-MM-DD."),status:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status).").and(e.unknown().describe("Filter by computed state.")).optional().describe("Filter by computed state.")}),LbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),GbS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),summary:e.object({overdue:e.number(),due_this_week:e.number(),upcoming:e.number()})}),n4v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,VbS=e.object({id:e.stringFormat("resource-id",n4v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),KbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),s4v=2e3,ZbS=e.object({note:e.string().max(s4v).nullish().describe("Optional note recorded alongside completion.")}),qbS=e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),o4v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,WbS=e.object({id:e.stringFormat("resource-id",o4v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),YbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$bS=e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),i4v=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,QbS=e.object({id:e.stringFormat("resource-id",i4v).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),JbS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),a4v=2e3,XbS=e.object({reason:e.string().max(a4v).nullish().describe("Optional reason this obligation does not apply.")}),ezS=e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),r4v=/^\d{4}-\d{2}-\d{2}$/,l4v=/^\d{4}-\d{2}-\d{2}$/,d4v="live",tzS=e.object({from:e.string().regex(r4v).describe("Range start (inclusive), YYYY-MM-DD."),to:e.string().regex(l4v).describe("Range end (inclusive), YYYY-MM-DD."),entity_id:e.string().optional().describe("Filter to a single entity id."),environment:e.union([e.literal("live"),e.literal("sandbox"),e.literal(null)]).nullish().default(d4v).describe('Environment to scope entities to. Defaults to "live".')}),u4v=/^acc_[0-9a-fA-F]{24}$/,nzS=e.object({"x-account-id":e.string().regex(u4v).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),szS=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),type:e.enum(["ddv_o","kir_kpr","rp_o","opsvz_contributions","opsvz_payment","ddpo_annual","ajpes_annual","dohdej_annual"]),period_start:e.string(),period_end:e.string(),due_date:e.string(),kind:e.enum(["filing","payment"]),verification:e.enum(["verified","unverified"]),source:e.string(),related_resource:e.object({type:e.enum(["vat_filing"]),period_key:e.string(),id:e.string().nullable().describe("The linked vat_filings row id, when one exists for this period.")}).nullable(),status:e.enum(["upcoming","done","dismissed"]).describe("Stored status."),state:e.enum(["upcoming","due_soon","overdue","done","dismissed"]).describe("Computed display state (adds due_soon/overdue over status)."),done_at:e.iso.datetime({}).nullable(),done_by:e.string().nullable(),dismissed_at:e.iso.datetime({}).nullable(),dismissed_by:e.string().nullable(),notes:e.string().nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).and(e.object({entity_name:e.string()})))});var Et={};W(Et,{CreateTaxBody:()=>izS,CreateTaxHeader:()=>ozS,DeleteTaxHeader:()=>vzS,DeleteTaxParams:()=>OzS,GetTaxesHeader:()=>rzS,GetTaxesQueryParams:()=>azS,GetTaxesResponse:()=>lzS,PermanentDeleteTaxHeader:()=>fzS,PermanentDeleteTaxParams:()=>zzS,ReplaceTaxBody:()=>gzS,ReplaceTaxHeader:()=>xzS,ReplaceTaxParams:()=>mzS,ReplaceTaxResponse:()=>yzS,RestoreTaxHeader:()=>hzS,RestoreTaxParams:()=>SzS,RestoreTaxResponse:()=>bzS,UpdateTaxBody:()=>czS,UpdateTaxHeader:()=>uzS,UpdateTaxParams:()=>dzS,UpdateTaxResponse:()=>pzS,createTaxBodyDestinationVatCountryCodeMax:()=>g4v,createTaxBodyDestinationVatCountryCodeMin:()=>x4v,createTaxBodyNameMax:()=>c4v,createTaxBodyPtExemptionReasonMax:()=>y4v,createTaxBodyTaxRatesItemRateMax:()=>m4v,createTaxBodyTaxRatesItemRateMin:()=>p4v,deleteTaxPathIdRegExp:()=>$4v,getTaxesQueryLimitDefault:()=>O4v,getTaxesQueryLimitMax:()=>v4v,getTaxesResponseDataItemOneDestinationVatCountryCodeMax:()=>B4v,getTaxesResponseDataItemOneDestinationVatCountryCodeMin:()=>f4v,getTaxesResponseDataItemOneEntityIdMax:()=>T4v,getTaxesResponseDataItemOneIdMax:()=>S4v,getTaxesResponseDataItemOneNameMax:()=>h4v,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>z4v,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>b4v,permanentDeleteTaxPathIdRegExp:()=>iGv,replaceTaxBodyDestinationVatCountryCodeMax:()=>H4v,replaceTaxBodyDestinationVatCountryCodeMin:()=>j4v,replaceTaxBodyNameMax:()=>A4v,replaceTaxBodyPtExemptionReasonMax:()=>L4v,replaceTaxBodyTaxRatesItemRateMax:()=>k4v,replaceTaxBodyTaxRatesItemRateMin:()=>F4v,replaceTaxPathIdRegExp:()=>w4v,replaceTaxResponseOneDestinationVatCountryCodeMax:()=>W4v,replaceTaxResponseOneDestinationVatCountryCodeMin:()=>q4v,replaceTaxResponseOneEntityIdMax:()=>Y4v,replaceTaxResponseOneIdMax:()=>G4v,replaceTaxResponseOneNameMax:()=>V4v,replaceTaxResponseOneTaxRatesItemRateMax:()=>Z4v,replaceTaxResponseOneTaxRatesItemRateMin:()=>K4v,restoreTaxPathIdRegExp:()=>Q4v,restoreTaxResponseOneDestinationVatCountryCodeMax:()=>sGv,restoreTaxResponseOneDestinationVatCountryCodeMin:()=>nGv,restoreTaxResponseOneEntityIdMax:()=>oGv,restoreTaxResponseOneIdMax:()=>J4v,restoreTaxResponseOneNameMax:()=>X4v,restoreTaxResponseOneTaxRatesItemRateMax:()=>tGv,restoreTaxResponseOneTaxRatesItemRateMin:()=>eGv,updateTaxBodyTaxRatesItemRateMax:()=>D4v,updateTaxBodyTaxRatesItemRateMin:()=>E4v,updateTaxPathIdRegExp:()=>I4v,updateTaxResponseOneDestinationVatCountryCodeMax:()=>P4v,updateTaxResponseOneDestinationVatCountryCodeMin:()=>U4v,updateTaxResponseOneEntityIdMax:()=>C4v,updateTaxResponseOneIdMax:()=>R4v,updateTaxResponseOneNameMax:()=>_4v,updateTaxResponseOneTaxRatesItemRateMax:()=>M4v,updateTaxResponseOneTaxRatesItemRateMin:()=>N4v});var ozS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),c4v=100,p4v=0,m4v=100,x4v=2,g4v=2,y4v=60,izS=e.object({name:e.string().max(c4v).optional(),tax_rates:e.array(e.object({rate:e.number().min(p4v).max(m4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(x4v).max(g4v).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(y4v).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),O4v=10,v4v=100,azS=e.object({limit:e.number().min(1).max(v4v).default(O4v).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),e.array(e.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, is_default, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
|
|
231
231
|
Searches are case-insensitive and match partial strings.
|
|
232
|
-
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),rzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),S4v=36,h4v=100,b4v=0,z4v=100,f4v=2,B4v=2,T4v=36,lzS=e.object({data:e.array(e.object({id:e.string().max(S4v),name:e.string().max(h4v),tax_rates:e.array(e.object({rate:e.number().min(b4v).max(z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(f4v).max(B4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(T4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),I4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,dzS=e.object({id:e.stringFormat("resource-id",I4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),E4v=0,D4v=100,czS=e.object({tax_rates:e.array(e.object({rate:e.number().min(E4v).max(D4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),R4v=36,_4v=100,N4v=0,M4v=100,U4v=2,P4v=2,C4v=36,pzS=e.object({id:e.string().max(R4v),name:e.string().max(_4v),tax_rates:e.array(e.object({rate:e.number().min(N4v).max(M4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(U4v).max(P4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(C4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),w4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,mzS=e.object({id:e.stringFormat("resource-id",w4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),A4v=100,F4v=0,k4v=100,j4v=2,H4v=2,L4v=60,gzS=e.object({name:e.string().max(A4v).optional(),tax_rates:e.array(e.object({rate:e.number().min(F4v).max(k4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(j4v).max(H4v).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(L4v).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),G4v=36,V4v=100,K4v=0,Z4v=100,q4v=2,W4v=2,Y4v=36,yzS=e.object({id:e.string().max(G4v),name:e.string().max(V4v),tax_rates:e.array(e.object({rate:e.number().min(K4v).max(Z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(q4v).max(W4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Y4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),$4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,OzS=e.object({id:e.stringFormat("resource-id",$4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),vzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,SzS=e.object({id:e.stringFormat("resource-id",Q4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J4v=36,X4v=100,eGv=0,tGv=100,nGv=2,sGv=2,oGv=36,bzS=e.object({id:e.string().max(J4v),name:e.string().max(X4v),tax_rates:e.array(e.object({rate:e.number().min(eGv).max(tGv),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(nGv).max(sGv).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(oGv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),iGv=/^[a-z]{3,4}_[0-9a-f]{24}$/,zzS=e.object({id:e.stringFormat("resource-id",iGv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),fzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Dt={};W(Dt,{DownloadTicketBaiRecordXmlHeader:()=>wzS,DownloadTicketBaiRecordXmlParams:()=>CzS,GetTicketBaiRecordHeader:()=>UzS,GetTicketBaiRecordParams:()=>MzS,GetTicketBaiRecordResponse:()=>PzS,GetTicketBaiSettingsHeader:()=>BzS,GetTicketBaiSettingsResponse:()=>TzS,ReconcileTicketBaiRecordHeader:()=>HzS,ReconcileTicketBaiRecordParams:()=>jzS,ReconcileTicketBaiRecordResponse:()=>LzS,RetryTicketBaiRecordHeader:()=>FzS,RetryTicketBaiRecordParams:()=>AzS,RetryTicketBaiRecordResponse:()=>kzS,UpdateTicketBaiSettingsBody:()=>EzS,UpdateTicketBaiSettingsHeader:()=>IzS,UpdateTicketBaiSettingsResponse:()=>DzS,UploadTicketBaiCertificateBody:()=>_zS,UploadTicketBaiCertificateHeader:()=>RzS,UploadTicketBaiCertificateResponse:()=>NzS,downloadTicketBaiRecordXmlPathIdMax:()=>yGv,getTicketBaiRecordPathIdMax:()=>gGv,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>aGv,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>rGv,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>lGv,reconcileTicketBaiRecordPathIdMax:()=>vGv,retryTicketBaiRecordPathIdMax:()=>OGv,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>dGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>uGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>cGv,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>pGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>mGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>xGv});var BzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aGv=120,rGv=120,lGv=120,TzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(aGv),surname1:e.string().min(1).max(rGv),surname2:e.string().min(1).max(lGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),IzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dGv=120,uGv=120,cGv=120,EzS=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(dGv),surname1:e.string().min(1).max(uGv),surname2:e.string().min(1).max(cGv)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),pGv=120,mGv=120,xGv=120,DzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(pGv),surname1:e.string().min(1).max(mGv),surname2:e.string().min(1).max(xGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),RzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_zS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),NzS=e.object({certificate_expiry:e.string()}),gGv=36,MzS=e.object({id:e.string().min(1).max(gGv)}),UzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),PzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),yGv=36,CzS=e.object({id:e.string().min(1).max(yGv)}),wzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),OGv=36,AzS=e.object({id:e.string().min(1).max(OGv)}),FzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),vGv=36,jzS=e.object({id:e.string().min(1).max(vGv)}),HzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var Rt={};W(Rt,{CheckTransactionTypeBody:()=>VzS,CheckTransactionTypeHeader:()=>GzS,CheckTransactionTypeResponse:()=>KzS,checkTransactionTypeBodyCustomerCountryCodeMax:()=>fGv,checkTransactionTypeBodyCustomerCountryCodeMin:()=>zGv,checkTransactionTypeBodyIssuerCountryCodeMax:()=>hGv,checkTransactionTypeBodyIssuerCountryCodeMin:()=>SGv,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>bGv,checkTransactionTypeResponseCustomerCountryCodeMax:()=>EGv,checkTransactionTypeResponseCustomerCountryCodeMin:()=>IGv,checkTransactionTypeResponseIssuerCountryCodeMax:()=>TGv,checkTransactionTypeResponseIssuerCountryCodeMin:()=>BGv,checkTransactionTypeResponseVatIdCountryCodeMax:()=>RGv,checkTransactionTypeResponseVatIdCountryCodeMin:()=>DGv});var GzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),SGv=2,hGv=2,bGv=true,zGv=2,fGv=2,VzS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(SGv).max(hGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(bGv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(zGv).max(fGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),BGv=2,TGv=2,IGv=2,EGv=2,DGv=2,RGv=2,KzS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(BGv).max(TGv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(IGv).max(EGv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(DGv).max(RGv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code. Informational: it never changes transaction_type, which follows the address."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var _t={};W(_t,{ApproveTravelOrderHeader:()=>yfS,ApproveTravelOrderParams:()=>gfS,ApproveTravelOrderResponse:()=>OfS,CalculateTravelOrderRouteDistanceBody:()=>ofS,CalculateTravelOrderRouteDistanceHeader:()=>sfS,CalculateTravelOrderRouteDistanceResponse:()=>ifS,CancelTravelOrderHeader:()=>IfS,CancelTravelOrderParams:()=>TfS,CancelTravelOrderResponse:()=>EfS,CreateTravelOrderBody:()=>$zS,CreateTravelOrderHeader:()=>YzS,DeleteTravelOrderHeader:()=>xfS,DeleteTravelOrderParams:()=>mfS,GetTravelOrderByIdHeader:()=>rfS,GetTravelOrderByIdParams:()=>afS,GetTravelOrderByIdResponse:()=>lfS,GetTravelOrdersHeader:()=>qzS,GetTravelOrdersQueryParams:()=>ZzS,GetTravelOrdersResponse:()=>WzS,PreviewTravelOrderBody:()=>JzS,PreviewTravelOrderHeader:()=>QzS,PreviewTravelOrderResponse:()=>XzS,RenderTravelOrderHtmlHeader:()=>UfS,RenderTravelOrderHtmlParams:()=>NfS,RenderTravelOrderHtmlQueryParams:()=>MfS,RenderTravelOrderPdfHeader:()=>_fS,RenderTravelOrderPdfParams:()=>DfS,RenderTravelOrderPdfQueryParams:()=>RfS,RenderTravelOrderPreviewBody:()=>nfS,RenderTravelOrderPreviewHeader:()=>tfS,RenderTravelOrderPreviewQueryParams:()=>efS,ReopenTravelOrderBody:()=>ffS,ReopenTravelOrderHeader:()=>zfS,ReopenTravelOrderParams:()=>bfS,ReopenTravelOrderResponse:()=>BfS,SettleTravelOrderHeader:()=>SfS,SettleTravelOrderParams:()=>vfS,SettleTravelOrderResponse:()=>hfS,UpdateTravelOrderBody:()=>cfS,UpdateTravelOrderHeader:()=>ufS,UpdateTravelOrderParams:()=>dfS,UpdateTravelOrderResponse:()=>pfS,approveTravelOrderPathIdRegExp:()=>CVv,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>AVv,approveTravelOrderResponseCostsItemAmountMax:()=>FVv,approveTravelOrderResponseCostsItemDateRegExp:()=>kVv,approveTravelOrderResponseCostsItemDescriptionMax:()=>wVv,calculateTravelOrderRouteDistanceBodyFromMax:()=>X3v,calculateTravelOrderRouteDistanceBodyFromMin:()=>J3v,calculateTravelOrderRouteDistanceBodyToMax:()=>tVv,calculateTravelOrderRouteDistanceBodyToMin:()=>eVv,cancelTravelOrderPathIdRegExp:()=>JVv,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>eKv,cancelTravelOrderResponseCostsItemAmountMax:()=>tKv,cancelTravelOrderResponseCostsItemDateRegExp:()=>nKv,cancelTravelOrderResponseCostsItemDescriptionMax:()=>XVv,createTravelOrderBodyAdvanceAmountMax:()=>QGv,createTravelOrderBodyAdvanceAmountMin:()=>$Gv,createTravelOrderBodyBreakfastsProvidedMax:()=>qGv,createTravelOrderBodyBreakfastsProvidedMin:()=>ZGv,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>XGv,createTravelOrderBodyCostsItemAmountMax:()=>e3v,createTravelOrderBodyCostsItemDateRegExp:()=>t3v,createTravelOrderBodyCostsItemDescriptionMax:()=>JGv,createTravelOrderBodyCostsMax:()=>n3v,createTravelOrderBodyDateRegExp:()=>FGv,createTravelOrderBodyDestinationCountryCodeRegExp:()=>LGv,createTravelOrderBodyDestinationMax:()=>HGv,createTravelOrderBodyDistanceKmMax:()=>KGv,createTravelOrderBodyDistanceKmMin:()=>VGv,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>WGv,createTravelOrderBodyForeignDailyRateMax:()=>YGv,createTravelOrderBodyNoteMax:()=>s3v,createTravelOrderBodyOriginMax:()=>jGv,createTravelOrderBodyPurposeMax:()=>kGv,createTravelOrderBodyTravelerNameMax:()=>wGv,createTravelOrderBodyTravelerPositionMax:()=>AGv,createTravelOrderBodyVehicleRegistrationMax:()=>GGv,deleteTravelOrderPathIdRegExp:()=>PVv,getTravelOrderByIdPathIdRegExp:()=>nVv,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>oVv,getTravelOrderByIdResponseCostsItemAmountMax:()=>iVv,getTravelOrderByIdResponseCostsItemDateRegExp:()=>aVv,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>sVv,getTravelOrdersQueryLimitDefault:()=>_Gv,getTravelOrdersQueryLimitMax:()=>NGv,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>UGv,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>PGv,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>CGv,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>MGv,previewTravelOrderBodyAdvanceAmountMax:()=>S3v,previewTravelOrderBodyAdvanceAmountMin:()=>v3v,previewTravelOrderBodyBreakfastsProvidedMax:()=>g3v,previewTravelOrderBodyBreakfastsProvidedMin:()=>x3v,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>b3v,previewTravelOrderBodyCostsItemAmountMax:()=>z3v,previewTravelOrderBodyCostsItemDateRegExp:()=>f3v,previewTravelOrderBodyCostsItemDescriptionMax:()=>h3v,previewTravelOrderBodyCostsMax:()=>B3v,previewTravelOrderBodyDateRegExp:()=>a3v,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>u3v,previewTravelOrderBodyDestinationMax:()=>d3v,previewTravelOrderBodyDistanceKmMax:()=>m3v,previewTravelOrderBodyDistanceKmMin:()=>p3v,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>y3v,previewTravelOrderBodyForeignDailyRateMax:()=>O3v,previewTravelOrderBodyNoteMax:()=>T3v,previewTravelOrderBodyOriginMax:()=>l3v,previewTravelOrderBodyPurposeMax:()=>r3v,previewTravelOrderBodyTravelerNameMax:()=>o3v,previewTravelOrderBodyTravelerPositionMax:()=>i3v,previewTravelOrderBodyVehicleRegistrationMax:()=>c3v,renderTravelOrderHtmlPathIdRegExp:()=>lKv,renderTravelOrderHtmlQueryLanguageMax:()=>pKv,renderTravelOrderHtmlQueryLanguageMin:()=>cKv,renderTravelOrderHtmlQueryLocaleMax:()=>uKv,renderTravelOrderHtmlQueryLocaleMin:()=>dKv,renderTravelOrderPdfPathIdRegExp:()=>sKv,renderTravelOrderPdfQueryLanguageMax:()=>rKv,renderTravelOrderPdfQueryLanguageMin:()=>aKv,renderTravelOrderPdfQueryLocaleMax:()=>iKv,renderTravelOrderPdfQueryLocaleMin:()=>oKv,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>K3v,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>V3v,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>H3v,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>j3v,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>q3v,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>W3v,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>Y3v,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>Z3v,renderTravelOrderPreviewBodyCostsMax:()=>$3v,renderTravelOrderPreviewBodyDateRegExp:()=>M3v,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>w3v,renderTravelOrderPreviewBodyDestinationMax:()=>C3v,renderTravelOrderPreviewBodyDistanceKmMax:()=>k3v,renderTravelOrderPreviewBodyDistanceKmMin:()=>F3v,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>L3v,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>G3v,renderTravelOrderPreviewBodyNoteMax:()=>Q3v,renderTravelOrderPreviewBodyOriginMax:()=>P3v,renderTravelOrderPreviewBodyPurposeMax:()=>U3v,renderTravelOrderPreviewBodyTravelerNameMax:()=>_3v,renderTravelOrderPreviewBodyTravelerPositionMax:()=>N3v,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>A3v,renderTravelOrderPreviewQueryLanguageMax:()=>R3v,renderTravelOrderPreviewQueryLanguageMin:()=>D3v,renderTravelOrderPreviewQueryLocaleMax:()=>E3v,renderTravelOrderPreviewQueryLocaleMin:()=>I3v,reopenTravelOrderBodyReasonMax:()=>qVv,reopenTravelOrderBodyReasonMin:()=>ZVv,reopenTravelOrderPathIdRegExp:()=>KVv,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>YVv,reopenTravelOrderResponseCostsItemAmountMax:()=>$Vv,reopenTravelOrderResponseCostsItemDateRegExp:()=>QVv,reopenTravelOrderResponseCostsItemDescriptionMax:()=>WVv,settleTravelOrderPathIdRegExp:()=>jVv,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>LVv,settleTravelOrderResponseCostsItemAmountMax:()=>GVv,settleTravelOrderResponseCostsItemDateRegExp:()=>VVv,settleTravelOrderResponseCostsItemDescriptionMax:()=>HVv,updateTravelOrderBodyAdvanceAmountMax:()=>fVv,updateTravelOrderBodyAdvanceAmountMin:()=>zVv,updateTravelOrderBodyBreakfastsProvidedMax:()=>SVv,updateTravelOrderBodyBreakfastsProvidedMin:()=>vVv,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>TVv,updateTravelOrderBodyCostsItemAmountMax:()=>IVv,updateTravelOrderBodyCostsItemDateRegExp:()=>EVv,updateTravelOrderBodyCostsItemDescriptionMax:()=>BVv,updateTravelOrderBodyCostsMax:()=>DVv,updateTravelOrderBodyDateRegExp:()=>uVv,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>xVv,updateTravelOrderBodyDestinationMax:()=>mVv,updateTravelOrderBodyDistanceKmMax:()=>OVv,updateTravelOrderBodyDistanceKmMin:()=>yVv,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>hVv,updateTravelOrderBodyForeignDailyRateMax:()=>bVv,updateTravelOrderBodyNoteMax:()=>RVv,updateTravelOrderBodyOriginMax:()=>pVv,updateTravelOrderBodyPurposeMax:()=>cVv,updateTravelOrderBodyTravelerNameMax:()=>lVv,updateTravelOrderBodyTravelerPositionMax:()=>dVv,updateTravelOrderBodyVehicleRegistrationMax:()=>gVv,updateTravelOrderPathIdRegExp:()=>rVv,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>NVv,updateTravelOrderResponseCostsItemAmountMax:()=>MVv,updateTravelOrderResponseCostsItemDateRegExp:()=>UVv,updateTravelOrderResponseCostsItemDescriptionMax:()=>_Vv});var _Gv=10,NGv=100,ZzS=e.object({limit:e.number().min(1).max(NGv).default(_Gv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
|
|
232
|
+
Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),rzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),S4v=36,h4v=100,b4v=0,z4v=100,f4v=2,B4v=2,T4v=36,lzS=e.object({data:e.array(e.object({id:e.string().max(S4v),name:e.string().max(h4v),tax_rates:e.array(e.object({rate:e.number().min(b4v).max(z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(f4v).max(B4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(T4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),I4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,dzS=e.object({id:e.stringFormat("resource-id",I4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),E4v=0,D4v=100,czS=e.object({tax_rates:e.array(e.object({rate:e.number().min(E4v).max(D4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),R4v=36,_4v=100,N4v=0,M4v=100,U4v=2,P4v=2,C4v=36,pzS=e.object({id:e.string().max(R4v),name:e.string().max(_4v),tax_rates:e.array(e.object({rate:e.number().min(N4v).max(M4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(U4v).max(P4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(C4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),w4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,mzS=e.object({id:e.stringFormat("resource-id",w4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),A4v=100,F4v=0,k4v=100,j4v=2,H4v=2,L4v=60,gzS=e.object({name:e.string().max(A4v).optional(),tax_rates:e.array(e.object({rate:e.number().min(F4v).max(k4v),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(j4v).max(H4v).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(L4v).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),G4v=36,V4v=100,K4v=0,Z4v=100,q4v=2,W4v=2,Y4v=36,yzS=e.object({id:e.string().max(G4v),name:e.string().max(V4v),tax_rates:e.array(e.object({rate:e.number().min(K4v).max(Z4v),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(q4v).max(W4v).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Y4v),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),$4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,OzS=e.object({id:e.stringFormat("resource-id",$4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),vzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Q4v=/^[a-z]{3,4}_[0-9a-f]{24}$/,SzS=e.object({id:e.stringFormat("resource-id",Q4v).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J4v=36,X4v=100,eGv=0,tGv=100,nGv=2,sGv=2,oGv=36,bzS=e.object({id:e.string().max(J4v),name:e.string().max(X4v),tax_rates:e.array(e.object({rate:e.number().min(eGv).max(tGv),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(nGv).max(sGv).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(oGv),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),iGv=/^[a-z]{3,4}_[0-9a-f]{24}$/,zzS=e.object({id:e.stringFormat("resource-id",iGv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),fzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Dt={};W(Dt,{DownloadTicketBaiRecordXmlHeader:()=>wzS,DownloadTicketBaiRecordXmlParams:()=>CzS,GetTicketBaiRecordHeader:()=>UzS,GetTicketBaiRecordParams:()=>MzS,GetTicketBaiRecordResponse:()=>PzS,GetTicketBaiSettingsHeader:()=>BzS,GetTicketBaiSettingsResponse:()=>TzS,ReconcileTicketBaiRecordHeader:()=>HzS,ReconcileTicketBaiRecordParams:()=>jzS,ReconcileTicketBaiRecordResponse:()=>LzS,RetryTicketBaiRecordHeader:()=>FzS,RetryTicketBaiRecordParams:()=>AzS,RetryTicketBaiRecordResponse:()=>kzS,UpdateTicketBaiSettingsBody:()=>EzS,UpdateTicketBaiSettingsHeader:()=>IzS,UpdateTicketBaiSettingsResponse:()=>DzS,UploadTicketBaiCertificateBody:()=>_zS,UploadTicketBaiCertificateHeader:()=>RzS,UploadTicketBaiCertificateResponse:()=>NzS,downloadTicketBaiRecordXmlPathIdMax:()=>yGv,getTicketBaiRecordPathIdMax:()=>gGv,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>aGv,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>rGv,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>lGv,reconcileTicketBaiRecordPathIdMax:()=>vGv,retryTicketBaiRecordPathIdMax:()=>OGv,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>dGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>uGv,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>cGv,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>pGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>mGv,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>xGv});var BzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aGv=120,rGv=120,lGv=120,TzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(aGv),surname1:e.string().min(1).max(rGv),surname2:e.string().min(1).max(lGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),IzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dGv=120,uGv=120,cGv=120,EzS=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(dGv),surname1:e.string().min(1).max(uGv),surname2:e.string().min(1).max(cGv)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),pGv=120,mGv=120,xGv=120,DzS=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(pGv),surname1:e.string().min(1).max(mGv),surname2:e.string().min(1).max(xGv)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),RzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_zS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),NzS=e.object({certificate_expiry:e.string()}),gGv=36,MzS=e.object({id:e.string().min(1).max(gGv)}),UzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),PzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),yGv=36,CzS=e.object({id:e.string().min(1).max(yGv)}),wzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),OGv=36,AzS=e.object({id:e.string().min(1).max(OGv)}),FzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),vGv=36,jzS=e.object({id:e.string().min(1).max(vGv)}),HzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LzS=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var Rt={};W(Rt,{CheckTransactionTypeBody:()=>VzS,CheckTransactionTypeHeader:()=>GzS,CheckTransactionTypeResponse:()=>KzS,checkTransactionTypeBodyCustomerCountryCodeMax:()=>fGv,checkTransactionTypeBodyCustomerCountryCodeMin:()=>zGv,checkTransactionTypeBodyIssuerCountryCodeMax:()=>hGv,checkTransactionTypeBodyIssuerCountryCodeMin:()=>SGv,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>bGv,checkTransactionTypeResponseCustomerCountryCodeMax:()=>EGv,checkTransactionTypeResponseCustomerCountryCodeMin:()=>IGv,checkTransactionTypeResponseIssuerCountryCodeMax:()=>TGv,checkTransactionTypeResponseIssuerCountryCodeMin:()=>BGv,checkTransactionTypeResponseVatIdCountryCodeMax:()=>RGv,checkTransactionTypeResponseVatIdCountryCodeMin:()=>DGv});var GzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),SGv=2,hGv=2,bGv=true,zGv=2,fGv=2,VzS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(SGv).max(hGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(bGv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(zGv).max(fGv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),BGv=2,TGv=2,IGv=2,EGv=2,DGv=2,RGv=2,KzS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(BGv).max(TGv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(IGv).max(EGv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(DGv).max(RGv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var _t={};W(_t,{ApproveTravelOrderHeader:()=>yfS,ApproveTravelOrderParams:()=>gfS,ApproveTravelOrderResponse:()=>OfS,CalculateTravelOrderRouteDistanceBody:()=>ofS,CalculateTravelOrderRouteDistanceHeader:()=>sfS,CalculateTravelOrderRouteDistanceResponse:()=>ifS,CancelTravelOrderHeader:()=>IfS,CancelTravelOrderParams:()=>TfS,CancelTravelOrderResponse:()=>EfS,CreateTravelOrderBody:()=>$zS,CreateTravelOrderHeader:()=>YzS,DeleteTravelOrderHeader:()=>xfS,DeleteTravelOrderParams:()=>mfS,GetTravelOrderByIdHeader:()=>rfS,GetTravelOrderByIdParams:()=>afS,GetTravelOrderByIdResponse:()=>lfS,GetTravelOrdersHeader:()=>qzS,GetTravelOrdersQueryParams:()=>ZzS,GetTravelOrdersResponse:()=>WzS,PreviewTravelOrderBody:()=>JzS,PreviewTravelOrderHeader:()=>QzS,PreviewTravelOrderResponse:()=>XzS,RenderTravelOrderHtmlHeader:()=>UfS,RenderTravelOrderHtmlParams:()=>NfS,RenderTravelOrderHtmlQueryParams:()=>MfS,RenderTravelOrderPdfHeader:()=>_fS,RenderTravelOrderPdfParams:()=>DfS,RenderTravelOrderPdfQueryParams:()=>RfS,RenderTravelOrderPreviewBody:()=>nfS,RenderTravelOrderPreviewHeader:()=>tfS,RenderTravelOrderPreviewQueryParams:()=>efS,ReopenTravelOrderBody:()=>ffS,ReopenTravelOrderHeader:()=>zfS,ReopenTravelOrderParams:()=>bfS,ReopenTravelOrderResponse:()=>BfS,SettleTravelOrderHeader:()=>SfS,SettleTravelOrderParams:()=>vfS,SettleTravelOrderResponse:()=>hfS,UpdateTravelOrderBody:()=>cfS,UpdateTravelOrderHeader:()=>ufS,UpdateTravelOrderParams:()=>dfS,UpdateTravelOrderResponse:()=>pfS,approveTravelOrderPathIdRegExp:()=>CVv,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>AVv,approveTravelOrderResponseCostsItemAmountMax:()=>FVv,approveTravelOrderResponseCostsItemDateRegExp:()=>kVv,approveTravelOrderResponseCostsItemDescriptionMax:()=>wVv,calculateTravelOrderRouteDistanceBodyFromMax:()=>X3v,calculateTravelOrderRouteDistanceBodyFromMin:()=>J3v,calculateTravelOrderRouteDistanceBodyToMax:()=>tVv,calculateTravelOrderRouteDistanceBodyToMin:()=>eVv,cancelTravelOrderPathIdRegExp:()=>JVv,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>eKv,cancelTravelOrderResponseCostsItemAmountMax:()=>tKv,cancelTravelOrderResponseCostsItemDateRegExp:()=>nKv,cancelTravelOrderResponseCostsItemDescriptionMax:()=>XVv,createTravelOrderBodyAdvanceAmountMax:()=>QGv,createTravelOrderBodyAdvanceAmountMin:()=>$Gv,createTravelOrderBodyBreakfastsProvidedMax:()=>qGv,createTravelOrderBodyBreakfastsProvidedMin:()=>ZGv,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>XGv,createTravelOrderBodyCostsItemAmountMax:()=>e3v,createTravelOrderBodyCostsItemDateRegExp:()=>t3v,createTravelOrderBodyCostsItemDescriptionMax:()=>JGv,createTravelOrderBodyCostsMax:()=>n3v,createTravelOrderBodyDateRegExp:()=>FGv,createTravelOrderBodyDestinationCountryCodeRegExp:()=>LGv,createTravelOrderBodyDestinationMax:()=>HGv,createTravelOrderBodyDistanceKmMax:()=>KGv,createTravelOrderBodyDistanceKmMin:()=>VGv,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>WGv,createTravelOrderBodyForeignDailyRateMax:()=>YGv,createTravelOrderBodyNoteMax:()=>s3v,createTravelOrderBodyOriginMax:()=>jGv,createTravelOrderBodyPurposeMax:()=>kGv,createTravelOrderBodyTravelerNameMax:()=>wGv,createTravelOrderBodyTravelerPositionMax:()=>AGv,createTravelOrderBodyVehicleRegistrationMax:()=>GGv,deleteTravelOrderPathIdRegExp:()=>PVv,getTravelOrderByIdPathIdRegExp:()=>nVv,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>oVv,getTravelOrderByIdResponseCostsItemAmountMax:()=>iVv,getTravelOrderByIdResponseCostsItemDateRegExp:()=>aVv,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>sVv,getTravelOrdersQueryLimitDefault:()=>_Gv,getTravelOrdersQueryLimitMax:()=>NGv,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>UGv,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>PGv,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>CGv,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>MGv,previewTravelOrderBodyAdvanceAmountMax:()=>S3v,previewTravelOrderBodyAdvanceAmountMin:()=>v3v,previewTravelOrderBodyBreakfastsProvidedMax:()=>g3v,previewTravelOrderBodyBreakfastsProvidedMin:()=>x3v,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>b3v,previewTravelOrderBodyCostsItemAmountMax:()=>z3v,previewTravelOrderBodyCostsItemDateRegExp:()=>f3v,previewTravelOrderBodyCostsItemDescriptionMax:()=>h3v,previewTravelOrderBodyCostsMax:()=>B3v,previewTravelOrderBodyDateRegExp:()=>a3v,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>u3v,previewTravelOrderBodyDestinationMax:()=>d3v,previewTravelOrderBodyDistanceKmMax:()=>m3v,previewTravelOrderBodyDistanceKmMin:()=>p3v,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>y3v,previewTravelOrderBodyForeignDailyRateMax:()=>O3v,previewTravelOrderBodyNoteMax:()=>T3v,previewTravelOrderBodyOriginMax:()=>l3v,previewTravelOrderBodyPurposeMax:()=>r3v,previewTravelOrderBodyTravelerNameMax:()=>o3v,previewTravelOrderBodyTravelerPositionMax:()=>i3v,previewTravelOrderBodyVehicleRegistrationMax:()=>c3v,renderTravelOrderHtmlPathIdRegExp:()=>lKv,renderTravelOrderHtmlQueryLanguageMax:()=>pKv,renderTravelOrderHtmlQueryLanguageMin:()=>cKv,renderTravelOrderHtmlQueryLocaleMax:()=>uKv,renderTravelOrderHtmlQueryLocaleMin:()=>dKv,renderTravelOrderPdfPathIdRegExp:()=>sKv,renderTravelOrderPdfQueryLanguageMax:()=>rKv,renderTravelOrderPdfQueryLanguageMin:()=>aKv,renderTravelOrderPdfQueryLocaleMax:()=>iKv,renderTravelOrderPdfQueryLocaleMin:()=>oKv,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>K3v,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>V3v,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>H3v,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>j3v,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>q3v,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>W3v,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>Y3v,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>Z3v,renderTravelOrderPreviewBodyCostsMax:()=>$3v,renderTravelOrderPreviewBodyDateRegExp:()=>M3v,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>w3v,renderTravelOrderPreviewBodyDestinationMax:()=>C3v,renderTravelOrderPreviewBodyDistanceKmMax:()=>k3v,renderTravelOrderPreviewBodyDistanceKmMin:()=>F3v,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>L3v,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>G3v,renderTravelOrderPreviewBodyNoteMax:()=>Q3v,renderTravelOrderPreviewBodyOriginMax:()=>P3v,renderTravelOrderPreviewBodyPurposeMax:()=>U3v,renderTravelOrderPreviewBodyTravelerNameMax:()=>_3v,renderTravelOrderPreviewBodyTravelerPositionMax:()=>N3v,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>A3v,renderTravelOrderPreviewQueryLanguageMax:()=>R3v,renderTravelOrderPreviewQueryLanguageMin:()=>D3v,renderTravelOrderPreviewQueryLocaleMax:()=>E3v,renderTravelOrderPreviewQueryLocaleMin:()=>I3v,reopenTravelOrderBodyReasonMax:()=>qVv,reopenTravelOrderBodyReasonMin:()=>ZVv,reopenTravelOrderPathIdRegExp:()=>KVv,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>YVv,reopenTravelOrderResponseCostsItemAmountMax:()=>$Vv,reopenTravelOrderResponseCostsItemDateRegExp:()=>QVv,reopenTravelOrderResponseCostsItemDescriptionMax:()=>WVv,settleTravelOrderPathIdRegExp:()=>jVv,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>LVv,settleTravelOrderResponseCostsItemAmountMax:()=>GVv,settleTravelOrderResponseCostsItemDateRegExp:()=>VVv,settleTravelOrderResponseCostsItemDescriptionMax:()=>HVv,updateTravelOrderBodyAdvanceAmountMax:()=>fVv,updateTravelOrderBodyAdvanceAmountMin:()=>zVv,updateTravelOrderBodyBreakfastsProvidedMax:()=>SVv,updateTravelOrderBodyBreakfastsProvidedMin:()=>vVv,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>TVv,updateTravelOrderBodyCostsItemAmountMax:()=>IVv,updateTravelOrderBodyCostsItemDateRegExp:()=>EVv,updateTravelOrderBodyCostsItemDescriptionMax:()=>BVv,updateTravelOrderBodyCostsMax:()=>DVv,updateTravelOrderBodyDateRegExp:()=>uVv,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>xVv,updateTravelOrderBodyDestinationMax:()=>mVv,updateTravelOrderBodyDistanceKmMax:()=>OVv,updateTravelOrderBodyDistanceKmMin:()=>yVv,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>hVv,updateTravelOrderBodyForeignDailyRateMax:()=>bVv,updateTravelOrderBodyNoteMax:()=>RVv,updateTravelOrderBodyOriginMax:()=>pVv,updateTravelOrderBodyPurposeMax:()=>cVv,updateTravelOrderBodyTravelerNameMax:()=>lVv,updateTravelOrderBodyTravelerPositionMax:()=>dVv,updateTravelOrderBodyVehicleRegistrationMax:()=>gVv,updateTravelOrderPathIdRegExp:()=>rVv,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>NVv,updateTravelOrderResponseCostsItemAmountMax:()=>MVv,updateTravelOrderResponseCostsItemDateRegExp:()=>UVv,updateTravelOrderResponseCostsItemDescriptionMax:()=>_Vv});var _Gv=10,NGv=100,ZzS=e.object({limit:e.number().min(1).max(NGv).default(_Gv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
|
|
233
233
|
Searches are case-insensitive and match partial strings.
|
|
234
|
-
Searches across number, traveler name, purpose, origin, and destination.`)}),qzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MGv=200,UGv=0,PGv=1e6,CGv=/^\d{4}-\d{2}-\d{2}$/,WzS=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(MGv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(UGv).max(PGv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(CGv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),YzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wGv=200,AGv=200,FGv=/^\d{4}-\d{2}-\d{2}$/,kGv=500,jGv=500,HGv=500,LGv=/^[A-Za-z]{2}$/,GGv=20,VGv=0,KGv=1e5,ZGv=0,qGv=60,WGv=0,YGv=1e4,$Gv=0,QGv=1e6,JGv=200,XGv=0,e3v=1e6,t3v=/^\d{4}-\d{2}-\d{2}$/,n3v=100,s3v=2e3,$zS=e.object({traveler_name:e.string().min(1).max(wGv).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(AGv).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(FGv).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(kGv).describe("Business purpose of the trip."),origin:e.string().max(jGv).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(HGv).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(LGv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(GGv).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(VGv).max(KGv).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(ZGv).max(qGv).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(WGv).max(YGv).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min($Gv).max(QGv).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(JGv).describe("Description of the cost line."),amount:e.number().gt(XGv).max(e3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(t3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(n3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(s3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),QzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o3v=200,i3v=200,a3v=/^\d{4}-\d{2}-\d{2}$/,r3v=500,l3v=500,d3v=500,u3v=/^[A-Za-z]{2}$/,c3v=20,p3v=0,m3v=1e5,x3v=0,g3v=60,y3v=0,O3v=1e4,v3v=0,S3v=1e6,h3v=200,b3v=0,z3v=1e6,f3v=/^\d{4}-\d{2}-\d{2}$/,B3v=100,T3v=2e3,JzS=e.object({traveler_name:e.string().min(1).max(o3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(i3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(a3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(r3v).describe("Business purpose of the trip."),origin:e.string().max(l3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(d3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(u3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(c3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(p3v).max(m3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(x3v).max(g3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(y3v).max(O3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(v3v).max(S3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(h3v).describe("Description of the cost line."),amount:e.number().gt(b3v).max(z3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(f3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(B3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(T3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),XzS=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),I3v=2,E3v=5,D3v=2,R3v=5,efS=e.object({locale:e.string().min(I3v).max(E3v).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(D3v).max(R3v).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),tfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_3v=200,N3v=200,M3v=/^\d{4}-\d{2}-\d{2}$/,U3v=500,P3v=500,C3v=500,w3v=/^[A-Za-z]{2}$/,A3v=20,F3v=0,k3v=1e5,j3v=0,H3v=60,L3v=0,G3v=1e4,V3v=0,K3v=1e6,Z3v=200,q3v=0,W3v=1e6,Y3v=/^\d{4}-\d{2}-\d{2}$/,$3v=100,Q3v=2e3,nfS=e.object({traveler_name:e.string().min(1).max(_3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(N3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(M3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(U3v).describe("Business purpose of the trip."),origin:e.string().max(P3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(C3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(w3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(A3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(F3v).max(k3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(j3v).max(H3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(L3v).max(G3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(V3v).max(K3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Z3v).describe("Description of the cost line."),amount:e.number().gt(q3v).max(W3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Y3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max($3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Q3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),sfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J3v=3,X3v=300,eVv=3,tVv=300,ofS=e.object({from:e.string().min(J3v).max(X3v).describe("Starting address to geocode."),to:e.string().min(eVv).max(tVv).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),ifS=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),nVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,afS=e.object({id:e.stringFormat("resource-id",nVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),rfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sVv=200,oVv=0,iVv=1e6,aVv=/^\d{4}-\d{2}-\d{2}$/,lfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(sVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(oVv).max(iVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(aVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),rVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,dfS=e.object({id:e.stringFormat("resource-id",rVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ufS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lVv=200,dVv=200,uVv=/^\d{4}-\d{2}-\d{2}$/,cVv=500,pVv=500,mVv=500,xVv=/^[A-Za-z]{2}$/,gVv=20,yVv=0,OVv=1e5,vVv=0,SVv=60,hVv=0,bVv=1e4,zVv=0,fVv=1e6,BVv=200,TVv=0,IVv=1e6,EVv=/^\d{4}-\d{2}-\d{2}$/,DVv=100,RVv=2e3,cfS=e.object({traveler_name:e.string().min(1).max(lVv).nullish().describe("Full name of the traveling employee or contractor. Omit or send null to leave unchanged; cannot be cleared."),traveler_position:e.string().max(dVv).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(uVv).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(cVv).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(pVv).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(mVv).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(xVv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(gVv).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(yVv).max(OVv).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(vVv).max(SVv).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(hVv).max(bVv).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(zVv).max(fVv).nullish().describe("Advance payment already given to the traveler. Omit to leave unchanged, send null to reset to 0."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(BVv).describe("Description of the cost line."),amount:e.number().gt(TVv).max(IVv).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(EVv).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(DVv).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(RVv).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),_Vv=200,NVv=0,MVv=1e6,UVv=/^\d{4}-\d{2}-\d{2}$/,pfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(_Vv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(NVv).max(MVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(UVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),PVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,mfS=e.object({id:e.stringFormat("resource-id",PVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,gfS=e.object({id:e.stringFormat("resource-id",CVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wVv=200,AVv=0,FVv=1e6,kVv=/^\d{4}-\d{2}-\d{2}$/,OfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(wVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(AVv).max(FVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(kVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),jVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,vfS=e.object({id:e.stringFormat("resource-id",jVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),HVv=200,LVv=0,GVv=1e6,VVv=/^\d{4}-\d{2}-\d{2}$/,hfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(HVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(LVv).max(GVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(VVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),KVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,bfS=e.object({id:e.stringFormat("resource-id",KVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ZVv=3,qVv=500,ffS=e.object({reason:e.string().min(ZVv).max(qVv).describe("Why this settled travel order is being reopened for correction. Required.")}),WVv=200,YVv=0,$Vv=1e6,QVv=/^\d{4}-\d{2}-\d{2}$/,BfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(WVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(YVv).max($Vv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(QVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),JVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,TfS=e.object({id:e.stringFormat("resource-id",JVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),IfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVv=200,eKv=0,tKv=1e6,nKv=/^\d{4}-\d{2}-\d{2}$/,EfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(XVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(eKv).max(tKv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(nKv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),sKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,DfS=e.object({id:e.stringFormat("resource-id",sKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),oKv=2,iKv=5,aKv=2,rKv=5,RfS=e.object({locale:e.string().min(oKv).max(iKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(aKv).max(rKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),_fS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,NfS=e.object({id:e.stringFormat("resource-id",lKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dKv=2,uKv=5,cKv=2,pKv=5,MfS=e.object({locale:e.string().min(dKv).max(uKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(cKv).max(pKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),UfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Nt={};W(Nt,{DownloadUjpPackageHeader:()=>CfS,DownloadUjpPackageParams:()=>PfS});var PfS=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),CfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Mt={};W(Mt,{UploadImageBody:()=>AfS,UploadImageHeader:()=>wfS,UploadImageResponse:()=>FfS});var wfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AfS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),FfS=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var Ut={};W(Ut,{ConfirmPasswordResetBody:()=>gBS,ConfirmPasswordResetResponse:()=>yBS,DisableTwoFactorBody:()=>aBS,DisableTwoFactorResponse:()=>rBS,EnableRequiredTwoFactorBody:()=>XfS,EnableRequiredTwoFactorResponse:()=>eBS,EnableTwoFactorBody:()=>oBS,EnableTwoFactorResponse:()=>iBS,GetAccountTwoFactorPolicyHeader:()=>kfS,GetAccountTwoFactorPolicyResponse:()=>jfS,GetEntityTwoFactorPolicyHeader:()=>KfS,GetEntityTwoFactorPolicyParams:()=>VfS,GetEntityTwoFactorPolicyResponse:()=>ZfS,GetMeResponse:()=>vBS,GetTwoFactorConfigurationResponse:()=>tBS,ListMyAccountsResponse:()=>OBS,LoginBody:()=>uBS,LoginResponse:()=>cBS,PatchMeBody:()=>SBS,PatchMeResponse:()=>hBS,RequestPasswordResetBody:()=>mBS,RequestPasswordResetResponse:()=>xBS,SetupRequiredTwoFactorBody:()=>QfS,SetupRequiredTwoFactorResponse:()=>JfS,SetupTwoFactorBody:()=>nBS,SetupTwoFactorResponse:()=>sBS,SignupBody:()=>pBS,UpdateAccountTwoFactorPolicyBody:()=>LfS,UpdateAccountTwoFactorPolicyHeader:()=>HfS,UpdateAccountTwoFactorPolicyResponse:()=>GfS,UpdateEntityTwoFactorPolicyBody:()=>YfS,UpdateEntityTwoFactorPolicyHeader:()=>WfS,UpdateEntityTwoFactorPolicyParams:()=>qfS,UpdateEntityTwoFactorPolicyResponse:()=>$fS,UpdateUserFinaSettingsBody:()=>TBS,UpdateUserFinaSettingsHeader:()=>BBS,UpdateUserFinaSettingsResponse:()=>IBS,UpdateUserFursSettingsBody:()=>zBS,UpdateUserFursSettingsHeader:()=>bBS,UpdateUserFursSettingsResponse:()=>fBS,VerifyTwoFactorBody:()=>lBS,VerifyTwoFactorResponse:()=>dBS,confirmPasswordResetBodyPasswordMin:()=>fZv,confirmPasswordResetBodyPasswordRegExp:()=>BZv,disableTwoFactorBodyCodeMax:()=>wKv,disableTwoFactorBodyCodeMin:()=>CKv,disableTwoFactorBodyPasswordMax:()=>PKv,enableRequiredTwoFactorBodyCodeRegExp:()=>bKv,enableRequiredTwoFactorBodyTokenRegExp:()=>hKv,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>IKv,enableRequiredTwoFactorResponseSessionOneIdMax:()=>zKv,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>EKv,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>TKv,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>BKv,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>fKv,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>NKv,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>RKv,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>DKv,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>_Kv,enableTwoFactorBodyCodeRegExp:()=>UKv,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>mKv,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>yKv,getEntityTwoFactorPolicyPathIdRegExp:()=>gKv,getMeResponseAccountIdMax:()=>DZv,getMeResponseEmailMax:()=>IZv,getMeResponseIdMax:()=>TZv,getMeResponseNameMax:()=>EZv,loginBodyShopifyReturnUrlMax:()=>JKv,loginBodyShopifyReturnUrlMin:()=>QKv,loginBodyShopifyReturnUrlRegExp:()=>XKv,loginResponseOneEntityIdMax:()=>oZv,loginResponseOneIdMax:()=>eZv,loginResponseOneImpersonatorUserIdMax:()=>iZv,loginResponseOneScopeMax:()=>sZv,loginResponseOneTtlDefault:()=>nZv,loginResponseOneUserIdMax:()=>tZv,loginResponseTwoUserAccountIdMax:()=>dZv,loginResponseTwoUserEmailMax:()=>rZv,loginResponseTwoUserIdMax:()=>aZv,loginResponseTwoUserNameMax:()=>lZv,patchMeBodyNameMin:()=>RZv,patchMeResponseAccountIdMax:()=>UZv,patchMeResponseEmailMax:()=>NZv,patchMeResponseIdMax:()=>_Zv,patchMeResponseNameMax:()=>MZv,requestPasswordResetBodyShopifyReturnUrlMax:()=>bZv,requestPasswordResetBodyShopifyReturnUrlMin:()=>hZv,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>zZv,setupRequiredTwoFactorBodyTokenRegExp:()=>SKv,setupTwoFactorBodyPasswordMax:()=>MKv,signupBodyNameMin:()=>uZv,signupBodyPasswordMin:()=>cZv,signupBodyPasswordRegExp:()=>pZv,signupBodySignupAttributionFbclidMax:()=>SZv,signupBodySignupAttributionGbraidMax:()=>OZv,signupBodySignupAttributionGclidMax:()=>yZv,signupBodySignupAttributionUtmCampaignMax:()=>gZv,signupBodySignupAttributionUtmMediumMax:()=>xZv,signupBodySignupAttributionUtmSourceMax:()=>mZv,signupBodySignupAttributionWbraidMax:()=>vZv,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>xKv,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>vKv,updateEntityTwoFactorPolicyPathIdRegExp:()=>OKv,updateUserFinaSettingsResponseAccountIdMax:()=>HZv,updateUserFinaSettingsResponseEmailMax:()=>kZv,updateUserFinaSettingsResponseIdMax:()=>FZv,updateUserFinaSettingsResponseNameMax:()=>jZv,updateUserFursSettingsResponseAccountIdMax:()=>AZv,updateUserFursSettingsResponseEmailMax:()=>CZv,updateUserFursSettingsResponseIdMax:()=>PZv,updateUserFursSettingsResponseNameMax:()=>wZv,verifyTwoFactorBodyCodeMax:()=>jKv,verifyTwoFactorBodyCodeMin:()=>kKv,verifyTwoFactorBodyTokenMax:()=>AKv,verifyTwoFactorBodyTokenRegExp:()=>FKv,verifyTwoFactorResponseOneEntityIdMax:()=>KKv,verifyTwoFactorResponseOneIdMax:()=>HKv,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>ZKv,verifyTwoFactorResponseOneScopeMax:()=>VKv,verifyTwoFactorResponseOneTtlDefault:()=>GKv,verifyTwoFactorResponseOneUserIdMax:()=>LKv,verifyTwoFactorResponseTwoUserAccountIdMax:()=>$Kv,verifyTwoFactorResponseTwoUserEmailMax:()=>WKv,verifyTwoFactorResponseTwoUserIdMax:()=>qKv,verifyTwoFactorResponseTwoUserNameMax:()=>YKv});var mKv=/^acc_[0-9a-fA-F]{24}$/,kfS=e.object({"x-account-id":e.string().regex(mKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),jfS=e.object({required:e.boolean()}),xKv=/^acc_[0-9a-fA-F]{24}$/,HfS=e.object({"x-account-id":e.string().regex(xKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),LfS=e.object({required:e.boolean()}),GfS=e.object({required:e.boolean()}),gKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,VfS=e.object({id:e.stringFormat("resource-id",gKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),yKv=/^acc_[0-9a-fA-F]{24}$/,KfS=e.object({"x-account-id":e.string().regex(yKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ZfS=e.object({required:e.boolean()}),OKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,qfS=e.object({id:e.stringFormat("resource-id",OKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vKv=/^acc_[0-9a-fA-F]{24}$/,WfS=e.object({"x-account-id":e.string().regex(vKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),YfS=e.object({required:e.boolean()}),$fS=e.object({required:e.boolean()}),SKv=/^session_2fa_setup_[a-f0-9]{64}$/,QfS=e.object({token:e.string().regex(SKv)}),JfS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),hKv=/^session_2fa_setup_[a-f0-9]{64}$/,bKv=/^\d{6}$/,XfS=e.object({token:e.string().regex(hKv),code:e.string().regex(bKv)}),zKv=100,fKv=36,BKv=31536e3,TKv=50,IKv=36,EKv=36,DKv=36,RKv=255,_Kv=255,NKv=36,eBS=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(zKv),user_id:e.string().max(fKv),ttl:e.number().default(BKv).describe("Token time-to-live in seconds"),scope:e.string().max(TKv).nullish(),entity_id:e.string().max(IKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(EKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(DKv),email:e.string().max(RKv),name:e.string().max(_Kv).nullish(),email_verified:e.boolean(),account_id:e.string().max(NKv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),tBS=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),MKv=1024,nBS=e.object({password:e.string().max(MKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),sBS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),UKv=/^\d{6}$/,oBS=e.object({code:e.string().regex(UKv)}),iBS=e.object({recovery_codes:e.array(e.string())}),PKv=1024,CKv=6,wKv=32,aBS=e.object({password:e.string().max(PKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes."),code:e.string().min(CKv).max(wKv).describe("Six-digit authenticator code or a single-use recovery code.")}),rBS=e.object({enabled:e.literal(false)}),AKv=100,FKv=/^session_2fa_[a-zA-Z0-9]+$/,kKv=6,jKv=32,lBS=e.object({token:e.string().max(AKv).regex(FKv),code:e.string().min(kKv).max(jKv).describe("Six-digit authenticator code or a single-use recovery code.")}),HKv=100,LKv=36,GKv=31536e3,VKv=50,KKv=36,ZKv=36,qKv=36,WKv=255,YKv=255,$Kv=36,dBS=e.object({id:e.string().max(HKv),user_id:e.string().max(LKv),ttl:e.number().default(GKv).describe("Token time-to-live in seconds"),scope:e.string().max(VKv).nullish(),entity_id:e.string().max(KKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ZKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(qKv),email:e.string().max(WKv),name:e.string().max(YKv).nullish(),email_verified:e.boolean(),account_id:e.string().max($Kv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),QKv=86,JKv=86,XKv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,uBS=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(QKv).max(JKv).regex(XKv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),eZv=100,tZv=36,nZv=31536e3,sZv=50,oZv=36,iZv=36,aZv=36,rZv=255,lZv=255,dZv=36,cBS=e.object({id:e.string().max(eZv),user_id:e.string().max(tZv),ttl:e.number().default(nZv).describe("Token time-to-live in seconds"),scope:e.string().max(sZv).nullish(),entity_id:e.string().max(oZv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(iZv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(aZv),email:e.string().max(rZv),name:e.string().max(lZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(dZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),uZv=2,cZv=8,pZv=/[a-z]/,mZv=150,xZv=150,gZv=150,yZv=512,OZv=512,vZv=512,SZv=512,pBS=e.object({email:e.email(),name:e.string().min(uZv).nullish(),password:e.string().min(cZv).regex(pZv),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(mZv).nullish(),utm_medium:e.string().min(1).max(xZv).nullish(),utm_campaign:e.string().min(1).max(gZv).nullish(),gclid:e.string().min(1).max(yZv).nullish(),gbraid:e.string().min(1).max(OZv).nullish(),wbraid:e.string().min(1).max(vZv).nullish(),fbclid:e.string().min(1).max(SZv).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) and ad click IDs (gclid, gbraid, wbraid, fbclid) from the link the user arrived through. Stored with the new user for first-party sign-up attribution and never returned. Each value is trimmed. A UTM value is kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; a click ID is kept only when it is 1\u2013512 characters of `A-Z a-z 0-9 _ . -`. Invalid values and malformed objects are ignored rather than rejected.")}),hZv=86,bZv=86,zZv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,mBS=e.object({email:e.email(),shopify_return_url:e.string().min(hZv).max(bZv).regex(zZv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),xBS=e.object({message:e.string()}),fZv=8,BZv=/[a-z]/,gBS=e.object({token:e.string().min(1),password:e.string().min(fZv).regex(BZv)}),yBS=e.object({message:e.string()}),OBS=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),TZv=36,IZv=255,EZv=255,DZv=36,vBS=e.object({id:e.string().max(TZv),email:e.string().max(IZv),name:e.string().max(EZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(DZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),RZv=2,SBS=e.object({name:e.string().min(RZv).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),_Zv=36,NZv=255,MZv=255,UZv=36,hBS=e.object({id:e.string().max(_Zv),email:e.string().max(NZv),name:e.string().max(MZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(UZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),bBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zBS=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),PZv=36,CZv=255,wZv=255,AZv=36,fBS=e.object({id:e.string().max(PZv),email:e.string().max(CZv),name:e.string().max(wZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(AZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),BBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TBS=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),FZv=36,kZv=255,jZv=255,HZv=36,IBS=e.object({id:e.string().max(FZv),email:e.string().max(kZv),name:e.string().max(jZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(HZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var Pt={};W(Pt,{CancelVerifactuRecordBody:()=>qBS,CancelVerifactuRecordHeader:()=>ZBS,CancelVerifactuRecordParams:()=>KBS,CancelVerifactuRecordResponse:()=>WBS,CorrectVerifactuRecordBody:()=>GBS,CorrectVerifactuRecordHeader:()=>LBS,CorrectVerifactuRecordParams:()=>HBS,CorrectVerifactuRecordResponse:()=>VBS,GetVerifactuEvidenceHeader:()=>wBS,GetVerifactuEvidenceParams:()=>CBS,GetVerifactuEvidenceResponse:()=>ABS,GetVerifactuSettingsHeader:()=>EBS,GetVerifactuSettingsResponse:()=>DBS,RetryVerifactuRecordHeader:()=>kBS,RetryVerifactuRecordParams:()=>FBS,RetryVerifactuRecordResponse:()=>jBS,UpdateVerifactuSettingsBody:()=>_BS,UpdateVerifactuSettingsHeader:()=>RBS,UpdateVerifactuSettingsResponse:()=>NBS,UploadVerifactuCertificateBody:()=>UBS,UploadVerifactuCertificateHeader:()=>MBS,UploadVerifactuCertificateResponse:()=>PBS,cancelVerifactuRecordBodyReasonMax:()=>$Zv,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>ZZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>WZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>qZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>YZv,correctVerifactuRecordBodyReasonMax:()=>KZv,getVerifactuSettingsResponsePendingRecordsMin:()=>LZv,updateVerifactuSettingsResponsePendingRecordsMin:()=>GZv,uploadVerifactuCertificateResponsePendingRecordsMin:()=>VZv});var EBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LZv=0,DBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(LZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),RBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_BS=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),GZv=0,NBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(GZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),MBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UBS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),VZv=0,PBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(VZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),CBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),wBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ABS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),FBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),kBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),HBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),LBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KZv=500,ZZv=500,qZv=0,WZv=/^\d{2}$/,YZv=12,GBS=e.object({reason:e.string().min(1).max(KZv).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(ZZv).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(qZv).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(WZv).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(YZv).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction.")}).describe("Append a correction to a confirmed fiscal record without changing invoice financial or party facts."),VBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),KBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),ZBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Zv=500,qBS=e.object({reason:e.string().min(1).max($Zv).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),WBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var Ct={};W(Ct,{CheckViesBody:()=>YBS,CheckViesResponse:()=>$BS,checkViesBodyCustomerCountryCodeMax:()=>tqv,checkViesBodyCustomerCountryCodeMin:()=>eqv,checkViesBodyIssuerCountryCodeMax:()=>JZv,checkViesBodyIssuerCountryCodeMin:()=>QZv,checkViesBodyIssuerIsTaxSubjectDefault:()=>XZv,checkViesResponseCustomerCountryCodeMax:()=>iqv,checkViesResponseCustomerCountryCodeMin:()=>oqv,checkViesResponseIssuerCountryCodeMax:()=>sqv,checkViesResponseIssuerCountryCodeMin:()=>nqv,checkViesResponseVatIdCountryCodeMax:()=>rqv,checkViesResponseVatIdCountryCodeMin:()=>aqv});var QZv=2,JZv=2,XZv=true,eqv=2,tqv=2,YBS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(QZv).max(JZv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(XZv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(eqv).max(tqv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),nqv=2,sqv=2,oqv=2,iqv=2,aqv=2,rqv=2,$BS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(nqv).max(sqv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(oqv).max(iqv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(aqv).max(rqv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code. Informational: it never changes transaction_type, which follows the address."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var wt={};W(wt,{CreateWarehouseBody:()=>tTS,CreateWarehouseHeader:()=>eTS,DeleteWarehouseHeader:()=>uTS,DeleteWarehouseParams:()=>dTS,GetWarehouseByIdHeader:()=>sTS,GetWarehouseByIdParams:()=>nTS,GetWarehouseByIdResponse:()=>oTS,GetWarehousesHeader:()=>JBS,GetWarehousesQueryParams:()=>QBS,GetWarehousesResponse:()=>XBS,UpdateWarehouseBody:()=>rTS,UpdateWarehouseHeader:()=>aTS,UpdateWarehouseParams:()=>iTS,UpdateWarehouseResponse:()=>lTS,createWarehouseBodyNameMax:()=>mqv,deleteWarehousePathIdRegExp:()=>fqv,getWarehouseByIdPathIdRegExp:()=>xqv,getWarehouseByIdResponseEntityIdMax:()=>yqv,getWarehouseByIdResponseIdMax:()=>gqv,getWarehouseByIdResponseNameMax:()=>Oqv,getWarehousesQueryLimitDefault:()=>lqv,getWarehousesQueryLimitMax:()=>dqv,getWarehousesResponseDataItemEntityIdMax:()=>cqv,getWarehousesResponseDataItemIdMax:()=>uqv,getWarehousesResponseDataItemNameMax:()=>pqv,updateWarehouseBodyNameMax:()=>Sqv,updateWarehousePathIdRegExp:()=>vqv,updateWarehouseResponseEntityIdMax:()=>bqv,updateWarehouseResponseIdMax:()=>hqv,updateWarehouseResponseNameMax:()=>zqv});var lqv=10,dqv=100,QBS=e.object({limit:e.number().min(1).max(dqv).default(lqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),JBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uqv=36,cqv=36,pqv=200,XBS=e.object({data:e.array(e.object({id:e.string().max(uqv),entity_id:e.string().max(cqv),name:e.string().max(pqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),eTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mqv=200,tTS=e.object({name:e.string().min(1).max(mqv).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),xqv=/^wh_[0-9a-f]{24}$/,nTS=e.object({id:e.stringFormat("resource-id",xqv).describe("Warehouse identifier (wh_ prefix).")}),sTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),gqv=36,yqv=36,Oqv=200,oTS=e.object({id:e.string().max(gqv),entity_id:e.string().max(yqv),name:e.string().max(Oqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),vqv=/^wh_[0-9a-f]{24}$/,iTS=e.object({id:e.stringFormat("resource-id",vqv).describe("Warehouse identifier (wh_ prefix).")}),aTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Sqv=200,rTS=e.object({name:e.string().min(1).max(Sqv).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),hqv=36,bqv=36,zqv=200,lTS=e.object({id:e.string().max(hqv),entity_id:e.string().max(bqv),name:e.string().max(zqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),fqv=/^wh_[0-9a-f]{24}$/,dTS=e.object({id:e.stringFormat("resource-id",fqv).describe("Warehouse identifier (wh_ prefix).")}),uTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var At={};W(At,{CreateWebhookBody:()=>pTS,CreateWebhookHeader:()=>cTS,DeleteWebhookHeader:()=>BTS,DeleteWebhookParams:()=>fTS,DeleteWebhookResponse:()=>TTS,GetWebhookByIdHeader:()=>OTS,GetWebhookByIdParams:()=>yTS,GetWebhookByIdResponse:()=>vTS,GetWebhookDeliveriesHeader:()=>NTS,GetWebhookDeliveriesParams:()=>RTS,GetWebhookDeliveriesQueryParams:()=>_TS,GetWebhookDeliveriesResponse:()=>MTS,GetWebhooksHeader:()=>xTS,GetWebhooksQueryParams:()=>mTS,GetWebhooksResponse:()=>gTS,RotateWebhookSecretHeader:()=>PTS,RotateWebhookSecretParams:()=>UTS,RotateWebhookSecretResponse:()=>CTS,TestWebhookHeader:()=>ETS,TestWebhookParams:()=>ITS,TestWebhookResponse:()=>DTS,UpdateWebhookBody:()=>bTS,UpdateWebhookHeader:()=>hTS,UpdateWebhookParams:()=>STS,UpdateWebhookResponse:()=>zTS,createWebhookBodyActiveDefault:()=>Iqv,createWebhookBodyDescriptionMax:()=>Tqv,createWebhookBodyUrlMax:()=>Bqv,deleteWebhookPathIdRegExp:()=>Wqv,getWebhookByIdPathIdRegExp:()=>Pqv,getWebhookByIdResponseDescriptionMax:()=>Fqv,getWebhookByIdResponseEntityIdMax:()=>wqv,getWebhookByIdResponseIdMax:()=>Cqv,getWebhookByIdResponseMetadataDefault:()=>kqv,getWebhookByIdResponseUrlMax:()=>Aqv,getWebhookDeliveriesPathIdRegExp:()=>uWv,getWebhookDeliveriesQueryLimitDefault:()=>cWv,getWebhookDeliveriesQueryLimitMax:()=>pWv,getWebhookDeliveriesResponseDataItemAttemptMax:()=>zWv,getWebhookDeliveriesResponseDataItemAttemptMin:()=>bWv,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>IWv,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>TWv,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>gWv,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>hWv,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>yWv,getWebhookDeliveriesResponseDataItemIdMax:()=>mWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>BWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>fWv,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>SWv,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>vWv,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>OWv,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>xWv,getWebhooksQueryLimitDefault:()=>Eqv,getWebhooksQueryLimitMax:()=>Dqv,getWebhooksResponseDataItemDescriptionMax:()=>Mqv,getWebhooksResponseDataItemEntityIdMax:()=>_qv,getWebhooksResponseDataItemIdMax:()=>Rqv,getWebhooksResponseDataItemMetadataDefault:()=>Uqv,getWebhooksResponseDataItemUrlMax:()=>Nqv,rotateWebhookSecretPathIdRegExp:()=>EWv,rotateWebhookSecretResponseDescriptionMax:()=>NWv,rotateWebhookSecretResponseEntityIdMax:()=>RWv,rotateWebhookSecretResponseIdMax:()=>DWv,rotateWebhookSecretResponseMetadataDefault:()=>UWv,rotateWebhookSecretResponseSecretMax:()=>MWv,rotateWebhookSecretResponseUrlMax:()=>_Wv,testWebhookPathIdRegExp:()=>Yqv,testWebhookResponseAttemptMax:()=>iWv,testWebhookResponseAttemptMin:()=>oWv,testWebhookResponseDurationMsMax:()=>dWv,testWebhookResponseDurationMsMin:()=>lWv,testWebhookResponseEntityIdMax:()=>Jqv,testWebhookResponseErrorMessageMax:()=>sWv,testWebhookResponseEventTypeMax:()=>Xqv,testWebhookResponseIdMax:()=>$qv,testWebhookResponseMaxAttemptsMax:()=>rWv,testWebhookResponseMaxAttemptsMin:()=>aWv,testWebhookResponseResponseBodyMax:()=>nWv,testWebhookResponseResponseStatusMax:()=>tWv,testWebhookResponseResponseStatusMin:()=>eWv,testWebhookResponseWebhookIdMax:()=>Qqv,updateWebhookBodyDescriptionMax:()=>Lqv,updateWebhookBodyUrlMax:()=>Hqv,updateWebhookPathIdRegExp:()=>jqv,updateWebhookResponseDescriptionMax:()=>Zqv,updateWebhookResponseEntityIdMax:()=>Vqv,updateWebhookResponseIdMax:()=>Gqv,updateWebhookResponseMetadataDefault:()=>qqv,updateWebhookResponseUrlMax:()=>Kqv});var cTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Bqv=2048,Tqv=500,Iqv=true,pTS=e.object({url:e.url().max(Bqv).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Tqv).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).describe("Events that trigger this webhook"),active:e.boolean().default(Iqv).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Eqv=10,Dqv=100,mTS=e.object({limit:e.number().min(1).max(Dqv).default(Eqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),xTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rqv=36,_qv=36,Nqv=2048,Mqv=500,Uqv={},gTS=e.object({data:e.array(e.object({id:e.string().max(Rqv),entity_id:e.string().max(_qv),url:e.string().max(Nqv),description:e.string().max(Mqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Uqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Pqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,yTS=e.object({id:e.stringFormat("resource-id",Pqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),OTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cqv=36,wqv=36,Aqv=2048,Fqv=500,kqv={},vTS=e.object({id:e.string().max(Cqv),entity_id:e.string().max(wqv),url:e.string().max(Aqv),description:e.string().max(Fqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(kqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),jqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,STS=e.object({id:e.stringFormat("resource-id",jqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hqv=2048,Lqv=500,bTS=e.object({url:e.url().max(Hqv).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Lqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Gqv=36,Vqv=36,Kqv=2048,Zqv=500,qqv={},zTS=e.object({id:e.string().max(Gqv),entity_id:e.string().max(Vqv),url:e.string().max(Kqv),description:e.string().max(Zqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(qqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Wqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,fTS=e.object({id:e.stringFormat("resource-id",Wqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),BTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TTS=e.object({success:e.boolean()}),Yqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,ITS=e.object({id:e.stringFormat("resource-id",Yqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ETS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$qv=36,Qqv=36,Jqv=36,Xqv=100,eWv=-2147483648,tWv=2147483647,nWv=1e4,sWv=2e3,oWv=-2147483648,iWv=2147483647,aWv=-2147483648,rWv=2147483647,lWv=-2147483648,dWv=2147483647,DTS=e.object({id:e.string().max($qv),webhook_id:e.string().max(Qqv),entity_id:e.string().max(Jqv),event_type:e.string().max(Xqv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(eWv).max(tWv).nullish(),response_body:e.string().max(nWv).nullish(),error_message:e.string().max(sWv).nullish(),attempt:e.number().min(oWv).max(iWv),max_attempts:e.number().min(aWv).max(rWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(lWv).max(dWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),uWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,RTS=e.object({id:e.stringFormat("resource-id",uWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),cWv=10,pWv=100,_TS=e.object({limit:e.number().min(1).max(pWv).default(cWv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),NTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mWv=36,xWv=36,gWv=36,yWv=100,OWv=-2147483648,vWv=2147483647,SWv=1e4,hWv=2e3,bWv=-2147483648,zWv=2147483647,fWv=-2147483648,BWv=2147483647,TWv=-2147483648,IWv=2147483647,MTS=e.object({data:e.array(e.object({id:e.string().max(mWv),webhook_id:e.string().max(xWv),entity_id:e.string().max(gWv),event_type:e.string().max(yWv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(OWv).max(vWv).nullish(),response_body:e.string().max(SWv).nullish(),error_message:e.string().max(hWv).nullish(),attempt:e.number().min(bWv).max(zWv),max_attempts:e.number().min(fWv).max(BWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(TWv).max(IWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),EWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,UTS=e.object({id:e.stringFormat("resource-id",EWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),DWv=36,RWv=36,_Wv=2048,NWv=500,MWv=64,UWv={},CTS=e.object({id:e.string().max(DWv),entity_id:e.string().max(RWv),url:e.string().max(_Wv),description:e.string().max(NWv).nullish(),secret:e.string().max(MWv),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(UWv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var Ft={};W(Ft,{CheckWLFeatureParams:()=>FTS,CheckWLFeatureResponse:()=>kTS,CheckWLLimitParams:()=>jTS,CheckWLLimitResponse:()=>HTS,GetCurrentWLSubscriptionResponse:()=>wTS,GetWLSubscriptionPlansResponse:()=>ATS,UpdateWLSubscriptionBillingEmailBody:()=>LTS,UpdateWLSubscriptionBillingEmailResponse:()=>GTS,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>PWv,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>CWv});var PWv=0,CWv=null,wTS=e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(PWv).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(CWv).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),ATS=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),FTS=e.object({feature:e.string().describe("Feature slug to check")}),kTS=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),jTS=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),HTS=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),LTS=e.object({billing_email:e.email().nullable()}),GTS=e.object({billing_email:e.string().nullable()});var kt={};W(kt,{GetCurrentWhiteLabelResponse:()=>VTS,GetMyWhiteLabelResponse:()=>KTS});var VTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),KTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var ZTS=125e3,jt=null,_e=null,Ht=false;function AWv(d){jt=d;}function Lt(d){_e=d,d==null&&(Ht=false);}function qTS(){Ht||(Ht=true,console.warn("[space-invoices] setAccountId() fallback is deprecated for SDK instance requests. Pass accountId via the SDK constructor or per-call config instead."));}function WTS(){return _e}function YTS(){if(!jt)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return jt}function $TS(d){if(!d)return {};if(d instanceof Headers){let c={};return d.forEach((g,E)=>{c[E]=g;}),c}if(Array.isArray(d)){let c={};for(let[g,E]of d)c[g]=E;return c}return d}function QTS(d,c){if(c==null||c<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,E=()=>{g.abort(d?.reason);};if(d?.aborted)return E(),{signal:g.signal,cleanup:()=>{}};let z=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${c}ms`));},c),_=()=>{clearTimeout(z),d?.removeEventListener("abort",E);};return d?.addEventListener("abort",E,{once:true}),g.signal.addEventListener("abort",_,{once:true}),{signal:g.signal,cleanup:_}}async function h(d,c){let{timeoutMs:g,sdkConfig:E,...z}=c??{},_=E??YTS(),ge=await Promise.resolve(_.getAccessToken()),ye=`${_.baseUrl}${d}`,pe={...$TS(z.headers)};_.clientName&&Object.assign(pe,Ne(_.clientName)),ge&&(pe.Authorization=`Bearer ${ge}`);let ze=pe["x-account-id"]||pe["X-Account-Id"]||_.accountId||null;!ze&&_e&&(E&&qTS(),ze=_e),ze&&!pe["x-account-id"]&&!pe["X-Account-Id"]&&(pe["x-account-id"]=ze);let fe=QTS(z.signal,g===void 0?_.requestTimeoutMs??ZTS:g);try{let ve=await fetch(ye,{...z,headers:pe,signal:fe.signal});ve.status===401&&_.onUnauthorized&&_.onUnauthorized(ve);let Te,SeS=ve.headers.get("content-length"),Be=ve.headers.get("content-type"),heS=ve.headers.get("content-disposition");if(SeS==="0"||ve.status===204)Te=void 0;else if(Be?.includes("application/pdf")||Be?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||Be?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||Be?.includes("text/csv")||Be?.includes("application/octet-stream")||Be?.includes("application/zip")||Be?.includes("application/x-zip-compressed")||Be?.includes("image/"))Te=await ve.blob();else if(Be?.includes("application/xml")||Be?.includes("text/xml"))Te=heS?.toLowerCase().includes("attachment")?await ve.blob():await ve.text();else if(Be?.includes("text/html"))Te=await ve.text();else try{Te=await ve.json();}catch{Te=void 0;}return {data:Te,status:ve.status,headers:ve.headers}}finally{fe.cleanup();}}var JTS=1e3;function XTS(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let c=d;return Array.isArray(c.data)&&!!c.pagination&&typeof c.pagination=="object"&&!Array.isArray(c.pagination)}function eIS(d){return Array.isArray(d)?"a bare array":d==null?String(d):typeof d!="object"?`a ${typeof d}`:Array.isArray(d.data)?"an object with a data array but no pagination object (e.g. { data, has_more } instead of { data, pagination: { next_cursor } })":"an object without a data array"}async function*tIS(d,c,g){let E=g?`listAll(${g})`:"listAll()",z=c?.next_cursor,_=0;for(;;){if(_>=1e3)throw new Error(`${E} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);_++;let ge=z,ye=await d({...c,next_cursor:ge});if(!XTS(ye))throw new Error(`${E} cannot paginate this method: its response is ${eIS(ye)}, not the expected { data: T[], pagination: { next_cursor } } shape. This usually means the endpoint does not support cursor-based pagination at all. Call the method directly (it already returns everything in one response) instead of iterating it with listAll().`);for(let pe of ye.data)yield pe;let he=ye.pagination.next_cursor;if(!he)return;if(he===ge)throw new Error(`${E} received the same cursor it just sent (${ge}) after ${_} page(s). The API's pagination cursor is not advancing, which means the server has a pagination bug, not that the result set ended. Stopping here without this error would silently return an incomplete list as if it were complete.`);z=he;}}var nIS=()=>"/account-webhooks",FWv=async(d,c)=>h(nIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},kWv=async(d,c)=>h(sIS(d),{...c,method:"GET"}),oIS=d=>`/account-webhooks/${d}`,jWv=async(d,c)=>h(oIS(d),{...c,method:"GET"}),iIS=d=>`/account-webhooks/${d}`,HWv=async(d,c,g)=>h(iIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),aIS=d=>`/account-webhooks/${d}`,LWv=async(d,c)=>h(aIS(d),{...c,method:"DELETE"}),rIS=d=>`/account-webhooks/${d}/test`,GWv=async(d,c)=>h(rIS(d),{...c,method:"POST"});var lIS=d=>`/account-webhooks/${d}/rotate-secret`,VWv=async(d,c)=>h(lIS(d),{...c,method:"POST"});async function dIS(d,c){return d(...c)}function ZWv(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let c={};return (d.entity_id||d.account_id||d.request_id)&&(c.headers={...d.entity_id?{"x-entity-id":d.entity_id}:{},...d.account_id?{"x-account-id":d.account_id}:{},...d.request_id?{"X-Request-Id":d.request_id}:{}}),d.signal&&(c.signal=d.signal),d.timeoutMs!==void 0&&(c.timeoutMs=d.timeoutMs),d.sdkConfig&&(c.sdkConfig=d.sdkConfig),c}function b(d,c){let g=async(...z)=>{let _=z[z.length-1],ge=_&&typeof _=="object"&&("entity_id"in _||"account_id"in _||"request_id"in _||"signal"in _||"timeoutMs"in _||"sdkConfig"in _||Object.keys(_).length===0),ye,he;ge?(ye=z.slice(0,-1),he=ZWv(_)):ye=[...z];let pe=Math.max(0,d.length-1);for(;ye.length<pe;)ye.push(void 0);ye.push(he);let ze=await dIS(d,ye);if(ze.status>=200&&ze.status<300)return ze.data;let fe=new Error(`API error: ${ze.status}`);throw fe.status=ze.status,fe.data=ze.data,fe};return c===void 0?g:Object.assign(((...z)=>{let _=[...z];return _[c]??={},g(..._)}),{__sdkOptionsIndex:c})}function X(d){return Object.assign(async g=>{let{entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he,...pe}=g||{},ze=ZWv({entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he}),fe=await d(pe,ze);if(fe.status===200)return fe.data;let ve=new Error(`API error: ${fe.status}`);throw ve.status=fe.status,ve.data=fe.data,ve},{__sdkListMethod:true})}function KWv(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}function q(d,c){let g=Object.entries(d).map(([E,z])=>typeof z!="function"?[E,z]:[E,(..._)=>{let ge=c(),ye=_[_.length-1],he=z;if(he.__sdkListMethod){let pe=_[0];_[0]=pe&&typeof pe=="object"?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else if(typeof he.__sdkOptionsIndex=="number"){let pe=_[he.__sdkOptionsIndex];_[he.__sdkOptionsIndex]=KWv(pe)?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else KWv(ye)?_[_.length-1]={...ye,sdkConfig:ge}:_.push({sdkConfig:ge});return z(..._)}]);return Object.fromEntries(g)}var Gt={create:b(FWv,1),list:X(kWv),get:b(jWv,1),update:b(HWv,2),delete:b(LWv,1),testAccountWebhook:b(GWv,1),rotateAccountWebhookSecret:b(VWv,1)};var uIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/activities?${g}`:"/activities"},qWv=async(d,c)=>h(uIS(d),{...c,method:"GET"});var Vt={list:X(qWv)};var cIS=d=>`/advance-invoices/${d}/nav/retry`,WWv=async(d,c)=>h(cIS(d),{...c,method:"POST"}),pIS=d=>`/advance-invoices/${d}/nav/reconcile`,YWv=async(d,c)=>h(pIS(d),{...c,method:"POST"}),mIS=d=>`/advance-invoices/${d}/nav/annulment`,$Wv=async(d,c,g)=>h(mIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xIS=d=>`/advance-invoices/shareable/${d}`,QWv=async(d,c)=>h(xIS(d),{...c,method:"GET"}),gIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/html?${E}`:`/advance-invoices/shareable/${d}/html`},JWv=async(d,c,g)=>h(gIS(d,c),{...g,method:"GET"}),yIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/pdf?${E}`:`/advance-invoices/shareable/${d}/pdf`},XWv=async(d,c,g)=>h(yIS(d,c),{...g,method:"GET"}),OIS=d=>`/advance-invoices/shareable/${d}/eslog`,e6v=async(d,c)=>h(OIS(d),{...c,method:"GET"}),vIS=()=>"/advance-invoices",t6v=async(d,c)=>h(vIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},n6v=async(d,c)=>h(SIS(d),{...c,method:"GET"}),hIS=()=>"/advance-invoices/custom",s6v=async(d,c)=>h(hIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/${d}?${E}`:`/advance-invoices/${d}`},o6v=async(d,c,g)=>h(bIS(d,c),{...g,method:"GET"}),zIS=d=>`/advance-invoices/${d}`,i6v=async(d,c,g)=>h(zIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fIS=d=>`/advance-invoices/${d}/versions`,a6v=async(d,c)=>h(fIS(d),{...c,method:"GET"}),BIS=(d,c)=>`/advance-invoices/${d}/versions/${c}`,r6v=async(d,c,g)=>h(BIS(d,c),{...g,method:"GET"}),TIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},l6v=async(d,c,g)=>h(TIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),IIS=d=>`/advance-invoices/${d}/void`,d6v=async(d,c,g)=>h(IIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Kt={retryAdvanceInvoiceNav:b(WWv,1),reconcileAdvanceInvoiceNav:b(YWv,1),annulAdvanceInvoiceNav:b($Wv,2),getShareableAdvanceInvoice:b(QWv,1),getShareableAdvanceInvoiceHtml:b(JWv,2),getShareableAdvanceInvoicePdf:b(XWv,2),getShareableAdvanceInvoiceEslog:b(e6v,1),create:b(t6v,1),list:X(n6v),createCustom:b(s6v,1),get:b(o6v,2),update:b(i6v,2),getVersions:b(a6v,1),getVersion:b(r6v,2),renderAdvanceInvoicePreview:b(l6v,2),void:b(d6v,2)};var EIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/business-units?${g}`:"/business-units"},u6v=async(d,c)=>h(EIS(d),{...c,method:"GET"}),DIS=()=>"/business-units",c6v=async(d,c)=>h(DIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/business-units/${d}?${E}`:`/business-units/${d}`},p6v=async(d,c,g)=>h(RIS(d,c),{...g,method:"GET"}),_IS=d=>`/business-units/${d}`,m6v=async(d,c,g)=>h(_IS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),NIS=d=>`/business-units/${d}`,x6v=async(d,c)=>h(NIS(d),{...c,method:"DELETE"});var Zt={list:X(u6v),create:b(c6v,1),get:b(p6v,2),update:b(m6v,2),delete:b(x6v,1)};var MIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},g6v=async(d,c)=>h(MIS(d),{...c,method:"GET"}),UIS=()=>"/company-registry/countries",y6v=async d=>h(UIS(),{...d,method:"GET"});var qt={searchCompanyRegistry:b(g6v,1),list:b(y6v,0)};var PIS=d=>`/credit-notes/${d}/nav/retry`,O6v=async(d,c)=>h(PIS(d),{...c,method:"POST"}),CIS=d=>`/credit-notes/${d}/nav/reconcile`,v6v=async(d,c)=>h(CIS(d),{...c,method:"POST"}),wIS=d=>`/credit-notes/${d}/nav/annulment`,S6v=async(d,c,g)=>h(wIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),AIS=d=>`/credit-notes/shareable/${d}`,h6v=async(d,c)=>h(AIS(d),{...c,method:"GET"}),FIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/html?${E}`:`/credit-notes/shareable/${d}/html`},b6v=async(d,c,g)=>h(FIS(d,c),{...g,method:"GET"}),kIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/pdf?${E}`:`/credit-notes/shareable/${d}/pdf`},z6v=async(d,c,g)=>h(kIS(d,c),{...g,method:"GET"}),jIS=d=>`/credit-notes/shareable/${d}/eslog`,f6v=async(d,c)=>h(jIS(d),{...c,method:"GET"}),HIS=d=>`/credit-notes/${d}/ksef/recover`,B6v=async(d,c)=>h(HIS(d),{...c,method:"POST"}),LIS=d=>`/credit-notes/${d}/ksef`,T6v=async(d,c)=>h(LIS(d),{...c,method:"GET"}),GIS=d=>`/credit-notes/${d}/ksef/submit`,I6v=async(d,c)=>h(GIS(d),{...c,method:"POST"}),VIS=d=>`/credit-notes/${d}/ksef/upo`,E6v=async(d,c)=>h(VIS(d),{...c,method:"GET"}),KIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},D6v=async(d,c,g)=>h(KIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),ZIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},R6v=async(d,c)=>h(ZIS(d),{...c,method:"GET"}),qIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},_6v=async(d,c,g)=>h(qIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),WIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/${d}?${E}`:`/credit-notes/${d}`},N6v=async(d,c,g)=>h(WIS(d,c),{...g,method:"GET"}),YIS=d=>`/credit-notes/${d}`,M6v=async(d,c,g)=>h(YIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$IS=d=>`/credit-notes/${d}/xrechnung`,U6v=async(d,c)=>h($IS(d),{...c,method:"GET"}),QIS=d=>`/credit-notes/${d}/zugferd`,P6v=async(d,c)=>h(QIS(d),{...c,method:"GET"}),JIS=d=>`/credit-notes/${d}/versions`,C6v=async(d,c)=>h(JIS(d),{...c,method:"GET"}),XIS=(d,c)=>`/credit-notes/${d}/versions/${c}`,w6v=async(d,c,g)=>h(XIS(d,c),{...g,method:"GET"}),eES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},A6v=async(d,c,g)=>h(eES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),tES=d=>`/credit-notes/${d}/fiscalize`,F6v=async(d,c)=>h(tES(d),{...c,method:"POST"}),nES=d=>`/credit-notes/${d}/void`,k6v=async(d,c,g)=>h(nES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});function j6v(d){let c=b(d);function g(E,z,_){let ge=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(pe=>pe in z),ye=ge?void 0:z,he=ge?{...z,..._}:_;return c(E,ye??{},he??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Wt={retryCreditNoteNav:b(O6v,1),reconcileCreditNoteNav:b(v6v,1),annulCreditNoteNav:b(S6v,2),getShareableCreditNote:b(h6v,1),getShareableCreditNoteHtml:b(b6v,2),getShareableCreditNotePdf:b(z6v,2),getShareableCreditNoteEslog:b(f6v,1),recoverCreditNoteFromKsef:b(B6v,1),getCreditNoteKsefState:b(T6v,1),submitCreditNoteToKsef:b(I6v,1),getCreditNoteKsefUpo:b(E6v,1),create:j6v(D6v),list:X(R6v),createCustom:j6v(_6v),get:b(N6v,2),update:b(M6v,2),downloadCreditNoteXRechnung:b(U6v,1),downloadCreditNoteZugferd:b(P6v,1),getVersions:b(C6v,1),getVersion:b(w6v,2),renderCreditNotePreview:b(A6v,2),fiscalizeCreditNote:b(F6v,1),void:b(k6v,2)};var sES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},H6v=async(d,c)=>h(sES(d),{...c,method:"GET"});var Yt={getExchangeRate:b(H6v,1)};var oES=()=>"/customers",L6v=async(d,c)=>h(oES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/customers?${g}`:"/customers"},G6v=async(d,c)=>h(iES(d),{...c,method:"GET"}),aES=d=>`/customers/${d}`,V6v=async(d,c)=>h(aES(d),{...c,method:"GET"}),rES=d=>`/customers/${d}`,K6v=async(d,c,g)=>h(rES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lES=d=>`/customers/${d}`,Z6v=async(d,c)=>h(lES(d),{...c,method:"DELETE"}),dES=d=>`/customers/${d}/restore`,q6v=async(d,c)=>h(dES(d),{...c,method:"POST"}),uES=d=>`/customers/${d}/permanent`,W6v=async(d,c)=>h(uES(d),{...c,method:"DELETE"});var $t={create:b(L6v,1),list:X(G6v),get:b(V6v,1),update:b(K6v,2),delete:b(Z6v,1),restoreCustomer:b(q6v,1),permanentDeleteCustomer:b(W6v,1)};var cES=d=>`/delivery-notes/shareable/${d}`,Y6v=async(d,c)=>h(cES(d),{...c,method:"GET"}),pES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/html?${E}`:`/delivery-notes/shareable/${d}/html`},$6v=async(d,c,g)=>h(pES(d,c),{...g,method:"GET"}),mES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/pdf?${E}`:`/delivery-notes/shareable/${d}/pdf`},Q6v=async(d,c,g)=>h(mES(d,c),{...g,method:"GET"}),xES=()=>"/delivery-notes",J6v=async(d,c)=>h(xES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},X6v=async(d,c)=>h(gES(d),{...c,method:"GET"}),yES=()=>"/delivery-notes/custom",e7v=async(d,c)=>h(yES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),OES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/${d}?${E}`:`/delivery-notes/${d}`},t7v=async(d,c,g)=>h(OES(d,c),{...g,method:"GET"}),vES=d=>`/delivery-notes/${d}`,n7v=async(d,c,g)=>h(vES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SES=d=>`/delivery-notes/${d}/versions`,s7v=async(d,c)=>h(SES(d),{...c,method:"GET"}),hES=(d,c)=>`/delivery-notes/${d}/versions/${c}`,o7v=async(d,c,g)=>h(hES(d,c),{...g,method:"GET"}),bES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},i7v=async(d,c,g)=>h(bES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),zES=d=>`/delivery-notes/${d}/void`,a7v=async(d,c,g)=>h(zES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fES=d=>`/delivery-notes/${d}/sign`,r7v=async(d,c,g)=>h(fES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BES=d=>`/delivery-notes/${d}/quantities`,l7v=async(d,c,g)=>h(BES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Qt={getShareableDeliveryNote:b(Y6v,1),getShareableDeliveryNoteHtml:b($6v,2),getShareableDeliveryNotePdf:b(Q6v,2),create:b(J6v,1),list:X(X6v),createCustom:b(e7v,1),get:b(t7v,2),update:b(n7v,2),getVersions:b(s7v,1),getVersion:b(o7v,2),renderDeliveryNotePreview:b(i7v,2),void:b(a7v,2),signDeliveryNote:b(r7v,2),setDeliveryNoteQuantities:b(l7v,2)};var TES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},d7v=async(d,c)=>h(TES(d),{...c,method:"GET"}),IES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},u7v=async(d,c,g)=>h(IES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),EES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/finalize?${E}`:`/documents/${d}/finalize`},c7v=async(d,c,g,E)=>h(EES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),DES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/fiscalize?${E}`:`/documents/${d}/fiscalize`},p7v=async(d,c,g,E)=>h(DES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),RES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/register-output?${E}`:`/documents/${d}/register-output`},m7v=async(d,c,g)=>h(RES(d,c),{...g,method:"POST"}),_ES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}?${E}`:`/documents/${d}`},x7v=async(d,c,g)=>h(_ES(d,c),{...g,method:"DELETE"}),NES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/restore?${E}`:`/documents/${d}/restore`},g7v=async(d,c,g)=>h(NES(d,c),{...g,method:"POST"}),MES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/permanent?${E}`:`/documents/${d}/permanent`},y7v=async(d,c,g)=>h(MES(d,c),{...g,method:"DELETE"}),UES=d=>`/documents/${d}/send`,O7v=async(d,c,g)=>h(UES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PES=d=>`/documents/${d}/share`,v7v=async(d,c)=>h(PES(d),{...c,method:"POST"}),CES=d=>`/documents/${d}/share`,S7v=async(d,c)=>h(CES(d),{...c,method:"GET"}),wES=d=>`/documents/${d}/share`,h7v=async(d,c)=>h(wES(d),{...c,method:"DELETE"});var Jt=b(p7v,3);function AES(d){return !!d&&typeof d=="object"&&"type"in d}function Xt(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}var FES=async(d,c,g,E)=>{if(Xt(c))return Jt(d,void 0,void 0,c);if(AES(c))return Jt(d,void 0,c,g);let z=Xt(g)?void 0:g,_=Xt(g)?g:E;return Jt(d,c,z,_)},en={getNextNumber:b(d7v,1),calculateDocumentPreview:b(u7v,2),finalizeDocument:b(c7v,3),fiscalizeDocument:FES,registerDocumentOutput:b(m7v,2),delete:b(x7v,2),restoreDocument:b(g7v,2),permanentDeleteDocument:b(y7v,2),sendDocument:b(O7v,2),shareDocument:b(v7v,1),getShareableId:b(S7v,1),unshareDocument:b(h7v,1)};var kES=()=>"/e-invoicing/settings",b7v=async d=>h(kES(),{...d,method:"GET"}),jES=()=>"/e-invoicing/settings",z7v=async(d,c)=>h(jES(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HES=()=>"/e-invoicing/enrollment/sync",f7v=async d=>h(HES(),{...d,method:"POST"}),LES=()=>"/e-invoicing/enrollment/verification-link",B7v=async d=>h(LES(),{...d,method:"POST"}),GES=()=>"/e-invoicing/enrollment/authorize",T7v=async(d,c)=>h(GES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VES=()=>"/e-invoicing/enrollment/disconnect",I7v=async d=>h(VES(),{...d,method:"POST"}),KES=()=>"/e-invoicing/france/directory/lookup",E7v=async(d,c)=>h(KES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},D7v=async(d,c)=>h(ZES(d),{...c,method:"GET"}),qES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/e-invoicing/received-documents/${d}/download?${E}`:`/e-invoicing/received-documents/${d}/download`},R7v=async(d,c,g)=>h(qES(d,c),{...g,method:"GET"}),WES=d=>`/e-invoicing/received-documents/${d}/accept`,_7v=async(d,c)=>h(WES(d),{...c,method:"POST"}),YES=d=>`/e-invoicing/received-documents/${d}/lifecycle`,N7v=async(d,c,g)=>h(YES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$ES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},M7v=async(d,c)=>h($ES(d),{...c,method:"GET"}),QES=d=>`/e-invoicing/reporting-records/${d}/retry`,U7v=async(d,c)=>h(QES(d),{...c,method:"POST"}),JES=()=>"/e-invoicing/supplier",P7v=async(d,c)=>h(JES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XES=()=>"/e-invoicing/supplier",C7v=async d=>h(XES(),{...d,method:"GET"});var eDS=()=>"/e-invoicing/recipients/check",w7v=async(d,c)=>h(eDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),tDS=()=>"/e-invoicing/customer-search",A7v=async(d,c)=>h(tDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),nDS=d=>`/e-invoicing/documents/${d}/send`,F7v=async(d,c,g)=>h(nDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sDS=(d,c)=>`/e-invoicing/send/${d}/${c}`,k7v=async(d,c,g,E)=>h(sDS(d,c),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),oDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},j7v=async(d,c)=>h(oDS(d),{...c,method:"GET"}),iDS=d=>`/e-invoicing/submissions/${d}`,tn=async(d,c)=>h(iDS(d),{...c,method:"GET"}),aDS=d=>`/e-invoicing/submissions/${d}/retry`,nn=async(d,c)=>h(aDS(d),{...c,method:"POST"});var sn={getEInvoicingSubmission:b(tn,1),retryEInvoicingSubmission:b(nn,1),list:b(b7v,0),update:b(z7v,1),syncEInvoicingEnrollment:b(f7v,0),create:b(B7v,0),createEInvoicingEnrollmentAuthorization:b(T7v,1),disconnectEInvoicingEnrollment:b(I7v,0),lookupFranceEInvoicingDirectory:b(E7v,1),listReceivedEInvoices:b(D7v,1),downloadReceivedEInvoice:b(R7v,2),acceptReceivedEInvoice:b(_7v,1),sendReceivedEInvoiceLifecycle:b(N7v,2),listFrenchEReportingRecords:b(M7v,1),retryFrenchEReportingRecord:b(U7v,1),registerEInvoicingSupplier:b(P7v,1),getEInvoicingSupplier:b(C7v,0),checkEInvoicingRecipient:b(w7v,1),searchEInvoicingCustomer:b(A7v,1),sendEInvoicingDocument:b(F7v,2),sendEInvoice:b(k7v,3),listEInvoicingSubmissions:b(j7v,1),get:b(tn,1),retryEInvoicingSubmissionById:b(nn,1)};var rDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/validate?${E}`:`/eslog/${d}/validate`},H7v=async(d,c,g)=>h(rDS(d,c),{...g,method:"POST"}),lDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/download?${E}`:`/eslog/${d}/download`},L7v=async(d,c,g)=>h(lDS(d,c),{...g,method:"GET"});var on={validate:b(H7v,2),download:b(L7v,2)};var dDS=()=>"/email/send",G7v=async(d,c)=>h(dDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var an={sendEmail:b(G7v,1)};var uDS=d=>`/entities/${d}/nav`,V7v=async(d,c)=>h(uDS(d),{...c,method:"GET"}),cDS=d=>`/entities/${d}/nav`,K7v=async(d,c,g)=>h(cDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pDS=d=>`/entities/${d}/nav/credentials`,Z7v=async(d,c,g)=>h(pDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),mDS=d=>`/entities/${d}/nav/credentials`,q7v=async(d,c)=>h(mDS(d),{...c,method:"DELETE"}),xDS=d=>`/entities/${d}/nav/credentials/verify`,W7v=async(d,c)=>h(xDS(d),{...c,method:"POST"}),gDS=d=>`/entities/${d}/ksef`,Y7v=async(d,c)=>h(gDS(d),{...c,method:"GET"}),yDS=d=>`/entities/${d}/ksef`,$7v=async(d,c,g)=>h(yDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),ODS=d=>`/entities/${d}/ksef/credentials`,Q7v=async(d,c,g)=>h(ODS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vDS=d=>`/entities/${d}/ksef/credentials`,J7v=async(d,c)=>h(vDS(d),{...c,method:"DELETE"}),SDS=()=>"/entities",X7v=async(d,c)=>h(SDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities?${g}`:"/entities"},e9v=async(d,c)=>h(hDS(d),{...c,method:"GET"}),bDS=d=>`/entities/${d}`,t9v=async(d,c)=>h(bDS(d),{...c,method:"GET"}),zDS=d=>`/entities/${d}`,n9v=async(d,c,g)=>h(zDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fDS=d=>`/entities/${d}/enable`,s9v=async(d,c)=>h(fDS(d),{...c,method:"POST"}),BDS=d=>`/entities/${d}/disable`,o9v=async(d,c)=>h(BDS(d),{...c,method:"POST"}),TDS=d=>`/entities/${d}/email-sender`,i9v=async(d,c)=>h(TDS(d),{...c,method:"GET"}),IDS=d=>`/entities/${d}/email-sender`,a9v=async(d,c,g)=>h(IDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),EDS=d=>`/entities/${d}/email-sender`,r9v=async(d,c)=>h(EDS(d),{...c,method:"DELETE"}),DDS=d=>`/entities/${d}/email-sender/recheck`,l9v=async(d,c)=>h(DDS(d),{...c,method:"POST"});var rn={retrieveEntityNavSettings:b(V7v,1),modifyEntityNavSettings:b(K7v,2),storeEntityNavCredentials:b(Z7v,2),removeEntityNavCredentials:b(q7v,1),verifyEntityNavCredentials:b(W7v,1),getEntityKsefSetup:b(Y7v,1),putEntityKsefSettings:b($7v,2),putEntityKsefCredential:b(Q7v,2),removeEntityKsefCredential:b(J7v,1),create:b(X7v,1),list:X(e9v),get:b(t9v,1),update:b(n9v,2),enableEntity:b(s9v,1),disableEntity:b(o9v,1),getEntityEmailSender:b(i9v,1),putEntityEmailSender:b(a9v,2),deleteEntityEmailSender:b(r9v),recheckEntityEmailSender:b(l9v,1)};var RDS=()=>"/entities/api-keys",d9v=async d=>h(RDS(),{...d,method:"GET"}),_DS=()=>"/entities/api-keys",u9v=async(d,c)=>h(_DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),NDS=d=>`/entities/api-keys/${d}`,c9v=async(d,c)=>h(NDS(d),{...c,method:"DELETE"}),MDS=()=>"/entities/api-keys/revoke-integration",p9v=async d=>h(MDS(),{...d,method:"POST"});var ln={listEntityApiKeys:b(d9v,0),create:b(u9v,1),delete:b(c9v,1),revokeEntityApiKeyIntegration:b(p9v,0)};var UDS=()=>"/entities/invitations",m9v=async d=>h(UDS(),{...d,method:"GET"}),PDS=d=>`/entities/invitations/${d}`,x9v=async(d,c)=>h(PDS(d),{...c,method:"GET"}),CDS=d=>`/entities/invitations/${d}`,g9v=async(d,c)=>h(CDS(d),{...c,method:"DELETE"}),wDS=d=>`/entities/invitations/${d}/resend`,y9v=async(d,c)=>h(wDS(d),{...c,method:"POST"}),ADS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},O9v=async(d,c)=>h(ADS(d),{...c,method:"GET"}),FDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},v9v=async(d,c,g)=>h(FDS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var dn={listEntityInvitations:b(m9v,0),getEntityInvitation:b(x9v,1),cancelEntityInvitation:b(g9v,1),resendEntityInvitation:b(y9v,1),preview:b(O9v,1),acceptEntityInvitation:b(v9v,2)};var kDS=()=>"/stats/query",S9v=async(d,c)=>h(kDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var un={queryEntityStats:b(S9v,1)};var jDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},h9v=async(d,c)=>h(jDS(d),{...c,method:"GET"}),HDS=()=>"/entities/users",b9v=async(d,c)=>h(HDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LDS=()=>"/entities/users/access",z9v=async d=>h(LDS(),{...d,method:"GET"}),GDS=d=>`/entities/users/${d}`,f9v=async(d,c,g)=>h(GDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VDS=d=>`/entities/users/${d}`,B9v=async(d,c)=>h(VDS(d),{...c,method:"DELETE"}),KDS=d=>`/entities/users/${d}/token`,T9v=async(d,c,g)=>h(KDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var cn={list:X(h9v),addEntityUser:b(b9v,1),getAccess:b(z9v,0),update:b(f9v,2),removeEntityUser:b(B9v,1),generateEntityUserToken:b(T9v,2)};var ZDS=d=>`/estimates/shareable/${d}`,I9v=async(d,c)=>h(ZDS(d),{...c,method:"GET"}),qDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/html?${E}`:`/estimates/shareable/${d}/html`},E9v=async(d,c,g)=>h(qDS(d,c),{...g,method:"GET"}),WDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/pdf?${E}`:`/estimates/shareable/${d}/pdf`},D9v=async(d,c,g)=>h(WDS(d,c),{...g,method:"GET"}),YDS=d=>`/estimates/shareable/${d}/eslog`,R9v=async(d,c)=>h(YDS(d),{...c,method:"GET"}),$DS=()=>"/estimates",_9v=async(d,c)=>h($DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates?${g}`:"/estimates"},N9v=async(d,c)=>h(QDS(d),{...c,method:"GET"}),JDS=()=>"/estimates/custom",M9v=async(d,c)=>h(JDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/${d}?${E}`:`/estimates/${d}`},U9v=async(d,c,g)=>h(XDS(d,c),{...g,method:"GET"}),eRS=d=>`/estimates/${d}`,P9v=async(d,c,g)=>h(eRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),tRS=d=>`/estimates/${d}/versions`,C9v=async(d,c)=>h(tRS(d),{...c,method:"GET"}),nRS=(d,c)=>`/estimates/${d}/versions/${c}`,w9v=async(d,c,g)=>h(nRS(d,c),{...g,method:"GET"}),sRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},A9v=async(d,c,g)=>h(sRS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var pn={getShareableEstimate:b(I9v,1),getShareableEstimateHtml:b(E9v,2),getShareableEstimatePdf:b(D9v,2),getShareableEstimateEslog:b(R9v,1),create:b(_9v,1),list:X(N9v),createCustom:b(M9v,1),get:b(U9v,2),update:b(P9v,2),getVersions:b(C9v,1),getVersion:b(w9v,2),renderEstimatePreview:b(A9v,2)};var oRS=()=>"/expenses",F9v=async(d,c)=>h(oRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses?${g}`:"/expenses"},k9v=async(d,c)=>h(iRS(d),{...c,method:"GET"}),aRS=()=>"/expenses/custom",j9v=async(d,c)=>h(aRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),rRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},H9v=async(d,c)=>h(rRS(d),{...c,method:"GET"}),lRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},L9v=async(d,c)=>h(lRS(d),{...c,method:"GET"}),dRS=()=>"/expenses/recognition/settings",G9v=async d=>h(dRS(),{...d,method:"GET"}),uRS=()=>"/expenses/recognition/settings",V9v=async(d,c)=>h(uRS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cRS=()=>"/expenses/recognition/backfill",K9v=async(d,c)=>h(cRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),pRS=()=>"/expenses/recognitions",Z9v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pRS(),{...c,method:"POST",body:g})},mRS=d=>`/expenses/recognitions/${d}`,q9v=async(d,c)=>h(mRS(d),{...c,method:"GET"}),xRS=d=>`/expenses/recognitions/${d}/retry`,W9v=async(d,c)=>h(xRS(d),{...c,method:"POST"}),gRS=()=>"/expenses/inbound-email",Y9v=async d=>h(gRS(),{...d,method:"GET"}),yRS=()=>"/expenses/inbound-email",$9v=async d=>h(yRS(),{...d,method:"POST"}),ORS=()=>"/expenses/inbound-email",Q9v=async d=>h(ORS(),{...d,method:"DELETE"}),vRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},J9v=async(d,c)=>h(vRS(d),{...c,method:"GET"}),SRS=()=>"/expenses/imports/shareable/preview",X9v=async(d,c)=>h(SRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hRS=()=>"/expenses/imports/shareable",e8v=async(d,c)=>h(hRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bRS=d=>`/expenses/${d}/recognition`,t8v=async(d,c)=>h(bRS(d),{...c,method:"GET"}),zRS=d=>`/expenses/${d}`,n8v=async(d,c)=>h(zRS(d),{...c,method:"GET"}),fRS=d=>`/expenses/${d}`,s8v=async(d,c,g)=>h(fRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BRS=d=>`/expenses/${d}`,o8v=async(d,c)=>h(BRS(d),{...c,method:"DELETE"}),TRS=d=>`/expenses/${d}/void`,i8v=async(d,c)=>h(TRS(d),{...c,method:"POST"}),IRS=d=>`/expenses/${d}/restore`,a8v=async(d,c)=>h(IRS(d),{...c,method:"POST"}),ERS=d=>`/expenses/${d}/attachments`,r8v=async(d,c,g)=>{let E=new FormData;return c.file!==void 0&&E.append("file",c.file),h(ERS(d),{...g,method:"POST",body:E})},DRS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/expenses/${d}/attachments?${E}`:`/expenses/${d}/attachments`},l8v=async(d,c,g)=>h(DRS(d,c),{...g,method:"GET"}),RRS=(d,c)=>`/expenses/${d}/attachments/${c}`,d8v=async(d,c,g)=>h(RRS(d,c),{...g,method:"DELETE"}),_RS=d=>`/expenses/${d}/payments`,u8v=async(d,c)=>h(_RS(d),{...c,method:"GET"}),NRS=d=>`/expenses/${d}/payments`,c8v=async(d,c,g)=>h(NRS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var mn={create:b(F9v,1),list:X(k9v),createCustom:b(j9v,1),exportExpenses:b(H9v,1),getExpenseCategoryReport:b(L9v,1),getRecognitionSettings:b(G9v,0),updateRecognitionSettings:b(V9v,1),backfillExpenseRecognition:b(K9v,1),createRecognition:b(Z9v,1),getRecognition:b(q9v,1),retryRecognition:b(W9v,1),getExpenseInboundEmail:b(Y9v,0),rotateExpenseInboundEmail:b($9v,0),disableExpenseInboundEmail:b(Q9v,0),listExpenseInboundEmailMessages:b(J9v,1),previewImportFromShareableLink:b(X9v,1),importFromShareableLink:b(e8v,1),getLatestRecognition:b(t8v,1),get:b(n8v,1),update:b(s8v,2),delete:b(o8v,1),void:b(i8v,1),restoreExpense:b(a8v,1),uploadExpenseAttachment:b(r8v,2),getExpenseAttachments:b(l8v,2),deleteExpenseAttachment:b(d8v,2),getExpensePayments:b(u8v,1),createExpensePayment:b(c8v,2)};var MRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},p8v=async(d,c)=>h(MRS(d),{...c,method:"GET"}),URS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},m8v=async(d,c)=>h(URS(d),{...c,method:"GET"}),PRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},x8v=async(d,c)=>h(PRS(d),{...c,method:"GET"}),CRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},g8v=async(d,c)=>h(CRS(d),{...c,method:"GET"}),wRS=()=>"/documents/export/pdf",y8v=async(d,c)=>h(wRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ARS=d=>`/documents/export/pdf/${d}`,O8v=async(d,c)=>h(ARS(d),{...c,method:"GET"}),FRS=d=>`/documents/export/pdf/${d}/download`,v8v=async(d,c)=>h(FRS(d),{...c,method:"GET"}),kRS=()=>"/documents/export/eslog",S8v=async(d,c)=>h(kRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jRS=d=>`/documents/export/eslog/${d}`,h8v=async(d,c)=>h(jRS(d),{...c,method:"GET"}),HRS=d=>`/documents/export/eslog/${d}/download`,b8v=async(d,c)=>h(HRS(d),{...c,method:"GET"});var xn={exportDocuments:b(p8v,1),exportSalesPerItem:b(m8v,1),exportInventory:b(x8v,1),exportRevenueByCategory:b(g8v,1),startPdfExport:b(y8v,1),getPdfStatus:b(O8v,1),downloadPdfExport:b(v8v,1),startEslogExport:b(S8v,1),getEslogStatus:b(h8v,1),downloadEslogExport:b(b8v,1)};var LRS=()=>"/files",z8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),g.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&g.append("document_id",d.document_id),d.account_payable_id!==void 0&&g.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&g.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&g.append("expense_id",d.expense_id),h(LRS(),{...c,method:"POST",body:g})},GRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/files?${g}`:"/files"},f8v=async(d,c)=>h(GRS(d),{...c,method:"GET"}),VRS=d=>`/files/${d}`,B8v=async(d,c)=>h(VRS(d),{...c,method:"GET"}),KRS=d=>`/files/${d}`,T8v=async(d,c)=>h(KRS(d),{...c,method:"DELETE"});var gn={uploadFile:b(z8v,1),list:X(f8v),get:b(B8v,1),delete:b(T8v,1)};var ZRS=()=>"/fiscalization/fina/settings/certificate",I8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(ZRS(),{...c,method:"POST",body:g})},qRS=()=>"/fiscalization/fina/settings/certificate",E8v=async d=>h(qRS(),{...d,method:"GET"}),WRS=()=>"/fiscalization/fina/settings/certificate",D8v=async d=>h(WRS(),{...d,method:"DELETE"});var yn={uploadFinaCertificate:b(I8v,1),getFinaCertificate:b(E8v,0),delete:b(D8v,0)};var YRS=d=>`/fiscalization/fina/premises/${d}/devices`,R8v=async(d,c)=>h(YRS(d),{...c,method:"GET"}),$RS=d=>`/fiscalization/fina/premises/${d}/devices`,_8v=async(d,c,g)=>h($RS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),QRS=d=>`/fiscalization/fina/devices/${d}`,N8v=async(d,c)=>h(QRS(d),{...c,method:"GET"}),JRS=d=>`/fiscalization/fina/devices/${d}`,M8v=async(d,c,g)=>h(JRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XRS=d=>`/fiscalization/fina/devices/${d}`,U8v=async(d,c)=>h(XRS(d),{...c,method:"DELETE"});var On={listFinaDevices:b(R8v,1),registerFinaDevice:b(_8v,2),getFinaDevice:b(N8v,1),update:b(M8v,2),delete:b(U8v,1)};var e_S=()=>"/fiscalization/fina/premises",P8v=async d=>h(e_S(),{...d,method:"GET"}),t_S=()=>"/fiscalization/fina/premises",C8v=async(d,c)=>h(t_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n_S=d=>`/fiscalization/fina/premises/${d}`,w8v=async(d,c)=>h(n_S(d),{...c,method:"GET"}),s_S=d=>`/fiscalization/fina/premises/${d}`,A8v=async(d,c,g)=>h(s_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),o_S=d=>`/fiscalization/fina/premises/${d}`,F8v=async(d,c)=>h(o_S(d),{...c,method:"DELETE"});var vn={listFinaPremises:b(P8v,0),create:b(C8v,1),getFinaPremise:b(w8v,1),update:b(A8v,2),delete:b(F8v,1)};var i_S=()=>"/fiscalization/fina/settings",k8v=async d=>h(i_S(),{...d,method:"GET"}),a_S=()=>"/fiscalization/fina/settings",j8v=async(d,c)=>h(a_S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Sn={list:b(k8v,0),update:b(j8v,1)};var r_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},H8v=async(d,c)=>h(r_S(d),{...c,method:"GET"}),l_S=()=>"/financial-categories",L8v=async(d,c)=>h(l_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),d_S=d=>`/financial-categories/${d}`,G8v=async(d,c,g)=>h(d_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),u_S=d=>`/financial-categories/${d}`,V8v=async(d,c)=>h(u_S(d),{...c,method:"DELETE"}),c_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},K8v=async(d,c)=>h(c_S(d),{...c,method:"GET"}),p_S=()=>"/financial-categories/document-items/batch",Z8v=async(d,c)=>h(p_S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),m_S=d=>`/financial-categories/document-items/${d}`,q8v=async(d,c,g)=>h(m_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var hn={list:X(H8v),create:b(L8v,1),update:b(G8v,2),delete:b(V8v,1),getRevenueByFinancialCategory:b(K8v,1),updateDocumentItemFinancialCategories:b(Z8v,1),updateDocumentItemFinancialCategory:b(q8v,2)};var x_S=()=>"/fiscalization/furs/settings/certificate",W8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(x_S(),{...c,method:"POST",body:g})},g_S=()=>"/fiscalization/furs/settings/certificate",Y8v=async d=>h(g_S(),{...d,method:"GET"}),y_S=()=>"/fiscalization/furs/settings/certificate",$8v=async d=>h(y_S(),{...d,method:"DELETE"});var bn={uploadFursCertificate:b(W8v,1),getFursCertificate:b(Y8v,0),delete:b($8v,0)};var O_S=d=>`/fiscalization/furs/premises/${d}/devices`,Q8v=async(d,c)=>h(O_S(d),{...c,method:"GET"}),v_S=d=>`/fiscalization/furs/premises/${d}/devices`,J8v=async(d,c,g)=>h(v_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S_S=d=>`/fiscalization/furs/devices/${d}`,X8v=async(d,c)=>h(S_S(d),{...c,method:"GET"}),h_S=d=>`/fiscalization/furs/devices/${d}`,eYv=async(d,c,g)=>h(h_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var zn={listFursElectronicDevices:b(Q8v,1),registerFursElectronicDevice:b(J8v,2),getFursElectronicDevice:b(X8v,1),update:b(eYv,2)};var b_S=()=>"/fiscalization/furs/internal-act/report.pdf",tYv=async d=>h(b_S(),{...d,method:"GET"}),z_S=()=>"/fiscalization/furs/internal-act/report.docx",nYv=async d=>h(z_S(),{...d,method:"GET"});var fn={generateFursInternalActPdf:b(tYv,0),generateFursInternalActDocx:b(nYv,0)};var f_S=()=>"/fiscalization/furs/premises",sYv=async d=>h(f_S(),{...d,method:"GET"}),B_S=d=>`/fiscalization/furs/premises/${d}`,oYv=async(d,c)=>h(B_S(d),{...c,method:"GET"}),T_S=d=>`/fiscalization/furs/premises/${d}`,iYv=async(d,c,g)=>h(T_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),I_S=()=>"/fiscalization/furs/premises/real-estate",aYv=async(d,c)=>h(I_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E_S=()=>"/fiscalization/furs/premises/movable",rYv=async(d,c)=>h(E_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),D_S=d=>`/fiscalization/furs/premises/${d}/close`,lYv=async(d,c)=>h(D_S(d),{...c,method:"POST"});var Bn={listFursBusinessPremises:b(sYv,0),getFursBusinessPremise:b(oYv,1),update:b(iYv,2),registerFursRealEstatePremise:b(aYv,1),registerFursMovablePremise:b(rYv,1),closeFursBusinessPremise:b(lYv,1)};var R_S=()=>"/fiscalization/furs/settings",dYv=async d=>h(R_S(),{...d,method:"GET"}),__S=()=>"/fiscalization/furs/settings",uYv=async(d,c)=>h(__S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Tn={list:b(dYv,0),update:b(uYv,1)};var N_S=()=>"/health/live",cYv=async d=>h(N_S(),{...d,method:"GET"}),M_S=()=>"/health/ready",pYv=async d=>h(M_S(),{...d,method:"GET"}),U_S=()=>"/health",mYv=async d=>h(U_S(),{...d,method:"GET"});var In={livenessCheck:b(cYv,0),readinessCheck:b(pYv,0),healthCheck:b(mYv,0)};var P_S=d=>`/invoices/${d}/nav/retry`,xYv=async(d,c)=>h(P_S(d),{...c,method:"POST"}),C_S=d=>`/invoices/${d}/nav/reconcile`,gYv=async(d,c)=>h(C_S(d),{...c,method:"POST"}),w_S=d=>`/invoices/${d}/nav/annulment`,yYv=async(d,c,g)=>h(w_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),A_S=d=>`/invoices/shareable/${d}`,OYv=async(d,c)=>h(A_S(d),{...c,method:"GET"}),F_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/html?${E}`:`/invoices/shareable/${d}/html`},vYv=async(d,c,g)=>h(F_S(d,c),{...g,method:"GET"}),k_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/pdf?${E}`:`/invoices/shareable/${d}/pdf`},SYv=async(d,c,g)=>h(k_S(d,c),{...g,method:"GET"}),j_S=d=>`/invoices/shareable/${d}/eslog`,hYv=async(d,c)=>h(j_S(d),{...c,method:"GET"}),H_S=d=>`/invoices/${d}/ksef/recover`,bYv=async(d,c)=>h(H_S(d),{...c,method:"POST"}),L_S=d=>`/invoices/${d}/ksef`,zYv=async(d,c)=>h(L_S(d),{...c,method:"GET"}),G_S=d=>`/invoices/${d}/ksef/submit`,fYv=async(d,c)=>h(G_S(d),{...c,method:"POST"}),V_S=d=>`/invoices/${d}/ksef/upo`,BYv=async(d,c)=>h(V_S(d),{...c,method:"GET"}),K_S=()=>"/invoices",TYv=async(d,c)=>h(K_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Z_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices?${g}`:"/invoices"},IYv=async(d,c)=>h(Z_S(d),{...c,method:"GET"}),q_S=()=>"/invoices/custom",EYv=async(d,c)=>h(q_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),W_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/${d}?${E}`:`/invoices/${d}`},DYv=async(d,c,g)=>h(W_S(d,c),{...g,method:"GET"}),Y_S=d=>`/invoices/${d}`,RYv=async(d,c,g)=>h(Y_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$_S=d=>`/invoices/${d}/credit-options`,_Yv=async(d,c)=>h($_S(d),{...c,method:"GET"}),Q_S=d=>`/invoices/${d}/xrechnung`,NYv=async(d,c)=>h(Q_S(d),{...c,method:"GET"}),J_S=d=>`/invoices/${d}/zugferd`,MYv=async(d,c)=>h(J_S(d),{...c,method:"GET"}),X_S=d=>`/invoices/${d}/versions`,UYv=async(d,c)=>h(X_S(d),{...c,method:"GET"}),eNS=(d,c)=>`/invoices/${d}/versions/${c}`,PYv=async(d,c,g)=>h(eNS(d,c),{...g,method:"GET"}),tNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},CYv=async(d,c,g)=>h(tNS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nNS=d=>`/invoices/${d}/void`,wYv=async(d,c,g)=>h(nNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sNS=d=>`/invoices/${d}/fiscalize`,AYv=async(d,c)=>h(sNS(d),{...c,method:"POST"}),oNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/html?${E}`:`/documents/${d}/html`},FYv=async(d,c,g)=>h(oNS(d,c),{...g,method:"GET"}),iNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/pdf?${E}`:`/documents/${d}/pdf`},kYv=async(d,c,g)=>h(iNS(d,c),{...g,method:"GET"});function En(d,c){let g=URL.createObjectURL(d),E=document.createElement("a");E.href=g,E.download=c,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(g);}var jYv=b(kYv,2),aNS=Object.assign(async(d,c,g,E)=>{let z=await jYv(d,g,E);En(z,c);},{__sdkOptionsIndex:3}),Dn={retryInvoiceNav:b(xYv,1),reconcileInvoiceNav:b(gYv,1),annulInvoiceNav:b(yYv,2),getShareableInvoice:b(OYv,1),getShareableInvoiceHtml:b(vYv,2),getShareableInvoicePdf:b(SYv,2),getShareableInvoiceEslog:b(hYv,1),recoverInvoiceFromKsef:b(bYv,1),getInvoiceKsefState:b(zYv,1),submitInvoiceToKsef:b(fYv,1),getInvoiceKsefUpo:b(BYv,1),create:b(TYv,1),list:X(IYv),createCustom:b(EYv,1),get:b(DYv,2),update:b(RYv,2),getCreditOptions:b(_Yv,1),downloadInvoiceXRechnung:b(NYv,1),downloadInvoiceZugferd:b(MYv,1),getVersions:b(UYv,1),getVersion:b(PYv,2),renderInvoicePreview:b(CYv,2),void:b(wYv,2),fiscalizeInvoice:b(AYv,1),renderHtml:b(FYv,2),renderPdf:jYv,downloadPdf:aNS};var rNS=()=>"/items",HYv=async(d,c)=>h(rNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items?${g}`:"/items"},LYv=async(d,c)=>h(lNS(d),{...c,method:"GET"}),dNS=()=>"/items/categories",GYv=async d=>h(dNS(),{...d,method:"GET"}),uNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},VYv=async(d,c)=>h(uNS(d),{...c,method:"GET"}),cNS=()=>"/items/import/preview",KYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(cNS(),{...c,method:"POST",body:g})},pNS=()=>"/items/import",ZYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pNS(),{...c,method:"POST",body:g})},mNS=d=>`/items/${d}`,qYv=async(d,c,g)=>h(mNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xNS=d=>`/items/${d}`,WYv=async(d,c)=>h(xNS(d),{...c,method:"DELETE"}),gNS=d=>`/items/${d}/restore`,YYv=async(d,c)=>h(gNS(d),{...c,method:"POST"}),yNS=d=>`/items/${d}/permanent`,$Yv=async(d,c)=>h(yNS(d),{...c,method:"DELETE"}),ONS=d=>`/items/${d}/inventory`,QYv=async(d,c)=>h(ONS(d),{...c,method:"GET"}),vNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/items/${d}/inventory/movements?${E}`:`/items/${d}/inventory/movements`},JYv=async(d,c,g)=>h(vNS(d,c),{...g,method:"GET"}),SNS=d=>`/items/${d}/inventory/movements`,XYv=async(d,c,g)=>h(SNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hNS=(d,c)=>`/items/${d}/inventory/movements/${c}`,e$v=async(d,c,g)=>h(hNS(d,c),{...g,method:"DELETE"});var Rn={create:b(HYv,1),list:X(LYv),categories:b(GYv,0),getItemsImportTemplate:b(VYv,1),preview:b(KYv,1),importItems:b(ZYv,1),update:b(qYv,2),delete:b(WYv,1),restoreItem:b(YYv,1),permanentDeleteItem:b($Yv,1),getItemInventory:b(QYv,1),getItemInventoryMovements:b(JYv,2),createItemInventoryMovement:b(XYv,2),deleteItemInventoryMovement:b(e$v,2)};var bNS=()=>"/legacy-migration/auth",t$v=async(d,c)=>h(bNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/legacy-migration/organizations/${d}?${E}`:`/legacy-migration/organizations/${d}`},n$v=async(d,c,g)=>h(zNS(d,c),{...g,method:"GET"}),fNS=()=>"/legacy-migration/jobs",s$v=async(d,c)=>h(fNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BNS=()=>"/legacy-migration/jobs",o$v=async d=>h(BNS(),{...d,method:"GET"}),TNS=d=>`/legacy-migration/jobs/${d}`,i$v=async(d,c)=>h(TNS(d),{...c,method:"GET"});var _n={legacyMigrationAuth:b(t$v,1),getLegacyMigrationOrganization:b(n$v,2),create:b(s$v,1),listMigrationJobs:b(o$v,0),getMigrationJob:b(i$v,1)};var INS=()=>"/locale/detect",a$v=async d=>h(INS(),{...d,method:"GET"});var Nn={detectLocale:b(a$v,0)};var ENS=()=>"/order-integrations/shopify/authorize",r$v=async(d,c)=>h(ENS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DNS=()=>"/order-integrations/woocommerce/authorize",l$v=async(d,c)=>h(DNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RNS=()=>"/order-integrations/magento/authorize",d$v=async(d,c)=>h(RNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),_NS=d=>`/order-integrations/magento/authorizations/${d}`,u$v=async(d,c)=>h(_NS(d),{...c,method:"GET"}),NNS=()=>"/order-integrations/shopify/resume-install",c$v=async(d,c)=>h(NNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MNS=d=>`/order-integrations/${d}/promote-shopify-billing`,p$v=async(d,c)=>h(MNS(d),{...c,method:"POST"}),UNS=d=>`/order-integrations/${d}/sync-shopify`,m$v=async(d,c,g)=>h(UNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PNS=d=>`/order-integrations/${d}/sync`,x$v=async(d,c,g)=>h(PNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),CNS=()=>"/order-integrations/custom/connect",g$v=async(d,c)=>h(CNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wNS=d=>`/order-integrations/${d}/custom/rotate-secret`,y$v=async(d,c)=>h(wNS(d),{...c,method:"POST"}),ANS=d=>`/order-integrations/${d}/orders`,O$v=async(d,c,g)=>h(ANS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FNS=()=>"/order-integrations",v$v=async(d,c)=>h(FNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),kNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},S$v=async(d,c)=>h(kNS(d),{...c,method:"GET"}),jNS=d=>`/order-integrations/${d}`,h$v=async(d,c)=>h(jNS(d),{...c,method:"GET"}),HNS=d=>`/order-integrations/${d}`,b$v=async(d,c,g)=>h(HNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),LNS=d=>`/order-integrations/${d}`,z$v=async(d,c)=>h(LNS(d),{...c,method:"DELETE"});var Mn={authorizeShopify:b(r$v,1),authorizeWooCommerce:b(l$v,1),authorizeMagento:b(d$v,1),getMagentoAuthorization:b(u$v,1),resumeShopifyInstall:b(c$v,1),promoteShopifyBilling:b(p$v,1),syncShopifyOrders:b(m$v,2),syncOrderIntegration:b(x$v,2),connectCustomStore:b(g$v,1),rotateCustomStoreSecret:b(y$v,1),pushCustomStoreOrder:b(O$v,2),create:b(v$v,1),list:X(S$v),get:b(h$v,1),update:b(b$v,2),delete:b(z$v,1)};var GNS=()=>"/orders",f$v=async(d,c)=>h(GNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/orders?${g}`:"/orders"},B$v=async(d,c)=>h(VNS(d),{...c,method:"GET"}),KNS=d=>`/orders/${d}`,T$v=async(d,c)=>h(KNS(d),{...c,method:"GET"}),ZNS=d=>`/orders/${d}`,I$v=async(d,c,g)=>h(ZNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),qNS=d=>`/orders/${d}`,E$v=async(d,c)=>h(qNS(d),{...c,method:"DELETE"}),WNS=d=>`/orders/${d}/process`,D$v=async(d,c)=>h(WNS(d),{...c,method:"POST"}),YNS=d=>`/orders/${d}/cancel`,R$v=async(d,c)=>h(YNS(d),{...c,method:"POST"}),$NS=d=>`/orders/${d}/reissue`,_$v=async(d,c)=>h($NS(d),{...c,method:"POST"});var Un={create:b(f$v,1),list:X(B$v),get:b(T$v,1),update:b(I$v,2),delete:b(E$v,1),processOrder:b(D$v,1),cancelOrder:b(R$v,1),reissueOrder:b(_$v,1)};var QNS=()=>"/payment-reminders/send",N$v=async(d,c)=>h(QNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},M$v=async(d,c)=>h(JNS(d),{...c,method:"GET"});var Pn={sendPaymentReminder:b(N$v,1),list:X(M$v)};var XNS=()=>"/payments",U$v=async(d,c)=>h(XNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),eMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payments?${g}`:"/payments"},P$v=async(d,c)=>h(eMS(d),{...c,method:"GET"}),tMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payments/${d}?${E}`:`/payments/${d}`},C$v=async(d,c,g)=>h(tMS(d,c),{...g,method:"GET"}),nMS=d=>`/payments/${d}`,w$v=async(d,c,g)=>h(nMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sMS=d=>`/payments/${d}`,A$v=async(d,c)=>h(sMS(d),{...c,method:"DELETE"}),oMS=d=>`/payments/${d}/restore`,F$v=async(d,c)=>h(oMS(d),{...c,method:"POST"}),iMS=d=>`/payments/${d}/permanent`,k$v=async(d,c)=>h(iMS(d),{...c,method:"DELETE"}),aMS=()=>"/bank-imports",j$v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&g.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&g.append("column_mapping",d.column_mapping),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),h(aMS(),{...c,method:"POST",body:g})},rMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},H$v=async(d,c)=>h(rMS(d),{...c,method:"GET"}),lMS=d=>`/bank-imports/${d}`,L$v=async(d,c)=>h(lMS(d),{...c,method:"GET"}),dMS=d=>`/bank-imports/${d}/summary`,G$v=async(d,c)=>h(dMS(d),{...c,method:"GET"}),uMS=d=>`/bank-imports/${d}/match`,V$v=async(d,c)=>h(uMS(d),{...c,method:"POST"}),cMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},K$v=async(d,c)=>h(cMS(d),{...c,method:"GET"}),pMS=d=>`/bank-transactions/${d}`,Z$v=async(d,c)=>h(pMS(d),{...c,method:"GET"}),mMS=d=>`/bank-transactions/${d}/link`,q$v=async(d,c,g)=>h(mMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xMS=d=>`/bank-transactions/${d}/confirm-fee`,W$v=async(d,c,g)=>h(xMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),gMS=d=>`/bank-transactions/${d}/ignore`,Y$v=async(d,c)=>h(gMS(d),{...c,method:"POST"}),yMS=d=>`/bank-transactions/${d}/unlink`,$$v=async(d,c)=>h(yMS(d),{...c,method:"POST"});var Cn={create:b(U$v,1),list:X(P$v),get:b(C$v,2),update:b(w$v,2),delete:b(A$v,1),restorePayment:b(F$v,1),permanentDeletePayment:b(k$v,1),importBankStatement:b(j$v,1),listBankImports:b(H$v,1),getBankImport:b(L$v,1),getBankImportSummary:b(G$v,1),rematchBankImport:b(V$v,1),listBankTransactions:b(K$v,1),getBankTransaction:b(Z$v,1),linkBankTransaction:b(q$v,2),confirmBankTransactionFee:b(W$v,2),ignoreBankTransaction:b(Y$v,1),unlinkBankTransaction:b($$v,1)};var OMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},Q$v=async(d,c)=>h(OMS(d),{...c,method:"GET"}),vMS=()=>"/pos/tables",J$v=async(d,c)=>h(vMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SMS=d=>`/pos/tables/${d}`,X$v=async(d,c,g)=>h(SMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hMS=d=>`/pos/tables/${d}`,eQv=async(d,c)=>h(hMS(d),{...c,method:"DELETE"}),bMS=d=>`/pos/tabs/${d}/items`,tQv=async(d,c,g)=>h(bMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),zMS=d=>`/pos/tabs/${d}/claim`,nQv=async(d,c,g)=>h(zMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fMS=d=>`/pos/tabs/${d}/release`,sQv=async(d,c,g)=>h(fMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BMS=d=>`/pos/tabs/${d}/close`,oQv=async(d,c,g)=>h(BMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),TMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},iQv=async(d,c)=>h(TMS(d),{...c,method:"GET"}),IMS=()=>"/pos/tabs",aQv=async(d,c)=>h(IMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),EMS=d=>`/pos/tabs/${d}`,rQv=async(d,c)=>h(EMS(d),{...c,method:"GET"}),DMS=d=>`/pos/tabs/${d}`,lQv=async(d,c,g)=>h(DMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),RMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/pos/tabs/${d}?${E}`:`/pos/tabs/${d}`},dQv=async(d,c,g)=>h(RMS(d,c),{...g,method:"DELETE"}),_MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},uQv=async(d,c)=>h(_MS(d),{...c,method:"GET"}),NMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},cQv=async(d,c)=>h(NMS(d),{...c,method:"GET"}),MMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},pQv=async(d,c)=>h(MMS(d),{...c,method:"GET"}),UMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},mQv=async(d,c)=>h(UMS(d),{...c,method:"GET"}),PMS=()=>"/pos/operators",xQv=async d=>h(PMS(),{...d,method:"GET"}),CMS=()=>"/pos/operators/enrol",gQv=async(d,c)=>h(CMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wMS=()=>"/pos/operators/switch",yQv=async(d,c)=>h(wMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),AMS=d=>`/pos/operators/${d}/pin`,OQv=async(d,c,g)=>h(AMS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FMS=d=>`/pos/operators/${d}/pin`,vQv=async(d,c)=>h(FMS(d),{...c,method:"DELETE"});var kMS=b(dQv,2),wn={listTables:X(Q$v),createTable:b(J$v,1),updateTable:b(X$v,2),deleteTable:b(eQv,1),appendTabItems:b(tQv,2),claimTab:b(nQv,2),releaseTab:b(sQv,2),closeTab:b(oQv,2),listTabs:X(iQv),createTab:b(aQv,1),getTab:b(rQv,1),updateTab:b(lQv,2),cancelTab:Object.assign((...d)=>kMS(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:b(uQv,1),exportPosMonthlyReport:b(cQv,1),dailyReport:b(pQv,1),getPosMonthlyReport:b(mQv,1),listOperators:b(xQv,0),enrolPosOperator:b(gQv,1),switchOperator:b(yQv,1),setOperatorPin:b(OQv,2),clearOperatorPin:b(vQv,1)};var jMS=()=>"/fiscalization/pt/atcud-series",SQv=async(d,c)=>h(jMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},hQv=async(d,c)=>h(HMS(d),{...c,method:"GET"}),LMS=d=>`/fiscalization/pt/atcud-series/${d}`,bQv=async(d,c)=>h(LMS(d),{...c,method:"GET"}),GMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},zQv=async(d,c)=>h(GMS(d),{...c,method:"POST"}),VMS=d=>`/fiscalization/pt/atcud-series/${d}/retire`,fQv=async(d,c)=>h(VMS(d),{...c,method:"POST"});var An={create:b(SQv,1),list:X(hQv),get:b(bQv,1),getActive:b(zQv,1),retirePtAtcudSeries:b(fQv,1)};var KMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},BQv=async(d,c)=>h(KMS(d),{...c,method:"GET"});var Fn={generateReport:b(BQv,1)};var ZMS=d=>`/purchase-orders/shareable/${d}`,TQv=async(d,c)=>h(ZMS(d),{...c,method:"GET"}),qMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/html?${E}`:`/purchase-orders/shareable/${d}/html`},IQv=async(d,c,g)=>h(qMS(d,c),{...g,method:"GET"}),WMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/pdf?${E}`:`/purchase-orders/shareable/${d}/pdf`},EQv=async(d,c,g)=>h(WMS(d,c),{...g,method:"GET"}),YMS=()=>"/purchase-orders",DQv=async(d,c)=>h(YMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},RQv=async(d,c)=>h($MS(d),{...c,method:"GET"}),QMS=d=>`/purchase-orders/${d}`,_Qv=async(d,c)=>h(QMS(d),{...c,method:"GET"}),JMS=d=>`/purchase-orders/${d}`,NQv=async(d,c,g)=>h(JMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XMS=d=>`/purchase-orders/${d}/versions`,MQv=async(d,c)=>h(XMS(d),{...c,method:"GET"}),eUS=(d,c)=>`/purchase-orders/${d}/versions/${c}`,UQv=async(d,c,g)=>h(eUS(d,c),{...g,method:"GET"}),tUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},PQv=async(d,c,g)=>h(tUS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nUS=d=>`/purchase-orders/${d}/void`,CQv=async(d,c,g)=>h(nUS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var kn={getShareablePurchaseOrder:b(TQv,1),getShareablePurchaseOrderHtml:b(IQv,2),getShareablePurchaseOrderPdf:b(EQv,2),create:b(DQv,1),list:X(RQv),get:b(_Qv,1),update:b(NQv,2),getVersions:b(MQv,1),getVersion:b(UQv,2),renderPurchaseOrderPreview:b(PQv,2),void:b(CQv,2)};var sUS=()=>"/recurring-invoices",wQv=async(d,c)=>h(sUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),oUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},AQv=async(d,c)=>h(oUS(d),{...c,method:"GET"}),iUS=d=>`/recurring-invoices/${d}`,FQv=async(d,c)=>h(iUS(d),{...c,method:"GET"}),aUS=d=>`/recurring-invoices/${d}`,kQv=async(d,c,g)=>h(aUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),rUS=d=>`/recurring-invoices/${d}`,jQv=async(d,c)=>h(rUS(d),{...c,method:"DELETE"}),lUS=d=>`/recurring-invoices/${d}/restore`,HQv=async(d,c)=>h(lUS(d),{...c,method:"POST"}),dUS=d=>`/recurring-invoices/${d}/permanent`,LQv=async(d,c)=>h(dUS(d),{...c,method:"DELETE"}),uUS=d=>`/recurring-invoices/${d}/pause`,GQv=async(d,c)=>h(uUS(d),{...c,method:"POST"}),cUS=d=>`/recurring-invoices/${d}/resume`,VQv=async(d,c)=>h(cUS(d),{...c,method:"POST"}),pUS=d=>`/recurring-invoices/${d}/trigger`,KQv=async(d,c)=>h(pUS(d),{...c,method:"POST"});var jn={create:b(wQv,1),list:X(AQv),get:b(FQv,1),update:b(kQv,2),delete:b(jQv,1),restoreRecurringInvoice:b(HQv,1),permanentDeleteRecurringInvoice:b(LQv,1),pauseRecurringInvoice:b(GQv,1),resumeRecurringInvoice:b(VQv,1),triggerRecurringInvoice:b(KQv,1)};var mUS=()=>"/revenue-recognition/settings",ZQv=async d=>h(mUS(),{...d,method:"GET"}),xUS=()=>"/revenue-recognition/settings",qQv=async(d,c)=>h(xUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gUS=()=>"/revenue-recognition/backfill",WQv=async(d,c)=>h(gUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},YQv=async(d,c)=>h(yUS(d),{...c,method:"GET"}),OUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},$Qv=async(d,c)=>h(OUS(d),{...c,method:"GET"}),vUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},QQv=async(d,c)=>h(vUS(d),{...c,method:"GET"}),SUS=d=>`/revenue-recognition/documents/${d}`,JQv=async(d,c)=>h(SUS(d),{...c,method:"GET"});var Hn={getSettings:b(ZQv,0),updateSettings:b(qQv,1),backfill:b(WQv,1),getReport:b(YQv,1),getDetails:b($Qv,1),listLines:b(QQv,1),getDocumentSchedule:b(JQv,1)};var hUS=()=>"/stripe-app/marketplace-authorize",XQv=async(d,c)=>h(hUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bUS=()=>"/stripe-app/connect",eJv=async(d,c)=>h(bUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zUS=()=>"/stripe-app/entity-connection",tJv=async d=>h(zUS(),{...d,method:"GET"}),fUS=()=>"/stripe-app/entity-connection",nJv=async d=>h(fUS(),{...d,method:"DELETE"}),BUS=()=>"/stripe-app/entity-settings",sJv=async d=>h(BUS(),{...d,method:"GET"}),TUS=()=>"/stripe-app/entity-settings",oJv=async(d,c)=>h(TUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Ln={stripeAppMarketplaceAuthorize:b(XQv,1),stripeAppConnect:b(eJv,1),stripeAppEntityGetConnection:b(tJv,0),stripeAppEntityDisconnect:b(nJv,0),stripeAppEntityGetSettings:b(sJv,0),stripeAppEntityUpdateSettings:b(oJv,1)};var IUS=()=>"/subscriptions",iJv=async d=>h(IUS(),{...d,method:"GET"}),EUS=()=>"/subscriptions/spending-limit",aJv=async(d,c)=>h(EUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DUS=()=>"/subscriptions/check-entity-limit",rJv=async d=>h(DUS(),{...d,method:"GET"});var Gn={getCurrent:b(iJv,0),update:b(aJv,1),checkEntityLimit:b(rJv,0)};var RUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},lJv=async(d,c)=>h(RUS(d),{...c,method:"GET"});var Vn={listUsTaxRateEstimates:b(lJv,1)};var _US=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/employees?${g}`:"/employees"},dJv=async(d,c)=>h(_US(d),{...c,method:"GET"}),NUS=()=>"/employees",uJv=async(d,c)=>h(NUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MUS=d=>`/employees/${d}`,cJv=async(d,c)=>h(MUS(d),{...c,method:"GET"}),UUS=d=>`/employees/${d}`,pJv=async(d,c,g)=>h(UUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PUS=d=>`/employees/${d}`,mJv=async(d,c)=>h(PUS(d),{...c,method:"DELETE"}),CUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},xJv=async(d,c,g)=>h(CUS(d,c),{...g,method:"GET"}),wUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},gJv=async(d,c,g,E)=>h(wUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),AUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},yJv=async(d,c)=>h(AUS(d),{...c,method:"GET"}),FUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},OJv=async(d,c)=>h(FUS(d),{...c,method:"GET"}),kUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payroll/parameters/${d}?${E}`:`/payroll/parameters/${d}`},vJv=async(d,c,g,E)=>h(kUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),jUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},SJv=async(d,c)=>h(jUS(d),{...c,method:"GET"}),HUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},hJv=async(d,c)=>h(HUS(d),{...c,method:"GET"}),LUS=()=>"/tax-reports/payments",bJv=async(d,c)=>h(LUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),GUS=d=>`/tax-reports/payments/${d}`,zJv=async(d,c,g)=>h(GUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VUS=d=>`/tax-reports/payments/${d}`,fJv=async(d,c)=>h(VUS(d),{...c,method:"DELETE"}),KUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},BJv=async(d,c)=>h(KUS(d),{...c,method:"GET"}),ZUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},TJv=async(d,c)=>h(ZUS(d),{...c,method:"POST"}),qUS=()=>"/tax-reports/si/profile",IJv=async d=>h(qUS(),{...d,method:"GET"}),WUS=()=>"/tax-reports/si/profile",EJv=async(d,c)=>h(WUS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),YUS=()=>"/tax-reports/si/yearly/normirani/review",DJv=async(d,c)=>h(YUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$US=()=>"/tax-reports/si/yearly/normirani/export",RJv=async(d,c)=>h($US(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QUS=()=>"/tax-reports/si/accounting/vod/export",_Jv=async(d,c)=>h(QUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JUS=()=>"/tax-reports/si/accounting/minimax/export",NJv=async(d,c)=>h(JUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XUS=()=>"/tax-reports/si/accounting/vasco/export",MJv=async(d,c)=>h(XUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ePS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},UJv=async(d,c)=>h(ePS(d),{...c,method:"GET"}),tPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},PJv=async(d,c)=>h(tPS(d),{...c,method:"GET"}),nPS=()=>"/vat-returns",CJv=async(d,c)=>h(nPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},wJv=async(d,c)=>h(sPS(d),{...c,method:"GET"}),oPS=d=>`/vat-returns/${d}`,AJv=async(d,c)=>h(oPS(d),{...c,method:"GET"}),iPS=d=>`/vat-returns/${d}/recompute`,FJv=async(d,c)=>h(iPS(d),{...c,method:"POST"}),aPS=d=>`/vat-returns/${d}/approve`,kJv=async(d,c)=>h(aPS(d),{...c,method:"POST"}),rPS=d=>`/vat-returns/${d}/submit`,jJv=async(d,c,g)=>h(rPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lPS=d=>`/vat-returns/${d}/reopen`,HJv=async(d,c)=>h(lPS(d),{...c,method:"POST"}),dPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/vat-returns/${d}/export?${E}`:`/vat-returns/${d}/export`},LJv=async(d,c,g)=>h(dPS(d,c),{...g,method:"GET"}),uPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/filings?${g}`:"/filings"},GJv=async(d,c)=>h(uPS(d),{...c,method:"GET"}),cPS=d=>`/filings/${d}/complete`,VJv=async(d,c,g)=>h(cPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pPS=d=>`/filings/${d}/reopen`,KJv=async(d,c)=>h(pPS(d),{...c,method:"POST"}),mPS=d=>`/filings/${d}/dismiss`,ZJv=async(d,c,g)=>h(mPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},qJv=async(d,c)=>h(xPS(d),{...c,method:"GET"});var Kn={listEmployees:b(dJv,1),registerEmployee:b(uJv,1),getEmployee:b(cJv,1),modifyEmployee:b(pJv,2),archiveEmployee:b(mJv,1),getEmployeeAttendance:b(xJv,2),replaceEmployeeAttendance:b(gJv,3),resolvePayrollParameters:b(yJv,1),getPayrollParameterHistory:b(OJv,1),setPayrollParameterOverride:b(vJv,3),getTaxLiabilityReport:b(SJv,1),list:X(hJv),create:b(bJv,1),update:b(zJv,2),delete:b(fJv,1),getEuOssReport:b(BJv,1),generateKirExport:b(TJv,1),getSloveniaTaxProfile:b(IJv,0),updateSloveniaTaxProfile:b(EJv,1),reviewSloveniaYearlyNormiraniReport:b(DJv,1),exportSloveniaYearlyNormiraniReport:b(RJv,1),exportSloveniaVodXml:b(_Jv,1),exportSloveniaMinimaxXml:b(NJv,1),exportSloveniaVascoXml:b(MJv,1),exportQuickbooksCsv:b(UJv,1),preview:b(PJv,1),draftVatReturn:b(CJv,1),listVatReturns:b(wJv,1),getVatReturn:b(AJv,1),recomputeVatReturn:b(FJv,1),approveVatReturn:b(kJv,1),submitVatReturn:b(jJv,2),reopenVatReturn:b(HJv,1),exportVatReturn:b(LJv,2),listFilings:b(GJv,1),completeFiling:b(VJv,2),reopenFiling:b(KJv,1),dismissFiling:b(ZJv,2),listAccountFilingsCalendar:b(qJv,1)};var gPS=()=>"/taxes",WJv=async(d,c)=>h(gPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/taxes?${g}`:"/taxes"},YJv=async(d,c)=>h(yPS(d),{...c,method:"GET"}),OPS=d=>`/taxes/${d}`,$Jv=async(d,c,g)=>h(OPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vPS=d=>`/taxes/${d}`,QJv=async(d,c,g)=>h(vPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SPS=d=>`/taxes/${d}`,JJv=async(d,c)=>h(SPS(d),{...c,method:"DELETE"}),hPS=d=>`/taxes/${d}/restore`,XJv=async(d,c)=>h(hPS(d),{...c,method:"POST"}),bPS=d=>`/taxes/${d}/permanent`,eXv=async(d,c)=>h(bPS(d),{...c,method:"DELETE"});var Zn={create:b(WJv,1),list:X(YJv),update:b($Jv,2),replaceTax:b(QJv,2),delete:b(JJv,1),restoreTax:b(XJv,1),permanentDeleteTax:b(eXv,1)};var zPS=()=>"/fiscalization/ticketbai/settings",tXv=async d=>h(zPS(),{...d,method:"GET"}),fPS=()=>"/fiscalization/ticketbai/settings",nXv=async(d,c)=>h(fPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BPS=()=>"/fiscalization/ticketbai/settings/certificate",sXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(BPS(),{...c,method:"POST",body:g})},TPS=d=>`/fiscalization/ticketbai/records/${d}`,oXv=async(d,c)=>h(TPS(d),{...c,method:"GET"}),IPS=d=>`/fiscalization/ticketbai/records/${d}/xml`,iXv=async(d,c)=>h(IPS(d),{...c,method:"GET"}),EPS=d=>`/fiscalization/ticketbai/records/${d}/retry`,aXv=async(d,c)=>h(EPS(d),{...c,method:"POST"}),DPS=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,rXv=async(d,c)=>h(DPS(d),{...c,method:"POST"});var qn={getSettings:b(tXv,0),updateSettings:b(nXv,1),uploadCertificate:b(sXv,1),getRecord:b(oXv,1),downloadRecordXml:b(iXv,1),retryRecord:b(aXv,1),reconcileRecord:b(rXv,1)};var RPS=()=>"/transaction-type/check",lXv=async(d,c)=>h(RPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Wn={checkTransactionType:b(lXv,1)};var _PS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},dXv=async(d,c)=>h(_PS(d),{...c,method:"GET"}),NPS=()=>"/travel-orders",uXv=async(d,c)=>h(NPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MPS=()=>"/travel-orders/preview",cXv=async(d,c)=>h(MPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),UPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},pXv=async(d,c,g)=>h(UPS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),PPS=()=>"/travel-orders/route-distance",mXv=async(d,c)=>h(PPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),CPS=d=>`/travel-orders/${d}`,xXv=async(d,c)=>h(CPS(d),{...c,method:"GET"}),wPS=d=>`/travel-orders/${d}`,gXv=async(d,c,g)=>h(wPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),APS=d=>`/travel-orders/${d}`,yXv=async(d,c)=>h(APS(d),{...c,method:"DELETE"}),FPS=d=>`/travel-orders/${d}/approve`,OXv=async(d,c)=>h(FPS(d),{...c,method:"POST"}),kPS=d=>`/travel-orders/${d}/settle`,vXv=async(d,c)=>h(kPS(d),{...c,method:"POST"}),jPS=d=>`/travel-orders/${d}/reopen`,SXv=async(d,c,g)=>h(jPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),HPS=d=>`/travel-orders/${d}/cancel`,hXv=async(d,c)=>h(HPS(d),{...c,method:"POST"}),LPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/pdf?${E}`:`/travel-orders/${d}/pdf`},bXv=async(d,c,g)=>h(LPS(d,c),{...g,method:"GET"}),GPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/html?${E}`:`/travel-orders/${d}/html`},zXv=async(d,c,g)=>h(GPS(d,c),{...g,method:"GET"});var Yn={list:X(dXv),create:b(uXv,1),preview:b(cXv,1),renderTravelOrderPreview:b(pXv,2),calculateTravelOrderRouteDistance:b(mXv,1),get:b(xXv,1),update:b(gXv,2),delete:b(yXv,1),approveTravelOrder:b(OXv,1),settleTravelOrder:b(vXv,1),reopenTravelOrder:b(SXv,2),cancelTravelOrder:b(hXv,1),renderPdf:b(bXv,2),renderHtml:b(zXv,2)};var Re="https://eu.spaceinvoices.com";var VPS=d=>`/documents/${d}/ujp`,fXv=async(d,c)=>h(VPS(d),{...c,method:"GET"});var $n={download:b(fXv,1)};var KPS=()=>"/upload/image",BXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(KPS(),{...c,method:"POST",body:g})};var Qn={uploadImage:b(BXv,1)};var ZPS=()=>"/accounts/two-factor-policy",TXv=async d=>h(ZPS(),{...d,method:"GET"}),qPS=()=>"/accounts/two-factor-policy",IXv=async(d,c)=>h(qPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),WPS=d=>`/entities/${d}/two-factor-policy`,EXv=async(d,c)=>h(WPS(d),{...c,method:"GET"}),YPS=d=>`/entities/${d}/two-factor-policy`,DXv=async(d,c,g)=>h(YPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$PS=()=>"/users/two-factor/setup",RXv=async(d,c)=>h($PS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QPS=()=>"/users/two-factor/enable",_Xv=async(d,c)=>h(QPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JPS=()=>"/users/me/two-factor",NXv=async d=>h(JPS(),{...d,method:"GET"}),XPS=()=>"/users/me/two-factor/setup",MXv=async(d,c)=>h(XPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),e2S=()=>"/users/me/two-factor/enable",UXv=async(d,c)=>h(e2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),t2S=()=>"/users/me/two-factor/disable",PXv=async(d,c)=>h(t2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n2S=()=>"/users/two-factor/verify",CXv=async(d,c)=>h(n2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),s2S=()=>"/users/login",wXv=async(d,c)=>h(s2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),o2S=()=>"/users/signup",AXv=async(d,c)=>h(o2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),i2S=()=>"/users/password-reset",FXv=async(d,c)=>h(i2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),a2S=()=>"/users/password-reset/confirm",kXv=async(d,c)=>h(a2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),r2S=()=>"/users/me/accounts",jXv=async d=>h(r2S(),{...d,method:"GET"}),l2S=()=>"/users/me",HXv=async d=>h(l2S(),{...d,method:"GET"}),d2S=()=>"/users/me",LXv=async(d,c)=>h(d2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),u2S=()=>"/users/me/account-deletion",GXv=async d=>h(u2S(),{...d,method:"POST"}),c2S=()=>"/users/me/settings/furs",VXv=async(d,c)=>h(c2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),p2S=()=>"/users/me/settings/fina",KXv=async(d,c)=>h(p2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Jn={getAccountTwoFactorPolicy:b(TXv,0),updateAccountTwoFactorPolicy:b(IXv,1),getEntityTwoFactorPolicy:b(EXv,1),updateEntityTwoFactorPolicy:b(DXv,2),setupRequiredTwoFactor:b(RXv,1),enableRequiredTwoFactor:b(_Xv,1),getTwoFactorConfiguration:b(NXv,0),setupTwoFactor:b(MXv,1),enableTwoFactor:b(UXv,1),disableTwoFactor:b(PXv,1),verifyTwoFactor:b(CXv,1),login:b(wXv,1),signup:b(AXv,1),requestPasswordReset:b(FXv,1),confirmPasswordReset:b(kXv,1),listMyAccounts:b(jXv,0),getMe:b(HXv,0),update:b(LXv,1),requestAccountDeletion:b(GXv,0),updateFursSettings:b(VXv,1),updateFinaSettings:b(KXv,1)};var m2S=()=>"/fiscalization/verifactu/settings",ZXv=async d=>h(m2S(),{...d,method:"GET"}),x2S=()=>"/fiscalization/verifactu/settings",qXv=async(d,c)=>h(x2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),g2S=()=>"/fiscalization/verifactu/certificate",WXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(g2S(),{...c,method:"POST",body:g})},y2S=d=>`/fiscalization/verifactu/records/${d}`,YXv=async(d,c)=>h(y2S(d),{...c,method:"GET"}),O2S=d=>`/fiscalization/verifactu/records/${d}/retry`,$Xv=async(d,c)=>h(O2S(d),{...c,method:"POST"}),v2S=d=>`/fiscalization/verifactu/records/${d}/correct`,QXv=async(d,c,g)=>h(v2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S2S=d=>`/fiscalization/verifactu/records/${d}/cancel`,JXv=async(d,c,g)=>h(S2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Xn={getSettings:b(ZXv,0),updateSettings:b(qXv,1),uploadCertificate:b(WXv,1),getEvidence:b(YXv,1),retryRecord:b($Xv,1),correctRecord:b(QXv,2),cancelRecord:b(JXv,2)};var h2S=()=>"/vies/check",XXv=async(d,c)=>h(h2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var es={checkVies:b(XXv,1)};var b2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},eeS=async(d,c)=>h(b2S(d),{...c,method:"GET"}),z2S=()=>"/warehouses",teS=async(d,c)=>h(z2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),f2S=d=>`/warehouses/${d}`,neS=async(d,c)=>h(f2S(d),{...c,method:"GET"}),B2S=d=>`/warehouses/${d}`,seS=async(d,c,g)=>h(B2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),T2S=d=>`/warehouses/${d}`,oeS=async(d,c)=>h(T2S(d),{...c,method:"DELETE"});var ts={list:X(eeS),create:b(teS,1),get:b(neS,1),update:b(seS,2),delete:b(oeS,1)};var I2S=()=>"/webhooks",ieS=async(d,c)=>h(I2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},aeS=async(d,c)=>h(E2S(d),{...c,method:"GET"}),D2S=d=>`/webhooks/${d}`,reS=async(d,c)=>h(D2S(d),{...c,method:"GET"}),R2S=d=>`/webhooks/${d}`,leS=async(d,c,g)=>h(R2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),_2S=d=>`/webhooks/${d}`,deS=async(d,c)=>h(_2S(d),{...c,method:"DELETE"}),N2S=d=>`/webhooks/${d}/test`,ueS=async(d,c)=>h(N2S(d),{...c,method:"POST"});var M2S=d=>`/webhooks/${d}/rotate-secret`,ceS=async(d,c)=>h(M2S(d),{...c,method:"POST"});var ns={create:b(ieS,1),list:X(aeS),get:b(reS,1),update:b(leS,2),delete:b(deS,1),testWebhook:b(ueS,1),rotateWebhookSecret:b(ceS,1)};var U2S=()=>"/white-label-subscriptions",peS=async d=>h(U2S(),{...d,method:"GET"}),P2S=()=>"/white-label-subscriptions/plans",meS=async d=>h(P2S(),{...d,method:"GET"}),C2S=d=>`/white-label-subscriptions/check-feature/${d}`,xeS=async(d,c)=>h(C2S(d),{...c,method:"GET"}),w2S=d=>`/white-label-subscriptions/check-limit/${d}`,geS=async(d,c)=>h(w2S(d),{...c,method:"GET"}),A2S=()=>"/white-label-subscriptions/billing-email",yeS=async(d,c)=>h(A2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var ss={getCurrentWLSubscription:b(peS,0),list:b(meS,0),checkWLFeature:b(xeS,1),checkWLLimit:b(geS,1),update:b(yeS,1)};var F2S=()=>"/white-labels/current",OeS=async d=>h(F2S(),{...d,method:"GET"}),k2S=()=>"/white-labels/me",veS=async d=>h(k2S(),{...d,method:"GET"});var os={getCurrentWhiteLabel:b(OeS,0),getMyWhiteLabel:b(veS,0)};var De=class{sdkConfig;accountWebhooks=q(Gt,()=>this.sdkConfig);activities=q(Vt,()=>this.sdkConfig);advanceInvoices=q(Kt,()=>this.sdkConfig);businessUnits=q(Zt,()=>this.sdkConfig);companyRegistry=q(qt,()=>this.sdkConfig);creditNotes=q(Wt,()=>this.sdkConfig);currency=q(Yt,()=>this.sdkConfig);customers=q($t,()=>this.sdkConfig);deliveryNotes=q(Qt,()=>this.sdkConfig);documents=q(en,()=>this.sdkConfig);eInvoicing=q(sn,()=>this.sdkConfig);eSlog=q(on,()=>this.sdkConfig);email=q(an,()=>this.sdkConfig);entities=q(rn,()=>this.sdkConfig);entityApiKeys=q(ln,()=>this.sdkConfig);entityInvitations=q(dn,()=>this.sdkConfig);entityStats=q(un,()=>this.sdkConfig);entityUsers=q(cn,()=>this.sdkConfig);estimates=q(pn,()=>this.sdkConfig);expenses=q(mn,()=>this.sdkConfig);exports=q(xn,()=>this.sdkConfig);files=q(gn,()=>this.sdkConfig);finaCertificate=q(yn,()=>this.sdkConfig);finaDevices=q(On,()=>this.sdkConfig);finaPremises=q(vn,()=>this.sdkConfig);finaSettings=q(Sn,()=>this.sdkConfig);financialCategories=q(hn,()=>this.sdkConfig);fursCertificate=q(bn,()=>this.sdkConfig);fursDevices=q(zn,()=>this.sdkConfig);fursInternalAct=q(fn,()=>this.sdkConfig);fursPremises=q(Bn,()=>this.sdkConfig);fursSettings=q(Tn,()=>this.sdkConfig);health=q(In,()=>this.sdkConfig);invoices=q(Dn,()=>this.sdkConfig);items=q(Rn,()=>this.sdkConfig);legacyMigration=q(_n,()=>this.sdkConfig);locale=q(Nn,()=>this.sdkConfig);orderIntegrations=q(Mn,()=>this.sdkConfig);orders=q(Un,()=>this.sdkConfig);paymentReminders=q(Pn,()=>this.sdkConfig);payments=q(Cn,()=>this.sdkConfig);pointOfSale=q(wn,()=>this.sdkConfig);ptAtcudSeries=q(An,()=>this.sdkConfig);ptSafT=q(Fn,()=>this.sdkConfig);purchaseOrders=q(kn,()=>this.sdkConfig);recurringInvoices=q(jn,()=>this.sdkConfig);revenueRecognition=q(Hn,()=>this.sdkConfig);stripeApp=q(Ln,()=>this.sdkConfig);subscriptions=q(Gn,()=>this.sdkConfig);taxRateEstimates=q(Vn,()=>this.sdkConfig);taxReports=q(Kn,()=>this.sdkConfig);taxes=q(Zn,()=>this.sdkConfig);ticketBai=q(qn,()=>this.sdkConfig);transactionType=q(Wn,()=>this.sdkConfig);travelOrders=q(Yn,()=>this.sdkConfig);ujp=q($n,()=>this.sdkConfig);upload=q(Qn,()=>this.sdkConfig);users=q(Jn,()=>this.sdkConfig);veriFactu=q(Xn,()=>this.sdkConfig);vies=q(es,()=>this.sdkConfig);warehouses=q(ts,()=>this.sdkConfig);webhooks=q(ns,()=>this.sdkConfig);whiteLabelSubscriptions=q(ss,()=>this.sdkConfig);whiteLabels=q(os,()=>this.sdkConfig);constructor(c){let g=typeof c=="string"?{accessToken:c}:c,E=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Re,getAccessToken:E,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function j2S(d){let c=typeof d=="string"?{accessToken:d}:d,g=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;AWv({baseUrl:c.basePath??Re,getAccessToken:g,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),Lt(c.accountId??null);}
|
|
234
|
+
Searches across number, traveler name, purpose, origin, and destination.`)}),qzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MGv=200,UGv=0,PGv=1e6,CGv=/^\d{4}-\d{2}-\d{2}$/,WzS=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(MGv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(UGv).max(PGv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(CGv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),YzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wGv=200,AGv=200,FGv=/^\d{4}-\d{2}-\d{2}$/,kGv=500,jGv=500,HGv=500,LGv=/^[A-Za-z]{2}$/,GGv=20,VGv=0,KGv=1e5,ZGv=0,qGv=60,WGv=0,YGv=1e4,$Gv=0,QGv=1e6,JGv=200,XGv=0,e3v=1e6,t3v=/^\d{4}-\d{2}-\d{2}$/,n3v=100,s3v=2e3,$zS=e.object({traveler_name:e.string().min(1).max(wGv).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(AGv).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(FGv).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(kGv).describe("Business purpose of the trip."),origin:e.string().max(jGv).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(HGv).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(LGv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(GGv).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(VGv).max(KGv).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(ZGv).max(qGv).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(WGv).max(YGv).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min($Gv).max(QGv).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(JGv).describe("Description of the cost line."),amount:e.number().gt(XGv).max(e3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(t3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(n3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(s3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),QzS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o3v=200,i3v=200,a3v=/^\d{4}-\d{2}-\d{2}$/,r3v=500,l3v=500,d3v=500,u3v=/^[A-Za-z]{2}$/,c3v=20,p3v=0,m3v=1e5,x3v=0,g3v=60,y3v=0,O3v=1e4,v3v=0,S3v=1e6,h3v=200,b3v=0,z3v=1e6,f3v=/^\d{4}-\d{2}-\d{2}$/,B3v=100,T3v=2e3,JzS=e.object({traveler_name:e.string().min(1).max(o3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(i3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(a3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(r3v).describe("Business purpose of the trip."),origin:e.string().max(l3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(d3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(u3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(c3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(p3v).max(m3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(x3v).max(g3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(y3v).max(O3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(v3v).max(S3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(h3v).describe("Description of the cost line."),amount:e.number().gt(b3v).max(z3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(f3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(B3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(T3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),XzS=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),I3v=2,E3v=5,D3v=2,R3v=5,efS=e.object({locale:e.string().min(I3v).max(E3v).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(D3v).max(R3v).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),tfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_3v=200,N3v=200,M3v=/^\d{4}-\d{2}-\d{2}$/,U3v=500,P3v=500,C3v=500,w3v=/^[A-Za-z]{2}$/,A3v=20,F3v=0,k3v=1e5,j3v=0,H3v=60,L3v=0,G3v=1e4,V3v=0,K3v=1e6,Z3v=200,q3v=0,W3v=1e6,Y3v=/^\d{4}-\d{2}-\d{2}$/,$3v=100,Q3v=2e3,nfS=e.object({traveler_name:e.string().min(1).max(_3v).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(N3v).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(M3v).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(U3v).describe("Business purpose of the trip."),origin:e.string().max(P3v).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(C3v).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(w3v).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(A3v).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(F3v).max(k3v).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(j3v).max(H3v).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(L3v).max(G3v).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(V3v).max(K3v).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Z3v).describe("Description of the cost line."),amount:e.number().gt(q3v).max(W3v).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Y3v).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max($3v).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Q3v).nullish().describe("Free-text note. Omit or send null to leave unset.")}),sfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J3v=3,X3v=300,eVv=3,tVv=300,ofS=e.object({from:e.string().min(J3v).max(X3v).describe("Starting address to geocode."),to:e.string().min(eVv).max(tVv).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),ifS=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),nVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,afS=e.object({id:e.stringFormat("resource-id",nVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),rfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sVv=200,oVv=0,iVv=1e6,aVv=/^\d{4}-\d{2}-\d{2}$/,lfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(sVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(oVv).max(iVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(aVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),rVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,dfS=e.object({id:e.stringFormat("resource-id",rVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ufS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lVv=200,dVv=200,uVv=/^\d{4}-\d{2}-\d{2}$/,cVv=500,pVv=500,mVv=500,xVv=/^[A-Za-z]{2}$/,gVv=20,yVv=0,OVv=1e5,vVv=0,SVv=60,hVv=0,bVv=1e4,zVv=0,fVv=1e6,BVv=200,TVv=0,IVv=1e6,EVv=/^\d{4}-\d{2}-\d{2}$/,DVv=100,RVv=2e3,cfS=e.object({traveler_name:e.string().min(1).max(lVv).nullish().describe("Full name of the traveling employee or contractor. Omit or send null to leave unchanged; cannot be cleared."),traveler_position:e.string().max(dVv).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(uVv).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(cVv).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(pVv).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(mVv).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(xVv).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(gVv).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(yVv).max(OVv).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(vVv).max(SVv).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(hVv).max(bVv).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(zVv).max(fVv).nullish().describe("Advance payment already given to the traveler. Omit to leave unchanged, send null to reset to 0."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(BVv).describe("Description of the cost line."),amount:e.number().gt(TVv).max(IVv).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(EVv).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(DVv).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(RVv).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),_Vv=200,NVv=0,MVv=1e6,UVv=/^\d{4}-\d{2}-\d{2}$/,pfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(_Vv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(NVv).max(MVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(UVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),PVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,mfS=e.object({id:e.stringFormat("resource-id",PVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,gfS=e.object({id:e.stringFormat("resource-id",CVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wVv=200,AVv=0,FVv=1e6,kVv=/^\d{4}-\d{2}-\d{2}$/,OfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(wVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(AVv).max(FVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(kVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),jVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,vfS=e.object({id:e.stringFormat("resource-id",jVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),HVv=200,LVv=0,GVv=1e6,VVv=/^\d{4}-\d{2}-\d{2}$/,hfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(HVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(LVv).max(GVv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(VVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),KVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,bfS=e.object({id:e.stringFormat("resource-id",KVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ZVv=3,qVv=500,ffS=e.object({reason:e.string().min(ZVv).max(qVv).describe("Why this settled travel order is being reopened for correction. Required.")}),WVv=200,YVv=0,$Vv=1e6,QVv=/^\d{4}-\d{2}-\d{2}$/,BfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(WVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(YVv).max($Vv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(QVv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),JVv=/^[a-z]{3,4}_[0-9a-f]{24}$/,TfS=e.object({id:e.stringFormat("resource-id",JVv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),IfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVv=200,eKv=0,tKv=1e6,nKv=/^\d{4}-\d{2}-\d{2}$/,EfS=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(XVv).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(eKv).max(tKv).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(nKv).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),sKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,DfS=e.object({id:e.stringFormat("resource-id",sKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),oKv=2,iKv=5,aKv=2,rKv=5,RfS=e.object({locale:e.string().min(oKv).max(iKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(aKv).max(rKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),_fS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lKv=/^[a-z]{3,4}_[0-9a-f]{24}$/,NfS=e.object({id:e.stringFormat("resource-id",lKv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),dKv=2,uKv=5,cKv=2,pKv=5,MfS=e.object({locale:e.string().min(dKv).max(uKv).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(cKv).max(pKv).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),UfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Nt={};W(Nt,{DownloadUjpPackageHeader:()=>CfS,DownloadUjpPackageParams:()=>PfS});var PfS=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),CfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Mt={};W(Mt,{UploadImageBody:()=>AfS,UploadImageHeader:()=>wfS,UploadImageResponse:()=>FfS});var wfS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),AfS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),FfS=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var Ut={};W(Ut,{ConfirmPasswordResetBody:()=>gBS,ConfirmPasswordResetResponse:()=>yBS,DisableTwoFactorBody:()=>aBS,DisableTwoFactorResponse:()=>rBS,EnableRequiredTwoFactorBody:()=>XfS,EnableRequiredTwoFactorResponse:()=>eBS,EnableTwoFactorBody:()=>oBS,EnableTwoFactorResponse:()=>iBS,GetAccountTwoFactorPolicyHeader:()=>kfS,GetAccountTwoFactorPolicyResponse:()=>jfS,GetEntityTwoFactorPolicyHeader:()=>KfS,GetEntityTwoFactorPolicyParams:()=>VfS,GetEntityTwoFactorPolicyResponse:()=>ZfS,GetMeResponse:()=>vBS,GetTwoFactorConfigurationResponse:()=>tBS,ListMyAccountsResponse:()=>OBS,LoginBody:()=>uBS,LoginResponse:()=>cBS,PatchMeBody:()=>SBS,PatchMeResponse:()=>hBS,RequestPasswordResetBody:()=>mBS,RequestPasswordResetResponse:()=>xBS,SetupRequiredTwoFactorBody:()=>QfS,SetupRequiredTwoFactorResponse:()=>JfS,SetupTwoFactorBody:()=>nBS,SetupTwoFactorResponse:()=>sBS,SignupBody:()=>pBS,UpdateAccountTwoFactorPolicyBody:()=>LfS,UpdateAccountTwoFactorPolicyHeader:()=>HfS,UpdateAccountTwoFactorPolicyResponse:()=>GfS,UpdateEntityTwoFactorPolicyBody:()=>YfS,UpdateEntityTwoFactorPolicyHeader:()=>WfS,UpdateEntityTwoFactorPolicyParams:()=>qfS,UpdateEntityTwoFactorPolicyResponse:()=>$fS,UpdateUserFinaSettingsBody:()=>TBS,UpdateUserFinaSettingsHeader:()=>BBS,UpdateUserFinaSettingsResponse:()=>IBS,UpdateUserFursSettingsBody:()=>zBS,UpdateUserFursSettingsHeader:()=>bBS,UpdateUserFursSettingsResponse:()=>fBS,VerifyTwoFactorBody:()=>lBS,VerifyTwoFactorResponse:()=>dBS,confirmPasswordResetBodyPasswordMin:()=>fZv,confirmPasswordResetBodyPasswordRegExp:()=>BZv,disableTwoFactorBodyCodeMax:()=>wKv,disableTwoFactorBodyCodeMin:()=>CKv,disableTwoFactorBodyPasswordMax:()=>PKv,enableRequiredTwoFactorBodyCodeRegExp:()=>bKv,enableRequiredTwoFactorBodyTokenRegExp:()=>hKv,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>IKv,enableRequiredTwoFactorResponseSessionOneIdMax:()=>zKv,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>EKv,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>TKv,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>BKv,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>fKv,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>NKv,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>RKv,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>DKv,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>_Kv,enableTwoFactorBodyCodeRegExp:()=>UKv,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>mKv,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>yKv,getEntityTwoFactorPolicyPathIdRegExp:()=>gKv,getMeResponseAccountIdMax:()=>DZv,getMeResponseEmailMax:()=>IZv,getMeResponseIdMax:()=>TZv,getMeResponseNameMax:()=>EZv,loginBodyShopifyReturnUrlMax:()=>JKv,loginBodyShopifyReturnUrlMin:()=>QKv,loginBodyShopifyReturnUrlRegExp:()=>XKv,loginResponseOneEntityIdMax:()=>oZv,loginResponseOneIdMax:()=>eZv,loginResponseOneImpersonatorUserIdMax:()=>iZv,loginResponseOneScopeMax:()=>sZv,loginResponseOneTtlDefault:()=>nZv,loginResponseOneUserIdMax:()=>tZv,loginResponseTwoUserAccountIdMax:()=>dZv,loginResponseTwoUserEmailMax:()=>rZv,loginResponseTwoUserIdMax:()=>aZv,loginResponseTwoUserNameMax:()=>lZv,patchMeBodyNameMin:()=>RZv,patchMeResponseAccountIdMax:()=>UZv,patchMeResponseEmailMax:()=>NZv,patchMeResponseIdMax:()=>_Zv,patchMeResponseNameMax:()=>MZv,requestPasswordResetBodyShopifyReturnUrlMax:()=>bZv,requestPasswordResetBodyShopifyReturnUrlMin:()=>hZv,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>zZv,setupRequiredTwoFactorBodyTokenRegExp:()=>SKv,setupTwoFactorBodyPasswordMax:()=>MKv,signupBodyNameMin:()=>uZv,signupBodyPasswordMin:()=>cZv,signupBodyPasswordRegExp:()=>pZv,signupBodySignupAttributionFbclidMax:()=>SZv,signupBodySignupAttributionGbraidMax:()=>OZv,signupBodySignupAttributionGclidMax:()=>yZv,signupBodySignupAttributionUtmCampaignMax:()=>gZv,signupBodySignupAttributionUtmMediumMax:()=>xZv,signupBodySignupAttributionUtmSourceMax:()=>mZv,signupBodySignupAttributionWbraidMax:()=>vZv,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>xKv,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>vKv,updateEntityTwoFactorPolicyPathIdRegExp:()=>OKv,updateUserFinaSettingsResponseAccountIdMax:()=>HZv,updateUserFinaSettingsResponseEmailMax:()=>kZv,updateUserFinaSettingsResponseIdMax:()=>FZv,updateUserFinaSettingsResponseNameMax:()=>jZv,updateUserFursSettingsResponseAccountIdMax:()=>AZv,updateUserFursSettingsResponseEmailMax:()=>CZv,updateUserFursSettingsResponseIdMax:()=>PZv,updateUserFursSettingsResponseNameMax:()=>wZv,verifyTwoFactorBodyCodeMax:()=>jKv,verifyTwoFactorBodyCodeMin:()=>kKv,verifyTwoFactorBodyTokenMax:()=>AKv,verifyTwoFactorBodyTokenRegExp:()=>FKv,verifyTwoFactorResponseOneEntityIdMax:()=>KKv,verifyTwoFactorResponseOneIdMax:()=>HKv,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>ZKv,verifyTwoFactorResponseOneScopeMax:()=>VKv,verifyTwoFactorResponseOneTtlDefault:()=>GKv,verifyTwoFactorResponseOneUserIdMax:()=>LKv,verifyTwoFactorResponseTwoUserAccountIdMax:()=>$Kv,verifyTwoFactorResponseTwoUserEmailMax:()=>WKv,verifyTwoFactorResponseTwoUserIdMax:()=>qKv,verifyTwoFactorResponseTwoUserNameMax:()=>YKv});var mKv=/^acc_[0-9a-fA-F]{24}$/,kfS=e.object({"x-account-id":e.string().regex(mKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),jfS=e.object({required:e.boolean()}),xKv=/^acc_[0-9a-fA-F]{24}$/,HfS=e.object({"x-account-id":e.string().regex(xKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),LfS=e.object({required:e.boolean()}),GfS=e.object({required:e.boolean()}),gKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,VfS=e.object({id:e.stringFormat("resource-id",gKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),yKv=/^acc_[0-9a-fA-F]{24}$/,KfS=e.object({"x-account-id":e.string().regex(yKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ZfS=e.object({required:e.boolean()}),OKv=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,qfS=e.object({id:e.stringFormat("resource-id",OKv).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vKv=/^acc_[0-9a-fA-F]{24}$/,WfS=e.object({"x-account-id":e.string().regex(vKv).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),YfS=e.object({required:e.boolean()}),$fS=e.object({required:e.boolean()}),SKv=/^session_2fa_setup_[a-f0-9]{64}$/,QfS=e.object({token:e.string().regex(SKv)}),JfS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),hKv=/^session_2fa_setup_[a-f0-9]{64}$/,bKv=/^\d{6}$/,XfS=e.object({token:e.string().regex(hKv),code:e.string().regex(bKv)}),zKv=100,fKv=36,BKv=31536e3,TKv=50,IKv=36,EKv=36,DKv=36,RKv=255,_Kv=255,NKv=36,eBS=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(zKv),user_id:e.string().max(fKv),ttl:e.number().default(BKv).describe("Token time-to-live in seconds"),scope:e.string().max(TKv).nullish(),entity_id:e.string().max(IKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(EKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(DKv),email:e.string().max(RKv),name:e.string().max(_Kv).nullish(),email_verified:e.boolean(),account_id:e.string().max(NKv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),tBS=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),MKv=1024,nBS=e.object({password:e.string().max(MKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),sBS=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),UKv=/^\d{6}$/,oBS=e.object({code:e.string().regex(UKv)}),iBS=e.object({recovery_codes:e.array(e.string())}),PKv=1024,CKv=6,wKv=32,aBS=e.object({password:e.string().max(PKv).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes."),code:e.string().min(CKv).max(wKv).describe("Six-digit authenticator code or a single-use recovery code.")}),rBS=e.object({enabled:e.literal(false)}),AKv=100,FKv=/^session_2fa_[a-zA-Z0-9]+$/,kKv=6,jKv=32,lBS=e.object({token:e.string().max(AKv).regex(FKv),code:e.string().min(kKv).max(jKv).describe("Six-digit authenticator code or a single-use recovery code.")}),HKv=100,LKv=36,GKv=31536e3,VKv=50,KKv=36,ZKv=36,qKv=36,WKv=255,YKv=255,$Kv=36,dBS=e.object({id:e.string().max(HKv),user_id:e.string().max(LKv),ttl:e.number().default(GKv).describe("Token time-to-live in seconds"),scope:e.string().max(VKv).nullish(),entity_id:e.string().max(KKv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ZKv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(qKv),email:e.string().max(WKv),name:e.string().max(YKv).nullish(),email_verified:e.boolean(),account_id:e.string().max($Kv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),QKv=86,JKv=86,XKv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,uBS=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(QKv).max(JKv).regex(XKv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),eZv=100,tZv=36,nZv=31536e3,sZv=50,oZv=36,iZv=36,aZv=36,rZv=255,lZv=255,dZv=36,cBS=e.object({id:e.string().max(eZv),user_id:e.string().max(tZv),ttl:e.number().default(nZv).describe("Token time-to-live in seconds"),scope:e.string().max(sZv).nullish(),entity_id:e.string().max(oZv).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(iZv).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(aZv),email:e.string().max(rZv),name:e.string().max(lZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(dZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),uZv=2,cZv=8,pZv=/[a-z]/,mZv=150,xZv=150,gZv=150,yZv=512,OZv=512,vZv=512,SZv=512,pBS=e.object({email:e.email(),name:e.string().min(uZv).nullish(),password:e.string().min(cZv).regex(pZv),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(mZv).nullish(),utm_medium:e.string().min(1).max(xZv).nullish(),utm_campaign:e.string().min(1).max(gZv).nullish(),gclid:e.string().min(1).max(yZv).nullish(),gbraid:e.string().min(1).max(OZv).nullish(),wbraid:e.string().min(1).max(vZv).nullish(),fbclid:e.string().min(1).max(SZv).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) and ad click IDs (gclid, gbraid, wbraid, fbclid) from the link the user arrived through. Stored with the new user for first-party sign-up attribution and never returned. Each value is trimmed. A UTM value is kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; a click ID is kept only when it is 1\u2013512 characters of `A-Z a-z 0-9 _ . -`. Invalid values and malformed objects are ignored rather than rejected.")}),hZv=86,bZv=86,zZv=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,mBS=e.object({email:e.email(),shopify_return_url:e.string().min(hZv).max(bZv).regex(zZv).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),xBS=e.object({message:e.string()}),fZv=8,BZv=/[a-z]/,gBS=e.object({token:e.string().min(1),password:e.string().min(fZv).regex(BZv)}),yBS=e.object({message:e.string()}),OBS=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),TZv=36,IZv=255,EZv=255,DZv=36,vBS=e.object({id:e.string().max(TZv),email:e.string().max(IZv),name:e.string().max(EZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(DZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),RZv=2,SBS=e.object({name:e.string().min(RZv).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),_Zv=36,NZv=255,MZv=255,UZv=36,hBS=e.object({id:e.string().max(_Zv),email:e.string().max(NZv),name:e.string().max(MZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(UZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),bBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zBS=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),PZv=36,CZv=255,wZv=255,AZv=36,fBS=e.object({id:e.string().max(PZv),email:e.string().max(CZv),name:e.string().max(wZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(AZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),BBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TBS=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),FZv=36,kZv=255,jZv=255,HZv=36,IBS=e.object({id:e.string().max(FZv),email:e.string().max(kZv),name:e.string().max(jZv).nullish(),email_verified:e.boolean(),account_id:e.string().max(HZv).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var Pt={};W(Pt,{CancelVerifactuRecordBody:()=>qBS,CancelVerifactuRecordHeader:()=>ZBS,CancelVerifactuRecordParams:()=>KBS,CancelVerifactuRecordResponse:()=>WBS,CorrectVerifactuRecordBody:()=>GBS,CorrectVerifactuRecordHeader:()=>LBS,CorrectVerifactuRecordParams:()=>HBS,CorrectVerifactuRecordResponse:()=>VBS,GetVerifactuEvidenceHeader:()=>wBS,GetVerifactuEvidenceParams:()=>CBS,GetVerifactuEvidenceResponse:()=>ABS,GetVerifactuSettingsHeader:()=>EBS,GetVerifactuSettingsResponse:()=>DBS,RetryVerifactuRecordHeader:()=>kBS,RetryVerifactuRecordParams:()=>FBS,RetryVerifactuRecordResponse:()=>jBS,UpdateVerifactuSettingsBody:()=>_BS,UpdateVerifactuSettingsHeader:()=>RBS,UpdateVerifactuSettingsResponse:()=>NBS,UploadVerifactuCertificateBody:()=>UBS,UploadVerifactuCertificateHeader:()=>MBS,UploadVerifactuCertificateResponse:()=>PBS,cancelVerifactuRecordBodyReasonMax:()=>$Zv,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>ZZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>WZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>qZv,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>YZv,correctVerifactuRecordBodyReasonMax:()=>KZv,getVerifactuSettingsResponsePendingRecordsMin:()=>LZv,updateVerifactuSettingsResponsePendingRecordsMin:()=>GZv,uploadVerifactuCertificateResponsePendingRecordsMin:()=>VZv});var EBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),LZv=0,DBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(LZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),RBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_BS=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),GZv=0,NBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(GZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),MBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),UBS=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),VZv=0,PBS=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(VZv).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),CBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),wBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ABS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),FBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),kBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),HBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),LBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KZv=500,ZZv=500,qZv=0,WZv=/^\d{2}$/,YZv=12,GBS=e.object({reason:e.string().min(1).max(KZv).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(ZZv).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(qZv).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(WZv).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(YZv).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction.")}).describe("Append a correction to a confirmed fiscal record without changing invoice financial or party facts."),VBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),KBS=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),ZBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Zv=500,qBS=e.object({reason:e.string().min(1).max($Zv).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),WBS=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var Ct={};W(Ct,{CheckViesBody:()=>YBS,CheckViesResponse:()=>$BS,checkViesBodyCustomerCountryCodeMax:()=>tqv,checkViesBodyCustomerCountryCodeMin:()=>eqv,checkViesBodyIssuerCountryCodeMax:()=>JZv,checkViesBodyIssuerCountryCodeMin:()=>QZv,checkViesBodyIssuerIsTaxSubjectDefault:()=>XZv,checkViesResponseCustomerCountryCodeMax:()=>iqv,checkViesResponseCustomerCountryCodeMin:()=>oqv,checkViesResponseIssuerCountryCodeMax:()=>sqv,checkViesResponseIssuerCountryCodeMin:()=>nqv,checkViesResponseVatIdCountryCodeMax:()=>rqv,checkViesResponseVatIdCountryCodeMin:()=>aqv});var QZv=2,JZv=2,XZv=true,eqv=2,tqv=2,YBS=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(QZv).max(JZv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(XZv).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(eqv).max(tqv).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),nqv=2,sqv=2,oqv=2,iqv=2,aqv=2,rqv=2,$BS=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(nqv).max(sqv).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(oqv).max(iqv).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(aqv).max(rqv).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var wt={};W(wt,{CreateWarehouseBody:()=>tTS,CreateWarehouseHeader:()=>eTS,DeleteWarehouseHeader:()=>uTS,DeleteWarehouseParams:()=>dTS,GetWarehouseByIdHeader:()=>sTS,GetWarehouseByIdParams:()=>nTS,GetWarehouseByIdResponse:()=>oTS,GetWarehousesHeader:()=>JBS,GetWarehousesQueryParams:()=>QBS,GetWarehousesResponse:()=>XBS,UpdateWarehouseBody:()=>rTS,UpdateWarehouseHeader:()=>aTS,UpdateWarehouseParams:()=>iTS,UpdateWarehouseResponse:()=>lTS,createWarehouseBodyNameMax:()=>mqv,deleteWarehousePathIdRegExp:()=>fqv,getWarehouseByIdPathIdRegExp:()=>xqv,getWarehouseByIdResponseEntityIdMax:()=>yqv,getWarehouseByIdResponseIdMax:()=>gqv,getWarehouseByIdResponseNameMax:()=>Oqv,getWarehousesQueryLimitDefault:()=>lqv,getWarehousesQueryLimitMax:()=>dqv,getWarehousesResponseDataItemEntityIdMax:()=>cqv,getWarehousesResponseDataItemIdMax:()=>uqv,getWarehousesResponseDataItemNameMax:()=>pqv,updateWarehouseBodyNameMax:()=>Sqv,updateWarehousePathIdRegExp:()=>vqv,updateWarehouseResponseEntityIdMax:()=>bqv,updateWarehouseResponseIdMax:()=>hqv,updateWarehouseResponseNameMax:()=>zqv});var lqv=10,dqv=100,QBS=e.object({limit:e.number().min(1).max(dqv).default(lqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),JBS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uqv=36,cqv=36,pqv=200,XBS=e.object({data:e.array(e.object({id:e.string().max(uqv),entity_id:e.string().max(cqv),name:e.string().max(pqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),eTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mqv=200,tTS=e.object({name:e.string().min(1).max(mqv).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),xqv=/^wh_[0-9a-f]{24}$/,nTS=e.object({id:e.stringFormat("resource-id",xqv).describe("Warehouse identifier (wh_ prefix).")}),sTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),gqv=36,yqv=36,Oqv=200,oTS=e.object({id:e.string().max(gqv),entity_id:e.string().max(yqv),name:e.string().max(Oqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),vqv=/^wh_[0-9a-f]{24}$/,iTS=e.object({id:e.stringFormat("resource-id",vqv).describe("Warehouse identifier (wh_ prefix).")}),aTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Sqv=200,rTS=e.object({name:e.string().min(1).max(Sqv).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),hqv=36,bqv=36,zqv=200,lTS=e.object({id:e.string().max(hqv),entity_id:e.string().max(bqv),name:e.string().max(zqv),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),fqv=/^wh_[0-9a-f]{24}$/,dTS=e.object({id:e.stringFormat("resource-id",fqv).describe("Warehouse identifier (wh_ prefix).")}),uTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var At={};W(At,{CreateWebhookBody:()=>pTS,CreateWebhookHeader:()=>cTS,DeleteWebhookHeader:()=>BTS,DeleteWebhookParams:()=>fTS,DeleteWebhookResponse:()=>TTS,GetWebhookByIdHeader:()=>OTS,GetWebhookByIdParams:()=>yTS,GetWebhookByIdResponse:()=>vTS,GetWebhookDeliveriesHeader:()=>NTS,GetWebhookDeliveriesParams:()=>RTS,GetWebhookDeliveriesQueryParams:()=>_TS,GetWebhookDeliveriesResponse:()=>MTS,GetWebhooksHeader:()=>xTS,GetWebhooksQueryParams:()=>mTS,GetWebhooksResponse:()=>gTS,RotateWebhookSecretHeader:()=>PTS,RotateWebhookSecretParams:()=>UTS,RotateWebhookSecretResponse:()=>CTS,TestWebhookHeader:()=>ETS,TestWebhookParams:()=>ITS,TestWebhookResponse:()=>DTS,UpdateWebhookBody:()=>bTS,UpdateWebhookHeader:()=>hTS,UpdateWebhookParams:()=>STS,UpdateWebhookResponse:()=>zTS,createWebhookBodyActiveDefault:()=>Iqv,createWebhookBodyDescriptionMax:()=>Tqv,createWebhookBodyUrlMax:()=>Bqv,deleteWebhookPathIdRegExp:()=>Wqv,getWebhookByIdPathIdRegExp:()=>Pqv,getWebhookByIdResponseDescriptionMax:()=>Fqv,getWebhookByIdResponseEntityIdMax:()=>wqv,getWebhookByIdResponseIdMax:()=>Cqv,getWebhookByIdResponseMetadataDefault:()=>kqv,getWebhookByIdResponseUrlMax:()=>Aqv,getWebhookDeliveriesPathIdRegExp:()=>uWv,getWebhookDeliveriesQueryLimitDefault:()=>cWv,getWebhookDeliveriesQueryLimitMax:()=>pWv,getWebhookDeliveriesResponseDataItemAttemptMax:()=>zWv,getWebhookDeliveriesResponseDataItemAttemptMin:()=>bWv,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>IWv,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>TWv,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>gWv,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>hWv,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>yWv,getWebhookDeliveriesResponseDataItemIdMax:()=>mWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>BWv,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>fWv,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>SWv,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>vWv,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>OWv,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>xWv,getWebhooksQueryLimitDefault:()=>Eqv,getWebhooksQueryLimitMax:()=>Dqv,getWebhooksResponseDataItemDescriptionMax:()=>Mqv,getWebhooksResponseDataItemEntityIdMax:()=>_qv,getWebhooksResponseDataItemIdMax:()=>Rqv,getWebhooksResponseDataItemMetadataDefault:()=>Uqv,getWebhooksResponseDataItemUrlMax:()=>Nqv,rotateWebhookSecretPathIdRegExp:()=>EWv,rotateWebhookSecretResponseDescriptionMax:()=>NWv,rotateWebhookSecretResponseEntityIdMax:()=>RWv,rotateWebhookSecretResponseIdMax:()=>DWv,rotateWebhookSecretResponseMetadataDefault:()=>UWv,rotateWebhookSecretResponseSecretMax:()=>MWv,rotateWebhookSecretResponseUrlMax:()=>_Wv,testWebhookPathIdRegExp:()=>Yqv,testWebhookResponseAttemptMax:()=>iWv,testWebhookResponseAttemptMin:()=>oWv,testWebhookResponseDurationMsMax:()=>dWv,testWebhookResponseDurationMsMin:()=>lWv,testWebhookResponseEntityIdMax:()=>Jqv,testWebhookResponseErrorMessageMax:()=>sWv,testWebhookResponseEventTypeMax:()=>Xqv,testWebhookResponseIdMax:()=>$qv,testWebhookResponseMaxAttemptsMax:()=>rWv,testWebhookResponseMaxAttemptsMin:()=>aWv,testWebhookResponseResponseBodyMax:()=>nWv,testWebhookResponseResponseStatusMax:()=>tWv,testWebhookResponseResponseStatusMin:()=>eWv,testWebhookResponseWebhookIdMax:()=>Qqv,updateWebhookBodyDescriptionMax:()=>Lqv,updateWebhookBodyUrlMax:()=>Hqv,updateWebhookPathIdRegExp:()=>jqv,updateWebhookResponseDescriptionMax:()=>Zqv,updateWebhookResponseEntityIdMax:()=>Vqv,updateWebhookResponseIdMax:()=>Gqv,updateWebhookResponseMetadataDefault:()=>qqv,updateWebhookResponseUrlMax:()=>Kqv});var cTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Bqv=2048,Tqv=500,Iqv=true,pTS=e.object({url:e.url().max(Bqv).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Tqv).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).describe("Events that trigger this webhook"),active:e.boolean().default(Iqv).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Eqv=10,Dqv=100,mTS=e.object({limit:e.number().min(1).max(Dqv).default(Eqv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),xTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rqv=36,_qv=36,Nqv=2048,Mqv=500,Uqv={},gTS=e.object({data:e.array(e.object({id:e.string().max(Rqv),entity_id:e.string().max(_qv),url:e.string().max(Nqv),description:e.string().max(Mqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Uqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Pqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,yTS=e.object({id:e.stringFormat("resource-id",Pqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),OTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cqv=36,wqv=36,Aqv=2048,Fqv=500,kqv={},vTS=e.object({id:e.string().max(Cqv),entity_id:e.string().max(wqv),url:e.string().max(Aqv),description:e.string().max(Fqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(kqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),jqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,STS=e.object({id:e.stringFormat("resource-id",jqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hqv=2048,Lqv=500,bTS=e.object({url:e.url().max(Hqv).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Lqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Gqv=36,Vqv=36,Kqv=2048,Zqv=500,qqv={},zTS=e.object({id:e.string().max(Gqv),entity_id:e.string().max(Vqv),url:e.string().max(Kqv),description:e.string().max(Zqv).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(qqv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Wqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,fTS=e.object({id:e.stringFormat("resource-id",Wqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),BTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),TTS=e.object({success:e.boolean()}),Yqv=/^[a-z]{3,4}_[0-9a-f]{24}$/,ITS=e.object({id:e.stringFormat("resource-id",Yqv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ETS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$qv=36,Qqv=36,Jqv=36,Xqv=100,eWv=-2147483648,tWv=2147483647,nWv=1e4,sWv=2e3,oWv=-2147483648,iWv=2147483647,aWv=-2147483648,rWv=2147483647,lWv=-2147483648,dWv=2147483647,DTS=e.object({id:e.string().max($qv),webhook_id:e.string().max(Qqv),entity_id:e.string().max(Jqv),event_type:e.string().max(Xqv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(eWv).max(tWv).nullish(),response_body:e.string().max(nWv).nullish(),error_message:e.string().max(sWv).nullish(),attempt:e.number().min(oWv).max(iWv),max_attempts:e.number().min(aWv).max(rWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(lWv).max(dWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),uWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,RTS=e.object({id:e.stringFormat("resource-id",uWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),cWv=10,pWv=100,_TS=e.object({limit:e.number().min(1).max(pWv).default(cWv).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),NTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mWv=36,xWv=36,gWv=36,yWv=100,OWv=-2147483648,vWv=2147483647,SWv=1e4,hWv=2e3,bWv=-2147483648,zWv=2147483647,fWv=-2147483648,BWv=2147483647,TWv=-2147483648,IWv=2147483647,MTS=e.object({data:e.array(e.object({id:e.string().max(mWv),webhook_id:e.string().max(xWv),entity_id:e.string().max(gWv),event_type:e.string().max(yWv),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(OWv).max(vWv).nullish(),response_body:e.string().max(SWv).nullish(),error_message:e.string().max(hWv).nullish(),attempt:e.number().min(bWv).max(zWv),max_attempts:e.number().min(fWv).max(BWv),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(TWv).max(IWv).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),EWv=/^[a-z]{3,4}_[0-9a-f]{24}$/,UTS=e.object({id:e.stringFormat("resource-id",EWv).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PTS=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),DWv=36,RWv=36,_Wv=2048,NWv=500,MWv=64,UWv={},CTS=e.object({id:e.string().max(DWv),entity_id:e.string().max(RWv),url:e.string().max(_Wv),description:e.string().max(NWv).nullish(),secret:e.string().max(MWv),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(UWv).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var Ft={};W(Ft,{CheckWLFeatureParams:()=>FTS,CheckWLFeatureResponse:()=>kTS,CheckWLLimitParams:()=>jTS,CheckWLLimitResponse:()=>HTS,GetCurrentWLSubscriptionResponse:()=>wTS,GetWLSubscriptionPlansResponse:()=>ATS,UpdateWLSubscriptionBillingEmailBody:()=>LTS,UpdateWLSubscriptionBillingEmailResponse:()=>GTS,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>PWv,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>CWv});var PWv=0,CWv=null,wTS=e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(PWv).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(CWv).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),ATS=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),FTS=e.object({feature:e.string().describe("Feature slug to check")}),kTS=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),jTS=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),HTS=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),LTS=e.object({billing_email:e.email().nullable()}),GTS=e.object({billing_email:e.string().nullable()});var kt={};W(kt,{GetCurrentWhiteLabelResponse:()=>VTS,GetMyWhiteLabelResponse:()=>KTS});var VTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),KTS=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var ZTS=125e3,jt=null,_e=null,Ht=false;function AWv(d){jt=d;}function Lt(d){_e=d,d==null&&(Ht=false);}function qTS(){Ht||(Ht=true,console.warn("[space-invoices] setAccountId() fallback is deprecated for SDK instance requests. Pass accountId via the SDK constructor or per-call config instead."));}function WTS(){return _e}function YTS(){if(!jt)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return jt}function $TS(d){if(!d)return {};if(d instanceof Headers){let c={};return d.forEach((g,E)=>{c[E]=g;}),c}if(Array.isArray(d)){let c={};for(let[g,E]of d)c[g]=E;return c}return d}function QTS(d,c){if(c==null||c<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,E=()=>{g.abort(d?.reason);};if(d?.aborted)return E(),{signal:g.signal,cleanup:()=>{}};let z=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${c}ms`));},c),_=()=>{clearTimeout(z),d?.removeEventListener("abort",E);};return d?.addEventListener("abort",E,{once:true}),g.signal.addEventListener("abort",_,{once:true}),{signal:g.signal,cleanup:_}}async function h(d,c){let{timeoutMs:g,sdkConfig:E,...z}=c??{},_=E??YTS(),ge=await Promise.resolve(_.getAccessToken()),ye=`${_.baseUrl}${d}`,pe={...$TS(z.headers)};_.clientName&&Object.assign(pe,Ne(_.clientName)),ge&&(pe.Authorization=`Bearer ${ge}`);let ze=pe["x-account-id"]||pe["X-Account-Id"]||_.accountId||null;!ze&&_e&&(E&&qTS(),ze=_e),ze&&!pe["x-account-id"]&&!pe["X-Account-Id"]&&(pe["x-account-id"]=ze);let fe=QTS(z.signal,g===void 0?_.requestTimeoutMs??ZTS:g);try{let ve=await fetch(ye,{...z,headers:pe,signal:fe.signal});ve.status===401&&_.onUnauthorized&&_.onUnauthorized(ve);let Te,SeS=ve.headers.get("content-length"),Be=ve.headers.get("content-type"),heS=ve.headers.get("content-disposition");if(SeS==="0"||ve.status===204)Te=void 0;else if(Be?.includes("application/pdf")||Be?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||Be?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||Be?.includes("text/csv")||Be?.includes("application/octet-stream")||Be?.includes("application/zip")||Be?.includes("application/x-zip-compressed")||Be?.includes("image/"))Te=await ve.blob();else if(Be?.includes("application/xml")||Be?.includes("text/xml"))Te=heS?.toLowerCase().includes("attachment")?await ve.blob():await ve.text();else if(Be?.includes("text/html"))Te=await ve.text();else try{Te=await ve.json();}catch{Te=void 0;}return {data:Te,status:ve.status,headers:ve.headers}}finally{fe.cleanup();}}var JTS=1e3;function XTS(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let c=d;return Array.isArray(c.data)&&!!c.pagination&&typeof c.pagination=="object"&&!Array.isArray(c.pagination)}function eIS(d){return Array.isArray(d)?"a bare array":d==null?String(d):typeof d!="object"?`a ${typeof d}`:Array.isArray(d.data)?"an object with a data array but no pagination object (e.g. { data, has_more } instead of { data, pagination: { next_cursor } })":"an object without a data array"}async function*tIS(d,c,g){let E=g?`listAll(${g})`:"listAll()",z=c?.next_cursor,_=0;for(;;){if(_>=1e3)throw new Error(`${E} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);_++;let ge=z,ye=await d({...c,next_cursor:ge});if(!XTS(ye))throw new Error(`${E} cannot paginate this method: its response is ${eIS(ye)}, not the expected { data: T[], pagination: { next_cursor } } shape. This usually means the endpoint does not support cursor-based pagination at all. Call the method directly (it already returns everything in one response) instead of iterating it with listAll().`);for(let pe of ye.data)yield pe;let he=ye.pagination.next_cursor;if(!he)return;if(he===ge)throw new Error(`${E} received the same cursor it just sent (${ge}) after ${_} page(s). The API's pagination cursor is not advancing, which means the server has a pagination bug, not that the result set ended. Stopping here without this error would silently return an incomplete list as if it were complete.`);z=he;}}var nIS=()=>"/account-webhooks",FWv=async(d,c)=>h(nIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},kWv=async(d,c)=>h(sIS(d),{...c,method:"GET"}),oIS=d=>`/account-webhooks/${d}`,jWv=async(d,c)=>h(oIS(d),{...c,method:"GET"}),iIS=d=>`/account-webhooks/${d}`,HWv=async(d,c,g)=>h(iIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),aIS=d=>`/account-webhooks/${d}`,LWv=async(d,c)=>h(aIS(d),{...c,method:"DELETE"}),rIS=d=>`/account-webhooks/${d}/test`,GWv=async(d,c)=>h(rIS(d),{...c,method:"POST"});var lIS=d=>`/account-webhooks/${d}/rotate-secret`,VWv=async(d,c)=>h(lIS(d),{...c,method:"POST"});async function dIS(d,c){return d(...c)}function ZWv(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let c={};return (d.entity_id||d.account_id||d.request_id)&&(c.headers={...d.entity_id?{"x-entity-id":d.entity_id}:{},...d.account_id?{"x-account-id":d.account_id}:{},...d.request_id?{"X-Request-Id":d.request_id}:{}}),d.signal&&(c.signal=d.signal),d.timeoutMs!==void 0&&(c.timeoutMs=d.timeoutMs),d.sdkConfig&&(c.sdkConfig=d.sdkConfig),c}function b(d,c){let g=async(...z)=>{let _=z[z.length-1],ge=_&&typeof _=="object"&&("entity_id"in _||"account_id"in _||"request_id"in _||"signal"in _||"timeoutMs"in _||"sdkConfig"in _||Object.keys(_).length===0),ye,he;ge?(ye=z.slice(0,-1),he=ZWv(_)):ye=[...z];let pe=Math.max(0,d.length-1);for(;ye.length<pe;)ye.push(void 0);ye.push(he);let ze=await dIS(d,ye);if(ze.status>=200&&ze.status<300)return ze.data;let fe=new Error(`API error: ${ze.status}`);throw fe.status=ze.status,fe.data=ze.data,fe};return c===void 0?g:Object.assign(((...z)=>{let _=[...z];return _[c]??={},g(..._)}),{__sdkOptionsIndex:c})}function X(d){return Object.assign(async g=>{let{entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he,...pe}=g||{},ze=ZWv({entity_id:E,account_id:z,request_id:_,signal:ge,timeoutMs:ye,sdkConfig:he}),fe=await d(pe,ze);if(fe.status===200)return fe.data;let ve=new Error(`API error: ${fe.status}`);throw ve.status=fe.status,ve.data=fe.data,ve},{__sdkListMethod:true})}function KWv(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}function q(d,c){let g=Object.entries(d).map(([E,z])=>typeof z!="function"?[E,z]:[E,(..._)=>{let ge=c(),ye=_[_.length-1],he=z;if(he.__sdkListMethod){let pe=_[0];_[0]=pe&&typeof pe=="object"?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else if(typeof he.__sdkOptionsIndex=="number"){let pe=_[he.__sdkOptionsIndex];_[he.__sdkOptionsIndex]=KWv(pe)?{...pe,sdkConfig:ge}:{sdkConfig:ge};}else KWv(ye)?_[_.length-1]={...ye,sdkConfig:ge}:_.push({sdkConfig:ge});return z(..._)}]);return Object.fromEntries(g)}var Gt={create:b(FWv,1),list:X(kWv),get:b(jWv,1),update:b(HWv,2),delete:b(LWv,1),testAccountWebhook:b(GWv,1),rotateAccountWebhookSecret:b(VWv,1)};var uIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/activities?${g}`:"/activities"},qWv=async(d,c)=>h(uIS(d),{...c,method:"GET"});var Vt={list:X(qWv)};var cIS=d=>`/advance-invoices/${d}/nav/retry`,WWv=async(d,c)=>h(cIS(d),{...c,method:"POST"}),pIS=d=>`/advance-invoices/${d}/nav/reconcile`,YWv=async(d,c)=>h(pIS(d),{...c,method:"POST"}),mIS=d=>`/advance-invoices/${d}/nav/annulment`,$Wv=async(d,c,g)=>h(mIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xIS=d=>`/advance-invoices/shareable/${d}`,QWv=async(d,c)=>h(xIS(d),{...c,method:"GET"}),gIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/html?${E}`:`/advance-invoices/shareable/${d}/html`},JWv=async(d,c,g)=>h(gIS(d,c),{...g,method:"GET"}),yIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/pdf?${E}`:`/advance-invoices/shareable/${d}/pdf`},XWv=async(d,c,g)=>h(yIS(d,c),{...g,method:"GET"}),OIS=d=>`/advance-invoices/shareable/${d}/eslog`,e6v=async(d,c)=>h(OIS(d),{...c,method:"GET"}),vIS=()=>"/advance-invoices",t6v=async(d,c)=>h(vIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},n6v=async(d,c)=>h(SIS(d),{...c,method:"GET"}),hIS=()=>"/advance-invoices/custom",s6v=async(d,c)=>h(hIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/advance-invoices/${d}?${E}`:`/advance-invoices/${d}`},o6v=async(d,c,g)=>h(bIS(d,c),{...g,method:"GET"}),zIS=d=>`/advance-invoices/${d}`,i6v=async(d,c,g)=>h(zIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fIS=d=>`/advance-invoices/${d}/versions`,a6v=async(d,c)=>h(fIS(d),{...c,method:"GET"}),BIS=(d,c)=>`/advance-invoices/${d}/versions/${c}`,r6v=async(d,c,g)=>h(BIS(d,c),{...g,method:"GET"}),TIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},l6v=async(d,c,g)=>h(TIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),IIS=d=>`/advance-invoices/${d}/void`,d6v=async(d,c,g)=>h(IIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Kt={retryAdvanceInvoiceNav:b(WWv,1),reconcileAdvanceInvoiceNav:b(YWv,1),annulAdvanceInvoiceNav:b($Wv,2),getShareableAdvanceInvoice:b(QWv,1),getShareableAdvanceInvoiceHtml:b(JWv,2),getShareableAdvanceInvoicePdf:b(XWv,2),getShareableAdvanceInvoiceEslog:b(e6v,1),create:b(t6v,1),list:X(n6v),createCustom:b(s6v,1),get:b(o6v,2),update:b(i6v,2),getVersions:b(a6v,1),getVersion:b(r6v,2),renderAdvanceInvoicePreview:b(l6v,2),void:b(d6v,2)};var EIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/business-units?${g}`:"/business-units"},u6v=async(d,c)=>h(EIS(d),{...c,method:"GET"}),DIS=()=>"/business-units",c6v=async(d,c)=>h(DIS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/business-units/${d}?${E}`:`/business-units/${d}`},p6v=async(d,c,g)=>h(RIS(d,c),{...g,method:"GET"}),_IS=d=>`/business-units/${d}`,m6v=async(d,c,g)=>h(_IS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),NIS=d=>`/business-units/${d}`,x6v=async(d,c)=>h(NIS(d),{...c,method:"DELETE"});var Zt={list:X(u6v),create:b(c6v,1),get:b(p6v,2),update:b(m6v,2),delete:b(x6v,1)};var MIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},g6v=async(d,c)=>h(MIS(d),{...c,method:"GET"}),UIS=()=>"/company-registry/countries",y6v=async d=>h(UIS(),{...d,method:"GET"});var qt={searchCompanyRegistry:b(g6v,1),list:b(y6v,0)};var PIS=d=>`/credit-notes/${d}/nav/retry`,O6v=async(d,c)=>h(PIS(d),{...c,method:"POST"}),CIS=d=>`/credit-notes/${d}/nav/reconcile`,v6v=async(d,c)=>h(CIS(d),{...c,method:"POST"}),wIS=d=>`/credit-notes/${d}/nav/annulment`,S6v=async(d,c,g)=>h(wIS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),AIS=d=>`/credit-notes/shareable/${d}`,h6v=async(d,c)=>h(AIS(d),{...c,method:"GET"}),FIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/html?${E}`:`/credit-notes/shareable/${d}/html`},b6v=async(d,c,g)=>h(FIS(d,c),{...g,method:"GET"}),kIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/pdf?${E}`:`/credit-notes/shareable/${d}/pdf`},z6v=async(d,c,g)=>h(kIS(d,c),{...g,method:"GET"}),jIS=d=>`/credit-notes/shareable/${d}/eslog`,f6v=async(d,c)=>h(jIS(d),{...c,method:"GET"}),HIS=d=>`/credit-notes/${d}/ksef/recover`,B6v=async(d,c)=>h(HIS(d),{...c,method:"POST"}),LIS=d=>`/credit-notes/${d}/ksef`,T6v=async(d,c)=>h(LIS(d),{...c,method:"GET"}),GIS=d=>`/credit-notes/${d}/ksef/submit`,I6v=async(d,c)=>h(GIS(d),{...c,method:"POST"}),VIS=d=>`/credit-notes/${d}/ksef/upo`,E6v=async(d,c)=>h(VIS(d),{...c,method:"GET"}),KIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},D6v=async(d,c,g)=>h(KIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),ZIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},R6v=async(d,c)=>h(ZIS(d),{...c,method:"GET"}),qIS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},_6v=async(d,c,g)=>h(qIS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),WIS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/credit-notes/${d}?${E}`:`/credit-notes/${d}`},N6v=async(d,c,g)=>h(WIS(d,c),{...g,method:"GET"}),YIS=d=>`/credit-notes/${d}`,M6v=async(d,c,g)=>h(YIS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$IS=d=>`/credit-notes/${d}/xrechnung`,U6v=async(d,c)=>h($IS(d),{...c,method:"GET"}),QIS=d=>`/credit-notes/${d}/zugferd`,P6v=async(d,c)=>h(QIS(d),{...c,method:"GET"}),JIS=d=>`/credit-notes/${d}/versions`,C6v=async(d,c)=>h(JIS(d),{...c,method:"GET"}),XIS=(d,c)=>`/credit-notes/${d}/versions/${c}`,w6v=async(d,c,g)=>h(XIS(d,c),{...g,method:"GET"}),eES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},A6v=async(d,c,g)=>h(eES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),tES=d=>`/credit-notes/${d}/fiscalize`,F6v=async(d,c)=>h(tES(d),{...c,method:"POST"}),nES=d=>`/credit-notes/${d}/void`,k6v=async(d,c,g)=>h(nES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});function j6v(d){let c=b(d);function g(E,z,_){let ge=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(pe=>pe in z),ye=ge?void 0:z,he=ge?{...z,..._}:_;return c(E,ye??{},he??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Wt={retryCreditNoteNav:b(O6v,1),reconcileCreditNoteNav:b(v6v,1),annulCreditNoteNav:b(S6v,2),getShareableCreditNote:b(h6v,1),getShareableCreditNoteHtml:b(b6v,2),getShareableCreditNotePdf:b(z6v,2),getShareableCreditNoteEslog:b(f6v,1),recoverCreditNoteFromKsef:b(B6v,1),getCreditNoteKsefState:b(T6v,1),submitCreditNoteToKsef:b(I6v,1),getCreditNoteKsefUpo:b(E6v,1),create:j6v(D6v),list:X(R6v),createCustom:j6v(_6v),get:b(N6v,2),update:b(M6v,2),downloadCreditNoteXRechnung:b(U6v,1),downloadCreditNoteZugferd:b(P6v,1),getVersions:b(C6v,1),getVersion:b(w6v,2),renderCreditNotePreview:b(A6v,2),fiscalizeCreditNote:b(F6v,1),void:b(k6v,2)};var sES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},H6v=async(d,c)=>h(sES(d),{...c,method:"GET"});var Yt={getExchangeRate:b(H6v,1)};var oES=()=>"/customers",L6v=async(d,c)=>h(oES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/customers?${g}`:"/customers"},G6v=async(d,c)=>h(iES(d),{...c,method:"GET"}),aES=d=>`/customers/${d}`,V6v=async(d,c)=>h(aES(d),{...c,method:"GET"}),rES=d=>`/customers/${d}`,K6v=async(d,c,g)=>h(rES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lES=d=>`/customers/${d}`,Z6v=async(d,c)=>h(lES(d),{...c,method:"DELETE"}),dES=d=>`/customers/${d}/restore`,q6v=async(d,c)=>h(dES(d),{...c,method:"POST"}),uES=d=>`/customers/${d}/permanent`,W6v=async(d,c)=>h(uES(d),{...c,method:"DELETE"});var $t={create:b(L6v,1),list:X(G6v),get:b(V6v,1),update:b(K6v,2),delete:b(Z6v,1),restoreCustomer:b(q6v,1),permanentDeleteCustomer:b(W6v,1)};var cES=d=>`/delivery-notes/shareable/${d}`,Y6v=async(d,c)=>h(cES(d),{...c,method:"GET"}),pES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/html?${E}`:`/delivery-notes/shareable/${d}/html`},$6v=async(d,c,g)=>h(pES(d,c),{...g,method:"GET"}),mES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/pdf?${E}`:`/delivery-notes/shareable/${d}/pdf`},Q6v=async(d,c,g)=>h(mES(d,c),{...g,method:"GET"}),xES=()=>"/delivery-notes",J6v=async(d,c)=>h(xES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},X6v=async(d,c)=>h(gES(d),{...c,method:"GET"}),yES=()=>"/delivery-notes/custom",e7v=async(d,c)=>h(yES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),OES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/delivery-notes/${d}?${E}`:`/delivery-notes/${d}`},t7v=async(d,c,g)=>h(OES(d,c),{...g,method:"GET"}),vES=d=>`/delivery-notes/${d}`,n7v=async(d,c,g)=>h(vES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SES=d=>`/delivery-notes/${d}/versions`,s7v=async(d,c)=>h(SES(d),{...c,method:"GET"}),hES=(d,c)=>`/delivery-notes/${d}/versions/${c}`,o7v=async(d,c,g)=>h(hES(d,c),{...g,method:"GET"}),bES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},i7v=async(d,c,g)=>h(bES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),zES=d=>`/delivery-notes/${d}/void`,a7v=async(d,c,g)=>h(zES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fES=d=>`/delivery-notes/${d}/sign`,r7v=async(d,c,g)=>h(fES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BES=d=>`/delivery-notes/${d}/quantities`,l7v=async(d,c,g)=>h(BES(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Qt={getShareableDeliveryNote:b(Y6v,1),getShareableDeliveryNoteHtml:b($6v,2),getShareableDeliveryNotePdf:b(Q6v,2),create:b(J6v,1),list:X(X6v),createCustom:b(e7v,1),get:b(t7v,2),update:b(n7v,2),getVersions:b(s7v,1),getVersion:b(o7v,2),renderDeliveryNotePreview:b(i7v,2),void:b(a7v,2),signDeliveryNote:b(r7v,2),setDeliveryNoteQuantities:b(l7v,2)};var TES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},d7v=async(d,c)=>h(TES(d),{...c,method:"GET"}),IES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},u7v=async(d,c,g)=>h(IES(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),EES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/finalize?${E}`:`/documents/${d}/finalize`},c7v=async(d,c,g,E)=>h(EES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),DES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/fiscalize?${E}`:`/documents/${d}/fiscalize`},p7v=async(d,c,g,E)=>h(DES(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),RES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/register-output?${E}`:`/documents/${d}/register-output`},m7v=async(d,c,g)=>h(RES(d,c),{...g,method:"POST"}),_ES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}?${E}`:`/documents/${d}`},x7v=async(d,c,g)=>h(_ES(d,c),{...g,method:"DELETE"}),NES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/restore?${E}`:`/documents/${d}/restore`},g7v=async(d,c,g)=>h(NES(d,c),{...g,method:"POST"}),MES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/permanent?${E}`:`/documents/${d}/permanent`},y7v=async(d,c,g)=>h(MES(d,c),{...g,method:"DELETE"}),UES=d=>`/documents/${d}/send`,O7v=async(d,c,g)=>h(UES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PES=d=>`/documents/${d}/share`,v7v=async(d,c)=>h(PES(d),{...c,method:"POST"}),CES=d=>`/documents/${d}/share`,S7v=async(d,c)=>h(CES(d),{...c,method:"GET"}),wES=d=>`/documents/${d}/share`,h7v=async(d,c)=>h(wES(d),{...c,method:"DELETE"});var Jt=b(p7v,3);function AES(d){return !!d&&typeof d=="object"&&"type"in d}function Xt(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}var FES=async(d,c,g,E)=>{if(Xt(c))return Jt(d,void 0,void 0,c);if(AES(c))return Jt(d,void 0,c,g);let z=Xt(g)?void 0:g,_=Xt(g)?g:E;return Jt(d,c,z,_)},en={getNextNumber:b(d7v,1),calculateDocumentPreview:b(u7v,2),finalizeDocument:b(c7v,3),fiscalizeDocument:FES,registerDocumentOutput:b(m7v,2),delete:b(x7v,2),restoreDocument:b(g7v,2),permanentDeleteDocument:b(y7v,2),sendDocument:b(O7v,2),shareDocument:b(v7v,1),getShareableId:b(S7v,1),unshareDocument:b(h7v,1)};var kES=()=>"/e-invoicing/settings",b7v=async d=>h(kES(),{...d,method:"GET"}),jES=()=>"/e-invoicing/settings",z7v=async(d,c)=>h(jES(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HES=()=>"/e-invoicing/enrollment/sync",f7v=async d=>h(HES(),{...d,method:"POST"}),LES=()=>"/e-invoicing/enrollment/verification-link",B7v=async d=>h(LES(),{...d,method:"POST"}),GES=()=>"/e-invoicing/enrollment/authorize",T7v=async(d,c)=>h(GES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VES=()=>"/e-invoicing/enrollment/disconnect",I7v=async d=>h(VES(),{...d,method:"POST"}),KES=()=>"/e-invoicing/france/directory/lookup",E7v=async(d,c)=>h(KES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},D7v=async(d,c)=>h(ZES(d),{...c,method:"GET"}),qES=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/e-invoicing/received-documents/${d}/download?${E}`:`/e-invoicing/received-documents/${d}/download`},R7v=async(d,c,g)=>h(qES(d,c),{...g,method:"GET"}),WES=d=>`/e-invoicing/received-documents/${d}/accept`,_7v=async(d,c)=>h(WES(d),{...c,method:"POST"}),YES=d=>`/e-invoicing/received-documents/${d}/lifecycle`,N7v=async(d,c,g)=>h(YES(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$ES=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},M7v=async(d,c)=>h($ES(d),{...c,method:"GET"}),QES=d=>`/e-invoicing/reporting-records/${d}/retry`,U7v=async(d,c)=>h(QES(d),{...c,method:"POST"}),JES=()=>"/e-invoicing/supplier",P7v=async(d,c)=>h(JES(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XES=()=>"/e-invoicing/supplier",C7v=async d=>h(XES(),{...d,method:"GET"});var eDS=()=>"/e-invoicing/recipients/check",w7v=async(d,c)=>h(eDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),tDS=()=>"/e-invoicing/customer-search",A7v=async(d,c)=>h(tDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),nDS=d=>`/e-invoicing/documents/${d}/send`,F7v=async(d,c,g)=>h(nDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sDS=(d,c)=>`/e-invoicing/send/${d}/${c}`,k7v=async(d,c,g,E)=>h(sDS(d,c),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),oDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},j7v=async(d,c)=>h(oDS(d),{...c,method:"GET"}),iDS=d=>`/e-invoicing/submissions/${d}`,tn=async(d,c)=>h(iDS(d),{...c,method:"GET"}),aDS=d=>`/e-invoicing/submissions/${d}/retry`,nn=async(d,c)=>h(aDS(d),{...c,method:"POST"});var sn={getEInvoicingSubmission:b(tn,1),retryEInvoicingSubmission:b(nn,1),list:b(b7v,0),update:b(z7v,1),syncEInvoicingEnrollment:b(f7v,0),create:b(B7v,0),createEInvoicingEnrollmentAuthorization:b(T7v,1),disconnectEInvoicingEnrollment:b(I7v,0),lookupFranceEInvoicingDirectory:b(E7v,1),listReceivedEInvoices:b(D7v,1),downloadReceivedEInvoice:b(R7v,2),acceptReceivedEInvoice:b(_7v,1),sendReceivedEInvoiceLifecycle:b(N7v,2),listFrenchEReportingRecords:b(M7v,1),retryFrenchEReportingRecord:b(U7v,1),registerEInvoicingSupplier:b(P7v,1),getEInvoicingSupplier:b(C7v,0),checkEInvoicingRecipient:b(w7v,1),searchEInvoicingCustomer:b(A7v,1),sendEInvoicingDocument:b(F7v,2),sendEInvoice:b(k7v,3),listEInvoicingSubmissions:b(j7v,1),get:b(tn,1),retryEInvoicingSubmissionById:b(nn,1)};var rDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/validate?${E}`:`/eslog/${d}/validate`},H7v=async(d,c,g)=>h(rDS(d,c),{...g,method:"POST"}),lDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/download?${E}`:`/eslog/${d}/download`},L7v=async(d,c,g)=>h(lDS(d,c),{...g,method:"GET"});var on={validate:b(H7v,2),download:b(L7v,2)};var dDS=()=>"/email/send",G7v=async(d,c)=>h(dDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var an={sendEmail:b(G7v,1)};var uDS=d=>`/entities/${d}/nav`,V7v=async(d,c)=>h(uDS(d),{...c,method:"GET"}),cDS=d=>`/entities/${d}/nav`,K7v=async(d,c,g)=>h(cDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pDS=d=>`/entities/${d}/nav/credentials`,Z7v=async(d,c,g)=>h(pDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),mDS=d=>`/entities/${d}/nav/credentials`,q7v=async(d,c)=>h(mDS(d),{...c,method:"DELETE"}),xDS=d=>`/entities/${d}/nav/credentials/verify`,W7v=async(d,c)=>h(xDS(d),{...c,method:"POST"}),gDS=d=>`/entities/${d}/ksef`,Y7v=async(d,c)=>h(gDS(d),{...c,method:"GET"}),yDS=d=>`/entities/${d}/ksef`,$7v=async(d,c,g)=>h(yDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),ODS=d=>`/entities/${d}/ksef/credentials`,Q7v=async(d,c,g)=>h(ODS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vDS=d=>`/entities/${d}/ksef/credentials`,J7v=async(d,c)=>h(vDS(d),{...c,method:"DELETE"}),SDS=()=>"/entities",X7v=async(d,c)=>h(SDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities?${g}`:"/entities"},e9v=async(d,c)=>h(hDS(d),{...c,method:"GET"}),bDS=d=>`/entities/${d}`,t9v=async(d,c)=>h(bDS(d),{...c,method:"GET"}),zDS=d=>`/entities/${d}`,n9v=async(d,c,g)=>h(zDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fDS=d=>`/entities/${d}/enable`,s9v=async(d,c)=>h(fDS(d),{...c,method:"POST"}),BDS=d=>`/entities/${d}/disable`,o9v=async(d,c)=>h(BDS(d),{...c,method:"POST"}),TDS=d=>`/entities/${d}/email-sender`,i9v=async(d,c)=>h(TDS(d),{...c,method:"GET"}),IDS=d=>`/entities/${d}/email-sender`,a9v=async(d,c,g)=>h(IDS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),EDS=d=>`/entities/${d}/email-sender`,r9v=async(d,c)=>h(EDS(d),{...c,method:"DELETE"}),DDS=d=>`/entities/${d}/email-sender/recheck`,l9v=async(d,c)=>h(DDS(d),{...c,method:"POST"});var rn={retrieveEntityNavSettings:b(V7v,1),modifyEntityNavSettings:b(K7v,2),storeEntityNavCredentials:b(Z7v,2),removeEntityNavCredentials:b(q7v,1),verifyEntityNavCredentials:b(W7v,1),getEntityKsefSetup:b(Y7v,1),putEntityKsefSettings:b($7v,2),putEntityKsefCredential:b(Q7v,2),removeEntityKsefCredential:b(J7v,1),create:b(X7v,1),list:X(e9v),get:b(t9v,1),update:b(n9v,2),enableEntity:b(s9v,1),disableEntity:b(o9v,1),getEntityEmailSender:b(i9v,1),putEntityEmailSender:b(a9v,2),deleteEntityEmailSender:b(r9v),recheckEntityEmailSender:b(l9v,1)};var RDS=()=>"/entities/api-keys",d9v=async d=>h(RDS(),{...d,method:"GET"}),_DS=()=>"/entities/api-keys",u9v=async(d,c)=>h(_DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),NDS=d=>`/entities/api-keys/${d}`,c9v=async(d,c)=>h(NDS(d),{...c,method:"DELETE"}),MDS=()=>"/entities/api-keys/revoke-integration",p9v=async d=>h(MDS(),{...d,method:"POST"});var ln={listEntityApiKeys:b(d9v,0),create:b(u9v,1),delete:b(c9v,1),revokeEntityApiKeyIntegration:b(p9v,0)};var UDS=()=>"/entities/invitations",m9v=async d=>h(UDS(),{...d,method:"GET"}),PDS=d=>`/entities/invitations/${d}`,x9v=async(d,c)=>h(PDS(d),{...c,method:"GET"}),CDS=d=>`/entities/invitations/${d}`,g9v=async(d,c)=>h(CDS(d),{...c,method:"DELETE"}),wDS=d=>`/entities/invitations/${d}/resend`,y9v=async(d,c)=>h(wDS(d),{...c,method:"POST"}),ADS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},O9v=async(d,c)=>h(ADS(d),{...c,method:"GET"}),FDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},v9v=async(d,c,g)=>h(FDS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var dn={listEntityInvitations:b(m9v,0),getEntityInvitation:b(x9v,1),cancelEntityInvitation:b(g9v,1),resendEntityInvitation:b(y9v,1),preview:b(O9v,1),acceptEntityInvitation:b(v9v,2)};var kDS=()=>"/stats/query",S9v=async(d,c)=>h(kDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var un={queryEntityStats:b(S9v,1)};var jDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},h9v=async(d,c)=>h(jDS(d),{...c,method:"GET"}),HDS=()=>"/entities/users",b9v=async(d,c)=>h(HDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LDS=()=>"/entities/users/access",z9v=async d=>h(LDS(),{...d,method:"GET"}),GDS=d=>`/entities/users/${d}`,f9v=async(d,c,g)=>h(GDS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VDS=d=>`/entities/users/${d}`,B9v=async(d,c)=>h(VDS(d),{...c,method:"DELETE"}),KDS=d=>`/entities/users/${d}/token`,T9v=async(d,c,g)=>h(KDS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var cn={list:X(h9v),addEntityUser:b(b9v,1),getAccess:b(z9v,0),update:b(f9v,2),removeEntityUser:b(B9v,1),generateEntityUserToken:b(T9v,2)};var ZDS=d=>`/estimates/shareable/${d}`,I9v=async(d,c)=>h(ZDS(d),{...c,method:"GET"}),qDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/html?${E}`:`/estimates/shareable/${d}/html`},E9v=async(d,c,g)=>h(qDS(d,c),{...g,method:"GET"}),WDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/pdf?${E}`:`/estimates/shareable/${d}/pdf`},D9v=async(d,c,g)=>h(WDS(d,c),{...g,method:"GET"}),YDS=d=>`/estimates/shareable/${d}/eslog`,R9v=async(d,c)=>h(YDS(d),{...c,method:"GET"}),$DS=()=>"/estimates",_9v=async(d,c)=>h($DS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QDS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates?${g}`:"/estimates"},N9v=async(d,c)=>h(QDS(d),{...c,method:"GET"}),JDS=()=>"/estimates/custom",M9v=async(d,c)=>h(JDS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XDS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/estimates/${d}?${E}`:`/estimates/${d}`},U9v=async(d,c,g)=>h(XDS(d,c),{...g,method:"GET"}),eRS=d=>`/estimates/${d}`,P9v=async(d,c,g)=>h(eRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),tRS=d=>`/estimates/${d}/versions`,C9v=async(d,c)=>h(tRS(d),{...c,method:"GET"}),nRS=(d,c)=>`/estimates/${d}/versions/${c}`,w9v=async(d,c,g)=>h(nRS(d,c),{...g,method:"GET"}),sRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},A9v=async(d,c,g)=>h(sRS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var pn={getShareableEstimate:b(I9v,1),getShareableEstimateHtml:b(E9v,2),getShareableEstimatePdf:b(D9v,2),getShareableEstimateEslog:b(R9v,1),create:b(_9v,1),list:X(N9v),createCustom:b(M9v,1),get:b(U9v,2),update:b(P9v,2),getVersions:b(C9v,1),getVersion:b(w9v,2),renderEstimatePreview:b(A9v,2)};var oRS=()=>"/expenses",F9v=async(d,c)=>h(oRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses?${g}`:"/expenses"},k9v=async(d,c)=>h(iRS(d),{...c,method:"GET"}),aRS=()=>"/expenses/custom",j9v=async(d,c)=>h(aRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),rRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},H9v=async(d,c)=>h(rRS(d),{...c,method:"GET"}),lRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},L9v=async(d,c)=>h(lRS(d),{...c,method:"GET"}),dRS=()=>"/expenses/recognition/settings",G9v=async d=>h(dRS(),{...d,method:"GET"}),uRS=()=>"/expenses/recognition/settings",V9v=async(d,c)=>h(uRS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cRS=()=>"/expenses/recognition/backfill",K9v=async(d,c)=>h(cRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),pRS=()=>"/expenses/recognitions",Z9v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pRS(),{...c,method:"POST",body:g})},mRS=d=>`/expenses/recognitions/${d}`,q9v=async(d,c)=>h(mRS(d),{...c,method:"GET"}),xRS=d=>`/expenses/recognitions/${d}/retry`,W9v=async(d,c)=>h(xRS(d),{...c,method:"POST"}),gRS=()=>"/expenses/inbound-email",Y9v=async d=>h(gRS(),{...d,method:"GET"}),yRS=()=>"/expenses/inbound-email",$9v=async d=>h(yRS(),{...d,method:"POST"}),ORS=()=>"/expenses/inbound-email",Q9v=async d=>h(ORS(),{...d,method:"DELETE"}),vRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},J9v=async(d,c)=>h(vRS(d),{...c,method:"GET"}),SRS=()=>"/expenses/imports/shareable/preview",X9v=async(d,c)=>h(SRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),hRS=()=>"/expenses/imports/shareable",e8v=async(d,c)=>h(hRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bRS=d=>`/expenses/${d}/recognition`,t8v=async(d,c)=>h(bRS(d),{...c,method:"GET"}),zRS=d=>`/expenses/${d}`,n8v=async(d,c)=>h(zRS(d),{...c,method:"GET"}),fRS=d=>`/expenses/${d}`,s8v=async(d,c,g)=>h(fRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BRS=d=>`/expenses/${d}`,o8v=async(d,c)=>h(BRS(d),{...c,method:"DELETE"}),TRS=d=>`/expenses/${d}/void`,i8v=async(d,c)=>h(TRS(d),{...c,method:"POST"}),IRS=d=>`/expenses/${d}/restore`,a8v=async(d,c)=>h(IRS(d),{...c,method:"POST"}),ERS=d=>`/expenses/${d}/attachments`,r8v=async(d,c,g)=>{let E=new FormData;return c.file!==void 0&&E.append("file",c.file),h(ERS(d),{...g,method:"POST",body:E})},DRS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/expenses/${d}/attachments?${E}`:`/expenses/${d}/attachments`},l8v=async(d,c,g)=>h(DRS(d,c),{...g,method:"GET"}),RRS=(d,c)=>`/expenses/${d}/attachments/${c}`,d8v=async(d,c,g)=>h(RRS(d,c),{...g,method:"DELETE"}),_RS=d=>`/expenses/${d}/payments`,u8v=async(d,c)=>h(_RS(d),{...c,method:"GET"}),NRS=d=>`/expenses/${d}/payments`,c8v=async(d,c,g)=>h(NRS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var mn={create:b(F9v,1),list:X(k9v),createCustom:b(j9v,1),exportExpenses:b(H9v,1),getExpenseCategoryReport:b(L9v,1),getRecognitionSettings:b(G9v,0),updateRecognitionSettings:b(V9v,1),backfillExpenseRecognition:b(K9v,1),createRecognition:b(Z9v,1),getRecognition:b(q9v,1),retryRecognition:b(W9v,1),getExpenseInboundEmail:b(Y9v,0),rotateExpenseInboundEmail:b($9v,0),disableExpenseInboundEmail:b(Q9v,0),listExpenseInboundEmailMessages:b(J9v,1),previewImportFromShareableLink:b(X9v,1),importFromShareableLink:b(e8v,1),getLatestRecognition:b(t8v,1),get:b(n8v,1),update:b(s8v,2),delete:b(o8v,1),void:b(i8v,1),restoreExpense:b(a8v,1),uploadExpenseAttachment:b(r8v,2),getExpenseAttachments:b(l8v,2),deleteExpenseAttachment:b(d8v,2),getExpensePayments:b(u8v,1),createExpensePayment:b(c8v,2)};var MRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},p8v=async(d,c)=>h(MRS(d),{...c,method:"GET"}),URS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},m8v=async(d,c)=>h(URS(d),{...c,method:"GET"}),PRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},x8v=async(d,c)=>h(PRS(d),{...c,method:"GET"}),CRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},g8v=async(d,c)=>h(CRS(d),{...c,method:"GET"}),wRS=()=>"/documents/export/pdf",y8v=async(d,c)=>h(wRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ARS=d=>`/documents/export/pdf/${d}`,O8v=async(d,c)=>h(ARS(d),{...c,method:"GET"}),FRS=d=>`/documents/export/pdf/${d}/download`,v8v=async(d,c)=>h(FRS(d),{...c,method:"GET"}),kRS=()=>"/documents/export/eslog",S8v=async(d,c)=>h(kRS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jRS=d=>`/documents/export/eslog/${d}`,h8v=async(d,c)=>h(jRS(d),{...c,method:"GET"}),HRS=d=>`/documents/export/eslog/${d}/download`,b8v=async(d,c)=>h(HRS(d),{...c,method:"GET"});var xn={exportDocuments:b(p8v,1),exportSalesPerItem:b(m8v,1),exportInventory:b(x8v,1),exportRevenueByCategory:b(g8v,1),startPdfExport:b(y8v,1),getPdfStatus:b(O8v,1),downloadPdfExport:b(v8v,1),startEslogExport:b(S8v,1),getEslogStatus:b(h8v,1),downloadEslogExport:b(b8v,1)};var LRS=()=>"/files",z8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),g.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&g.append("document_id",d.document_id),d.account_payable_id!==void 0&&g.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&g.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&g.append("expense_id",d.expense_id),h(LRS(),{...c,method:"POST",body:g})},GRS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/files?${g}`:"/files"},f8v=async(d,c)=>h(GRS(d),{...c,method:"GET"}),VRS=d=>`/files/${d}`,B8v=async(d,c)=>h(VRS(d),{...c,method:"GET"}),KRS=d=>`/files/${d}`,T8v=async(d,c)=>h(KRS(d),{...c,method:"DELETE"});var gn={uploadFile:b(z8v,1),list:X(f8v),get:b(B8v,1),delete:b(T8v,1)};var ZRS=()=>"/fiscalization/fina/settings/certificate",I8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(ZRS(),{...c,method:"POST",body:g})},qRS=()=>"/fiscalization/fina/settings/certificate",E8v=async d=>h(qRS(),{...d,method:"GET"}),WRS=()=>"/fiscalization/fina/settings/certificate",D8v=async d=>h(WRS(),{...d,method:"DELETE"});var yn={uploadFinaCertificate:b(I8v,1),getFinaCertificate:b(E8v,0),delete:b(D8v,0)};var YRS=d=>`/fiscalization/fina/premises/${d}/devices`,R8v=async(d,c)=>h(YRS(d),{...c,method:"GET"}),$RS=d=>`/fiscalization/fina/premises/${d}/devices`,_8v=async(d,c,g)=>h($RS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),QRS=d=>`/fiscalization/fina/devices/${d}`,N8v=async(d,c)=>h(QRS(d),{...c,method:"GET"}),JRS=d=>`/fiscalization/fina/devices/${d}`,M8v=async(d,c,g)=>h(JRS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XRS=d=>`/fiscalization/fina/devices/${d}`,U8v=async(d,c)=>h(XRS(d),{...c,method:"DELETE"});var On={listFinaDevices:b(R8v,1),registerFinaDevice:b(_8v,2),getFinaDevice:b(N8v,1),update:b(M8v,2),delete:b(U8v,1)};var e_S=()=>"/fiscalization/fina/premises",P8v=async d=>h(e_S(),{...d,method:"GET"}),t_S=()=>"/fiscalization/fina/premises",C8v=async(d,c)=>h(t_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n_S=d=>`/fiscalization/fina/premises/${d}`,w8v=async(d,c)=>h(n_S(d),{...c,method:"GET"}),s_S=d=>`/fiscalization/fina/premises/${d}`,A8v=async(d,c,g)=>h(s_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),o_S=d=>`/fiscalization/fina/premises/${d}`,F8v=async(d,c)=>h(o_S(d),{...c,method:"DELETE"});var vn={listFinaPremises:b(P8v,0),create:b(C8v,1),getFinaPremise:b(w8v,1),update:b(A8v,2),delete:b(F8v,1)};var i_S=()=>"/fiscalization/fina/settings",k8v=async d=>h(i_S(),{...d,method:"GET"}),a_S=()=>"/fiscalization/fina/settings",j8v=async(d,c)=>h(a_S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Sn={list:b(k8v,0),update:b(j8v,1)};var r_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},H8v=async(d,c)=>h(r_S(d),{...c,method:"GET"}),l_S=()=>"/financial-categories",L8v=async(d,c)=>h(l_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),d_S=d=>`/financial-categories/${d}`,G8v=async(d,c,g)=>h(d_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),u_S=d=>`/financial-categories/${d}`,V8v=async(d,c)=>h(u_S(d),{...c,method:"DELETE"}),c_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},K8v=async(d,c)=>h(c_S(d),{...c,method:"GET"}),p_S=()=>"/financial-categories/document-items/batch",Z8v=async(d,c)=>h(p_S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),m_S=d=>`/financial-categories/document-items/${d}`,q8v=async(d,c,g)=>h(m_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var hn={list:X(H8v),create:b(L8v,1),update:b(G8v,2),delete:b(V8v,1),getRevenueByFinancialCategory:b(K8v,1),updateDocumentItemFinancialCategories:b(Z8v,1),updateDocumentItemFinancialCategory:b(q8v,2)};var x_S=()=>"/fiscalization/furs/settings/certificate",W8v=async(d,c)=>{let g=new FormData;return d.file!==void 0&&g.append("file",d.file),d.passphrase!==void 0&&g.append("passphrase",d.passphrase),h(x_S(),{...c,method:"POST",body:g})},g_S=()=>"/fiscalization/furs/settings/certificate",Y8v=async d=>h(g_S(),{...d,method:"GET"}),y_S=()=>"/fiscalization/furs/settings/certificate",$8v=async d=>h(y_S(),{...d,method:"DELETE"});var bn={uploadFursCertificate:b(W8v,1),getFursCertificate:b(Y8v,0),delete:b($8v,0)};var O_S=d=>`/fiscalization/furs/premises/${d}/devices`,Q8v=async(d,c)=>h(O_S(d),{...c,method:"GET"}),v_S=d=>`/fiscalization/furs/premises/${d}/devices`,J8v=async(d,c,g)=>h(v_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S_S=d=>`/fiscalization/furs/devices/${d}`,X8v=async(d,c)=>h(S_S(d),{...c,method:"GET"}),h_S=d=>`/fiscalization/furs/devices/${d}`,eYv=async(d,c,g)=>h(h_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var zn={listFursElectronicDevices:b(Q8v,1),registerFursElectronicDevice:b(J8v,2),getFursElectronicDevice:b(X8v,1),update:b(eYv,2)};var b_S=()=>"/fiscalization/furs/internal-act/report.pdf",tYv=async d=>h(b_S(),{...d,method:"GET"}),z_S=()=>"/fiscalization/furs/internal-act/report.docx",nYv=async d=>h(z_S(),{...d,method:"GET"});var fn={generateFursInternalActPdf:b(tYv,0),generateFursInternalActDocx:b(nYv,0)};var f_S=()=>"/fiscalization/furs/premises",sYv=async d=>h(f_S(),{...d,method:"GET"}),B_S=d=>`/fiscalization/furs/premises/${d}`,oYv=async(d,c)=>h(B_S(d),{...c,method:"GET"}),T_S=d=>`/fiscalization/furs/premises/${d}`,iYv=async(d,c,g)=>h(T_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),I_S=()=>"/fiscalization/furs/premises/real-estate",aYv=async(d,c)=>h(I_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E_S=()=>"/fiscalization/furs/premises/movable",rYv=async(d,c)=>h(E_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),D_S=d=>`/fiscalization/furs/premises/${d}/close`,lYv=async(d,c)=>h(D_S(d),{...c,method:"POST"});var Bn={listFursBusinessPremises:b(sYv,0),getFursBusinessPremise:b(oYv,1),update:b(iYv,2),registerFursRealEstatePremise:b(aYv,1),registerFursMovablePremise:b(rYv,1),closeFursBusinessPremise:b(lYv,1)};var R_S=()=>"/fiscalization/furs/settings",dYv=async d=>h(R_S(),{...d,method:"GET"}),__S=()=>"/fiscalization/furs/settings",uYv=async(d,c)=>h(__S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Tn={list:b(dYv,0),update:b(uYv,1)};var N_S=()=>"/health/live",cYv=async d=>h(N_S(),{...d,method:"GET"}),M_S=()=>"/health/ready",pYv=async d=>h(M_S(),{...d,method:"GET"}),U_S=()=>"/health",mYv=async d=>h(U_S(),{...d,method:"GET"});var In={livenessCheck:b(cYv,0),readinessCheck:b(pYv,0),healthCheck:b(mYv,0)};var P_S=d=>`/invoices/${d}/nav/retry`,xYv=async(d,c)=>h(P_S(d),{...c,method:"POST"}),C_S=d=>`/invoices/${d}/nav/reconcile`,gYv=async(d,c)=>h(C_S(d),{...c,method:"POST"}),w_S=d=>`/invoices/${d}/nav/annulment`,yYv=async(d,c,g)=>h(w_S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),A_S=d=>`/invoices/shareable/${d}`,OYv=async(d,c)=>h(A_S(d),{...c,method:"GET"}),F_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/html?${E}`:`/invoices/shareable/${d}/html`},vYv=async(d,c,g)=>h(F_S(d,c),{...g,method:"GET"}),k_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/pdf?${E}`:`/invoices/shareable/${d}/pdf`},SYv=async(d,c,g)=>h(k_S(d,c),{...g,method:"GET"}),j_S=d=>`/invoices/shareable/${d}/eslog`,hYv=async(d,c)=>h(j_S(d),{...c,method:"GET"}),H_S=d=>`/invoices/${d}/ksef/recover`,bYv=async(d,c)=>h(H_S(d),{...c,method:"POST"}),L_S=d=>`/invoices/${d}/ksef`,zYv=async(d,c)=>h(L_S(d),{...c,method:"GET"}),G_S=d=>`/invoices/${d}/ksef/submit`,fYv=async(d,c)=>h(G_S(d),{...c,method:"POST"}),V_S=d=>`/invoices/${d}/ksef/upo`,BYv=async(d,c)=>h(V_S(d),{...c,method:"GET"}),K_S=()=>"/invoices",TYv=async(d,c)=>h(K_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Z_S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices?${g}`:"/invoices"},IYv=async(d,c)=>h(Z_S(d),{...c,method:"GET"}),q_S=()=>"/invoices/custom",EYv=async(d,c)=>h(q_S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),W_S=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/invoices/${d}?${E}`:`/invoices/${d}`},DYv=async(d,c,g)=>h(W_S(d,c),{...g,method:"GET"}),Y_S=d=>`/invoices/${d}`,RYv=async(d,c,g)=>h(Y_S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$_S=d=>`/invoices/${d}/credit-options`,_Yv=async(d,c)=>h($_S(d),{...c,method:"GET"}),Q_S=d=>`/invoices/${d}/xrechnung`,NYv=async(d,c)=>h(Q_S(d),{...c,method:"GET"}),J_S=d=>`/invoices/${d}/zugferd`,MYv=async(d,c)=>h(J_S(d),{...c,method:"GET"}),X_S=d=>`/invoices/${d}/versions`,UYv=async(d,c)=>h(X_S(d),{...c,method:"GET"}),eNS=(d,c)=>`/invoices/${d}/versions/${c}`,PYv=async(d,c,g)=>h(eNS(d,c),{...g,method:"GET"}),tNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},CYv=async(d,c,g)=>h(tNS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nNS=d=>`/invoices/${d}/void`,wYv=async(d,c,g)=>h(nNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sNS=d=>`/invoices/${d}/fiscalize`,AYv=async(d,c)=>h(sNS(d),{...c,method:"POST"}),oNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/html?${E}`:`/documents/${d}/html`},FYv=async(d,c,g)=>h(oNS(d,c),{...g,method:"GET"}),iNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/documents/${d}/pdf?${E}`:`/documents/${d}/pdf`},kYv=async(d,c,g)=>h(iNS(d,c),{...g,method:"GET"});function En(d,c){let g=URL.createObjectURL(d),E=document.createElement("a");E.href=g,E.download=c,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(g);}var jYv=b(kYv,2),aNS=Object.assign(async(d,c,g,E)=>{let z=await jYv(d,g,E);En(z,c);},{__sdkOptionsIndex:3}),Dn={retryInvoiceNav:b(xYv,1),reconcileInvoiceNav:b(gYv,1),annulInvoiceNav:b(yYv,2),getShareableInvoice:b(OYv,1),getShareableInvoiceHtml:b(vYv,2),getShareableInvoicePdf:b(SYv,2),getShareableInvoiceEslog:b(hYv,1),recoverInvoiceFromKsef:b(bYv,1),getInvoiceKsefState:b(zYv,1),submitInvoiceToKsef:b(fYv,1),getInvoiceKsefUpo:b(BYv,1),create:b(TYv,1),list:X(IYv),createCustom:b(EYv,1),get:b(DYv,2),update:b(RYv,2),getCreditOptions:b(_Yv,1),downloadInvoiceXRechnung:b(NYv,1),downloadInvoiceZugferd:b(MYv,1),getVersions:b(UYv,1),getVersion:b(PYv,2),renderInvoicePreview:b(CYv,2),void:b(wYv,2),fiscalizeInvoice:b(AYv,1),renderHtml:b(FYv,2),renderPdf:jYv,downloadPdf:aNS};var rNS=()=>"/items",HYv=async(d,c)=>h(rNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items?${g}`:"/items"},LYv=async(d,c)=>h(lNS(d),{...c,method:"GET"}),dNS=()=>"/items/categories",GYv=async d=>h(dNS(),{...d,method:"GET"}),uNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},VYv=async(d,c)=>h(uNS(d),{...c,method:"GET"}),cNS=()=>"/items/import/preview",KYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(cNS(),{...c,method:"POST",body:g})},pNS=()=>"/items/import",ZYv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(pNS(),{...c,method:"POST",body:g})},mNS=d=>`/items/${d}`,qYv=async(d,c,g)=>h(mNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xNS=d=>`/items/${d}`,WYv=async(d,c)=>h(xNS(d),{...c,method:"DELETE"}),gNS=d=>`/items/${d}/restore`,YYv=async(d,c)=>h(gNS(d),{...c,method:"POST"}),yNS=d=>`/items/${d}/permanent`,$Yv=async(d,c)=>h(yNS(d),{...c,method:"DELETE"}),ONS=d=>`/items/${d}/inventory`,QYv=async(d,c)=>h(ONS(d),{...c,method:"GET"}),vNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/items/${d}/inventory/movements?${E}`:`/items/${d}/inventory/movements`},JYv=async(d,c,g)=>h(vNS(d,c),{...g,method:"GET"}),SNS=d=>`/items/${d}/inventory/movements`,XYv=async(d,c,g)=>h(SNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hNS=(d,c)=>`/items/${d}/inventory/movements/${c}`,e$v=async(d,c,g)=>h(hNS(d,c),{...g,method:"DELETE"});var Rn={create:b(HYv,1),list:X(LYv),categories:b(GYv,0),getItemsImportTemplate:b(VYv,1),preview:b(KYv,1),importItems:b(ZYv,1),update:b(qYv,2),delete:b(WYv,1),restoreItem:b(YYv,1),permanentDeleteItem:b($Yv,1),getItemInventory:b(QYv,1),getItemInventoryMovements:b(JYv,2),createItemInventoryMovement:b(XYv,2),deleteItemInventoryMovement:b(e$v,2)};var bNS=()=>"/legacy-migration/auth",t$v=async(d,c)=>h(bNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zNS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/legacy-migration/organizations/${d}?${E}`:`/legacy-migration/organizations/${d}`},n$v=async(d,c,g)=>h(zNS(d,c),{...g,method:"GET"}),fNS=()=>"/legacy-migration/jobs",s$v=async(d,c)=>h(fNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BNS=()=>"/legacy-migration/jobs",o$v=async d=>h(BNS(),{...d,method:"GET"}),TNS=d=>`/legacy-migration/jobs/${d}`,i$v=async(d,c)=>h(TNS(d),{...c,method:"GET"});var _n={legacyMigrationAuth:b(t$v,1),getLegacyMigrationOrganization:b(n$v,2),create:b(s$v,1),listMigrationJobs:b(o$v,0),getMigrationJob:b(i$v,1)};var INS=()=>"/locale/detect",a$v=async d=>h(INS(),{...d,method:"GET"});var Nn={detectLocale:b(a$v,0)};var ENS=()=>"/order-integrations/shopify/authorize",r$v=async(d,c)=>h(ENS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DNS=()=>"/order-integrations/woocommerce/authorize",l$v=async(d,c)=>h(DNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RNS=()=>"/order-integrations/magento/authorize",d$v=async(d,c)=>h(RNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),_NS=d=>`/order-integrations/magento/authorizations/${d}`,u$v=async(d,c)=>h(_NS(d),{...c,method:"GET"}),NNS=()=>"/order-integrations/shopify/resume-install",c$v=async(d,c)=>h(NNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MNS=d=>`/order-integrations/${d}/promote-shopify-billing`,p$v=async(d,c)=>h(MNS(d),{...c,method:"POST"}),UNS=d=>`/order-integrations/${d}/sync-shopify`,m$v=async(d,c,g)=>h(UNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PNS=d=>`/order-integrations/${d}/sync`,x$v=async(d,c,g)=>h(PNS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),CNS=()=>"/order-integrations/custom/connect",g$v=async(d,c)=>h(CNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wNS=d=>`/order-integrations/${d}/custom/rotate-secret`,y$v=async(d,c)=>h(wNS(d),{...c,method:"POST"}),ANS=d=>`/order-integrations/${d}/orders`,O$v=async(d,c,g)=>h(ANS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FNS=()=>"/order-integrations",v$v=async(d,c)=>h(FNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),kNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},S$v=async(d,c)=>h(kNS(d),{...c,method:"GET"}),jNS=d=>`/order-integrations/${d}`,h$v=async(d,c)=>h(jNS(d),{...c,method:"GET"}),HNS=d=>`/order-integrations/${d}`,b$v=async(d,c,g)=>h(HNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),LNS=d=>`/order-integrations/${d}`,z$v=async(d,c)=>h(LNS(d),{...c,method:"DELETE"});var Mn={authorizeShopify:b(r$v,1),authorizeWooCommerce:b(l$v,1),authorizeMagento:b(d$v,1),getMagentoAuthorization:b(u$v,1),resumeShopifyInstall:b(c$v,1),promoteShopifyBilling:b(p$v,1),syncShopifyOrders:b(m$v,2),syncOrderIntegration:b(x$v,2),connectCustomStore:b(g$v,1),rotateCustomStoreSecret:b(y$v,1),pushCustomStoreOrder:b(O$v,2),create:b(v$v,1),list:X(S$v),get:b(h$v,1),update:b(b$v,2),delete:b(z$v,1)};var GNS=()=>"/orders",f$v=async(d,c)=>h(GNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),VNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/orders?${g}`:"/orders"},B$v=async(d,c)=>h(VNS(d),{...c,method:"GET"}),KNS=d=>`/orders/${d}`,T$v=async(d,c)=>h(KNS(d),{...c,method:"GET"}),ZNS=d=>`/orders/${d}`,I$v=async(d,c,g)=>h(ZNS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),qNS=d=>`/orders/${d}`,E$v=async(d,c)=>h(qNS(d),{...c,method:"DELETE"}),WNS=d=>`/orders/${d}/process`,D$v=async(d,c)=>h(WNS(d),{...c,method:"POST"}),YNS=d=>`/orders/${d}/cancel`,R$v=async(d,c)=>h(YNS(d),{...c,method:"POST"}),$NS=d=>`/orders/${d}/reissue`,_$v=async(d,c)=>h($NS(d),{...c,method:"POST"});var Un={create:b(f$v,1),list:X(B$v),get:b(T$v,1),update:b(I$v,2),delete:b(E$v,1),processOrder:b(D$v,1),cancelOrder:b(R$v,1),reissueOrder:b(_$v,1)};var QNS=()=>"/payment-reminders/send",N$v=async(d,c)=>h(QNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JNS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},M$v=async(d,c)=>h(JNS(d),{...c,method:"GET"});var Pn={sendPaymentReminder:b(N$v,1),list:X(M$v)};var XNS=()=>"/payments",U$v=async(d,c)=>h(XNS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),eMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payments?${g}`:"/payments"},P$v=async(d,c)=>h(eMS(d),{...c,method:"GET"}),tMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payments/${d}?${E}`:`/payments/${d}`},C$v=async(d,c,g)=>h(tMS(d,c),{...g,method:"GET"}),nMS=d=>`/payments/${d}`,w$v=async(d,c,g)=>h(nMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),sMS=d=>`/payments/${d}`,A$v=async(d,c)=>h(sMS(d),{...c,method:"DELETE"}),oMS=d=>`/payments/${d}/restore`,F$v=async(d,c)=>h(oMS(d),{...c,method:"POST"}),iMS=d=>`/payments/${d}/permanent`,k$v=async(d,c)=>h(iMS(d),{...c,method:"DELETE"}),aMS=()=>"/bank-imports",j$v=async(d,c)=>{let g=new FormData;return g.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&g.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&g.append("column_mapping",d.column_mapping),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),h(aMS(),{...c,method:"POST",body:g})},rMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},H$v=async(d,c)=>h(rMS(d),{...c,method:"GET"}),lMS=d=>`/bank-imports/${d}`,L$v=async(d,c)=>h(lMS(d),{...c,method:"GET"}),dMS=d=>`/bank-imports/${d}/summary`,G$v=async(d,c)=>h(dMS(d),{...c,method:"GET"}),uMS=d=>`/bank-imports/${d}/match`,V$v=async(d,c)=>h(uMS(d),{...c,method:"POST"}),cMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},K$v=async(d,c)=>h(cMS(d),{...c,method:"GET"}),pMS=d=>`/bank-transactions/${d}`,Z$v=async(d,c)=>h(pMS(d),{...c,method:"GET"}),mMS=d=>`/bank-transactions/${d}/link`,q$v=async(d,c,g)=>h(mMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xMS=d=>`/bank-transactions/${d}/confirm-fee`,W$v=async(d,c,g)=>h(xMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),gMS=d=>`/bank-transactions/${d}/ignore`,Y$v=async(d,c)=>h(gMS(d),{...c,method:"POST"}),yMS=d=>`/bank-transactions/${d}/unlink`,$$v=async(d,c)=>h(yMS(d),{...c,method:"POST"});var Cn={create:b(U$v,1),list:X(P$v),get:b(C$v,2),update:b(w$v,2),delete:b(A$v,1),restorePayment:b(F$v,1),permanentDeletePayment:b(k$v,1),importBankStatement:b(j$v,1),listBankImports:b(H$v,1),getBankImport:b(L$v,1),getBankImportSummary:b(G$v,1),rematchBankImport:b(V$v,1),listBankTransactions:b(K$v,1),getBankTransaction:b(Z$v,1),linkBankTransaction:b(q$v,2),confirmBankTransactionFee:b(W$v,2),ignoreBankTransaction:b(Y$v,1),unlinkBankTransaction:b($$v,1)};var OMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},Q$v=async(d,c)=>h(OMS(d),{...c,method:"GET"}),vMS=()=>"/pos/tables",J$v=async(d,c)=>h(vMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),SMS=d=>`/pos/tables/${d}`,X$v=async(d,c,g)=>h(SMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),hMS=d=>`/pos/tables/${d}`,eQv=async(d,c)=>h(hMS(d),{...c,method:"DELETE"}),bMS=d=>`/pos/tabs/${d}/items`,tQv=async(d,c,g)=>h(bMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),zMS=d=>`/pos/tabs/${d}/claim`,nQv=async(d,c,g)=>h(zMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),fMS=d=>`/pos/tabs/${d}/release`,sQv=async(d,c,g)=>h(fMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),BMS=d=>`/pos/tabs/${d}/close`,oQv=async(d,c,g)=>h(BMS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),TMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},iQv=async(d,c)=>h(TMS(d),{...c,method:"GET"}),IMS=()=>"/pos/tabs",aQv=async(d,c)=>h(IMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),EMS=d=>`/pos/tabs/${d}`,rQv=async(d,c)=>h(EMS(d),{...c,method:"GET"}),DMS=d=>`/pos/tabs/${d}`,lQv=async(d,c,g)=>h(DMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),RMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/pos/tabs/${d}?${E}`:`/pos/tabs/${d}`},dQv=async(d,c,g)=>h(RMS(d,c),{...g,method:"DELETE"}),_MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},uQv=async(d,c)=>h(_MS(d),{...c,method:"GET"}),NMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},cQv=async(d,c)=>h(NMS(d),{...c,method:"GET"}),MMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},pQv=async(d,c)=>h(MMS(d),{...c,method:"GET"}),UMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},mQv=async(d,c)=>h(UMS(d),{...c,method:"GET"}),PMS=()=>"/pos/operators",xQv=async d=>h(PMS(),{...d,method:"GET"}),CMS=()=>"/pos/operators/enrol",gQv=async(d,c)=>h(CMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wMS=()=>"/pos/operators/switch",yQv=async(d,c)=>h(wMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),AMS=d=>`/pos/operators/${d}/pin`,OQv=async(d,c,g)=>h(AMS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),FMS=d=>`/pos/operators/${d}/pin`,vQv=async(d,c)=>h(FMS(d),{...c,method:"DELETE"});var kMS=b(dQv,2),wn={listTables:X(Q$v),createTable:b(J$v,1),updateTable:b(X$v,2),deleteTable:b(eQv,1),appendTabItems:b(tQv,2),claimTab:b(nQv,2),releaseTab:b(sQv,2),closeTab:b(oQv,2),listTabs:X(iQv),createTab:b(aQv,1),getTab:b(rQv,1),updateTab:b(lQv,2),cancelTab:Object.assign((...d)=>kMS(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:b(uQv,1),exportPosMonthlyReport:b(cQv,1),dailyReport:b(pQv,1),getPosMonthlyReport:b(mQv,1),listOperators:b(xQv,0),enrolPosOperator:b(gQv,1),switchOperator:b(yQv,1),setOperatorPin:b(OQv,2),clearOperatorPin:b(vQv,1)};var jMS=()=>"/fiscalization/pt/atcud-series",SQv=async(d,c)=>h(jMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},hQv=async(d,c)=>h(HMS(d),{...c,method:"GET"}),LMS=d=>`/fiscalization/pt/atcud-series/${d}`,bQv=async(d,c)=>h(LMS(d),{...c,method:"GET"}),GMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},zQv=async(d,c)=>h(GMS(d),{...c,method:"POST"}),VMS=d=>`/fiscalization/pt/atcud-series/${d}/retire`,fQv=async(d,c)=>h(VMS(d),{...c,method:"POST"});var An={create:b(SQv,1),list:X(hQv),get:b(bQv,1),getActive:b(zQv,1),retirePtAtcudSeries:b(fQv,1)};var KMS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},BQv=async(d,c)=>h(KMS(d),{...c,method:"GET"});var Fn={generateReport:b(BQv,1)};var ZMS=d=>`/purchase-orders/shareable/${d}`,TQv=async(d,c)=>h(ZMS(d),{...c,method:"GET"}),qMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/html?${E}`:`/purchase-orders/shareable/${d}/html`},IQv=async(d,c,g)=>h(qMS(d,c),{...g,method:"GET"}),WMS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/pdf?${E}`:`/purchase-orders/shareable/${d}/pdf`},EQv=async(d,c,g)=>h(WMS(d,c),{...g,method:"GET"}),YMS=()=>"/purchase-orders",DQv=async(d,c)=>h(YMS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$MS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},RQv=async(d,c)=>h($MS(d),{...c,method:"GET"}),QMS=d=>`/purchase-orders/${d}`,_Qv=async(d,c)=>h(QMS(d),{...c,method:"GET"}),JMS=d=>`/purchase-orders/${d}`,NQv=async(d,c,g)=>h(JMS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),XMS=d=>`/purchase-orders/${d}/versions`,MQv=async(d,c)=>h(XMS(d),{...c,method:"GET"}),eUS=(d,c)=>`/purchase-orders/${d}/versions/${c}`,UQv=async(d,c,g)=>h(eUS(d,c),{...g,method:"GET"}),tUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},PQv=async(d,c,g)=>h(tUS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),nUS=d=>`/purchase-orders/${d}/void`,CQv=async(d,c,g)=>h(nUS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var kn={getShareablePurchaseOrder:b(TQv,1),getShareablePurchaseOrderHtml:b(IQv,2),getShareablePurchaseOrderPdf:b(EQv,2),create:b(DQv,1),list:X(RQv),get:b(_Qv,1),update:b(NQv,2),getVersions:b(MQv,1),getVersion:b(UQv,2),renderPurchaseOrderPreview:b(PQv,2),void:b(CQv,2)};var sUS=()=>"/recurring-invoices",wQv=async(d,c)=>h(sUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),oUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},AQv=async(d,c)=>h(oUS(d),{...c,method:"GET"}),iUS=d=>`/recurring-invoices/${d}`,FQv=async(d,c)=>h(iUS(d),{...c,method:"GET"}),aUS=d=>`/recurring-invoices/${d}`,kQv=async(d,c,g)=>h(aUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),rUS=d=>`/recurring-invoices/${d}`,jQv=async(d,c)=>h(rUS(d),{...c,method:"DELETE"}),lUS=d=>`/recurring-invoices/${d}/restore`,HQv=async(d,c)=>h(lUS(d),{...c,method:"POST"}),dUS=d=>`/recurring-invoices/${d}/permanent`,LQv=async(d,c)=>h(dUS(d),{...c,method:"DELETE"}),uUS=d=>`/recurring-invoices/${d}/pause`,GQv=async(d,c)=>h(uUS(d),{...c,method:"POST"}),cUS=d=>`/recurring-invoices/${d}/resume`,VQv=async(d,c)=>h(cUS(d),{...c,method:"POST"}),pUS=d=>`/recurring-invoices/${d}/trigger`,KQv=async(d,c)=>h(pUS(d),{...c,method:"POST"});var jn={create:b(wQv,1),list:X(AQv),get:b(FQv,1),update:b(kQv,2),delete:b(jQv,1),restoreRecurringInvoice:b(HQv,1),permanentDeleteRecurringInvoice:b(LQv,1),pauseRecurringInvoice:b(GQv,1),resumeRecurringInvoice:b(VQv,1),triggerRecurringInvoice:b(KQv,1)};var mUS=()=>"/revenue-recognition/settings",ZQv=async d=>h(mUS(),{...d,method:"GET"}),xUS=()=>"/revenue-recognition/settings",qQv=async(d,c)=>h(xUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gUS=()=>"/revenue-recognition/backfill",WQv=async(d,c)=>h(gUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},YQv=async(d,c)=>h(yUS(d),{...c,method:"GET"}),OUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},$Qv=async(d,c)=>h(OUS(d),{...c,method:"GET"}),vUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},QQv=async(d,c)=>h(vUS(d),{...c,method:"GET"}),SUS=d=>`/revenue-recognition/documents/${d}`,JQv=async(d,c)=>h(SUS(d),{...c,method:"GET"});var Hn={getSettings:b(ZQv,0),updateSettings:b(qQv,1),backfill:b(WQv,1),getReport:b(YQv,1),getDetails:b($Qv,1),listLines:b(QQv,1),getDocumentSchedule:b(JQv,1)};var hUS=()=>"/stripe-app/marketplace-authorize",XQv=async(d,c)=>h(hUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),bUS=()=>"/stripe-app/connect",eJv=async(d,c)=>h(bUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zUS=()=>"/stripe-app/entity-connection",tJv=async d=>h(zUS(),{...d,method:"GET"}),fUS=()=>"/stripe-app/entity-connection",nJv=async d=>h(fUS(),{...d,method:"DELETE"}),BUS=()=>"/stripe-app/entity-settings",sJv=async d=>h(BUS(),{...d,method:"GET"}),TUS=()=>"/stripe-app/entity-settings",oJv=async(d,c)=>h(TUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Ln={stripeAppMarketplaceAuthorize:b(XQv,1),stripeAppConnect:b(eJv,1),stripeAppEntityGetConnection:b(tJv,0),stripeAppEntityDisconnect:b(nJv,0),stripeAppEntityGetSettings:b(sJv,0),stripeAppEntityUpdateSettings:b(oJv,1)};var IUS=()=>"/subscriptions",iJv=async d=>h(IUS(),{...d,method:"GET"}),EUS=()=>"/subscriptions/spending-limit",aJv=async(d,c)=>h(EUS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DUS=()=>"/subscriptions/check-entity-limit",rJv=async d=>h(DUS(),{...d,method:"GET"});var Gn={getCurrent:b(iJv,0),update:b(aJv,1),checkEntityLimit:b(rJv,0)};var RUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},lJv=async(d,c)=>h(RUS(d),{...c,method:"GET"});var Vn={listUsTaxRateEstimates:b(lJv,1)};var _US=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/employees?${g}`:"/employees"},dJv=async(d,c)=>h(_US(d),{...c,method:"GET"}),NUS=()=>"/employees",uJv=async(d,c)=>h(NUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MUS=d=>`/employees/${d}`,cJv=async(d,c)=>h(MUS(d),{...c,method:"GET"}),UUS=d=>`/employees/${d}`,pJv=async(d,c,g)=>h(UUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),PUS=d=>`/employees/${d}`,mJv=async(d,c)=>h(PUS(d),{...c,method:"DELETE"}),CUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},xJv=async(d,c,g)=>h(CUS(d,c),{...g,method:"GET"}),wUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},gJv=async(d,c,g,E)=>h(wUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),AUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},yJv=async(d,c)=>h(AUS(d),{...c,method:"GET"}),FUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},OJv=async(d,c)=>h(FUS(d),{...c,method:"GET"}),kUS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/payroll/parameters/${d}?${E}`:`/payroll/parameters/${d}`},vJv=async(d,c,g,E)=>h(kUS(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),jUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},SJv=async(d,c)=>h(jUS(d),{...c,method:"GET"}),HUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},hJv=async(d,c)=>h(HUS(d),{...c,method:"GET"}),LUS=()=>"/tax-reports/payments",bJv=async(d,c)=>h(LUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),GUS=d=>`/tax-reports/payments/${d}`,zJv=async(d,c,g)=>h(GUS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),VUS=d=>`/tax-reports/payments/${d}`,fJv=async(d,c)=>h(VUS(d),{...c,method:"DELETE"}),KUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},BJv=async(d,c)=>h(KUS(d),{...c,method:"GET"}),ZUS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},TJv=async(d,c)=>h(ZUS(d),{...c,method:"POST"}),qUS=()=>"/tax-reports/si/profile",IJv=async d=>h(qUS(),{...d,method:"GET"}),WUS=()=>"/tax-reports/si/profile",EJv=async(d,c)=>h(WUS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),YUS=()=>"/tax-reports/si/yearly/normirani/review",DJv=async(d,c)=>h(YUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$US=()=>"/tax-reports/si/yearly/normirani/export",RJv=async(d,c)=>h($US(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QUS=()=>"/tax-reports/si/accounting/vod/export",_Jv=async(d,c)=>h(QUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JUS=()=>"/tax-reports/si/accounting/minimax/export",NJv=async(d,c)=>h(JUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XUS=()=>"/tax-reports/si/accounting/vasco/export",MJv=async(d,c)=>h(XUS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ePS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},UJv=async(d,c)=>h(ePS(d),{...c,method:"GET"}),tPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},PJv=async(d,c)=>h(tPS(d),{...c,method:"GET"}),nPS=()=>"/vat-returns",CJv=async(d,c)=>h(nPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},wJv=async(d,c)=>h(sPS(d),{...c,method:"GET"}),oPS=d=>`/vat-returns/${d}`,AJv=async(d,c)=>h(oPS(d),{...c,method:"GET"}),iPS=d=>`/vat-returns/${d}/recompute`,FJv=async(d,c)=>h(iPS(d),{...c,method:"POST"}),aPS=d=>`/vat-returns/${d}/approve`,kJv=async(d,c)=>h(aPS(d),{...c,method:"POST"}),rPS=d=>`/vat-returns/${d}/submit`,jJv=async(d,c,g)=>h(rPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),lPS=d=>`/vat-returns/${d}/reopen`,HJv=async(d,c)=>h(lPS(d),{...c,method:"POST"}),dPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/vat-returns/${d}/export?${E}`:`/vat-returns/${d}/export`},LJv=async(d,c,g)=>h(dPS(d,c),{...g,method:"GET"}),uPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/filings?${g}`:"/filings"},GJv=async(d,c)=>h(uPS(d),{...c,method:"GET"}),cPS=d=>`/filings/${d}/complete`,VJv=async(d,c,g)=>h(cPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),pPS=d=>`/filings/${d}/reopen`,KJv=async(d,c)=>h(pPS(d),{...c,method:"POST"}),mPS=d=>`/filings/${d}/dismiss`,ZJv=async(d,c,g)=>h(mPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),xPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},qJv=async(d,c)=>h(xPS(d),{...c,method:"GET"});var Kn={listEmployees:b(dJv,1),registerEmployee:b(uJv,1),getEmployee:b(cJv,1),modifyEmployee:b(pJv,2),archiveEmployee:b(mJv,1),getEmployeeAttendance:b(xJv,2),replaceEmployeeAttendance:b(gJv,3),resolvePayrollParameters:b(yJv,1),getPayrollParameterHistory:b(OJv,1),setPayrollParameterOverride:b(vJv,3),getTaxLiabilityReport:b(SJv,1),list:X(hJv),create:b(bJv,1),update:b(zJv,2),delete:b(fJv,1),getEuOssReport:b(BJv,1),generateKirExport:b(TJv,1),getSloveniaTaxProfile:b(IJv,0),updateSloveniaTaxProfile:b(EJv,1),reviewSloveniaYearlyNormiraniReport:b(DJv,1),exportSloveniaYearlyNormiraniReport:b(RJv,1),exportSloveniaVodXml:b(_Jv,1),exportSloveniaMinimaxXml:b(NJv,1),exportSloveniaVascoXml:b(MJv,1),exportQuickbooksCsv:b(UJv,1),preview:b(PJv,1),draftVatReturn:b(CJv,1),listVatReturns:b(wJv,1),getVatReturn:b(AJv,1),recomputeVatReturn:b(FJv,1),approveVatReturn:b(kJv,1),submitVatReturn:b(jJv,2),reopenVatReturn:b(HJv,1),exportVatReturn:b(LJv,2),listFilings:b(GJv,1),completeFiling:b(VJv,2),reopenFiling:b(KJv,1),dismissFiling:b(ZJv,2),listAccountFilingsCalendar:b(qJv,1)};var gPS=()=>"/taxes",WJv=async(d,c)=>h(gPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/taxes?${g}`:"/taxes"},YJv=async(d,c)=>h(yPS(d),{...c,method:"GET"}),OPS=d=>`/taxes/${d}`,$Jv=async(d,c,g)=>h(OPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),vPS=d=>`/taxes/${d}`,QJv=async(d,c,g)=>h(vPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),SPS=d=>`/taxes/${d}`,JJv=async(d,c)=>h(SPS(d),{...c,method:"DELETE"}),hPS=d=>`/taxes/${d}/restore`,XJv=async(d,c)=>h(hPS(d),{...c,method:"POST"}),bPS=d=>`/taxes/${d}/permanent`,eXv=async(d,c)=>h(bPS(d),{...c,method:"DELETE"});var Zn={create:b(WJv,1),list:X(YJv),update:b($Jv,2),replaceTax:b(QJv,2),delete:b(JJv,1),restoreTax:b(XJv,1),permanentDeleteTax:b(eXv,1)};var zPS=()=>"/fiscalization/ticketbai/settings",tXv=async d=>h(zPS(),{...d,method:"GET"}),fPS=()=>"/fiscalization/ticketbai/settings",nXv=async(d,c)=>h(fPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BPS=()=>"/fiscalization/ticketbai/settings/certificate",sXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(BPS(),{...c,method:"POST",body:g})},TPS=d=>`/fiscalization/ticketbai/records/${d}`,oXv=async(d,c)=>h(TPS(d),{...c,method:"GET"}),IPS=d=>`/fiscalization/ticketbai/records/${d}/xml`,iXv=async(d,c)=>h(IPS(d),{...c,method:"GET"}),EPS=d=>`/fiscalization/ticketbai/records/${d}/retry`,aXv=async(d,c)=>h(EPS(d),{...c,method:"POST"}),DPS=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,rXv=async(d,c)=>h(DPS(d),{...c,method:"POST"});var qn={getSettings:b(tXv,0),updateSettings:b(nXv,1),uploadCertificate:b(sXv,1),getRecord:b(oXv,1),downloadRecordXml:b(iXv,1),retryRecord:b(aXv,1),reconcileRecord:b(rXv,1)};var RPS=()=>"/transaction-type/check",lXv=async(d,c)=>h(RPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Wn={checkTransactionType:b(lXv,1)};var _PS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},dXv=async(d,c)=>h(_PS(d),{...c,method:"GET"}),NPS=()=>"/travel-orders",uXv=async(d,c)=>h(NPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MPS=()=>"/travel-orders/preview",cXv=async(d,c)=>h(MPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),UPS=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},pXv=async(d,c,g)=>h(UPS(c),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),PPS=()=>"/travel-orders/route-distance",mXv=async(d,c)=>h(PPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),CPS=d=>`/travel-orders/${d}`,xXv=async(d,c)=>h(CPS(d),{...c,method:"GET"}),wPS=d=>`/travel-orders/${d}`,gXv=async(d,c,g)=>h(wPS(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),APS=d=>`/travel-orders/${d}`,yXv=async(d,c)=>h(APS(d),{...c,method:"DELETE"}),FPS=d=>`/travel-orders/${d}/approve`,OXv=async(d,c)=>h(FPS(d),{...c,method:"POST"}),kPS=d=>`/travel-orders/${d}/settle`,vXv=async(d,c)=>h(kPS(d),{...c,method:"POST"}),jPS=d=>`/travel-orders/${d}/reopen`,SXv=async(d,c,g)=>h(jPS(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),HPS=d=>`/travel-orders/${d}/cancel`,hXv=async(d,c)=>h(HPS(d),{...c,method:"POST"}),LPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/pdf?${E}`:`/travel-orders/${d}/pdf`},bXv=async(d,c,g)=>h(LPS(d,c),{...g,method:"GET"}),GPS=(d,c)=>{let g=new URLSearchParams;Object.entries(c||{}).forEach(([z,_])=>{_!==void 0&&g.append(z,_===null?"null":_.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/html?${E}`:`/travel-orders/${d}/html`},zXv=async(d,c,g)=>h(GPS(d,c),{...g,method:"GET"});var Yn={list:X(dXv),create:b(uXv,1),preview:b(cXv,1),renderTravelOrderPreview:b(pXv,2),calculateTravelOrderRouteDistance:b(mXv,1),get:b(xXv,1),update:b(gXv,2),delete:b(yXv,1),approveTravelOrder:b(OXv,1),settleTravelOrder:b(vXv,1),reopenTravelOrder:b(SXv,2),cancelTravelOrder:b(hXv,1),renderPdf:b(bXv,2),renderHtml:b(zXv,2)};var Re="https://eu.spaceinvoices.com";var VPS=d=>`/documents/${d}/ujp`,fXv=async(d,c)=>h(VPS(d),{...c,method:"GET"});var $n={download:b(fXv,1)};var KPS=()=>"/upload/image",BXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),h(KPS(),{...c,method:"POST",body:g})};var Qn={uploadImage:b(BXv,1)};var ZPS=()=>"/accounts/two-factor-policy",TXv=async d=>h(ZPS(),{...d,method:"GET"}),qPS=()=>"/accounts/two-factor-policy",IXv=async(d,c)=>h(qPS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),WPS=d=>`/entities/${d}/two-factor-policy`,EXv=async(d,c)=>h(WPS(d),{...c,method:"GET"}),YPS=d=>`/entities/${d}/two-factor-policy`,DXv=async(d,c,g)=>h(YPS(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),$PS=()=>"/users/two-factor/setup",RXv=async(d,c)=>h($PS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QPS=()=>"/users/two-factor/enable",_Xv=async(d,c)=>h(QPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),JPS=()=>"/users/me/two-factor",NXv=async d=>h(JPS(),{...d,method:"GET"}),XPS=()=>"/users/me/two-factor/setup",MXv=async(d,c)=>h(XPS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),e2S=()=>"/users/me/two-factor/enable",UXv=async(d,c)=>h(e2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),t2S=()=>"/users/me/two-factor/disable",PXv=async(d,c)=>h(t2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),n2S=()=>"/users/two-factor/verify",CXv=async(d,c)=>h(n2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),s2S=()=>"/users/login",wXv=async(d,c)=>h(s2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),o2S=()=>"/users/signup",AXv=async(d,c)=>h(o2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),i2S=()=>"/users/password-reset",FXv=async(d,c)=>h(i2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),a2S=()=>"/users/password-reset/confirm",kXv=async(d,c)=>h(a2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),r2S=()=>"/users/me/accounts",jXv=async d=>h(r2S(),{...d,method:"GET"}),l2S=()=>"/users/me",HXv=async d=>h(l2S(),{...d,method:"GET"}),d2S=()=>"/users/me",LXv=async(d,c)=>h(d2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),u2S=()=>"/users/me/account-deletion",GXv=async d=>h(u2S(),{...d,method:"POST"}),c2S=()=>"/users/me/settings/furs",VXv=async(d,c)=>h(c2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),p2S=()=>"/users/me/settings/fina",KXv=async(d,c)=>h(p2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Jn={getAccountTwoFactorPolicy:b(TXv,0),updateAccountTwoFactorPolicy:b(IXv,1),getEntityTwoFactorPolicy:b(EXv,1),updateEntityTwoFactorPolicy:b(DXv,2),setupRequiredTwoFactor:b(RXv,1),enableRequiredTwoFactor:b(_Xv,1),getTwoFactorConfiguration:b(NXv,0),setupTwoFactor:b(MXv,1),enableTwoFactor:b(UXv,1),disableTwoFactor:b(PXv,1),verifyTwoFactor:b(CXv,1),login:b(wXv,1),signup:b(AXv,1),requestPasswordReset:b(FXv,1),confirmPasswordReset:b(kXv,1),listMyAccounts:b(jXv,0),getMe:b(HXv,0),update:b(LXv,1),requestAccountDeletion:b(GXv,0),updateFursSettings:b(VXv,1),updateFinaSettings:b(KXv,1)};var m2S=()=>"/fiscalization/verifactu/settings",ZXv=async d=>h(m2S(),{...d,method:"GET"}),x2S=()=>"/fiscalization/verifactu/settings",qXv=async(d,c)=>h(x2S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),g2S=()=>"/fiscalization/verifactu/certificate",WXv=async(d,c)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),h(g2S(),{...c,method:"POST",body:g})},y2S=d=>`/fiscalization/verifactu/records/${d}`,YXv=async(d,c)=>h(y2S(d),{...c,method:"GET"}),O2S=d=>`/fiscalization/verifactu/records/${d}/retry`,$Xv=async(d,c)=>h(O2S(d),{...c,method:"POST"}),v2S=d=>`/fiscalization/verifactu/records/${d}/correct`,QXv=async(d,c,g)=>h(v2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),S2S=d=>`/fiscalization/verifactu/records/${d}/cancel`,JXv=async(d,c,g)=>h(S2S(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)});var Xn={getSettings:b(ZXv,0),updateSettings:b(qXv,1),uploadCertificate:b(WXv,1),getEvidence:b(YXv,1),retryRecord:b($Xv,1),correctRecord:b(QXv,2),cancelRecord:b(JXv,2)};var h2S=()=>"/vies/check",XXv=async(d,c)=>h(h2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var es={checkVies:b(XXv,1)};var b2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},eeS=async(d,c)=>h(b2S(d),{...c,method:"GET"}),z2S=()=>"/warehouses",teS=async(d,c)=>h(z2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),f2S=d=>`/warehouses/${d}`,neS=async(d,c)=>h(f2S(d),{...c,method:"GET"}),B2S=d=>`/warehouses/${d}`,seS=async(d,c,g)=>h(B2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),T2S=d=>`/warehouses/${d}`,oeS=async(d,c)=>h(T2S(d),{...c,method:"DELETE"});var ts={list:X(eeS),create:b(teS,1),get:b(neS,1),update:b(seS,2),delete:b(oeS,1)};var I2S=()=>"/webhooks",ieS=async(d,c)=>h(I2S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),E2S=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let g=c.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},aeS=async(d,c)=>h(E2S(d),{...c,method:"GET"}),D2S=d=>`/webhooks/${d}`,reS=async(d,c)=>h(D2S(d),{...c,method:"GET"}),R2S=d=>`/webhooks/${d}`,leS=async(d,c,g)=>h(R2S(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(c)}),_2S=d=>`/webhooks/${d}`,deS=async(d,c)=>h(_2S(d),{...c,method:"DELETE"}),N2S=d=>`/webhooks/${d}/test`,ueS=async(d,c)=>h(N2S(d),{...c,method:"POST"});var M2S=d=>`/webhooks/${d}/rotate-secret`,ceS=async(d,c)=>h(M2S(d),{...c,method:"POST"});var ns={create:b(ieS,1),list:X(aeS),get:b(reS,1),update:b(leS,2),delete:b(deS,1),testWebhook:b(ueS,1),rotateWebhookSecret:b(ceS,1)};var U2S=()=>"/white-label-subscriptions",peS=async d=>h(U2S(),{...d,method:"GET"}),P2S=()=>"/white-label-subscriptions/plans",meS=async d=>h(P2S(),{...d,method:"GET"}),C2S=d=>`/white-label-subscriptions/check-feature/${d}`,xeS=async(d,c)=>h(C2S(d),{...c,method:"GET"}),w2S=d=>`/white-label-subscriptions/check-limit/${d}`,geS=async(d,c)=>h(w2S(d),{...c,method:"GET"}),A2S=()=>"/white-label-subscriptions/billing-email",yeS=async(d,c)=>h(A2S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var ss={getCurrentWLSubscription:b(peS,0),list:b(meS,0),checkWLFeature:b(xeS,1),checkWLLimit:b(geS,1),update:b(yeS,1)};var F2S=()=>"/white-labels/current",OeS=async d=>h(F2S(),{...d,method:"GET"}),k2S=()=>"/white-labels/me",veS=async d=>h(k2S(),{...d,method:"GET"});var os={getCurrentWhiteLabel:b(OeS,0),getMyWhiteLabel:b(veS,0)};var De=class{sdkConfig;accountWebhooks=q(Gt,()=>this.sdkConfig);activities=q(Vt,()=>this.sdkConfig);advanceInvoices=q(Kt,()=>this.sdkConfig);businessUnits=q(Zt,()=>this.sdkConfig);companyRegistry=q(qt,()=>this.sdkConfig);creditNotes=q(Wt,()=>this.sdkConfig);currency=q(Yt,()=>this.sdkConfig);customers=q($t,()=>this.sdkConfig);deliveryNotes=q(Qt,()=>this.sdkConfig);documents=q(en,()=>this.sdkConfig);eInvoicing=q(sn,()=>this.sdkConfig);eSlog=q(on,()=>this.sdkConfig);email=q(an,()=>this.sdkConfig);entities=q(rn,()=>this.sdkConfig);entityApiKeys=q(ln,()=>this.sdkConfig);entityInvitations=q(dn,()=>this.sdkConfig);entityStats=q(un,()=>this.sdkConfig);entityUsers=q(cn,()=>this.sdkConfig);estimates=q(pn,()=>this.sdkConfig);expenses=q(mn,()=>this.sdkConfig);exports=q(xn,()=>this.sdkConfig);files=q(gn,()=>this.sdkConfig);finaCertificate=q(yn,()=>this.sdkConfig);finaDevices=q(On,()=>this.sdkConfig);finaPremises=q(vn,()=>this.sdkConfig);finaSettings=q(Sn,()=>this.sdkConfig);financialCategories=q(hn,()=>this.sdkConfig);fursCertificate=q(bn,()=>this.sdkConfig);fursDevices=q(zn,()=>this.sdkConfig);fursInternalAct=q(fn,()=>this.sdkConfig);fursPremises=q(Bn,()=>this.sdkConfig);fursSettings=q(Tn,()=>this.sdkConfig);health=q(In,()=>this.sdkConfig);invoices=q(Dn,()=>this.sdkConfig);items=q(Rn,()=>this.sdkConfig);legacyMigration=q(_n,()=>this.sdkConfig);locale=q(Nn,()=>this.sdkConfig);orderIntegrations=q(Mn,()=>this.sdkConfig);orders=q(Un,()=>this.sdkConfig);paymentReminders=q(Pn,()=>this.sdkConfig);payments=q(Cn,()=>this.sdkConfig);pointOfSale=q(wn,()=>this.sdkConfig);ptAtcudSeries=q(An,()=>this.sdkConfig);ptSafT=q(Fn,()=>this.sdkConfig);purchaseOrders=q(kn,()=>this.sdkConfig);recurringInvoices=q(jn,()=>this.sdkConfig);revenueRecognition=q(Hn,()=>this.sdkConfig);stripeApp=q(Ln,()=>this.sdkConfig);subscriptions=q(Gn,()=>this.sdkConfig);taxRateEstimates=q(Vn,()=>this.sdkConfig);taxReports=q(Kn,()=>this.sdkConfig);taxes=q(Zn,()=>this.sdkConfig);ticketBai=q(qn,()=>this.sdkConfig);transactionType=q(Wn,()=>this.sdkConfig);travelOrders=q(Yn,()=>this.sdkConfig);ujp=q($n,()=>this.sdkConfig);upload=q(Qn,()=>this.sdkConfig);users=q(Jn,()=>this.sdkConfig);veriFactu=q(Xn,()=>this.sdkConfig);vies=q(es,()=>this.sdkConfig);warehouses=q(ts,()=>this.sdkConfig);webhooks=q(ns,()=>this.sdkConfig);whiteLabelSubscriptions=q(ss,()=>this.sdkConfig);whiteLabels=q(os,()=>this.sdkConfig);constructor(c){let g=typeof c=="string"?{accessToken:c}:c,E=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Re,getAccessToken:E,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function j2S(d){let c=typeof d=="string"?{accessToken:d}:d,g=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;AWv({baseUrl:c.basePath??Re,getAccessToken:g,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),Lt(c.accountId??null);}
|
|
235
235
|
export{G2S as AccountInfoRole,q2S as AccountWebhookDeliveryStatus,Y2S as AccountWebhookResponseEventsItem,Q2S as AccountWebhookWithSecretEventsItem,K2S as AccountingSettingsVatPeriod,X2S as AddEntityUserBodyRole,tCS as AdvanceInvoiceCalculationMode,sCS as AdvanceInvoiceItemClassification,iCS as AdvanceInvoiceItemType,rCS as AdvanceInvoiceTransactionType,dCS as AttendanceDayKind,cCS as AttendanceDaySickReason,mCS as AuthorizeShopifyBodyAutoProcessOn,gCS as AvailablePlansAllowedPaymentProvidersItem,OCS as AvailablePlansBillingProfile,SCS as AvailablePlansCurrencyCode,bCS as AvailablePlansStripePublishableKeyKind,fCS as BankImportParseErrorCauseCode,TCS as BankStatementImportSourceFormat,ECS as BankStatementImportStatus,RCS as BankTransactionConflictErrorCauseCode,NCS as BankTransactionDetailMatchStatus,UCS as BankTransactionDetailSourceFormat,CCS as BankTransactionMatchInfoDocumentType,ACS as BankTransactionMatchStatus,kCS as BankTransactionSourceFormat,HCS as BankTransactionSuggestedDocumentDocumentType,GCS as BusinessUnitSettingsInputPdfTemplate,KCS as BusinessUnitSettingsPdfTemplate,is as CLIENT_HEADER_NAME,YCS as CalculateDocumentPreviewCalculationMode,QCS as CalculateDocumentPreviewType,XCS as CalculateTravelOrderRouteDistance422Field,qCS as CalculatedItemType,twS as CalculationSettingsDefaultMode,swS as CheckEInvoicingRecipientRequestDocumentType,iwS as CompanyRegistryResultSettingsSloveniaVatProfile,rwS as CompleteAdvanceInvoicePreviewCalculationMode,dwS as CompleteAdvanceInvoicePreviewCreationSource,cwS as CompleteCreditNotePreviewCalculationMode,mwS as CompleteCreditNotePreviewCreationSource,gwS as CompleteDeliveryNotePreviewCalculationMode,OwS as CompleteDeliveryNotePreviewCreationSource,SwS as CompleteEstimatePreviewCalculationMode,bwS as CompleteEstimatePreviewCreationSource,fwS as CompleteEstimatePreviewTitleType,TwS as CompleteInvoicePreviewCalculationMode,EwS as CompleteInvoicePreviewCreationSource,RwS as CompletePurchaseOrderPreviewCalculationMode,NwS as CompletePurchaseOrderPreviewCreationSource,UwS as CreateAccountWebhookBodyEventsItem,CwS as CreateAdvanceInvoiceCalculationMode,AwS as CreateCheckoutRequestBillingInterval,kwS as CreateCreditNoteCalculationMode,HwS as CreateCustomerBodyContactType,GwS as CreateDeliveryNoteCalculationMode,KwS as CreateDocumentItemClassification,qwS as CreateDocumentItemType,YwS as CreateDocumentPaymentType,QwS as CreateEntityApiKeyBodyPurpose,XwS as CreateEntityBodyEnvironment,tAS as CreateEntityBodySettingsPdfTemplate,sAS as CreateEstimateCalculationMode,iAS as CreateEstimateTitleType,rAS as CreateExpenseBodyCalculationMode,dAS as CreateExpenseBodyPaymentsItemType,cAS as CreateExpenseBodyTransactionType,mAS as CreateExpenseBodyType,gAS as CreateExpenseItemClassification,OAS as CreateExpenseItemType,SAS as CreateExpensePaymentBodyType,bAS as CreateFinaInvoiceDataPaymentType,fAS as CreateInvoiceCalculationMode,TAS as CreateItemBodyClassification,EAS as CreateItemBodyUsage,RAS as CreateItemInventoryMovementBodyType,NAS as CreateMigrationJobRequestEnvironment,UAS as CreateMigrationJobResponseStatus,CAS as CreateOrderBodyPaymentStatus,AAS as CreateOrderBodySource,kAS as CreateOrderIntegrationBodySource,HAS as CreatePaymentBodyType,GAS as CreatePtAtcudSeriesBodyDocumentType,KAS as CreatePurchaseOrderCalculationMode,qAS as CreatePurchaseOrderItemClassification,YAS as CreatePurchaseOrderItemType,QAS as CreateRecurringInvoiceBodyFrequency,XAS as CreateTaxPaymentType,tFS as CreateTravelOrderBodyTripType,sFS as CreateWebhookBodyEventsItem,iFS as CreationSource,rFS as CreditNoteCalculationMode,dFS as CreditNoteItemClassification,cFS as CreditNoteItemType,mFS as CreditNoteTransactionType,gFS as CryptoEquivalentCode,OFS as CryptoEquivalentsSettingsCodesItem,SFS as CryptoWalletCode,bFS as CurrentSubscriptionAllowedPaymentProvidersItem,fFS as CurrentSubscriptionBillingProfile,TFS as CurrentSubscriptionCurrencyCode,EFS as CurrentSubscriptionPaymentProvider,RFS as CurrentSubscriptionStripePublishableKeyKind,NFS as CustomCreateAdvanceInvoiceCalculationMode,UFS as CustomCreateCreditNoteCalculationMode,CFS as CustomCreateDeliveryNoteCalculationMode,AFS as CustomCreateEstimateCalculationMode,kFS as CustomCreateEstimateTitleType,HFS as CustomCreateExpenseTransactionType,GFS as CustomCreateExpenseType,KFS as CustomCreateInvoiceCalculationMode,qFS as CustomDocumentItemClassification,YFS as CustomDocumentItemType,QFS as CustomExpenseItemClassification,XFS as CustomExpenseItemType,t5S as CustomExpenseWriteCalculationMode,s5S as CustomExpenseWritePaymentsItemType,i5S as CustomExpenseWriteTransactionType,r5S as CustomExpenseWriteType,d5S as CustomStoreConnectRequestAutoProcessOn,c5S as CustomStoreOrderItemsItemKind,m5S as CustomStoreOrderResultAction,Re as DEFAULT_BASE_URL,g5S as DeleteDocumentType,O5S as DeliveryNoteCalculationMode,S5S as DeliveryNoteItemClassification,b5S as DeliveryNoteItemType,f5S as DeliveryNoteTransactionType,T5S as DocumentCalculationCalculationMode,E5S as DocumentCalculationTransactionType,R5S as DocumentItemEInvoicingVatCategoryCode,N5S as DocumentItemRevenueRecognitionMethod,U5S as DocumentRelationRelatedDocumentTitleType,C5S as DocumentRelationRelatedDocumentType,A5S as DocumentRelationSourceType,k5S as DocumentRelationTargetType,H5S as DocumentVersionDocumentType,G5S as DownloadDocumentEslogType,K5S as DownloadReceivedEInvoiceFormat,q5S as EInvoicingEnrollmentChannel,Y5S as EInvoicingEnrollmentEnvironment,Q5S as EInvoicingEnrollmentState,X5S as EInvoicingRecipientCheckResponseDocumentType,tkS as EmailSenderDomainVerificationStatus,skS as EmailSenderEffectiveSource,ikS as EmailSenderEmailVerificationStatus,rkS as EmailSenderVerificationStatus,dkS as EntityApiKeyEnvironment,ckS as EntityApiKeyListItemEnvironment,mkS as EntityApiKeyListItemPurpose,gkS as EntityApiKeyPurpose,OkS as EntityBankAccountInputType,SkS as EntityBankAccountType,bkS as EntityEnvironment,fkS as EntityInvitationPreviewRole,TkS as EntityInvitationPreviewStatus,EkS as EntityInvitationRole,RkS as EntityInvitationStatus,NkS as EntitySettingsPdfTemplate,UkS as EntitySettingsUpdatePdfTemplate,CkS as EntityUserRole,AkS as EntityUsersAccessAccountRole,kkS as EntityUsersAccessEntityRole,HkS as EslogDataValidationStatus,GkS as EslogExportByDateRangeTypesItem,KkS as EstimateCalculationMode,qkS as EstimateItemClassification,YkS as EstimateItemType,QkS as EstimateTitleType,XkS as EstimateTransactionType,tjS as EuOssReportResponseEligibilityReason,sjS as EuOssReportResponseNoticesItem,ijS as EuOssThresholdAmount,rjS as EuOssThresholdCurrencyCode,djS as EuOssThresholdStatus,cjS as ExpenseCategoryReportResponseBasis,mjS as ExpenseCategoryReportResponseCalculationMode,gjS as ExpenseCategoryReportResponseGroupBy,OjS as ExpenseImportDraftItemClassification,SjS as ExpenseImportDraftItemType,bjS as ExpenseImportResultAttachmentStatus,fjS as ExpenseImportSourceDocumentType,TjS as ExpenseImportWarningCode,EjS as ExpenseInboundEmailAttachmentMode,RjS as ExpenseInboundEmailMessageStatus,NjS as ExpenseItemClassification,UjS as ExpenseItemRecognitionMethod,CjS as ExpenseItemType,AjS as ExpensePaymentOpenBalanceErrorCauseCode,kjS as ExpenseRecognitionJobSimulationMode,HjS as ExpenseRecognitionJobStatus,GjS as ExpenseRecognitionJobWarningsItemCode,KjS as ExpenseRecognitionSettingsDefaultMethod,qjS as ExpenseRecognitionSettingsResponseDefaultMethod,YjS as ExpenseSummaryClassification,QjS as ExpenseType,XjS as ExportDocumentsFormat,tHS as ExportDocumentsLanguage,sHS as ExportDocumentsType,iHS as ExportExpensesDateBasis,rHS as ExportExpensesFormat,dHS as ExportExpensesLanguage,cHS as ExportInventoryFormat,mHS as ExportInventoryLanguage,gHS as ExportPosDailyReportFormat,OHS as ExportPosDailyReportLanguage,SHS as ExportPosMonthlyReportFormat,bHS as ExportPosMonthlyReportLanguage,fHS as ExportRevenueByCategoryFormat,THS as ExportRevenueByCategoryLanguage,EHS as ExportSalesPerItemFormat,RHS as ExportSalesPerItemLanguage,NHS as ExportVatReturnFormat,UHS as FilingKind,CHS as FilingObligationType,AHS as FilingState,kHS as FilingStatus,HHS as FilingVerification,GHS as FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason,KHS as FinaFiscalizationResponseStatus,qHS as FinalizeDocumentType,iLS as FiscalRecoveryErrorCauseCode,YHS as FiscalizationProviderErrorCauseProvider,QHS as FiscalizationProviderErrorCauseType,XHS as FiscalizationProviderErrorCode,tLS as FiscalizeDocumentType,sLS as FiscalizedOutputRegistrationFiscalizationProvider,rLS as FrenchEReportingRecordKind,dLS as FrenchEReportingRecordStatus,cLS as FursFiscalizationResponseStatus,mLS as FursPremiseSuccessResponseEnvironment,gLS as GeneratePtSaftReportMode,OLS as GermanEInvoicingDataValidationStatus,SLS as GetActivePtAtcudSeriesDocumentType,bLS as GetActivities200DataItemActorType,fLS as GetEntitiesEnvironment,TLS as GetEslogExportStatus200Status,ELS as GetExpenseCategoryReportBasis,RLS as GetExpenseCategoryReportGroupBy,NLS as GetFilesCategory,ULS as GetFinaSettings200CertificateStatus,CLS as GetFinaSettings200NumberingSequence,ALS as GetFursSettings200CertificateStatus,kLS as GetFursSettings200NumberingStrategy,HLS as GetItemsImportTemplateFormat,GLS as GetItemsImportTemplateLanguage,KLS as GetItemsUsage,qLS as GetLegacyMigrationOrganization200UnsupportedItemCode,YLS as GetNextDocumentNumberType,QLS as GetPaymentRemindersStatus,XLS as GetPaymentRemindersTrigger,t1S as GetPdfExportStatus200Status,s1S as GetRevenueRecognitionDetailsBasis,i1S as GetRevenueRecognitionDetailsGroupBy,r1S as GetRevenueRecognitionReportBasis,d1S as GetRevenueRecognitionReportGroupBy,c1S as GetShareableAdvanceInvoiceHtmlLanguage,m1S as GetShareableAdvanceInvoiceHtmlLocale,g1S as GetShareableAdvanceInvoicePdfLanguage,O1S as GetShareableAdvanceInvoicePdfLocale,S1S as GetShareableCreditNoteHtmlLanguage,b1S as GetShareableCreditNoteHtmlLocale,f1S as GetShareableCreditNotePdfLanguage,T1S as GetShareableCreditNotePdfLocale,E1S as GetShareableDeliveryNoteHtmlLanguage,R1S as GetShareableDeliveryNoteHtmlLocale,N1S as GetShareableDeliveryNotePdfLanguage,U1S as GetShareableDeliveryNotePdfLocale,C1S as GetShareableEstimateHtmlLanguage,A1S as GetShareableEstimateHtmlLocale,k1S as GetShareableEstimatePdfLanguage,H1S as GetShareableEstimatePdfLocale,G1S as GetShareableInvoiceHtmlLanguage,K1S as GetShareableInvoiceHtmlLocale,q1S as GetShareableInvoicePdfLanguage,Y1S as GetShareableInvoicePdfLocale,Q1S as GetShareablePurchaseOrderHtmlLanguage,X1S as GetShareablePurchaseOrderHtmlLocale,t4S as GetShareablePurchaseOrderPdfLanguage,s4S as GetShareablePurchaseOrderPdfLocale,i4S as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,r4S as GetSloveniaTaxProfile200BusinessForm,d4S as GetSloveniaTaxProfile200BusinessFormSource,c4S as GetSloveniaTaxProfile200IncomeTaxRegime,m4S as GetSloveniaTaxProfile200InferredBusinessForm,g4S as GetSloveniaTaxProfile200TaxResidency,O4S as GetSloveniaTaxProfile200VatProfile,S4S as GetSloveniaTaxProfile200YearlyReportingAccountingType,b4S as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,f4S as ImportBankStatementBodySourceFormat,T4S as InventoryMovementResponseType,E4S as InvoiceCalculationMode,R4S as InvoiceItemClassification,N4S as InvoiceItemType,U4S as InvoiceTransactionType,C4S as ItalyLineTaxDataNature,A4S as ItemClassification,G4S as ItemUsage,k4S as ItemsImportReportRowsItemAction,H4S as ItemsImportReportRowsItemStock,K4S as KsefDocumentDataStatus,q4S as KsefEntitySettingsObligation,Y4S as KsefSettingsResponseEnvironment,Q4S as KsefSettingsResponseObligation,X4S as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,tGS as LegalDetailsLegalForm,sGS as LineDiscountInputType,iGS as LineDiscountType,rGS as LinkBankTransactionBodyDocumentType,dGS as ListAccountFilingsCalendarEnvironment,cGS as ListEmployeesStatus,mGS as ListPtAtcudSeriesDocumentType,gGS as ListReceivedEInvoicesState,OGS as ListRevenueRecognitionLinesBasis,SGS as ListRevenueRecognitionLinesGroupBy,JTS as MAX_LIST_ALL_PAGES,bGS as MagentoAuthorizationStatusFailureReason,fGS as MagentoAuthorizationStatusStatus,TGS as MagentoAuthorizeRequestAutoProcessOn,EGS as MigrationJobResponseStatus,RGS as ModifyEmployeeBodyCommuteMode,NGS as ModifyEmployeeBodyEmploymentType,UGS as ModifyEmployeeBodyGeneralAllowanceMode,CGS as ModifyEmployeeBodyStatus,AGS as ModifyEmployeeBodyTaxResidency,kGS as MovablePremisePremiseType,HGS as NavAnnulmentRequestAnnulmentCode,GGS as NavDocumentDataOperation,KGS as NavDocumentMessageSeverity,qGS as NavDocumentStatus,YGS as NavEnvironment,QGS as NavErrorBodyConflictsItemSource,XGS as NavErrorBodyConflictsItemTypesItem0,t3S as NavErrorBodyConflictsItemTypesItem1,s3S as NavInvoiceAppearance,i3S as NavObligation,r3S as NavVatTreatmentDomesticReverseChargeType,d3S as NavVatTreatmentExemptionCase,c3S as NavVatTreatmentExemptionType,m3S as NavVatTreatmentNoVatChargeType,g3S as NavVatTreatmentOutOfScopeCase,O3S as NavVatTreatmentOutOfScopeType,S3S as OrderBasePaymentStatus,b3S as OrderBaseSource,f3S as OrderBaseStatus,T3S as OrderIntegrationBaseAutoProcessOn,E3S as OrderIntegrationBaseSource,R3S as OrderItemKind,N3S as PartialAdvanceInvoicePreviewCalculationMode,U3S as PartialAdvanceInvoicePreviewCreationSource,C3S as PartialAdvanceInvoicePreviewItemsItemClassification,A3S as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,k3S as PartialAdvanceInvoicePreviewItemsItemType,H3S as PartialCreditNotePreviewCalculationMode,G3S as PartialCreditNotePreviewCreationSource,K3S as PartialCreditNotePreviewItemsItemClassification,q3S as PartialCreditNotePreviewItemsItemDiscountsItemType,Y3S as PartialCreditNotePreviewItemsItemType,Q3S as PartialDeliveryNotePreviewCalculationMode,X3S as PartialDeliveryNotePreviewCreationSource,tVS as PartialDeliveryNotePreviewItemsItemClassification,sVS as PartialDeliveryNotePreviewItemsItemDiscountsItemType,iVS as PartialDeliveryNotePreviewItemsItemType,rVS as PartialEstimatePreviewCalculationMode,dVS as PartialEstimatePreviewCreationSource,cVS as PartialEstimatePreviewItemsItemClassification,mVS as PartialEstimatePreviewItemsItemDiscountsItemType,gVS as PartialEstimatePreviewItemsItemType,OVS as PartialEstimatePreviewTitleType,SVS as PartialInvoicePreviewCalculationMode,bVS as PartialInvoicePreviewCreationSource,fVS as PartialInvoicePreviewItemsItemClassification,TVS as PartialInvoicePreviewItemsItemDiscountsItemType,EVS as PartialInvoicePreviewItemsItemType,RVS as PartialPurchaseOrderPreviewCalculationMode,NVS as PartialPurchaseOrderPreviewCreationSource,UVS as PartialPurchaseOrderPreviewItemsItemClassification,CVS as PartialPurchaseOrderPreviewItemsItemDiscountsItemType,AVS as PartialPurchaseOrderPreviewItemsItemType,kVS as PatchEntityBodySettingsPdfTemplate,HVS as PatchMeBodyLocale,GVS as PaymentReminderStatus,KVS as PaymentReminderTrigger,qVS as PaymentType,YVS as PdfExportByDateRangeLanguage,QVS as PdfExportByDateRangeLocale,XVS as PdfExportByDateRangeTypesItem,tKS as PdfExportByDocumentIdsLanguage,sKS as PdfExportByDocumentIdsLocale,iKS as PermanentDeleteDocumentType,rKS as PosTabConflictCode,dKS as PosTabResponseStatus,cKS as PreviewTravelOrderBodyTripType,mKS as PtAtcudSeriesDocumentType,gKS as PurchaseOrderBusinessUnitSettingsInputPdfTemplate,OKS as PurchaseOrderCalculationMode,SKS as PurchaseOrderItemClassification,bKS as PurchaseOrderItemType,fKS as PurchaseOrderTransactionType,TKS as PurchaseOrderVersionDocumentType,EKS as PutKsefCredentialEnvironment,RKS as ReceivedEInvoiceAttachmentStatus,NKS as ReceivedEInvoiceLifecycleRequestAction,UKS as ReceivedEInvoiceLifecycleRequestReasonCode,CKS as ReceivedEInvoiceState,AKS as RecurringInvoiceBaseFrequency,kKS as RecurringInvoiceBaseStatus,HKS as RegisterDocumentOutputType,GKS as RegisterEmployeeBodyCommuteMode,KKS as RegisterEmployeeBodyEmploymentType,qKS as RegisterEmployeeBodyGeneralAllowanceMode,YKS as RegisterEmployeeBodyStatus,QKS as RegisterEmployeeBodyTaxResidency,XKS as RegisterFursMovablePremiseBodyMovablePremisePremiseType,tZS as RenderAdvanceInvoicePreviewEpcQrEnabled,sZS as RenderAdvanceInvoicePreviewHub3QrEnabled,iZS as RenderAdvanceInvoicePreviewPartial,rZS as RenderAdvanceInvoicePreviewSwissQrBillEnabled,dZS as RenderAdvanceInvoicePreviewTemplate,cZS as RenderAdvanceInvoicePreviewUpnQrDisplayMode,mZS as RenderAdvanceInvoicePreviewUpnQrEnabled,gZS as RenderCreditNotePreviewEpcQrEnabled,OZS as RenderCreditNotePreviewHub3QrEnabled,SZS as RenderCreditNotePreviewPartial,bZS as RenderCreditNotePreviewSwissQrBillEnabled,fZS as RenderCreditNotePreviewTemplate,TZS as RenderCreditNotePreviewUpnQrDisplayMode,EZS as RenderCreditNotePreviewUpnQrEnabled,RZS as RenderDeliveryNotePreviewEpcQrEnabled,NZS as RenderDeliveryNotePreviewHub3QrEnabled,UZS as RenderDeliveryNotePreviewPartial,CZS as RenderDeliveryNotePreviewSwissQrBillEnabled,AZS as RenderDeliveryNotePreviewTemplate,kZS as RenderDeliveryNotePreviewUpnQrDisplayMode,HZS as RenderDeliveryNotePreviewUpnQrEnabled,GZS as RenderDocumentHtmlTemplate,KZS as RenderDocumentPdfTemplate,qZS as RenderEstimatePreviewEpcQrEnabled,YZS as RenderEstimatePreviewHub3QrEnabled,QZS as RenderEstimatePreviewPartial,XZS as RenderEstimatePreviewSwissQrBillEnabled,tqS as RenderEstimatePreviewTemplate,sqS as RenderEstimatePreviewUpnQrDisplayMode,iqS as RenderEstimatePreviewUpnQrEnabled,rqS as RenderInvoicePreviewEpcQrEnabled,dqS as RenderInvoicePreviewHub3QrEnabled,cqS as RenderInvoicePreviewPartial,mqS as RenderInvoicePreviewSwissQrBillEnabled,gqS as RenderInvoicePreviewTemplate,OqS as RenderInvoicePreviewUpnQrDisplayMode,SqS as RenderInvoicePreviewUpnQrEnabled,bqS as RenderPurchaseOrderPreviewEpcQrEnabled,fqS as RenderPurchaseOrderPreviewHub3QrEnabled,TqS as RenderPurchaseOrderPreviewPartial,EqS as RenderPurchaseOrderPreviewSwissQrBillEnabled,RqS as RenderPurchaseOrderPreviewTemplate,NqS as RenderPurchaseOrderPreviewUpnQrDisplayMode,UqS as RenderPurchaseOrderPreviewUpnQrEnabled,CqS as RenderTravelOrderPreviewBodyTripType,AqS as ReplaceEmployeeAttendanceBodyDaysItemKind,kqS as ReplaceEmployeeAttendanceBodyDaysItemSickReason,HqS as RestoreDocumentType,GqS as RevenueRecognitionDetailsResponseCalculationMode,KqS as RevenueRecognitionLinesResponseCalculationMode,qqS as RevenueRecognitionReportResponseBasis,YqS as RevenueRecognitionReportResponseCalculationMode,QqS as RevenueRecognitionReportResponseGroupBy,XqS as RevenueRecognitionSettingsDefaultMethod,tWS as RevenueRecognitionSettingsResponseDefaultMethod,sWS as ReviewSloveniaYearlyNormiraniReport200FilingKind,iWS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,rWS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,dWS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,cWS as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,mWS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,gWS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,OWS as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,SWS as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,bWS as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,fWS as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,TWS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,EWS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,RWS as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,NWS as SdiLifecycleDataCountryCode,UWS as SdiLifecycleDataStatus,CWS as SendDocument200Status,AWS as SendEmail200Status,kWS as SendEmailBodyLanguage,HWS as SendEmailBodyLocale,GWS as SendPaymentReminderBodyLocale,KWS as SendPaymentReminderResponseStatus,qWS as SloveniaAccountingExportsSettingsPreferredFormat,YWS as SloveniaEntitySettingsBusinessForm,QWS as SloveniaEntitySettingsIncomeTaxRegime,XWS as SloveniaEntitySettingsTaxResidency,t6S as SloveniaEntitySettingsVatProfile,s6S as SloveniaYearlyReportingSettingsAccountingType,i6S as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,De as SpaceInvoices,r6S as StartEslogExport202Status,d6S as StartPdfExport202Status,c6S as StatsQueryRequestMetricsItemType,m6S as StatsQueryRequestOrderByItemDirection,g6S as StatsQueryRequestTable,O6S as StripeAppConnectionEntityEnvironment,S6S as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,b6S as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,f6S as SubscriptionTier,T6S as SyncOrderIntegrationResponseCompletionState,E6S as SyncShopifyOrdersResponseCompletionState,R6S as TaxPaymentType,N6S as TicketBaiDocumentDataExemptionCause,U6S as TicketBaiDocumentDataNonSubjectCause,C6S as TicketBaiDocumentDataOperationType,A6S as TicketBaiDocumentDataRecipientIdType,k6S as TicketBaiDocumentDataRectificationCode,H6S as TicketBaiDocumentDataStatus,G6S as TicketBaiDocumentDataTaxTreatment,K6S as TicketBaiDocumentDataVatRegime,q6S as TicketBaiDocumentInputExemptionCause,Y6S as TicketBaiDocumentInputNonSubjectCause,Q6S as TicketBaiDocumentInputOperationType,X6S as TicketBaiDocumentInputRecipientIdType,t7S as TicketBaiDocumentInputRectificationCode,s7S as TicketBaiDocumentInputTaxTreatment,i7S as TicketBaiDocumentInputVatRegime,r7S as TicketBaiRecordDocumentType,d7S as TicketBaiRecordEnvironment,c7S as TicketBaiRecordOperation,m7S as TicketBaiRecordRecentAttemptsItemKind,g7S as TicketBaiRecordRecentAttemptsItemStatus,O7S as TicketBaiRecordStatus,S7S as TicketBaiRecordTerritory,b7S as TicketBaiSettingsBlockersItem,f7S as TicketBaiSettingsEnvironment,T7S as TicketBaiSettingsLroeModel,E7S as TicketBaiSettingsTerritory,R7S as TransactionTypeCheckRequestItemsItemClassification,N7S as TransactionTypeCheckRequestItemsItemType,U7S as TransactionTypeCheckRequestSupplyType,C7S as TransactionTypeCheckResponseSupplyScope,A7S as TransactionTypeCheckResponseTransactionType,k7S as TransactionTypeCheckResponseWarningCode,H7S as TravelOrderCostType,G7S as TravelOrderCurrencyCode,K7S as TravelOrderPerDiemBand,q7S as TravelOrderRouteDistanceProvider,Y7S as TravelOrderStatus,Q7S as TravelOrderTransport,X7S as TravelOrderTripType,t9S as UjpDataValidationStatus,s9S as UpdateAccountWebhookBodyEventsItem,i9S as UpdateCustomerBodyContactType,r9S as UpdateEntityUserRoleBodyRole,d9S as UpdateEstimateTitleType,c9S as UpdateExpenseBodyCalculationMode,m9S as UpdateExpenseBodyTransactionType,g9S as UpdateExpenseBodyType,O9S as UpdateExpenseRecognitionSettingsDefaultMethod,S9S as UpdateFinaSettings200CertificateStatus,b9S as UpdateFinaSettings200NumberingSequence,f9S as UpdateFinaSettingsBodyNumberingSequence,T9S as UpdateFursSettings200CertificateStatus,E9S as UpdateFursSettings200NumberingStrategy,R9S as UpdateFursSettingsBodyNumberingStrategy,N9S as UpdateItemBodyClassification,U9S as UpdateItemBodyUsage,C9S as UpdateKsefSettingsObligation,A9S as UpdateNavSettingsInvoiceAppearance,k9S as UpdateNavSettingsObligation,H9S as UpdateOrderBodyPaymentStatus,G9S as UpdateOrderIntegrationBodyAutoProcessOn,K9S as UpdatePaymentBodyType,q9S as UpdateRecurringInvoiceBodyFrequency,Y9S as UpdateRevenueRecognitionSettingsDefaultMethod,Q9S as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,X9S as UpdateSloveniaTaxProfile200BusinessForm,t8S as UpdateSloveniaTaxProfile200BusinessFormSource,s8S as UpdateSloveniaTaxProfile200IncomeTaxRegime,i8S as UpdateSloveniaTaxProfile200InferredBusinessForm,r8S as UpdateSloveniaTaxProfile200TaxResidency,d8S as UpdateSloveniaTaxProfile200VatProfile,c8S as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,m8S as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,g8S as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,O8S as UpdateSloveniaTaxProfileBodyBusinessForm,S8S as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,b8S as UpdateSloveniaTaxProfileBodyTaxResidency,f8S as UpdateSloveniaTaxProfileBodyVatProfile,T8S as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,E8S as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,R8S as UpdateTaxPaymentType,N8S as UpdateTicketBaiSettingsLroeModel,U8S as UpdateTicketBaiSettingsTerritory,C8S as UpdateTravelOrderBodyTransport,A8S as UpdateTravelOrderBodyTripType,k8S as UpdateVerifactuSettingsTerritory,H8S as UpdateWebhookBodyEventsItem,G8S as UploadFileBodyCategory,K8S as UpnQrSettingsDisplayMode,q8S as ValidateDocumentEslogType,Y8S as ValidationErrorConflictsItemSource,Q8S as ValidationErrorConflictsItemTypesItem0,X8S as ValidationErrorConflictsItemTypesItem1,tYS as VatReturnPreviewVatPeriodSetting,sYS as VatReturnStatus,iYS as VatReturnVatPeriodSetting,rYS as VerifactuDocumentInputCustomerIdType,dYS as VerifactuDocumentInputInvoiceType,cYS as VerifactuDocumentInputTaxTreatmentsItemQualification,mYS as VerifactuDocumentInputTaxTreatmentsItemTax,gYS as VerifactuDocumentStatus,OYS as VerifactuEvidenceKind,SYS as VerifactuSettingsEligibility,bYS as VerifactuSettingsEnvironment,fYS as VerifactuSettingsTerritory,TYS as WebhookDeliveryStatus,EYS as WebhookResponseEventsItem,RYS as WebhookWithSecretEventsItem,NYS as WhiteLabelConfigEnvironment,UYS as WhiteLabelPlanCurrencyCode,CYS as WooCommerceAuthorizeRequestAutoProcessOn,Gt as accountWebhooks,Vt as activities,Kt as advanceInvoices,Zt as businessUnits,qt as companyRegistry,Wt as creditNotes,Yt as currency,$t as customers,De as default,Qt as deliveryNotes,en as documents,En as downloadBlob,sn as eInvoicing,on as eSlog,an as email,rn as entities,ln as entityApiKeys,dn as entityInvitations,un as entityStats,cn as entityUsers,pn as estimates,mn as expenses,xn as exports,gn as files,yn as finaCertificate,On as finaDevices,vn as finaPremises,Sn as finaSettings,hn as financialCategories,bn as fursCertificate,zn as fursDevices,fn as fursInternalAct,Bn as fursPremises,Tn as fursSettings,WTS as getAccountId,Ne as getClientHeaders,In as health,j2S as initSDK,Dn as invoices,Rn as items,_n as legacyMigration,tIS as listAll,Nn as locale,Mn as orderIntegrations,Un as orders,Pn as paymentReminders,Cn as payments,wn as pointOfSale,An as ptAtcudSeries,Fn as ptSafT,kn as purchaseOrders,jn as recurringInvoices,Hn as revenueRecognition,Lt as setAccountId,Ln as stripeApp,Gn as subscriptions,Vn as taxRateEstimates,Kn as taxReports,Zn as taxes,qn as ticketBai,Wn as transactionType,Yn as travelOrders,$n as ujp,Qn as upload,Jn as users,Xn as veriFactu,es as vies,ts as warehouses,ns as webhooks,ss as whiteLabelSubscriptions,os as whiteLabels,wWv as zod};
|