@spaceinvoices/js-sdk 5.0.9 → 5.0.10
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
|
@@ -176,5 +176,5 @@ Searches across all text fields including names, descriptions, addresses, and me
|
|
|
176
176
|
Searches are case-insensitive and match partial strings.
|
|
177
177
|
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.")}),vf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),K6g=36,Z6g=36,V6g=36,q6g=255,W6g=-2147483648,Y6g=2147483647,J6g=-2147483648,$6g=2147483647,Q6g=-2147483648,X6g=2147483647,e$g=-2147483648,t$g=2147483647,n$g=10,s$g=10,o$g=10,i$g=10,a$g=255,r$g=-2147483648,l$g=2147483647,d$g=-2147483648,c$g=2147483647,u$g=36,p$g=1e3,Tf0=e.object({data:e.array(e.object({id:e.string().max(K6g),entity_id:e.string().max(Z6g),document_id:e.string().max(V6g),name:e.string().max(q6g),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(W6g).max(Y6g),day_of_week:e.number().min(J6g).max($6g).nullish(),day_of_month:e.number().min(Q6g).max(X6g).nullish(),month_of_year:e.number().min(e$g).max(t$g).nullish(),start_date:e.string().max(n$g),end_date:e.string().max(s$g).nullish(),next_run_date:e.string().max(o$g).nullish(),last_run_date:e.string().max(i$g).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(a$g).nullish(),payment_terms_days:e.number().min(r$g).max(l$g).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(d$g).max(c$g),last_generated_invoice_id:e.string().max(u$g).nullish(),last_error:e.string().max(p$g).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")}),m$g=/^[a-z]{3,4}_[0-9a-f]{24}$/,Ef0=e.object({id:e.stringFormat("resource-id",m$g).describe("Unique resource identifier")}),bf0=e.object({"x-entity-id":e.string().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$g=36,g$g=36,y$g=36,O$g=255,S$g=-2147483648,B$g=2147483647,v$g=-2147483648,T$g=2147483647,E$g=-2147483648,b$g=2147483647,I$g=-2147483648,f$g=2147483647,z$g=10,D$g=10,N$g=10,M$g=10,_$g=255,U$g=-2147483648,h$g=2147483647,R$g=-2147483648,P$g=2147483647,C$g=36,w$g=1e3,If0=e.object({id:e.string().max(x$g),entity_id:e.string().max(g$g),document_id:e.string().max(y$g),name:e.string().max(O$g),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(S$g).max(B$g),day_of_week:e.number().min(v$g).max(T$g).nullish(),day_of_month:e.number().min(E$g).max(b$g).nullish(),month_of_year:e.number().min(I$g).max(f$g).nullish(),start_date:e.string().max(z$g),end_date:e.string().max(D$g).nullish(),next_run_date:e.string().max(N$g).nullish(),last_run_date:e.string().max(M$g).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(_$g).nullish(),payment_terms_days:e.number().min(U$g).max(h$g).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(R$g).max(P$g),last_generated_invoice_id:e.string().max(C$g).nullish(),last_error:e.string().max(w$g).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"),F$g=/^[a-z]{3,4}_[0-9a-f]{24}$/,ff0=e.object({id:e.stringFormat("resource-id",F$g).describe("Unique resource identifier")}),zf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),A$g=255,k$g=-2147483648,j$g=2147483647,L$g=-2147483648,H$g=2147483647,G$g=-2147483648,K$g=2147483647,Z$g=-2147483648,V$g=2147483647,q$g=/^\d{4}-\d{2}-\d{2}$/,W$g=/^\d{4}-\d{2}-\d{2}$/,Y$g=255,J$g=-2147483648,$$g=2147483647,Df0=e.object({name:e.string().max(A$g).optional(),frequency:e.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e.number().min(k$g).max(j$g).optional(),day_of_week:e.number().min(L$g).max(H$g).nullish(),day_of_month:e.number().min(G$g).max(K$g).nullish(),month_of_year:e.number().min(Z$g).max(V$g).nullish(),start_date:e.string().regex(q$g).optional(),end_date:e.string().regex(W$g).nullish(),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(Y$g).nullish(),payment_terms_days:e.number().min(J$g).max($$g).nullish(),notify_owner:e.boolean().optional(),metadata:e.record(e.string(),e.string()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Q$g=36,X$g=36,eQg=36,tQg=255,nQg=-2147483648,sQg=2147483647,oQg=-2147483648,iQg=2147483647,aQg=-2147483648,rQg=2147483647,lQg=-2147483648,dQg=2147483647,cQg=10,uQg=10,pQg=10,mQg=10,xQg=255,gQg=-2147483648,yQg=2147483647,OQg=-2147483648,SQg=2147483647,BQg=36,vQg=1e3,Nf0=e.object({id:e.string().max(Q$g),entity_id:e.string().max(X$g),document_id:e.string().max(eQg),name:e.string().max(tQg),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(nQg).max(sQg),day_of_week:e.number().min(oQg).max(iQg).nullish(),day_of_month:e.number().min(aQg).max(rQg).nullish(),month_of_year:e.number().min(lQg).max(dQg).nullish(),start_date:e.string().max(cQg),end_date:e.string().max(uQg).nullish(),next_run_date:e.string().max(pQg).nullish(),last_run_date:e.string().max(mQg).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(xQg).nullish(),payment_terms_days:e.number().min(gQg).max(yQg).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(OQg).max(SQg),last_generated_invoice_id:e.string().max(BQg).nullish(),last_error:e.string().max(vQg).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"),TQg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Mf0=e.object({id:e.stringFormat("resource-id",TQg).describe("Unique resource identifier")}),_f0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),EQg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Uf0=e.object({id:e.stringFormat("resource-id",EQg).describe("Unique resource identifier")}),hf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),bQg=36,IQg=36,fQg=36,zQg=255,DQg=-2147483648,NQg=2147483647,MQg=-2147483648,_Qg=2147483647,UQg=-2147483648,hQg=2147483647,RQg=-2147483648,PQg=2147483647,CQg=10,wQg=10,FQg=10,AQg=10,kQg=255,jQg=-2147483648,LQg=2147483647,HQg=-2147483648,GQg=2147483647,KQg=36,ZQg=1e3,Rf0=e.object({id:e.string().max(bQg),entity_id:e.string().max(IQg),document_id:e.string().max(fQg),name:e.string().max(zQg),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(DQg).max(NQg),day_of_week:e.number().min(MQg).max(_Qg).nullish(),day_of_month:e.number().min(UQg).max(hQg).nullish(),month_of_year:e.number().min(RQg).max(PQg).nullish(),start_date:e.string().max(CQg),end_date:e.string().max(wQg).nullish(),next_run_date:e.string().max(FQg).nullish(),last_run_date:e.string().max(AQg).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(kQg).nullish(),payment_terms_days:e.number().min(jQg).max(LQg).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(HQg).max(GQg),last_generated_invoice_id:e.string().max(KQg).nullish(),last_error:e.string().max(ZQg).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"),VQg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Pf0=e.object({id:e.stringFormat("resource-id",VQg).describe("Unique resource identifier")}),Cf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qQg=/^[a-z]{3,4}_[0-9a-f]{24}$/,wf0=e.object({id:e.stringFormat("resource-id",qQg).describe("Unique resource identifier")}),Ff0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WQg=36,YQg=36,JQg=36,$Qg=255,QQg=-2147483648,XQg=2147483647,eXg=-2147483648,tXg=2147483647,nXg=-2147483648,sXg=2147483647,oXg=-2147483648,iXg=2147483647,aXg=10,rXg=10,lXg=10,dXg=10,cXg=255,uXg=-2147483648,pXg=2147483647,mXg=-2147483648,xXg=2147483647,gXg=36,yXg=1e3,Af0=e.object({id:e.string().max(WQg),entity_id:e.string().max(YQg),document_id:e.string().max(JQg),name:e.string().max($Qg),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(QQg).max(XQg),day_of_week:e.number().min(eXg).max(tXg).nullish(),day_of_month:e.number().min(nXg).max(sXg).nullish(),month_of_year:e.number().min(oXg).max(iXg).nullish(),start_date:e.string().max(aXg),end_date:e.string().max(rXg).nullish(),next_run_date:e.string().max(lXg).nullish(),last_run_date:e.string().max(dXg).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(cXg).nullish(),payment_terms_days:e.number().min(uXg).max(pXg).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(mXg).max(xXg),last_generated_invoice_id:e.string().max(gXg).nullish(),last_error:e.string().max(yXg).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"),OXg=/^[a-z]{3,4}_[0-9a-f]{24}$/,kf0=e.object({id:e.stringFormat("resource-id",OXg).describe("Unique resource identifier")}),jf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),SXg=36,BXg=36,vXg=36,TXg=255,EXg=-2147483648,bXg=2147483647,IXg=-2147483648,fXg=2147483647,zXg=-2147483648,DXg=2147483647,NXg=-2147483648,MXg=2147483647,_Xg=10,UXg=10,hXg=10,RXg=10,PXg=255,CXg=-2147483648,wXg=2147483647,FXg=-2147483648,AXg=2147483647,kXg=36,jXg=1e3,Lf0=e.object({id:e.string().max(SXg),entity_id:e.string().max(BXg),document_id:e.string().max(vXg),name:e.string().max(TXg),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(EXg).max(bXg),day_of_week:e.number().min(IXg).max(fXg).nullish(),day_of_month:e.number().min(zXg).max(DXg).nullish(),month_of_year:e.number().min(NXg).max(MXg).nullish(),start_date:e.string().max(_Xg),end_date:e.string().max(UXg).nullish(),next_run_date:e.string().max(hXg).nullish(),last_run_date:e.string().max(RXg).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(PXg).nullish(),payment_terms_days:e.number().min(CXg).max(wXg).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(FXg).max(AXg),last_generated_invoice_id:e.string().max(kXg).nullish(),last_error:e.string().max(jXg).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"),LXg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Hf0=e.object({id:e.stringFormat("resource-id",LXg).describe("Unique resource identifier")}),HXg=100,Gf0=e.object({"x-entity-id":e.string().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(HXg).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/).")}),GXg=36,KXg=36,ZXg=36,VXg=255,qXg=-2147483648,WXg=2147483647,YXg=-2147483648,JXg=2147483647,$Xg=-2147483648,QXg=2147483647,XXg=-2147483648,ee0=2147483647,te0=10,ne0=10,se0=10,oe0=10,ie0=255,ae0=-2147483648,re0=2147483647,le0=-2147483648,de0=2147483647,ce0=36,ue0=1e3,Kf0=e.object({id:e.string().max(GXg),entity_id:e.string().max(KXg),document_id:e.string().max(ZXg),name:e.string().max(VXg),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(qXg).max(WXg),day_of_week:e.number().min(YXg).max(JXg).nullish(),day_of_month:e.number().min($Xg).max(QXg).nullish(),month_of_year:e.number().min(XXg).max(ee0).nullish(),start_date:e.string().max(te0),end_date:e.string().max(ne0).nullish(),next_run_date:e.string().max(se0).nullish(),last_run_date:e.string().max(oe0).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(ie0).nullish(),payment_terms_days:e.number().min(ae0).max(re0).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(le0).max(de0),last_generated_invoice_id:e.string().max(ce0).nullish(),last_error:e.string().max(ue0).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 xt={};K(xt,{BackfillRevenueRecognitionBody:()=>$f0,BackfillRevenueRecognitionHeader:()=>Jf0,BackfillRevenueRecognitionResponse:()=>Qf0,GetRevenueRecognitionDetailsHeader:()=>sz0,GetRevenueRecognitionDetailsQueryParams:()=>nz0,GetRevenueRecognitionDetailsResponse:()=>oz0,GetRevenueRecognitionReportHeader:()=>ez0,GetRevenueRecognitionReportQueryParams:()=>Xf0,GetRevenueRecognitionReportResponse:()=>tz0,GetRevenueRecognitionSettingsHeader:()=>Zf0,GetRevenueRecognitionSettingsResponse:()=>Vf0,UpdateRevenueRecognitionSettingsBody:()=>Wf0,UpdateRevenueRecognitionSettingsHeader:()=>qf0,UpdateRevenueRecognitionSettingsResponse:()=>Yf0,backfillRevenueRecognitionBodyDryRunDefault:()=>ge0,getRevenueRecognitionDetailsQueryBasisDefault:()=>Se0,getRevenueRecognitionDetailsQueryGroupByDefault:()=>Be0,getRevenueRecognitionReportQueryBasisDefault:()=>ye0,getRevenueRecognitionReportQueryGroupByDefault:()=>Oe0,getRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>pe0,updateRevenueRecognitionSettingsBodyDefaultMethodDefault:()=>me0,updateRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>xe0});var Zf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),pe0="off",Vf0=e.object({default_method:e.enum(["off","service_period_daily"]).default(pe0).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),qf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),me0="off",Wf0=e.object({default_method:e.union([e.literal("off"),e.literal("service_period_daily"),e.literal(null)]).nullish().default(me0).describe("Entity default for generated revenue recognition entries. Send null to clear back to the default off behavior.")}),xe0="off",Yf0=e.object({default_method:e.enum(["off","service_period_daily"]).default(xe0).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),Jf0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ge0=false,$f0=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(ge0).describe("When true, counts eligible documents without writing entries.")}),Qf0=e.object({processed_documents:e.number(),generated_entries:e.number(),dry_run:e.boolean()}),ye0="recognized",Oe0="financial_category",Xf0=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(ye0).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(Oe0).describe("Report grouping dimension.")}),ez0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tz0=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()}),Se0="recognized",Be0="financial_category",nz0=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(Se0).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(Be0).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories.")}),sz0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oz0=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(),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()});var gt={};K(gt,{StripeAppAuthorizeHeader:()=>iz0,StripeAppAuthorizeResponse:()=>az0,StripeAppConnectBody:()=>uz0,StripeAppCreateInvoiceBody:()=>Ez0,StripeAppCreateInvoiceHeader:()=>Tz0,StripeAppDisconnectHeader:()=>xz0,StripeAppDisconnectResponse:()=>gz0,StripeAppEntityDisconnectResponse:()=>Rz0,StripeAppEntityGetConnectionResponse:()=>hz0,StripeAppEntityGetSettingsResponse:()=>Pz0,StripeAppEntityUpdateSettingsBody:()=>Cz0,StripeAppEntityUpdateSettingsResponse:()=>wz0,StripeAppGetConnectionHeader:()=>pz0,StripeAppGetConnectionResponse:()=>mz0,StripeAppGetInvoiceHeader:()=>_z0,StripeAppGetInvoiceParams:()=>Mz0,StripeAppGetInvoiceResponse:()=>Uz0,StripeAppGetSettingsHeader:()=>yz0,StripeAppGetSettingsResponse:()=>Oz0,StripeAppListInvoicesHeader:()=>Iz0,StripeAppListInvoicesQueryParams:()=>bz0,StripeAppListInvoicesResponse:()=>fz0,StripeAppLookupInvoiceHeader:()=>Dz0,StripeAppLookupInvoiceQueryParams:()=>zz0,StripeAppLookupInvoiceResponse:()=>Nz0,StripeAppMarketplaceAuthorizeBody:()=>dz0,StripeAppMarketplaceAuthorizeResponse:()=>cz0,StripeAppOAuthCallbackQueryParams:()=>rz0,StripeAppUpdateSettingsBody:()=>Bz0,StripeAppUpdateSettingsHeader:()=>Sz0,StripeAppUpdateSettingsResponse:()=>vz0,StripeAppWebhookResponse:()=>lz0,stripeAppCreateInvoiceBodyNoteMax:()=>be0,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>ze0,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>Ne0,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>De0,stripeAppListInvoicesQueryLimitDefault:()=>Ie0,stripeAppListInvoicesQueryLimitMax:()=>fe0,stripeAppUpdateSettingsBodyDefaultNoteMax:()=>ve0,stripeAppUpdateSettingsBodyDefaultTaxRateMax:()=>Ee0,stripeAppUpdateSettingsBodyDefaultTaxRateMin:()=>Te0});var iz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID from the Stripe App context")}),az0=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),rz0=e.object({code:e.string().min(1).describe("OAuth authorization code from Stripe"),state:e.string().min(1).describe("Encrypted state token from the authorize step")}),lz0=e.object({received:e.boolean().describe("Whether the webhook was received successfully")}),dz0=e.object({entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account")}),cz0=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),uz0=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().optional().describe("If true, disconnects any existing connection for this Stripe account before connecting")}),pz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),mz0=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"),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")}),xz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),gz0=e.object({message:e.string()}),yz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),Oz0=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")}),Sz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),ve0=500,Te0=0,Ee0=100,Bz0=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(ve0).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:e.number().min(Te0).max(Ee0).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),vz0=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")}),Tz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),be0=2e3,Ez0=e.object({stripe_object_id:e.string().min(1).describe("Stripe object ID (pi_xxx for payment intents, in_xxx for invoices). Type is auto-detected from prefix."),note:e.string().max(be0).optional().describe("Optional note to include on the invoice")}),Ie0=10,fe0=50,bz0=e.object({limit:e.number().min(1).max(fe0).default(Ie0).describe("Number of invoices to return")}),Iz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),fz0=e.object({data:e.array(e.object({id:e.string().describe("Space Invoices invoice ID"),number:e.string().nullable().describe("Invoice number"),status:e.string().describe("Invoice status"),total:e.number().describe("Invoice total amount"),currency:e.string().describe("Currency code"),public_url:e.url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e.string().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e.iso.datetime({}).describe("When the invoice was created")}))}),zz0=e.object({stripe_object_id:e.string().min(1).describe("Stripe object ID (e.g. in_xxx for invoices, pi_xxx for payment intents)")}),Dz0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),Nz0=e.object({id:e.string().describe("Space Invoices invoice ID"),number:e.string().nullable().describe("Invoice number"),status:e.string().describe("Invoice status"),total:e.number().describe("Invoice total amount"),currency:e.string().describe("Currency code"),public_url:e.url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e.string().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e.iso.datetime({}).describe("When the invoice was created")}),Mz0=e.object({id:e.string().describe("Invoice ID")}),_z0=e.object({"stripe-user-account-id":e.string().describe("Stripe account ID")}),Uz0=e.object({id:e.string().describe("Space Invoices invoice ID"),number:e.string().nullable().describe("Invoice number"),status:e.string().describe("Invoice status"),total:e.number().describe("Invoice total amount"),currency:e.string().describe("Currency code"),public_url:e.url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e.string().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e.iso.datetime({}).describe("When the invoice was created")}),hz0=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"),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")}),Rz0=e.object({message:e.string()}),Pz0=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")}),ze0=500,De0=0,Ne0=100,Cz0=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(ze0).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:e.number().min(De0).max(Ne0).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),wz0=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 yt={};K(yt,{CheckEntityLimitResponse:()=>jz0,GetCurrentSubscriptionResponse:()=>Fz0,UpdateSpendingLimitBody:()=>Az0,UpdateSpendingLimitResponse:()=>kz0,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>Me0,updateSpendingLimitBodySpendingLimitCentsMin:()=>_e0});var Me0=0,Fz0=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(Me0),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"),_e0=0,Az0=e.object({spending_limit_cents:e.number().min(_e0).nullable()}).describe("Request to update spending limit for metered tier"),kz0=e.object({spending_limit_cents:e.number().nullable()}).describe("Updated spending limit"),jz0=e.object({can_create:e.boolean(),current_count:e.number(),limit:e.number().nullable()});var Ot={};K(Ot,{ListUsTaxRateEstimatesHeader:()=>Hz0,ListUsTaxRateEstimatesQueryParams:()=>Lz0,ListUsTaxRateEstimatesResponse:()=>Gz0,listUsTaxRateEstimatesQueryStateMax:()=>Re0,listUsTaxRateEstimatesQueryStateMin:()=>he0,listUsTaxRateEstimatesQueryZipCodeRegExp:()=>Ue0,listUsTaxRateEstimatesResponseDataItemCityRateMax:()=>Ve0,listUsTaxRateEstimatesResponseDataItemCityRateMin:()=>Ze0,listUsTaxRateEstimatesResponseDataItemCountryCodeMax:()=>Ce0,listUsTaxRateEstimatesResponseDataItemCountyRateMax:()=>Ke0,listUsTaxRateEstimatesResponseDataItemCountyRateMin:()=>Ge0,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMax:()=>je0,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMin:()=>ke0,listUsTaxRateEstimatesResponseDataItemIdMax:()=>Pe0,listUsTaxRateEstimatesResponseDataItemRiskLevelMax:()=>Je0,listUsTaxRateEstimatesResponseDataItemRiskLevelMin:()=>Ye0,listUsTaxRateEstimatesResponseDataItemSourceMax:()=>$e0,listUsTaxRateEstimatesResponseDataItemSourceMonthMax:()=>Qe0,listUsTaxRateEstimatesResponseDataItemSpecialRateMax:()=>We0,listUsTaxRateEstimatesResponseDataItemSpecialRateMin:()=>qe0,listUsTaxRateEstimatesResponseDataItemStateMax:()=>we0,listUsTaxRateEstimatesResponseDataItemStateRateMax:()=>He0,listUsTaxRateEstimatesResponseDataItemStateRateMin:()=>Le0,listUsTaxRateEstimatesResponseDataItemTaxRegionNameMax:()=>Ae0,listUsTaxRateEstimatesResponseDataItemZipCodeMax:()=>Fe0});var Ue0=/^\d{5}$/,he0=2,Re0=2,Lz0=e.object({zip_code:e.string().regex(Ue0).describe("US ZIP code to look up."),state:e.string().min(he0).max(Re0).optional().describe("Optional two-letter US state filter.")}),Hz0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pe0=36,Ce0=2,we0=2,Fe0=10,Ae0=255,ke0=-140737488355328,je0=0x7fffffffffff,Le0=-140737488355328,He0=0x7fffffffffff,Ge0=-140737488355328,Ke0=0x7fffffffffff,Ze0=-140737488355328,Ve0=0x7fffffffffff,qe0=-140737488355328,We0=0x7fffffffffff,Ye0=-2147483648,Je0=2147483647,$e0=50,Qe0=7,Gz0=e.object({data:e.array(e.object({id:e.string().max(Pe0),country_code:e.string().max(Ce0),state:e.string().max(we0),zip_code:e.string().max(Fe0),tax_region_name:e.string().max(Ae0),estimated_combined_rate:e.number().min(ke0).max(je0),state_rate:e.number().min(Le0).max(He0),county_rate:e.number().min(Ge0).max(Ke0),city_rate:e.number().min(Ze0).max(Ve0),special_rate:e.number().min(qe0).max(We0),risk_level:e.number().min(Ye0).max(Je0),source:e.string().max($e0),source_month:e.string().max(Qe0),imported_at:e.iso.datetime({})}).describe("Imported ZIP-level tax-rate estimate. This is informational and must be verified before use."))});var St={};K(St,{ExportSloveniaVodXmlBody:()=>sD0,ExportSloveniaVodXmlHeader:()=>nD0,ExportSloveniaYearlyNormiraniReportBody:()=>tD0,ExportSloveniaYearlyNormiraniReportHeader:()=>eD0,GenerateKirExportHeader:()=>Zz0,GenerateKirExportQueryParams:()=>Kz0,GetSloveniaTaxProfileHeader:()=>Vz0,GetSloveniaTaxProfileResponse:()=>qz0,ReviewSloveniaYearlyNormiraniReportBody:()=>Qz0,ReviewSloveniaYearlyNormiraniReportHeader:()=>$z0,ReviewSloveniaYearlyNormiraniReportResponse:()=>Xz0,UpdateSloveniaTaxProfileBody:()=>Yz0,UpdateSloveniaTaxProfileHeader:()=>Wz0,UpdateSloveniaTaxProfileResponse:()=>Jz0,exportSloveniaYearlyNormiraniReportBodyManualValuesForeignTaxCreditAmountMin:()=>Es0,exportSloveniaYearlyNormiraniReportBodyManualValuesPriorAdvanceIncomeTaxAmountMin:()=>bs0,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentDecreaseMin:()=>Is0,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentIncreaseMin:()=>fs0,exportSloveniaYearlyNormiraniReportBodyManualValuesWithholdingTaxAmountMin:()=>Ts0,exportSloveniaYearlyNormiraniReportBodyYearMax:()=>vs0,exportSloveniaYearlyNormiraniReportBodyYearMin:()=>Bs0,generateKirExportQueryMonthRegExp:()=>et0,generateKirExportQueryQuarterRegExp:()=>tt0,generateKirExportQueryYearRegExp:()=>Xe0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>at0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Et0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>It0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>bt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>zt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>Dt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>ft0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Nt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Mt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>_t0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>ct0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>pt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>ut0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>it0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>mt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>gt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>xt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>Ot0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>St0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>yt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>Bt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>vt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Tt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>rt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>dt0,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>lt0,getSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>nt0,getSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>ot0,getSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>st0,reviewSloveniaYearlyNormiraniReportBodyYearMax:()=>wn0,reviewSloveniaYearlyNormiraniReportBodyYearMin:()=>Cn0,reviewSloveniaYearlyNormiraniReportResponseManualValuesForeignTaxCreditAmountMin:()=>gs0,reviewSloveniaYearlyNormiraniReportResponseManualValuesPriorAdvanceIncomeTaxAmountMin:()=>ys0,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentDecreaseMin:()=>Os0,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentIncreaseMin:()=>Ss0,reviewSloveniaYearlyNormiraniReportResponseManualValuesWithholdingTaxAmountMin:()=>xs0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePayablesMax:()=>Gn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>is0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>rs0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>as0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>ds0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>cs0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>ls0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>us0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>ps0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>ms0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>qn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>Yn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>Wn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesMax:()=>Hn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>Jn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>Qn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>$n0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>es0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>ts0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>Xn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>ns0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>ss0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>os0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat22Max:()=>Kn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat5Max:()=>Vn0,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat95Max:()=>Zn0,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingActivityCodesItemRegExp:()=>kn0,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultForeignTaxCreditAmountMin:()=>Ln0,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultWithholdingTaxAmountMin:()=>jn0,reviewSloveniaYearlyNormiraniReportResponseYearMax:()=>An0,reviewSloveniaYearlyNormiraniReportResponseYearMin:()=>Fn0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPayablesMax:()=>Ct0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense22Max:()=>$t0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense5Max:()=>Xt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense95Max:()=>Qt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuGoodsMax:()=>tn0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuServicesMax:()=>nn0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseExemptMax:()=>en0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseReverseChargeMax:()=>sn0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryGoodsMax:()=>on0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryServicesMax:()=>in0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable22Max:()=>kt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable5Max:()=>Lt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable95Max:()=>jt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesMax:()=>Pt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue22Max:()=>Ht0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue5Max:()=>Kt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue95Max:()=>Gt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuGoodsMax:()=>Vt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuServicesMax:()=>qt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueExemptMax:()=>Zt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueReverseChargeMax:()=>Wt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryGoodsMax:()=>Yt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryServicesMax:()=>Jt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat22Max:()=>wt0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat5Max:()=>At0,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat95Max:()=>Ft0,updateSloveniaTaxProfileBodyYearlyReportingActivityCodesItemRegExp:()=>Ut0,updateSloveniaTaxProfileBodyYearlyReportingDefaultForeignTaxCreditAmountMin:()=>Rt0,updateSloveniaTaxProfileBodyYearlyReportingDefaultWithholdingTaxAmountMin:()=>ht0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>cn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>zn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Nn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>Dn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>_n0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>Un0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Mn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>hn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Rn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>Pn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>xn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>yn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>gn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>dn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>On0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>Bn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Sn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>Tn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>En0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>vn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>bn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>In0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>fn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>un0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>mn0,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>pn0,updateSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>an0,updateSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>ln0,updateSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>rn0});var Xe0=/^\d{4}$/,et0=/^(1[0-2]|[1-9])$/,tt0=/^[1-4]$/,Kz0=e.object({year:e.string().regex(Xe0).describe("Year for KIR export (e.g., 2025)"),month:e.string().regex(et0).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e.string().regex(tt0).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),Zz0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vz0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nt0=/^\d{2}\.\d{3}$/,st0=0,ot0=0,it0=8,at0=8,rt0=8,lt0=8,dt0=8,ct0=8,ut0=8,pt0=8,mt0=8,xt0=8,gt0=8,yt0=8,Ot0=8,St0=8,Bt0=8,vt0=8,Tt0=8,Et0=8,bt0=8,It0=8,ft0=8,zt0=8,Dt0=8,Nt0=8,Mt0=8,_t0=8,qz0=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."),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(nt0).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(st0).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(ot0).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(it0).nullish(),payables:e.string().max(at0).nullish(),sales_vat_22:e.string().max(rt0).nullish(),sales_vat_95:e.string().max(lt0).nullish(),sales_vat_5:e.string().max(dt0).nullish(),purchase_vat_recoverable_22:e.string().max(ct0).nullish(),purchase_vat_recoverable_95:e.string().max(ut0).nullish(),purchase_vat_recoverable_5:e.string().max(pt0).nullish(),sales_revenue_22:e.string().max(mt0).nullish(),sales_revenue_95:e.string().max(xt0).nullish(),sales_revenue_5:e.string().max(gt0).nullish(),sales_revenue_exempt:e.string().max(yt0).nullish(),sales_revenue_eu_goods:e.string().max(Ot0).nullish(),sales_revenue_eu_services:e.string().max(St0).nullish(),sales_revenue_reverse_charge:e.string().max(Bt0).nullish(),sales_revenue_third_country_goods:e.string().max(vt0).nullish(),sales_revenue_third_country_services:e.string().max(Tt0).nullish(),purchase_expense_22:e.string().max(Et0).nullish(),purchase_expense_95:e.string().max(bt0).nullish(),purchase_expense_5:e.string().max(It0).nullish(),purchase_expense_exempt:e.string().max(ft0).nullish(),purchase_expense_eu_goods:e.string().max(zt0).nullish(),purchase_expense_eu_services:e.string().max(Dt0).nullish(),purchase_expense_reverse_charge:e.string().max(Nt0).nullish(),purchase_expense_third_country_goods:e.string().max(Mt0).nullish(),purchase_expense_third_country_services:e.string().max(_t0).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()}),Wz0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ut0=/^\d{2}\.\d{3}$/,ht0=0,Rt0=0,Pt0=8,Ct0=8,wt0=8,Ft0=8,At0=8,kt0=8,jt0=8,Lt0=8,Ht0=8,Gt0=8,Kt0=8,Zt0=8,Vt0=8,qt0=8,Wt0=8,Yt0=8,Jt0=8,$t0=8,Qt0=8,Xt0=8,en0=8,tn0=8,nn0=8,sn0=8,on0=8,in0=8,Yz0=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."),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(Ut0).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(ht0).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e.number().min(Rt0).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(Pt0).nullish(),payables:e.string().max(Ct0).nullish(),sales_vat_22:e.string().max(wt0).nullish(),sales_vat_95:e.string().max(Ft0).nullish(),sales_vat_5:e.string().max(At0).nullish(),purchase_vat_recoverable_22:e.string().max(kt0).nullish(),purchase_vat_recoverable_95:e.string().max(jt0).nullish(),purchase_vat_recoverable_5:e.string().max(Lt0).nullish(),sales_revenue_22:e.string().max(Ht0).nullish(),sales_revenue_95:e.string().max(Gt0).nullish(),sales_revenue_5:e.string().max(Kt0).nullish(),sales_revenue_exempt:e.string().max(Zt0).nullish(),sales_revenue_eu_goods:e.string().max(Vt0).nullish(),sales_revenue_eu_services:e.string().max(qt0).nullish(),sales_revenue_reverse_charge:e.string().max(Wt0).nullish(),sales_revenue_third_country_goods:e.string().max(Yt0).nullish(),sales_revenue_third_country_services:e.string().max(Jt0).nullish(),purchase_expense_22:e.string().max($t0).nullish(),purchase_expense_95:e.string().max(Qt0).nullish(),purchase_expense_5:e.string().max(Xt0).nullish(),purchase_expense_exempt:e.string().max(en0).nullish(),purchase_expense_eu_goods:e.string().max(tn0).nullish(),purchase_expense_eu_services:e.string().max(nn0).nullish(),purchase_expense_reverse_charge:e.string().max(sn0).nullish(),purchase_expense_third_country_goods:e.string().max(on0).nullish(),purchase_expense_third_country_services:e.string().max(in0).nullish()}).nullish()}).nullish()}),an0=/^\d{2}\.\d{3}$/,rn0=0,ln0=0,dn0=8,cn0=8,un0=8,pn0=8,mn0=8,xn0=8,gn0=8,yn0=8,On0=8,Sn0=8,Bn0=8,vn0=8,Tn0=8,En0=8,bn0=8,In0=8,fn0=8,zn0=8,Dn0=8,Nn0=8,Mn0=8,_n0=8,Un0=8,hn0=8,Rn0=8,Pn0=8,Jz0=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."),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(an0).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(rn0).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(ln0).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(dn0).nullish(),payables:e.string().max(cn0).nullish(),sales_vat_22:e.string().max(un0).nullish(),sales_vat_95:e.string().max(pn0).nullish(),sales_vat_5:e.string().max(mn0).nullish(),purchase_vat_recoverable_22:e.string().max(xn0).nullish(),purchase_vat_recoverable_95:e.string().max(gn0).nullish(),purchase_vat_recoverable_5:e.string().max(yn0).nullish(),sales_revenue_22:e.string().max(On0).nullish(),sales_revenue_95:e.string().max(Sn0).nullish(),sales_revenue_5:e.string().max(Bn0).nullish(),sales_revenue_exempt:e.string().max(vn0).nullish(),sales_revenue_eu_goods:e.string().max(Tn0).nullish(),sales_revenue_eu_services:e.string().max(En0).nullish(),sales_revenue_reverse_charge:e.string().max(bn0).nullish(),sales_revenue_third_country_goods:e.string().max(In0).nullish(),sales_revenue_third_country_services:e.string().max(fn0).nullish(),purchase_expense_22:e.string().max(zn0).nullish(),purchase_expense_95:e.string().max(Dn0).nullish(),purchase_expense_5:e.string().max(Nn0).nullish(),purchase_expense_exempt:e.string().max(Mn0).nullish(),purchase_expense_eu_goods:e.string().max(_n0).nullish(),purchase_expense_eu_services:e.string().max(Un0).nullish(),purchase_expense_reverse_charge:e.string().max(hn0).nullish(),purchase_expense_third_country_goods:e.string().max(Rn0).nullish(),purchase_expense_third_country_services:e.string().max(Pn0).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()}),$z0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Cn0=2025,wn0=2100,Qz0=e.object({year:e.number().min(Cn0).max(wn0).describe("Tax year for the yearly Slovenia eDavki filing.")}),Fn0=2025,An0=2100,kn0=/^\d{2}\.\d{3}$/,jn0=0,Ln0=0,Hn0=8,Gn0=8,Kn0=8,Zn0=8,Vn0=8,qn0=8,Wn0=8,Yn0=8,Jn0=8,$n0=8,Qn0=8,Xn0=8,es0=8,ts0=8,ns0=8,ss0=8,os0=8,is0=8,as0=8,rs0=8,ls0=8,ds0=8,cs0=8,us0=8,ps0=8,ms0=8,xs0=0,gs0=0,ys0=0,Os0=0,Ss0=0,Xz0=e.object({entity_id:e.string(),year:e.number().min(Fn0).max(An0).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."),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(kn0).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(jn0).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(Ln0).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(Hn0).nullish(),payables:e.string().max(Gn0).nullish(),sales_vat_22:e.string().max(Kn0).nullish(),sales_vat_95:e.string().max(Zn0).nullish(),sales_vat_5:e.string().max(Vn0).nullish(),purchase_vat_recoverable_22:e.string().max(qn0).nullish(),purchase_vat_recoverable_95:e.string().max(Wn0).nullish(),purchase_vat_recoverable_5:e.string().max(Yn0).nullish(),sales_revenue_22:e.string().max(Jn0).nullish(),sales_revenue_95:e.string().max($n0).nullish(),sales_revenue_5:e.string().max(Qn0).nullish(),sales_revenue_exempt:e.string().max(Xn0).nullish(),sales_revenue_eu_goods:e.string().max(es0).nullish(),sales_revenue_eu_services:e.string().max(ts0).nullish(),sales_revenue_reverse_charge:e.string().max(ns0).nullish(),sales_revenue_third_country_goods:e.string().max(ss0).nullish(),sales_revenue_third_country_services:e.string().max(os0).nullish(),purchase_expense_22:e.string().max(is0).nullish(),purchase_expense_95:e.string().max(as0).nullish(),purchase_expense_5:e.string().max(rs0).nullish(),purchase_expense_exempt:e.string().max(ls0).nullish(),purchase_expense_eu_goods:e.string().max(ds0).nullish(),purchase_expense_eu_services:e.string().max(cs0).nullish(),purchase_expense_reverse_charge:e.string().max(us0).nullish(),purchase_expense_third_country_goods:e.string().max(ps0).nullish(),purchase_expense_third_country_services:e.string().max(ms0).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(xs0).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(gs0).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(ys0).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(Os0).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(Ss0).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()})}),eD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Bs0=2025,vs0=2100,Ts0=0,Es0=0,bs0=0,Is0=0,fs0=0,tD0=e.object({year:e.number().min(Bs0).max(vs0).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e.object({withholding_tax_amount:e.number().min(Ts0).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Es0).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(bs0).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(Is0).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(fs0).describe("Monetary amount in EUR.")})}),nD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sD0=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.")});var Bt={};K(Bt,{CreateTaxBody:()=>iD0,CreateTaxHeader:()=>oD0,DeleteTaxHeader:()=>SD0,DeleteTaxParams:()=>OD0,GetTaxesHeader:()=>rD0,GetTaxesQueryParams:()=>aD0,GetTaxesResponse:()=>lD0,PermanentDeleteTaxHeader:()=>bD0,PermanentDeleteTaxParams:()=>ED0,ReplaceTaxBody:()=>gD0,ReplaceTaxHeader:()=>xD0,ReplaceTaxParams:()=>mD0,ReplaceTaxResponse:()=>yD0,RestoreTaxHeader:()=>vD0,RestoreTaxParams:()=>BD0,RestoreTaxResponse:()=>TD0,UpdateTaxBody:()=>uD0,UpdateTaxHeader:()=>cD0,UpdateTaxParams:()=>dD0,UpdateTaxResponse:()=>pD0,createTaxBodyNameMax:()=>zs0,createTaxBodyTaxRatesItemRateMax:()=>Ns0,createTaxBodyTaxRatesItemRateMin:()=>Ds0,deleteTaxPathIdRegExp:()=>Xs0,getTaxesQueryLimitDefault:()=>Ms0,getTaxesQueryLimitMax:()=>_s0,getTaxesResponseDataItemOneEntityIdMax:()=>Cs0,getTaxesResponseDataItemOneIdMax:()=>Us0,getTaxesResponseDataItemOneNameMax:()=>hs0,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>Ps0,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>Rs0,permanentDeleteTaxPathIdRegExp:()=>ao0,replaceTaxBodyNameMax:()=>Zs0,replaceTaxBodyTaxRatesItemRateMax:()=>qs0,replaceTaxBodyTaxRatesItemRateMin:()=>Vs0,replaceTaxPathIdRegExp:()=>Ks0,replaceTaxResponseOneEntityIdMax:()=>Qs0,replaceTaxResponseOneIdMax:()=>Ws0,replaceTaxResponseOneNameMax:()=>Ys0,replaceTaxResponseOneTaxRatesItemRateMax:()=>$s0,replaceTaxResponseOneTaxRatesItemRateMin:()=>Js0,restoreTaxPathIdRegExp:()=>eo0,restoreTaxResponseOneEntityIdMax:()=>io0,restoreTaxResponseOneIdMax:()=>to0,restoreTaxResponseOneNameMax:()=>no0,restoreTaxResponseOneTaxRatesItemRateMax:()=>oo0,restoreTaxResponseOneTaxRatesItemRateMin:()=>so0,updateTaxBodyTaxRatesItemRateMax:()=>As0,updateTaxBodyTaxRatesItemRateMin:()=>Fs0,updateTaxPathIdRegExp:()=>ws0,updateTaxResponseOneEntityIdMax:()=>Gs0,updateTaxResponseOneIdMax:()=>ks0,updateTaxResponseOneNameMax:()=>js0,updateTaxResponseOneTaxRatesItemRateMax:()=>Hs0,updateTaxResponseOneTaxRatesItemRateMin:()=>Ls0});var oD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zs0=100,Ds0=0,Ns0=100,iD0=e.object({name:e.string().max(zs0).optional(),tax_rates:e.array(e.object({rate:e.number().min(Ds0).max(Ns0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),metadata:e.record(e.string(),e.string()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Ms0=10,_s0=100,aD0=e.object({limit:e.number().min(1).max(_s0).default(Ms0).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**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.
|
|
178
178
|
Searches are case-insensitive and match partial strings.
|
|
179
|
-
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.")}),rD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Us0=36,hs0=100,Rs0=0,Ps0=100,Cs0=36,lD0=e.object({data:e.array(e.object({id:e.string().max(Us0),name:e.string().max(hs0),tax_rates:e.array(e.object({rate:e.number().min(Rs0).max(Ps0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(Cs0),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")}),ws0=/^[a-z]{3,4}_[0-9a-f]{24}$/,dD0=e.object({id:e.stringFormat("resource-id",ws0).describe("Unique resource identifier")}),cD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Fs0=0,As0=100,uD0=e.object({tax_rates:e.array(e.object({rate:e.number().min(Fs0).max(As0),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)")}),ks0=36,js0=100,Ls0=0,Hs0=100,Gs0=36,pD0=e.object({id:e.string().max(ks0),name:e.string().max(js0),tax_rates:e.array(e.object({rate:e.number().min(Ls0).max(Hs0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(Gs0),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"),Ks0=/^[a-z]{3,4}_[0-9a-f]{24}$/,mD0=e.object({id:e.stringFormat("resource-id",Ks0).describe("Unique resource identifier")}),xD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zs0=100,Vs0=0,qs0=100,gD0=e.object({name:e.string().max(Zs0).optional(),tax_rates:e.array(e.object({rate:e.number().min(Vs0).max(qs0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),metadata:e.record(e.string(),e.string()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Ws0=36,Ys0=100,Js0=0,$s0=100,Qs0=36,yD0=e.object({id:e.string().max(Ws0),name:e.string().max(Ys0),tax_rates:e.array(e.object({rate:e.number().min(Js0).max($s0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(Qs0),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"),Xs0=/^[a-z]{3,4}_[0-9a-f]{24}$/,OD0=e.object({id:e.stringFormat("resource-id",Xs0).describe("Unique resource identifier")}),SD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),eo0=/^[a-z]{3,4}_[0-9a-f]{24}$/,BD0=e.object({id:e.stringFormat("resource-id",eo0).describe("Unique resource identifier")}),vD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),to0=36,no0=100,so0=0,oo0=100,io0=36,TD0=e.object({id:e.string().max(to0),name:e.string().max(no0),tax_rates:e.array(e.object({rate:e.number().min(so0).max(oo0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(io0),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"),ao0=/^[a-z]{3,4}_[0-9a-f]{24}$/,ED0=e.object({id:e.stringFormat("resource-id",ao0).describe("Unique resource identifier")}),bD0=e.object({"x-entity-id":e.string().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 vt={};K(vt,{CheckTransactionTypeBody:()=>ID0,CheckTransactionTypeResponse:()=>fD0,checkTransactionTypeBodyCustomerCountryCodeMax:()=>uo0,checkTransactionTypeBodyCustomerCountryCodeMin:()=>co0,checkTransactionTypeBodyIssuerCountryCodeMax:()=>lo0,checkTransactionTypeBodyIssuerCountryCodeMin:()=>ro0,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>do0,checkTransactionTypeResponseCustomerCountryCodeMax:()=>go0,checkTransactionTypeResponseCustomerCountryCodeMin:()=>xo0,checkTransactionTypeResponseIssuerCountryCodeMax:()=>mo0,checkTransactionTypeResponseIssuerCountryCodeMin:()=>po0});var ro0=2,lo0=2,do0=true,co0=2,uo0=2,ID0=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(ro0).max(lo0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(do0).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(co0).max(uo0).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")}),po0=2,mo0=2,xo0=2,go0=2,fD0=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(po0).max(mo0).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(xo0).max(go0).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var Tt={};K(Tt,{DownloadUjpPackageHeader:()=>DD0,DownloadUjpPackageParams:()=>zD0});var zD0=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),DD0=e.object({"x-entity-id":e.string().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 Et={};K(Et,{UploadImageBody:()=>MD0,UploadImageHeader:()=>ND0,UploadImageResponse:()=>_D0});var ND0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MD0=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)")}),_D0=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 bt={};K(bt,{ConfirmPasswordResetBody:()=>wD0,ConfirmPasswordResetResponse:()=>FD0,GetMeResponse:()=>kD0,ListMyAccountsResponse:()=>AD0,LoginBody:()=>UD0,LoginResponse:()=>hD0,PatchMeBody:()=>jD0,PatchMeResponse:()=>LD0,RequestPasswordResetBody:()=>PD0,RequestPasswordResetResponse:()=>CD0,SignupBody:()=>RD0,UpdateUserFinaSettingsBody:()=>VD0,UpdateUserFinaSettingsHeader:()=>ZD0,UpdateUserFinaSettingsResponse:()=>qD0,UpdateUserFursSettingsBody:()=>GD0,UpdateUserFursSettingsHeader:()=>HD0,UpdateUserFursSettingsResponse:()=>KD0,UpdateUserPtSettingsBody:()=>YD0,UpdateUserPtSettingsHeader:()=>WD0,UpdateUserPtSettingsResponse:()=>JD0,confirmPasswordResetBodyPasswordMin:()=>No0,confirmPasswordResetBodyPasswordRegExp:()=>Mo0,getMeResponseAccountIdMax:()=>Ro0,getMeResponseEmailMax:()=>Uo0,getMeResponseIdMax:()=>_o0,getMeResponseNameMax:()=>ho0,loginResponseOneIdMax:()=>yo0,loginResponseOneImpersonatorUserIdMax:()=>vo0,loginResponseOneScopeMax:()=>Bo0,loginResponseOneTtlDefault:()=>So0,loginResponseOneUserIdMax:()=>Oo0,loginResponseTwoUserAccountIdMax:()=>Io0,loginResponseTwoUserEmailMax:()=>Eo0,loginResponseTwoUserIdMax:()=>To0,loginResponseTwoUserNameMax:()=>bo0,patchMeBodyNameMin:()=>Po0,patchMeResponseAccountIdMax:()=>Ao0,patchMeResponseEmailMax:()=>wo0,patchMeResponseIdMax:()=>Co0,patchMeResponseNameMax:()=>Fo0,signupBodyNameMin:()=>fo0,signupBodyPasswordMin:()=>zo0,signupBodyPasswordRegExp:()=>Do0,updateUserFinaSettingsResponseAccountIdMax:()=>Vo0,updateUserFinaSettingsResponseEmailMax:()=>Ko0,updateUserFinaSettingsResponseIdMax:()=>Go0,updateUserFinaSettingsResponseNameMax:()=>Zo0,updateUserFursSettingsResponseAccountIdMax:()=>Ho0,updateUserFursSettingsResponseEmailMax:()=>jo0,updateUserFursSettingsResponseIdMax:()=>ko0,updateUserFursSettingsResponseNameMax:()=>Lo0,updateUserPtSettingsResponseAccountIdMax:()=>Jo0,updateUserPtSettingsResponseEmailMax:()=>Wo0,updateUserPtSettingsResponseIdMax:()=>qo0,updateUserPtSettingsResponseNameMax:()=>Yo0});var UD0=e.object({email:e.email(),password:e.string()}),yo0=100,Oo0=36,So0=31536e3,Bo0=50,vo0=36,To0=36,Eo0=255,bo0=255,Io0=36,hD0=e.object({id:e.string().max(yo0),user_id:e.string().max(Oo0),ttl:e.number().default(So0).describe("Token time-to-live in seconds"),scope:e.string().max(Bo0).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(vo0).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(To0),email:e.string().max(Eo0),name:e.string().max(bo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Io0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),fo0=2,zo0=8,Do0=/[a-z]/,RD0=e.object({email:e.email(),name:e.string().min(fo0).nullish(),password:e.string().min(zo0).regex(Do0),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()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional()}),PD0=e.object({email:e.email()}),CD0=e.object({message:e.string()}),No0=8,Mo0=/[a-z]/,wD0=e.object({token:e.string().min(1),password:e.string().min(No0).regex(Mo0)}),FD0=e.object({message:e.string()}),AD0=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"])}))}),_o0=36,Uo0=255,ho0=255,Ro0=36,kD0=e.object({id:e.string().max(_o0),email:e.string().max(Uo0),name:e.string().max(ho0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Ro0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Po0=2,jD0=e.object({name:e.string().min(Po0).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(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),Co0=36,wo0=255,Fo0=255,Ao0=36,LD0=e.object({id:e.string().max(Co0),email:e.string().max(wo0),name:e.string().max(Fo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Ao0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),HD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),GD0=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"),ko0=36,jo0=255,Lo0=255,Ho0=36,KD0=e.object({id:e.string().max(ko0),email:e.string().max(jo0),name:e.string().max(Lo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Ho0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),ZD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),VD0=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"),Go0=36,Ko0=255,Zo0=255,Vo0=36,qD0=e.object({id:e.string().max(Go0),email:e.string().max(Ko0),name:e.string().max(Zo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Vo0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),WD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),YD0=e.object({operator_first_name:e.string().optional().describe("PT operator first name"),operator_last_name:e.string().optional().describe("PT operator last name"),operator_tax_number:e.string().optional().describe("PT operator tax number"),account_first_name:e.string().optional().describe("Deprecated alias for PT operator first name"),account_last_name:e.string().optional().describe("Deprecated alias for PT operator last name"),account_tax_number:e.string().optional().describe("Deprecated alias for PT operator tax number")}).describe("Update user PT operator settings for a specific entity"),qo0=36,Wo0=255,Yo0=255,Jo0=36,JD0=e.object({id:e.string().max(qo0),email:e.string().max(Wo0),name:e.string().max(Yo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Jo0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var It={};K(It,{CheckViesBody:()=>$D0,CheckViesResponse:()=>QD0,checkViesBodyCustomerCountryCodeMax:()=>ti0,checkViesBodyCustomerCountryCodeMin:()=>ei0,checkViesBodyIssuerCountryCodeMax:()=>Qo0,checkViesBodyIssuerCountryCodeMin:()=>$o0,checkViesBodyIssuerIsTaxSubjectDefault:()=>Xo0,checkViesResponseCustomerCountryCodeMax:()=>ii0,checkViesResponseCustomerCountryCodeMin:()=>oi0,checkViesResponseIssuerCountryCodeMax:()=>si0,checkViesResponseIssuerCountryCodeMin:()=>ni0});var $o0=2,Qo0=2,Xo0=true,ei0=2,ti0=2,$D0=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($o0).max(Qo0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(Xo0).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(ei0).max(ti0).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")}),ni0=2,si0=2,oi0=2,ii0=2,QD0=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(ni0).max(si0).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(oi0).max(ii0).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var ft={};K(ft,{CreateWebhookBody:()=>eN0,CreateWebhookHeader:()=>XD0,DeleteWebhookHeader:()=>pN0,DeleteWebhookParams:()=>uN0,DeleteWebhookResponse:()=>mN0,GetWebhookByIdHeader:()=>iN0,GetWebhookByIdParams:()=>oN0,GetWebhookByIdResponse:()=>aN0,GetWebhookDeliveriesHeader:()=>BN0,GetWebhookDeliveriesParams:()=>ON0,GetWebhookDeliveriesQueryParams:()=>SN0,GetWebhookDeliveriesResponse:()=>vN0,GetWebhooksHeader:()=>nN0,GetWebhooksQueryParams:()=>tN0,GetWebhooksResponse:()=>sN0,RotateWebhookSecretHeader:()=>EN0,RotateWebhookSecretParams:()=>TN0,RotateWebhookSecretResponse:()=>bN0,TestWebhookHeader:()=>gN0,TestWebhookParams:()=>xN0,TestWebhookResponse:()=>yN0,UpdateWebhookBody:()=>dN0,UpdateWebhookHeader:()=>lN0,UpdateWebhookParams:()=>rN0,UpdateWebhookResponse:()=>cN0,createWebhookBodyActiveDefault:()=>li0,createWebhookBodyDescriptionMax:()=>ri0,createWebhookBodyUrlMax:()=>ai0,deleteWebhookPathIdRegExp:()=>_i0,getWebhookByIdPathIdRegExp:()=>yi0,getWebhookByIdResponseDescriptionMax:()=>vi0,getWebhookByIdResponseEntityIdMax:()=>Si0,getWebhookByIdResponseIdMax:()=>Oi0,getWebhookByIdResponseMetadataDefault:()=>Ti0,getWebhookByIdResponseUrlMax:()=>Bi0,getWebhookDeliveriesPathIdRegExp:()=>Vi0,getWebhookDeliveriesQueryLimitDefault:()=>qi0,getWebhookDeliveriesQueryLimitMax:()=>Wi0,getWebhookDeliveriesResponseDataItemAttemptMax:()=>oa0,getWebhookDeliveriesResponseDataItemAttemptMin:()=>sa0,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>la0,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>ra0,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>$i0,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>na0,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>Qi0,getWebhookDeliveriesResponseDataItemIdMax:()=>Yi0,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>aa0,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>ia0,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>ta0,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>ea0,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>Xi0,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Ji0,getWebhooksQueryLimitDefault:()=>di0,getWebhooksQueryLimitMax:()=>ci0,getWebhooksResponseDataItemDescriptionMax:()=>xi0,getWebhooksResponseDataItemEntityIdMax:()=>pi0,getWebhooksResponseDataItemIdMax:()=>ui0,getWebhooksResponseDataItemMetadataDefault:()=>gi0,getWebhooksResponseDataItemUrlMax:()=>mi0,rotateWebhookSecretPathIdRegExp:()=>da0,rotateWebhookSecretResponseDescriptionMax:()=>ma0,rotateWebhookSecretResponseEntityIdMax:()=>ua0,rotateWebhookSecretResponseIdMax:()=>ca0,rotateWebhookSecretResponseMetadataDefault:()=>ga0,rotateWebhookSecretResponseSecretMax:()=>xa0,rotateWebhookSecretResponseUrlMax:()=>pa0,testWebhookPathIdRegExp:()=>Ui0,testWebhookResponseAttemptMax:()=>Li0,testWebhookResponseAttemptMin:()=>ji0,testWebhookResponseDurationMsMax:()=>Zi0,testWebhookResponseDurationMsMin:()=>Ki0,testWebhookResponseEntityIdMax:()=>Pi0,testWebhookResponseErrorMessageMax:()=>ki0,testWebhookResponseEventTypeMax:()=>Ci0,testWebhookResponseIdMax:()=>hi0,testWebhookResponseMaxAttemptsMax:()=>Gi0,testWebhookResponseMaxAttemptsMin:()=>Hi0,testWebhookResponseResponseBodyMax:()=>Ai0,testWebhookResponseResponseStatusMax:()=>Fi0,testWebhookResponseResponseStatusMin:()=>wi0,testWebhookResponseWebhookIdMax:()=>Ri0,updateWebhookBodyDescriptionMax:()=>Ii0,updateWebhookBodyUrlMax:()=>bi0,updateWebhookPathIdRegExp:()=>Ei0,updateWebhookResponseDescriptionMax:()=>Ni0,updateWebhookResponseEntityIdMax:()=>zi0,updateWebhookResponseIdMax:()=>fi0,updateWebhookResponseMetadataDefault:()=>Mi0,updateWebhookResponseUrlMax:()=>Di0});var XD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ai0=2048,ri0=500,li0=true,eN0=e.object({url:e.url().max(ai0).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(ri0).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.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(li0).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),di0=10,ci0=100,tN0=e.object({limit:e.number().min(1).max(ci0).default(di0).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.")}),nN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ui0=36,pi0=36,mi0=2048,xi0=500,gi0={},sN0=e.object({data:e.array(e.object({id:e.string().max(ui0),entity_id:e.string().max(pi0),url:e.string().max(mi0),description:e.string().max(xi0).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.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()).default(gi0),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")}),yi0=/^[a-z]{3,4}_[0-9a-f]{24}$/,oN0=e.object({id:e.stringFormat("resource-id",yi0).describe("Unique resource identifier")}),iN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Oi0=36,Si0=36,Bi0=2048,vi0=500,Ti0={},aN0=e.object({id:e.string().max(Oi0),entity_id:e.string().max(Si0),url:e.string().max(Bi0),description:e.string().max(vi0).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.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()).default(Ti0),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)"),Ei0=/^[a-z]{3,4}_[0-9a-f]{24}$/,rN0=e.object({id:e.stringFormat("resource-id",Ei0).describe("Unique resource identifier")}),lN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),bi0=2048,Ii0=500,dN0=e.object({url:e.url().max(bi0).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Ii0).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.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()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),fi0=36,zi0=36,Di0=2048,Ni0=500,Mi0={},cN0=e.object({id:e.string().max(fi0),entity_id:e.string().max(zi0),url:e.string().max(Di0),description:e.string().max(Ni0).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.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()).default(Mi0),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)"),_i0=/^[a-z]{3,4}_[0-9a-f]{24}$/,uN0=e.object({id:e.stringFormat("resource-id",_i0).describe("Unique resource identifier")}),pN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mN0=e.object({success:e.boolean()}),Ui0=/^[a-z]{3,4}_[0-9a-f]{24}$/,xN0=e.object({id:e.stringFormat("resource-id",Ui0).describe("Unique resource identifier")}),gN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hi0=36,Ri0=36,Pi0=36,Ci0=100,wi0=-2147483648,Fi0=2147483647,Ai0=1e4,ki0=2e3,ji0=-2147483648,Li0=2147483647,Hi0=-2147483648,Gi0=2147483647,Ki0=-2147483648,Zi0=2147483647,yN0=e.object({id:e.string().max(hi0),webhook_id:e.string().max(Ri0),entity_id:e.string().max(Pi0),event_type:e.string().max(Ci0),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(wi0).max(Fi0).nullish(),response_body:e.string().max(Ai0).nullish(),error_message:e.string().max(ki0).nullish(),attempt:e.number().min(ji0).max(Li0),max_attempts:e.number().min(Hi0).max(Gi0),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Ki0).max(Zi0).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Vi0=/^[a-z]{3,4}_[0-9a-f]{24}$/,ON0=e.object({id:e.stringFormat("resource-id",Vi0).describe("Unique resource identifier")}),qi0=10,Wi0=100,SN0=e.object({limit:e.number().min(1).max(Wi0).default(qi0).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.")}),BN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Yi0=36,Ji0=36,$i0=36,Qi0=100,Xi0=-2147483648,ea0=2147483647,ta0=1e4,na0=2e3,sa0=-2147483648,oa0=2147483647,ia0=-2147483648,aa0=2147483647,ra0=-2147483648,la0=2147483647,vN0=e.object({data:e.array(e.object({id:e.string().max(Yi0),webhook_id:e.string().max(Ji0),entity_id:e.string().max($i0),event_type:e.string().max(Qi0),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Xi0).max(ea0).nullish(),response_body:e.string().max(ta0).nullish(),error_message:e.string().max(na0).nullish(),attempt:e.number().min(sa0).max(oa0),max_attempts:e.number().min(ia0).max(aa0),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(ra0).max(la0).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")}),da0=/^[a-z]{3,4}_[0-9a-f]{24}$/,TN0=e.object({id:e.stringFormat("resource-id",da0).describe("Unique resource identifier")}),EN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ca0=36,ua0=36,pa0=2048,ma0=500,xa0=64,ga0={},bN0=e.object({id:e.string().max(ca0),entity_id:e.string().max(ua0),url:e.string().max(pa0),description:e.string().max(ma0).nullish(),secret:e.string().max(xa0),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.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()).default(ga0),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var zt={};K(zt,{CheckWLFeatureParams:()=>zN0,CheckWLFeatureResponse:()=>DN0,CheckWLLimitParams:()=>NN0,CheckWLLimitResponse:()=>MN0,GetCurrentWLSubscriptionResponse:()=>IN0,GetWLSubscriptionPlansResponse:()=>fN0,UpdateWLSubscriptionBillingEmailBody:()=>_N0,UpdateWLSubscriptionBillingEmailResponse:()=>UN0,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>ya0,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>Oa0});var ya0=0,Oa0=null,IN0=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 falls back to computed yearly pricing."),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("Yearly price in cents for each additional connected store."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),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"),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 falls back to computed yearly pricing."),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("Yearly price in cents for each additional connected store."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),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()}),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(ya0).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(Oa0).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"),fN0=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 falls back to computed yearly pricing."),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("Yearly price in cents for each additional connected store."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),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"),zN0=e.object({feature:e.string().describe("Feature slug to check")}),DN0=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"),NN0=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),MN0=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"),_N0=e.object({billing_email:e.email().nullable()}),UN0=e.object({billing_email:e.string().nullable()});var Dt={};K(Dt,{GetCurrentWhiteLabelResponse:()=>hN0,GetMyWhiteLabelResponse:()=>RN0});var hN0=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."),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"),RN0=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."),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 PN0=125e3,Nt=null,Ie=null,Mt=false;function Ba0(d){Nt=d;}function _t(d){Ie=d,d==null&&(Mt=false);}function CN0(){Mt||(Mt=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 wN0(){return Ie}function FN0(){if(!Nt)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return Nt}function AN0(d){if(!d)return {};if(d instanceof Headers){let c={};return d.forEach((p,f)=>{c[f]=p;}),c}if(Array.isArray(d)){let c={};for(let[p,f]of d)c[p]=f;return c}return d}function kN0(d,c){if(c==null||c<=0)return {signal:d??void 0,cleanup:()=>{}};let p=new AbortController,f=()=>{p.abort(d?.reason);};if(d?.aborted)return f(),{signal:p.signal,cleanup:()=>{}};let T=setTimeout(()=>{p.abort(new Error(`SDK request timed out after ${c}ms`));},c),h=()=>{clearTimeout(T),d?.removeEventListener("abort",f);};return d?.addEventListener("abort",f,{once:true}),p.signal.addEventListener("abort",h,{once:true}),{signal:p.signal,cleanup:h}}async function g(d,c){let{timeoutMs:p,sdkConfig:f,...T}=c??{},h=f??FN0(),de=await Promise.resolve(h.getAccessToken()),me=`${h.baseUrl}${d}`,ce={...AN0(T.headers)};h.clientName&&Object.assign(ce,fe(h.clientName)),de&&(ce.Authorization=`Bearer ${de}`);let Be=ce["x-account-id"]||ce["X-Account-Id"]||h.accountId||null;!Be&&Ie&&(f&&CN0(),Be=Ie),Be&&!ce["x-account-id"]&&!ce["X-Account-Id"]&&(ce["x-account-id"]=Be);let ge=kN0(T.signal,p===void 0?h.requestTimeoutMs??PN0:p);try{let pe=await fetch(me,{...T,headers:ce,signal:ge.signal});pe.status===401&&h.onUnauthorized&&h.onUnauthorized(pe);let Se,Gp0=pe.headers.get("content-length"),xe=pe.headers.get("content-type");if(Gp0==="0"||pe.status===204)Se=void 0;else if(xe?.includes("application/pdf")||xe?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||xe?.includes("application/octet-stream")||xe?.includes("application/zip")||xe?.includes("application/x-zip-compressed")||xe?.includes("image/"))Se=await pe.blob();else if(xe?.includes("application/xml")||xe?.includes("text/xml"))Se=await pe.text();else if(xe?.includes("text/html"))Se=await pe.text();else try{Se=await pe.json();}catch{Se=void 0;}return {data:Se,status:pe.status,headers:pe.headers}}finally{ge.cleanup();}}var jN0=()=>"/account-webhooks",va0=async(d,c)=>g(jN0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LN0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/account-webhooks?${p}`:"/account-webhooks"},Ta0=async(d,c)=>g(LN0(d),{...c,method:"GET"}),HN0=d=>`/account-webhooks/${d}`,Ea0=async(d,c)=>g(HN0(d),{...c,method:"GET"}),GN0=d=>`/account-webhooks/${d}`,ba0=async(d,c,p)=>g(GN0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),KN0=d=>`/account-webhooks/${d}`,Ia0=async(d,c)=>g(KN0(d),{...c,method:"DELETE"}),ZN0=d=>`/account-webhooks/${d}/test`,fa0=async(d,c)=>g(ZN0(d),{...c,method:"POST"});var VN0=d=>`/account-webhooks/${d}/rotate-secret`,za0=async(d,c)=>g(VN0(d),{...c,method:"POST"});async function qN0(d,c){return d(...c)}function Na0(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 O(d){return async(...c)=>{let p=c[c.length-1],f=p&&typeof p=="object"&&("entity_id"in p||"account_id"in p||"request_id"in p||"signal"in p||"timeoutMs"in p||"sdkConfig"in p||Object.keys(p).length===0),T,h;f?(T=c.slice(0,-1),h=Na0(p)):T=[...c],T.push(h);let de=await qN0(d,T);if(de.status>=200&&de.status<300)return de.data;let me=new Error(`API error: ${de.status}`);throw me.status=de.status,me.data=de.data,me}}function J(d){return Object.assign(async p=>{let{entity_id:f,account_id:T,request_id:h,signal:de,timeoutMs:me,sdkConfig:Oe,...ce}=p||{},Be=Na0({entity_id:f,account_id:T,request_id:h,signal:de,timeoutMs:me,sdkConfig:Oe}),ge=await d(ce,Be);if(ge.status===200)return ge.data;let pe=new Error(`API error: ${ge.status}`);throw pe.status=ge.status,pe.data=ge.data,pe},{__sdkListMethod:true})}function Da0(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 G(d,c){let p=Object.entries(d).map(([f,T])=>typeof T!="function"?[f,T]:[f,(...h)=>{let de=c(),me=h[h.length-1],Oe=T;if(Oe.__sdkListMethod){let ce=h[0];h[0]=ce&&typeof ce=="object"?{...ce,sdkConfig:de}:{sdkConfig:de};}else if(typeof Oe.__sdkOptionsIndex=="number"){let ce=h[Oe.__sdkOptionsIndex];h[Oe.__sdkOptionsIndex]=Da0(ce)?{...ce,sdkConfig:de}:{sdkConfig:de};}else Da0(me)?h[h.length-1]={...me,sdkConfig:de}:h.push({sdkConfig:de});return T(...h)}]);return Object.fromEntries(p)}var Ut={create:O(va0),list:J(Ta0),get:O(Ea0),update:O(ba0),delete:O(Ia0),testAccountWebhook:O(fa0),rotateAccountWebhookSecret:O(za0)};var WN0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/activities?${p}`:"/activities"},Ma0=async(d,c)=>g(WN0(d),{...c,method:"GET"});var ht={list:J(Ma0)};var YN0=d=>`/advance-invoices/shareable/${d}`,_a0=async(d,c)=>g(YN0(d),{...c,method:"GET"}),JN0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/advance-invoices/shareable/${d}/html?${f}`:`/advance-invoices/shareable/${d}/html`},Ua0=async(d,c,p)=>g(JN0(d,c),{...p,method:"GET"}),$N0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/advance-invoices/shareable/${d}/pdf?${f}`:`/advance-invoices/shareable/${d}/pdf`},ha0=async(d,c,p)=>g($N0(d,c),{...p,method:"GET"}),QN0=d=>`/advance-invoices/shareable/${d}/eslog`,Ra0=async(d,c)=>g(QN0(d),{...c,method:"GET"}),XN0=()=>"/advance-invoices",Pa0=async(d,c)=>g(XN0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),eM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/advance-invoices?${p}`:"/advance-invoices"},Ca0=async(d,c)=>g(eM0(d),{...c,method:"GET"}),tM0=()=>"/advance-invoices/custom",wa0=async(d,c)=>g(tM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),nM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/advance-invoices/${d}?${f}`:`/advance-invoices/${d}`},Fa0=async(d,c,p)=>g(nM0(d,c),{...p,method:"GET"}),sM0=d=>`/advance-invoices/${d}`,Aa0=async(d,c,p)=>g(sM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),oM0=d=>`/advance-invoices/${d}/versions`,ka0=async(d,c)=>g(oM0(d),{...c,method:"GET"}),iM0=(d,c)=>`/advance-invoices/${d}/versions/${c}`,ja0=async(d,c,p)=>g(iM0(d,c),{...p,method:"GET"}),aM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/advance-invoices/render?${p}`:"/advance-invoices/render"},La0=async(d,c,p)=>g(aM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),rM0=d=>`/advance-invoices/${d}/void`,Ha0=async(d,c,p)=>g(rM0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var Rt={getShareableAdvanceInvoice:O(_a0),getShareableAdvanceInvoiceHtml:O(Ua0),getShareableAdvanceInvoicePdf:O(ha0),getShareableAdvanceInvoiceEslog:O(Ra0),create:O(Pa0),list:J(Ca0),createCustom:O(wa0),get:O(Fa0),update:O(Aa0),getVersions:O(ka0),getVersion:O(ja0),renderAdvanceInvoicePreview:O(La0),void:O(Ha0)};var lM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/business-units?${p}`:"/business-units"},Ga0=async(d,c)=>g(lM0(d),{...c,method:"GET"}),dM0=()=>"/business-units",Ka0=async(d,c)=>g(dM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/business-units/${d}?${f}`:`/business-units/${d}`},Za0=async(d,c,p)=>g(cM0(d,c),{...p,method:"GET"}),uM0=d=>`/business-units/${d}`,Va0=async(d,c,p)=>g(uM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),pM0=d=>`/business-units/${d}`,qa0=async(d,c)=>g(pM0(d),{...c,method:"DELETE"});var Pt={list:J(Ga0),create:O(Ka0),get:O(Za0),update:O(Va0),delete:O(qa0)};var mM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/company-registry/search?${p}`:"/company-registry/search"},Wa0=async(d,c)=>g(mM0(d),{...c,method:"GET"}),xM0=()=>"/company-registry/countries",Ya0=async d=>g(xM0(),{...d,method:"GET"});var Ct={searchCompanyRegistry:O(Wa0),list:O(Ya0)};var gM0=d=>`/credit-notes/shareable/${d}`,Ja0=async(d,c)=>g(gM0(d),{...c,method:"GET"}),yM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/credit-notes/shareable/${d}/html?${f}`:`/credit-notes/shareable/${d}/html`},$a0=async(d,c,p)=>g(yM0(d,c),{...p,method:"GET"}),OM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/credit-notes/shareable/${d}/pdf?${f}`:`/credit-notes/shareable/${d}/pdf`},Qa0=async(d,c,p)=>g(OM0(d,c),{...p,method:"GET"}),SM0=d=>`/credit-notes/shareable/${d}/eslog`,Xa0=async(d,c)=>g(SM0(d),{...c,method:"GET"}),BM0=()=>"/credit-notes",er0=async(d,c)=>g(BM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/credit-notes?${p}`:"/credit-notes"},tr0=async(d,c)=>g(vM0(d),{...c,method:"GET"}),TM0=()=>"/credit-notes/custom",nr0=async(d,c)=>g(TM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),EM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/credit-notes/${d}?${f}`:`/credit-notes/${d}`},sr0=async(d,c,p)=>g(EM0(d,c),{...p,method:"GET"}),bM0=d=>`/credit-notes/${d}`,or0=async(d,c,p)=>g(bM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),IM0=d=>`/credit-notes/${d}/xrechnung`,ir0=async(d,c)=>g(IM0(d),{...c,method:"GET"}),fM0=d=>`/credit-notes/${d}/zugferd`,ar0=async(d,c)=>g(fM0(d),{...c,method:"GET"}),zM0=d=>`/credit-notes/${d}/versions`,rr0=async(d,c)=>g(zM0(d),{...c,method:"GET"}),DM0=(d,c)=>`/credit-notes/${d}/versions/${c}`,lr0=async(d,c,p)=>g(DM0(d,c),{...p,method:"GET"}),NM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/credit-notes/render?${p}`:"/credit-notes/render"},dr0=async(d,c,p)=>g(NM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),MM0=d=>`/credit-notes/${d}/fiscalize`,cr0=async(d,c)=>g(MM0(d),{...c,method:"POST"}),_M0=d=>`/credit-notes/${d}/void`,ur0=async(d,c,p)=>g(_M0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var wt={getShareableCreditNote:O(Ja0),getShareableCreditNoteHtml:O($a0),getShareableCreditNotePdf:O(Qa0),getShareableCreditNoteEslog:O(Xa0),create:O(er0),list:J(tr0),createCustom:O(nr0),get:O(sr0),update:O(or0),downloadCreditNoteXRechnung:O(ir0),downloadCreditNoteZugferd:O(ar0),getVersions:O(rr0),getVersion:O(lr0),renderCreditNotePreview:O(dr0),fiscalizeCreditNote:O(cr0),void:O(ur0)};var UM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/currency/exchange-rate?${p}`:"/currency/exchange-rate"},pr0=async(d,c)=>g(UM0(d),{...c,method:"GET"});var Ft={getExchangeRate:O(pr0)};var hM0=()=>"/customers",mr0=async(d,c)=>g(hM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/customers?${p}`:"/customers"},xr0=async(d,c)=>g(RM0(d),{...c,method:"GET"}),PM0=d=>`/customers/${d}`,gr0=async(d,c)=>g(PM0(d),{...c,method:"GET"}),CM0=d=>`/customers/${d}`,yr0=async(d,c,p)=>g(CM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),wM0=d=>`/customers/${d}`,Or0=async(d,c)=>g(wM0(d),{...c,method:"DELETE"}),FM0=d=>`/customers/${d}/restore`,Sr0=async(d,c)=>g(FM0(d),{...c,method:"POST"}),AM0=d=>`/customers/${d}/permanent`,Br0=async(d,c)=>g(AM0(d),{...c,method:"DELETE"});var At={create:O(mr0),list:J(xr0),get:O(gr0),update:O(yr0),delete:O(Or0),restoreCustomer:O(Sr0),permanentDeleteCustomer:O(Br0)};var kM0=d=>`/delivery-notes/shareable/${d}`,vr0=async(d,c)=>g(kM0(d),{...c,method:"GET"}),jM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/delivery-notes/shareable/${d}/html?${f}`:`/delivery-notes/shareable/${d}/html`},Tr0=async(d,c,p)=>g(jM0(d,c),{...p,method:"GET"}),LM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/delivery-notes/shareable/${d}/pdf?${f}`:`/delivery-notes/shareable/${d}/pdf`},Er0=async(d,c,p)=>g(LM0(d,c),{...p,method:"GET"}),HM0=()=>"/delivery-notes",br0=async(d,c)=>g(HM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),GM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/delivery-notes?${p}`:"/delivery-notes"},Ir0=async(d,c)=>g(GM0(d),{...c,method:"GET"}),KM0=()=>"/delivery-notes/custom",fr0=async(d,c)=>g(KM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/delivery-notes/${d}?${f}`:`/delivery-notes/${d}`},zr0=async(d,c,p)=>g(ZM0(d,c),{...p,method:"GET"}),VM0=d=>`/delivery-notes/${d}`,Dr0=async(d,c,p)=>g(VM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),qM0=d=>`/delivery-notes/${d}/versions`,Nr0=async(d,c)=>g(qM0(d),{...c,method:"GET"}),WM0=(d,c)=>`/delivery-notes/${d}/versions/${c}`,Mr0=async(d,c,p)=>g(WM0(d,c),{...p,method:"GET"}),YM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/delivery-notes/render?${p}`:"/delivery-notes/render"},_r0=async(d,c,p)=>g(YM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),JM0=d=>`/delivery-notes/${d}/void`,Ur0=async(d,c,p)=>g(JM0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var kt={getShareableDeliveryNote:O(vr0),getShareableDeliveryNoteHtml:O(Tr0),getShareableDeliveryNotePdf:O(Er0),create:O(br0),list:J(Ir0),createCustom:O(fr0),get:O(zr0),update:O(Dr0),getVersions:O(Nr0),getVersion:O(Mr0),renderDeliveryNotePreview:O(_r0),void:O(Ur0)};var $M0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/next-number?${p}`:"/documents/next-number"},hr0=async(d,c)=>g($M0(d),{...c,method:"GET"}),QM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/calculate?${p}`:"/documents/calculate"},Rr0=async(d,c,p)=>g(QM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),XM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/finalize?${f}`:`/documents/${d}/finalize`},Pr0=async(d,c,p,f)=>g(XM0(d,p),{...f,method:"POST",headers:{"Content-Type":"application/json",...f?.headers},body:JSON.stringify(c)}),e_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/fiscalize?${f}`:`/documents/${d}/fiscalize`},Cr0=async(d,c,p,f)=>g(e_0(d,p),{...f,method:"POST",headers:{"Content-Type":"application/json",...f?.headers},body:JSON.stringify(c)}),t_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/register-output?${f}`:`/documents/${d}/register-output`},wr0=async(d,c,p)=>g(t_0(d,c),{...p,method:"POST"}),n_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}?${f}`:`/documents/${d}`},Fr0=async(d,c,p)=>g(n_0(d,c),{...p,method:"DELETE"}),s_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/restore?${f}`:`/documents/${d}/restore`},Ar0=async(d,c,p)=>g(s_0(d,c),{...p,method:"POST"}),o_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/permanent?${f}`:`/documents/${d}/permanent`},kr0=async(d,c,p)=>g(o_0(d,c),{...p,method:"DELETE"}),i_0=d=>`/documents/${d}/send`,jr0=async(d,c,p)=>g(i_0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),a_0=d=>`/documents/${d}/share`,Lr0=async(d,c)=>g(a_0(d),{...c,method:"POST"}),r_0=d=>`/documents/${d}/share`,Hr0=async(d,c)=>g(r_0(d),{...c,method:"GET"}),l_0=d=>`/documents/${d}/share`,Gr0=async(d,c)=>g(l_0(d),{...c,method:"DELETE"});var jt=O(Cr0);function d_0(d){return !!d&&typeof d=="object"&&"type"in d}function Lt(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 c_0=async(d,c,p,f)=>{if(Lt(c))return jt(d,void 0,void 0,c);if(d_0(c))return jt(d,void 0,c,p);let T=Lt(p)?void 0:p,h=Lt(p)?p:f;return jt(d,c,T,h)},Ht={getNextNumber:O(hr0),calculateDocumentPreview:O(Rr0),finalizeDocument:O(Pr0),fiscalizeDocument:c_0,registerDocumentOutput:O(wr0),delete:O(Fr0),restoreDocument:O(Ar0),permanentDeleteDocument:O(kr0),sendDocument:O(jr0),shareDocument:O(Lr0),getShareableId:O(Hr0),unshareDocument:O(Gr0)};var u_0=()=>"/e-invoicing/settings",Kr0=async d=>g(u_0(),{...d,method:"GET"}),p_0=()=>"/e-invoicing/settings",Zr0=async(d,c)=>g(p_0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),m_0=()=>"/e-invoicing/enrollment/sync",Vr0=async d=>g(m_0(),{...d,method:"POST"}),x_0=()=>"/e-invoicing/enrollment/verification-link",qr0=async d=>g(x_0(),{...d,method:"POST"}),g_0=()=>"/e-invoicing/supplier",Wr0=async(d,c)=>g(g_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),y_0=()=>"/e-invoicing/supplier",Yr0=async d=>g(y_0(),{...d,method:"GET"});var O_0=()=>"/e-invoicing/recipients/check",Jr0=async(d,c)=>g(O_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),S_0=()=>"/e-invoicing/customer-search",$r0=async(d,c)=>g(S_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),B_0=d=>`/e-invoicing/documents/${d}/send`,Qr0=async(d,c,p)=>g(B_0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),v_0=()=>"/e-invoicing/send/:documentType/:documentId",Xr0=async(d,c)=>g(v_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),T_0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/e-invoicing/submissions?${p}`:"/e-invoicing/submissions"},el0=async(d,c)=>g(T_0(d),{...c,method:"GET"}),E_0=d=>`/e-invoicing/submissions/${d}`,tl0=async(d,c)=>g(E_0(d),{...c,method:"GET"}),b_0=d=>`/e-invoicing/submissions/${d}/retry`,nl0=async(d,c)=>g(b_0(d),{...c,method:"POST"}),I_0=()=>"/e-invoicing/submissions/:id",sl0=async d=>g(I_0(),{...d,method:"GET"}),f_0=()=>"/e-invoicing/submissions/:id/retry",ol0=async d=>g(f_0(),{...d,method:"POST"});var Gt={list:O(Kr0),update:O(Zr0),syncEInvoicingEnrollment:O(Vr0),create:O(qr0),registerEInvoicingSupplier:O(Wr0),getEInvoicingSupplier:O(Yr0),checkEInvoicingRecipient:O(Jr0),searchEInvoicingCustomer:O($r0),sendEInvoicingDocument:O(Qr0),sendEInvoice:O(Xr0),listEInvoicingSubmissions:O(el0),get:O(tl0),retryEInvoicingSubmissionById:O(nl0),getEInvoicingSubmission:O(sl0),retryEInvoicingSubmission:O(ol0)};var z_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/eslog/${d}/validate?${f}`:`/eslog/${d}/validate`},il0=async(d,c,p)=>g(z_0(d,c),{...p,method:"POST"}),D_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/eslog/${d}/download?${f}`:`/eslog/${d}/download`},al0=async(d,c,p)=>g(D_0(d,c),{...p,method:"GET"});var Kt={validate:O(il0),download:O(al0)};var N_0=()=>"/email/send",rl0=async(d,c)=>g(N_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Zt={sendEmail:O(rl0)};var M_0=()=>"/entities",ll0=async(d,c)=>g(M_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),__0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/entities?${p}`:"/entities"},dl0=async(d,c)=>g(__0(d),{...c,method:"GET"}),U_0=d=>`/entities/${d}`,cl0=async(d,c)=>g(U_0(d),{...c,method:"GET"}),h_0=d=>`/entities/${d}`,ul0=async(d,c,p)=>g(h_0(d),{...p,method:"PUT",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),R_0=d=>`/entities/${d}/enable`,pl0=async(d,c)=>g(R_0(d),{...c,method:"POST"}),P_0=d=>`/entities/${d}/disable`,ml0=async(d,c)=>g(P_0(d),{...c,method:"POST"}),C_0=d=>`/entities/${d}/email-sender`,xl0=async(d,c)=>g(C_0(d),{...c,method:"GET"}),w_0=d=>`/entities/${d}/email-sender`,gl0=async(d,c,p)=>g(w_0(d),{...p,method:"PUT",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),F_0=d=>`/entities/${d}/email-sender`,yl0=async(d,c)=>g(F_0(d),{...c,method:"DELETE"}),A_0=d=>`/entities/${d}/email-sender/recheck`,Ol0=async(d,c)=>g(A_0(d),{...c,method:"POST"});var Vt={create:O(ll0),list:J(dl0),get:O(cl0),update:O(ul0),enableEntity:O(pl0),disableEntity:O(ml0),getEntityEmailSender:O(xl0),putEntityEmailSender:O(gl0),deleteEntityEmailSender:O(yl0),recheckEntityEmailSender:O(Ol0)};var k_0=()=>"/entities/api-keys",Sl0=async d=>g(k_0(),{...d,method:"GET"}),j_0=()=>"/entities/api-keys",Bl0=async(d,c)=>g(j_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),L_0=d=>`/entities/api-keys/${d}`,vl0=async(d,c)=>g(L_0(d),{...c,method:"DELETE"});var qt={listEntityApiKeys:O(Sl0),create:O(Bl0),delete:O(vl0)};var H_0=()=>"/entities/invitations",Tl0=async d=>g(H_0(),{...d,method:"GET"}),G_0=d=>`/entities/invitations/${d}`,El0=async(d,c)=>g(G_0(d),{...c,method:"GET"}),K_0=d=>`/entities/invitations/${d}`,bl0=async(d,c)=>g(K_0(d),{...c,method:"DELETE"}),Z_0=d=>`/entities/invitations/${d}/resend`,Il0=async(d,c)=>g(Z_0(d),{...c,method:"POST"}),V_0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invitations/preview?${p}`:"/invitations/preview"},fl0=async(d,c)=>g(V_0(d),{...c,method:"GET"}),q_0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invitations/accept?${p}`:"/invitations/accept"},zl0=async(d,c,p)=>g(q_0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)});var Wt={listEntityInvitations:O(Tl0),getEntityInvitation:O(El0),cancelEntityInvitation:O(bl0),resendEntityInvitation:O(Il0),preview:O(fl0),acceptEntityInvitation:O(zl0)};var W_0=()=>"/stats/query",Dl0=async(d,c)=>g(W_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Yt={queryEntityStats:O(Dl0)};var Y_0=()=>"/entities/users",Nl0=async d=>g(Y_0(),{...d,method:"GET"}),J_0=()=>"/entities/users",Ml0=async(d,c)=>g(J_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$_0=()=>"/entities/users/access",_l0=async d=>g($_0(),{...d,method:"GET"}),Q_0=d=>`/entities/users/${d}`,Ul0=async(d,c,p)=>g(Q_0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),X_0=d=>`/entities/users/${d}`,hl0=async(d,c)=>g(X_0(d),{...c,method:"DELETE"}),eU0=d=>`/entities/users/${d}/token`,Rl0=async(d,c)=>g(eU0(d),{...c,method:"POST"});var Jt={list:O(Nl0),addEntityUser:O(Ml0),getAccess:O(_l0),update:O(Ul0),removeEntityUser:O(hl0),generateEntityUserToken:O(Rl0)};var tU0=d=>`/estimates/shareable/${d}`,Pl0=async(d,c)=>g(tU0(d),{...c,method:"GET"}),nU0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/estimates/shareable/${d}/html?${f}`:`/estimates/shareable/${d}/html`},Cl0=async(d,c,p)=>g(nU0(d,c),{...p,method:"GET"}),sU0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/estimates/shareable/${d}/pdf?${f}`:`/estimates/shareable/${d}/pdf`},wl0=async(d,c,p)=>g(sU0(d,c),{...p,method:"GET"}),oU0=d=>`/estimates/shareable/${d}/eslog`,Fl0=async(d,c)=>g(oU0(d),{...c,method:"GET"}),iU0=()=>"/estimates",Al0=async(d,c)=>g(iU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),aU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/estimates?${p}`:"/estimates"},kl0=async(d,c)=>g(aU0(d),{...c,method:"GET"}),rU0=()=>"/estimates/custom",jl0=async(d,c)=>g(rU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lU0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/estimates/${d}?${f}`:`/estimates/${d}`},Ll0=async(d,c,p)=>g(lU0(d,c),{...p,method:"GET"}),dU0=d=>`/estimates/${d}`,Hl0=async(d,c,p)=>g(dU0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),cU0=d=>`/estimates/${d}/versions`,Gl0=async(d,c)=>g(cU0(d),{...c,method:"GET"}),uU0=(d,c)=>`/estimates/${d}/versions/${c}`,Kl0=async(d,c,p)=>g(uU0(d,c),{...p,method:"GET"}),pU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/estimates/render?${p}`:"/estimates/render"},Zl0=async(d,c,p)=>g(pU0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)});var $t={getShareableEstimate:O(Pl0),getShareableEstimateHtml:O(Cl0),getShareableEstimatePdf:O(wl0),getShareableEstimateEslog:O(Fl0),create:O(Al0),list:J(kl0),createCustom:O(jl0),get:O(Ll0),update:O(Hl0),getVersions:O(Gl0),getVersion:O(Kl0),renderEstimatePreview:O(Zl0)};var mU0=()=>"/expenses",Vl0=async(d,c)=>g(mU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),xU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/expenses?${p}`:"/expenses"},ql0=async(d,c)=>g(xU0(d),{...c,method:"GET"}),gU0=()=>"/expenses/custom",Wl0=async(d,c)=>g(gU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/expenses/report?${p}`:"/expenses/report"},Yl0=async(d,c)=>g(yU0(d),{...c,method:"GET"}),OU0=()=>"/expenses/recognition/settings",Jl0=async d=>g(OU0(),{...d,method:"GET"}),SU0=()=>"/expenses/recognition/settings",$l0=async(d,c)=>g(SU0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BU0=()=>"/expenses/recognition/backfill",Ql0=async(d,c)=>g(BU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vU0=()=>"/expenses/recognitions",Xl0=async(d,c)=>{let p=new FormData;return p.append("file",d.file),g(vU0(),{...c,method:"POST",body:p})},TU0=d=>`/expenses/recognitions/${d}`,ed0=async(d,c)=>g(TU0(d),{...c,method:"GET"}),EU0=d=>`/expenses/recognitions/${d}/retry`,td0=async(d,c)=>g(EU0(d),{...c,method:"POST"}),bU0=d=>`/expenses/${d}/recognition`,nd0=async(d,c)=>g(bU0(d),{...c,method:"GET"}),IU0=d=>`/expenses/${d}`,sd0=async(d,c)=>g(IU0(d),{...c,method:"GET"}),fU0=d=>`/expenses/${d}`,od0=async(d,c,p)=>g(fU0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),zU0=d=>`/expenses/${d}`,id0=async(d,c)=>g(zU0(d),{...c,method:"DELETE"}),DU0=d=>`/expenses/${d}/void`,ad0=async(d,c)=>g(DU0(d),{...c,method:"POST"}),NU0=d=>`/expenses/${d}/restore`,rd0=async(d,c)=>g(NU0(d),{...c,method:"POST"}),MU0=d=>`/expenses/${d}/attachments`,ld0=async(d,c,p)=>{let f=new FormData;return c.file!==void 0&&f.append("file",c.file),g(MU0(d),{...p,method:"POST",body:f})},_U0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/expenses/${d}/attachments?${f}`:`/expenses/${d}/attachments`},dd0=async(d,c,p)=>g(_U0(d,c),{...p,method:"GET"}),UU0=(d,c)=>`/expenses/${d}/attachments/${c}`,cd0=async(d,c,p)=>g(UU0(d,c),{...p,method:"DELETE"}),hU0=d=>`/expenses/${d}/payments`,ud0=async(d,c)=>g(hU0(d),{...c,method:"GET"}),RU0=d=>`/expenses/${d}/payments`,pd0=async(d,c,p)=>g(RU0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var Qt={create:O(Vl0),list:J(ql0),createCustom:O(Wl0),getExpenseCategoryReport:O(Yl0),getRecognitionSettings:O(Jl0),updateRecognitionSettings:O($l0),backfillExpenseRecognition:O(Ql0),createRecognition:O(Xl0),getRecognition:O(ed0),retryRecognition:O(td0),getLatestRecognition:O(nd0),get:O(sd0),update:O(od0),delete:O(id0),void:O(ad0),restoreExpense:O(rd0),uploadExpenseAttachment:O(ld0),getExpenseAttachments:O(dd0),deleteExpenseAttachment:O(cd0),getExpensePayments:O(ud0),createExpensePayment:O(pd0)};var PU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/export?${p}`:"/documents/export"},md0=async(d,c)=>g(PU0(d),{...c,method:"GET"}),CU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/export/sales-per-item?${p}`:"/documents/export/sales-per-item"},xd0=async(d,c)=>g(CU0(d),{...c,method:"GET"}),wU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/export/revenue-by-category?${p}`:"/documents/export/revenue-by-category"},gd0=async(d,c)=>g(wU0(d),{...c,method:"GET"}),FU0=()=>"/documents/export/pdf",yd0=async(d,c)=>g(FU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),AU0=d=>`/documents/export/pdf/${d}`,Od0=async(d,c)=>g(AU0(d),{...c,method:"GET"}),kU0=d=>`/documents/export/pdf/${d}/download`,Sd0=async(d,c)=>g(kU0(d),{...c,method:"GET"}),jU0=()=>"/documents/export/eslog",Bd0=async(d,c)=>g(jU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LU0=d=>`/documents/export/eslog/${d}`,vd0=async(d,c)=>g(LU0(d),{...c,method:"GET"}),HU0=d=>`/documents/export/eslog/${d}/download`,Td0=async(d,c)=>g(HU0(d),{...c,method:"GET"});var Xt={exportDocuments:O(md0),exportSalesPerItem:O(xd0),exportRevenueByCategory:O(gd0),startPdfExport:O(yd0),getPdfStatus:O(Od0),downloadPdfExport:O(Sd0),startEslogExport:O(Bd0),getEslogStatus:O(vd0),downloadEslogExport:O(Td0)};var GU0=()=>"/files",Ed0=async(d,c)=>{let p=new FormData;return d.file!==void 0&&p.append("file",d.file),p.append("category",d.category),d.account_payable_id!==void 0&&p.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&p.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&p.append("expense_id",d.expense_id),g(GU0(),{...c,method:"POST",body:p})},KU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/files?${p}`:"/files"},bd0=async(d,c)=>g(KU0(d),{...c,method:"GET"}),ZU0=d=>`/files/${d}`,Id0=async(d,c)=>g(ZU0(d),{...c,method:"GET"}),VU0=d=>`/files/${d}`,fd0=async(d,c)=>g(VU0(d),{...c,method:"DELETE"});var en={uploadFile:O(Ed0),list:J(bd0),get:O(Id0),delete:O(fd0)};var qU0=()=>"/fiscalization/fina/settings/certificate",zd0=async(d,c)=>{let p=new FormData;return d.file!==void 0&&p.append("file",d.file),d.passphrase!==void 0&&p.append("passphrase",d.passphrase),g(qU0(),{...c,method:"POST",body:p})},WU0=()=>"/fiscalization/fina/settings/certificate",Dd0=async d=>g(WU0(),{...d,method:"GET"}),YU0=()=>"/fiscalization/fina/settings/certificate",Nd0=async d=>g(YU0(),{...d,method:"DELETE"});var tn={uploadFinaCertificate:O(zd0),getFinaCertificate:O(Dd0),delete:O(Nd0)};var JU0=d=>`/fiscalization/fina/premises/${d}/devices`,Md0=async(d,c)=>g(JU0(d),{...c,method:"GET"}),$U0=d=>`/fiscalization/fina/premises/${d}/devices`,_d0=async(d,c,p)=>g($U0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),QU0=d=>`/fiscalization/fina/devices/${d}`,Ud0=async(d,c)=>g(QU0(d),{...c,method:"GET"}),XU0=d=>`/fiscalization/fina/devices/${d}`,hd0=async(d,c,p)=>g(XU0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),eh0=d=>`/fiscalization/fina/devices/${d}`,Rd0=async(d,c)=>g(eh0(d),{...c,method:"DELETE"});var nn={listFinaDevices:O(Md0),registerFinaDevice:O(_d0),getFinaDevice:O(Ud0),update:O(hd0),delete:O(Rd0)};var th0=()=>"/fiscalization/fina/premises",Pd0=async d=>g(th0(),{...d,method:"GET"}),nh0=()=>"/fiscalization/fina/premises",Cd0=async(d,c)=>g(nh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sh0=d=>`/fiscalization/fina/premises/${d}`,wd0=async(d,c)=>g(sh0(d),{...c,method:"GET"}),oh0=d=>`/fiscalization/fina/premises/${d}`,Fd0=async(d,c,p)=>g(oh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),ih0=d=>`/fiscalization/fina/premises/${d}`,Ad0=async(d,c)=>g(ih0(d),{...c,method:"DELETE"});var sn={listFinaPremises:O(Pd0),create:O(Cd0),getFinaPremise:O(wd0),update:O(Fd0),delete:O(Ad0)};var ah0=()=>"/fiscalization/fina/settings",kd0=async d=>g(ah0(),{...d,method:"GET"}),rh0=()=>"/fiscalization/fina/settings",jd0=async(d,c)=>g(rh0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var on={list:O(kd0),update:O(jd0)};var lh0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/financial-categories?${p}`:"/financial-categories"},Ld0=async(d,c)=>g(lh0(d),{...c,method:"GET"}),dh0=()=>"/financial-categories",Hd0=async(d,c)=>g(dh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ch0=d=>`/financial-categories/${d}`,Gd0=async(d,c,p)=>g(ch0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),uh0=d=>`/financial-categories/${d}`,Kd0=async(d,c)=>g(uh0(d),{...c,method:"DELETE"}),ph0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/financial-categories/revenue-summary?${p}`:"/financial-categories/revenue-summary"},Zd0=async(d,c)=>g(ph0(d),{...c,method:"GET"}),mh0=()=>"/financial-categories/document-items/batch",Vd0=async(d,c)=>g(mh0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),xh0=d=>`/financial-categories/document-items/${d}`,qd0=async(d,c,p)=>g(xh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var an={list:J(Ld0),create:O(Hd0),update:O(Gd0),delete:O(Kd0),getRevenueByFinancialCategory:O(Zd0),updateDocumentItemFinancialCategories:O(Vd0),updateDocumentItemFinancialCategory:O(qd0)};var gh0=()=>"/fiscalization/furs/settings/certificate",Wd0=async(d,c)=>{let p=new FormData;return d.file!==void 0&&p.append("file",d.file),d.passphrase!==void 0&&p.append("passphrase",d.passphrase),g(gh0(),{...c,method:"POST",body:p})},yh0=()=>"/fiscalization/furs/settings/certificate",Yd0=async d=>g(yh0(),{...d,method:"GET"}),Oh0=()=>"/fiscalization/furs/settings/certificate",Jd0=async d=>g(Oh0(),{...d,method:"DELETE"});var rn={uploadFursCertificate:O(Wd0),getFursCertificate:O(Yd0),delete:O(Jd0)};var Sh0=d=>`/fiscalization/furs/premises/${d}/devices`,$d0=async(d,c)=>g(Sh0(d),{...c,method:"GET"}),Bh0=d=>`/fiscalization/furs/premises/${d}/devices`,Qd0=async(d,c,p)=>g(Bh0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),vh0=d=>`/fiscalization/furs/devices/${d}`,Xd0=async(d,c)=>g(vh0(d),{...c,method:"GET"}),Th0=d=>`/fiscalization/furs/devices/${d}`,ec0=async(d,c,p)=>g(Th0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var ln={listFursElectronicDevices:O($d0),registerFursElectronicDevice:O(Qd0),getFursElectronicDevice:O(Xd0),update:O(ec0)};var Eh0=()=>"/fiscalization/furs/internal-act/report.pdf",tc0=async d=>g(Eh0(),{...d,method:"GET"}),bh0=()=>"/fiscalization/furs/internal-act/report.docx",nc0=async d=>g(bh0(),{...d,method:"GET"});var dn={generateFursInternalActPdf:O(tc0),generateFursInternalActDocx:O(nc0)};var Ih0=()=>"/fiscalization/furs/premises",sc0=async d=>g(Ih0(),{...d,method:"GET"}),fh0=d=>`/fiscalization/furs/premises/${d}`,oc0=async(d,c)=>g(fh0(d),{...c,method:"GET"}),zh0=d=>`/fiscalization/furs/premises/${d}`,ic0=async(d,c,p)=>g(zh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),Dh0=()=>"/fiscalization/furs/premises/real-estate",ac0=async(d,c)=>g(Dh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Nh0=()=>"/fiscalization/furs/premises/movable",rc0=async(d,c)=>g(Nh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Mh0=d=>`/fiscalization/furs/premises/${d}/close`,lc0=async(d,c)=>g(Mh0(d),{...c,method:"POST"});var cn={listFursBusinessPremises:O(sc0),getFursBusinessPremise:O(oc0),update:O(ic0),registerFursRealEstatePremise:O(ac0),registerFursMovablePremise:O(rc0),closeFursBusinessPremise:O(lc0)};var _h0=()=>"/fiscalization/furs/settings",dc0=async d=>g(_h0(),{...d,method:"GET"}),Uh0=()=>"/fiscalization/furs/settings",cc0=async(d,c)=>g(Uh0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var un={list:O(dc0),update:O(cc0)};var hh0=()=>"/health/live",uc0=async d=>g(hh0(),{...d,method:"GET"}),Rh0=()=>"/health/ready",pc0=async d=>g(Rh0(),{...d,method:"GET"}),Ph0=()=>"/health",mc0=async d=>g(Ph0(),{...d,method:"GET"});var pn={livenessCheck:O(uc0),readinessCheck:O(pc0),healthCheck:O(mc0)};var Ch0=d=>`/invoices/shareable/${d}`,xc0=async(d,c)=>g(Ch0(d),{...c,method:"GET"}),wh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/invoices/shareable/${d}/html?${f}`:`/invoices/shareable/${d}/html`},gc0=async(d,c,p)=>g(wh0(d,c),{...p,method:"GET"}),Fh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/invoices/shareable/${d}/pdf?${f}`:`/invoices/shareable/${d}/pdf`},yc0=async(d,c,p)=>g(Fh0(d,c),{...p,method:"GET"}),Ah0=d=>`/invoices/shareable/${d}/eslog`,Oc0=async(d,c)=>g(Ah0(d),{...c,method:"GET"}),kh0=()=>"/invoices",Sc0=async(d,c)=>g(kh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jh0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invoices?${p}`:"/invoices"},Bc0=async(d,c)=>g(jh0(d),{...c,method:"GET"}),Lh0=()=>"/invoices/custom",vc0=async(d,c)=>g(Lh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Hh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/invoices/${d}?${f}`:`/invoices/${d}`},Tc0=async(d,c,p)=>g(Hh0(d,c),{...p,method:"GET"}),Gh0=d=>`/invoices/${d}`,Ec0=async(d,c,p)=>g(Gh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),Kh0=d=>`/invoices/${d}/xrechnung`,bc0=async(d,c)=>g(Kh0(d),{...c,method:"GET"}),Zh0=d=>`/invoices/${d}/zugferd`,Ic0=async(d,c)=>g(Zh0(d),{...c,method:"GET"}),Vh0=d=>`/invoices/${d}/versions`,fc0=async(d,c)=>g(Vh0(d),{...c,method:"GET"}),qh0=(d,c)=>`/invoices/${d}/versions/${c}`,zc0=async(d,c,p)=>g(qh0(d,c),{...p,method:"GET"}),Wh0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invoices/render?${p}`:"/invoices/render"},Dc0=async(d,c,p)=>g(Wh0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),Yh0=d=>`/invoices/${d}/void`,Nc0=async(d,c,p)=>g(Yh0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),Jh0=d=>`/invoices/${d}/fiscalize`,Mc0=async(d,c)=>g(Jh0(d),{...c,method:"POST"}),$h0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/html?${f}`:`/documents/${d}/html`},_c0=async(d,c,p)=>g($h0(d,c),{...p,method:"GET"}),Qh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/pdf?${f}`:`/documents/${d}/pdf`},Uc0=async(d,c,p)=>g(Qh0(d,c),{...p,method:"GET"});function mn(d,c){let p=URL.createObjectURL(d),f=document.createElement("a");f.href=p,f.download=c,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(p);}var hc0=O(Uc0),Xh0=Object.assign(async(d,c,p,f)=>{let T=await hc0(d,p,f);mn(T,c);},{__sdkOptionsIndex:3}),xn={getShareableInvoice:O(xc0),getShareableInvoiceHtml:O(gc0),getShareableInvoicePdf:O(yc0),getShareableInvoiceEslog:O(Oc0),create:O(Sc0),list:J(Bc0),createCustom:O(vc0),get:O(Tc0),update:O(Ec0),downloadInvoiceXRechnung:O(bc0),downloadInvoiceZugferd:O(Ic0),getVersions:O(fc0),getVersion:O(zc0),renderInvoicePreview:O(Dc0),void:O(Nc0),fiscalizeInvoice:O(Mc0),renderHtml:O(_c0),renderPdf:hc0,downloadPdf:Xh0};var eR0=()=>"/items",Rc0=async(d,c)=>g(eR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),tR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/items?${p}`:"/items"},Pc0=async(d,c)=>g(tR0(d),{...c,method:"GET"}),nR0=d=>`/items/${d}`,Cc0=async(d,c,p)=>g(nR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),sR0=d=>`/items/${d}`,wc0=async(d,c)=>g(sR0(d),{...c,method:"DELETE"}),oR0=d=>`/items/${d}/restore`,Fc0=async(d,c)=>g(oR0(d),{...c,method:"POST"}),iR0=d=>`/items/${d}/permanent`,Ac0=async(d,c)=>g(iR0(d),{...c,method:"DELETE"});var gn={create:O(Rc0),list:J(Pc0),update:O(Cc0),delete:O(wc0),restoreItem:O(Fc0),permanentDeleteItem:O(Ac0)};var aR0=()=>"/legacy-migration/auth",kc0=async(d,c)=>g(aR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),rR0=()=>"/legacy-migration/jobs",jc0=async(d,c)=>g(rR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lR0=()=>"/legacy-migration/jobs",Lc0=async d=>g(lR0(),{...d,method:"GET"}),dR0=d=>`/legacy-migration/jobs/${d}`,Hc0=async(d,c)=>g(dR0(d),{...c,method:"GET"});var yn={legacyMigrationAuth:O(kc0),create:O(jc0),listMigrationJobs:O(Lc0),getMigrationJob:O(Hc0)};var cR0=()=>"/locale/detect",Gc0=async d=>g(cR0(),{...d,method:"GET"});var On={detectLocale:O(Gc0)};var uR0=()=>"/order-integrations/shopify/authorize",Kc0=async(d,c)=>g(uR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),pR0=()=>"/order-integrations/shopify/resume-install",Zc0=async(d,c)=>g(pR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),mR0=d=>`/order-integrations/${d}/sync-shopify`,Vc0=async(d,c,p)=>g(mR0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),xR0=()=>"/order-integrations",qc0=async(d,c)=>g(xR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/order-integrations?${p}`:"/order-integrations"},Wc0=async(d,c)=>g(gR0(d),{...c,method:"GET"}),yR0=d=>`/order-integrations/${d}`,Yc0=async(d,c)=>g(yR0(d),{...c,method:"GET"}),OR0=d=>`/order-integrations/${d}`,Jc0=async(d,c,p)=>g(OR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),SR0=d=>`/order-integrations/${d}`,$c0=async(d,c)=>g(SR0(d),{...c,method:"DELETE"});var Sn={authorizeShopify:O(Kc0),resumeShopifyInstall:O(Zc0),syncShopifyOrders:O(Vc0),create:O(qc0),list:J(Wc0),get:O(Yc0),update:O(Jc0),delete:O($c0)};var BR0=()=>"/orders",Qc0=async(d,c)=>g(BR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/orders?${p}`:"/orders"},Xc0=async(d,c)=>g(vR0(d),{...c,method:"GET"}),TR0=d=>`/orders/${d}`,eu0=async(d,c)=>g(TR0(d),{...c,method:"GET"}),ER0=d=>`/orders/${d}`,tu0=async(d,c,p)=>g(ER0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),bR0=d=>`/orders/${d}`,nu0=async(d,c)=>g(bR0(d),{...c,method:"DELETE"}),IR0=d=>`/orders/${d}/process`,su0=async(d,c)=>g(IR0(d),{...c,method:"POST"}),fR0=d=>`/orders/${d}/cancel`,ou0=async(d,c)=>g(fR0(d),{...c,method:"POST"}),zR0=d=>`/orders/${d}/reissue`,iu0=async(d,c)=>g(zR0(d),{...c,method:"POST"});var Bn={create:O(Qc0),list:J(Xc0),get:O(eu0),update:O(tu0),delete:O(nu0),processOrder:O(su0),cancelOrder:O(ou0),reissueOrder:O(iu0)};var DR0=()=>"/payment-reminders/send",au0=async(d,c)=>g(DR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var vn={sendPaymentReminder:O(au0)};var NR0=()=>"/payments",ru0=async(d,c)=>g(NR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/payments?${p}`:"/payments"},lu0=async(d,c)=>g(MR0(d),{...c,method:"GET"}),_R0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/payments/${d}?${f}`:`/payments/${d}`},du0=async(d,c,p)=>g(_R0(d,c),{...p,method:"GET"}),UR0=d=>`/payments/${d}`,cu0=async(d,c,p)=>g(UR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),hR0=d=>`/payments/${d}`,uu0=async(d,c)=>g(hR0(d),{...c,method:"DELETE"}),RR0=d=>`/payments/${d}/restore`,pu0=async(d,c)=>g(RR0(d),{...c,method:"POST"}),PR0=d=>`/payments/${d}/permanent`,mu0=async(d,c)=>g(PR0(d),{...c,method:"DELETE"});var Tn={create:O(ru0),list:J(lu0),get:O(du0),update:O(cu0),delete:O(uu0),restorePayment:O(pu0),permanentDeletePayment:O(mu0)};var CR0=()=>"/fiscalization/pt/atcud-series",xu0=async(d,c)=>g(CR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/fiscalization/pt/atcud-series?${p}`:"/fiscalization/pt/atcud-series"},gu0=async(d,c)=>g(wR0(d),{...c,method:"GET"}),FR0=d=>`/fiscalization/pt/atcud-series/${d}`,yu0=async(d,c)=>g(FR0(d),{...c,method:"GET"}),AR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/fiscalization/pt/atcud-series/active?${p}`:"/fiscalization/pt/atcud-series/active"},Ou0=async(d,c)=>g(AR0(d),{...c,method:"POST"});var En={create:O(xu0),list:J(gu0),get:O(yu0),getActive:O(Ou0)};var kR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/fiscalization/pt/saft/report?${p}`:"/fiscalization/pt/saft/report"},Su0=async(d,c)=>g(kR0(d),{...c,method:"GET"});var bn={generateReport:O(Su0)};var jR0=()=>"/recurring-invoices",Bu0=async(d,c)=>g(jR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/recurring-invoices?${p}`:"/recurring-invoices"},vu0=async(d,c)=>g(LR0(d),{...c,method:"GET"}),HR0=d=>`/recurring-invoices/${d}`,Tu0=async(d,c)=>g(HR0(d),{...c,method:"GET"}),GR0=d=>`/recurring-invoices/${d}`,Eu0=async(d,c,p)=>g(GR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),KR0=d=>`/recurring-invoices/${d}`,bu0=async(d,c)=>g(KR0(d),{...c,method:"DELETE"}),ZR0=d=>`/recurring-invoices/${d}/restore`,Iu0=async(d,c)=>g(ZR0(d),{...c,method:"POST"}),VR0=d=>`/recurring-invoices/${d}/permanent`,fu0=async(d,c)=>g(VR0(d),{...c,method:"DELETE"}),qR0=d=>`/recurring-invoices/${d}/pause`,zu0=async(d,c)=>g(qR0(d),{...c,method:"POST"}),WR0=d=>`/recurring-invoices/${d}/resume`,Du0=async(d,c)=>g(WR0(d),{...c,method:"POST"}),YR0=d=>`/recurring-invoices/${d}/trigger`,Nu0=async(d,c)=>g(YR0(d),{...c,method:"POST"});var In={create:O(Bu0),list:J(vu0),get:O(Tu0),update:O(Eu0),delete:O(bu0),restoreRecurringInvoice:O(Iu0),permanentDeleteRecurringInvoice:O(fu0),pauseRecurringInvoice:O(zu0),resumeRecurringInvoice:O(Du0),triggerRecurringInvoice:O(Nu0)};var JR0=()=>"/revenue-recognition/settings",Mu0=async d=>g(JR0(),{...d,method:"GET"}),$R0=()=>"/revenue-recognition/settings",_u0=async(d,c)=>g($R0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QR0=()=>"/revenue-recognition/backfill",Uu0=async(d,c)=>g(QR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/revenue-recognition/report?${p}`:"/revenue-recognition/report"},hu0=async(d,c)=>g(XR0(d),{...c,method:"GET"}),eP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/revenue-recognition/details?${p}`:"/revenue-recognition/details"},Ru0=async(d,c)=>g(eP0(d),{...c,method:"GET"});var fn={getSettings:O(Mu0),updateSettings:O(_u0),backfill:O(Uu0),getReport:O(hu0),getDetails:O(Ru0)};var tP0=()=>"/stripe-app/authorize",Pu0=async d=>g(tP0(),{...d,method:"GET"}),nP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/stripe-app/oauth/callback?${p}`:"/stripe-app/oauth/callback"},Cu0=async(d,c)=>g(nP0(d),{...c,method:"GET"}),sP0=()=>"/stripe-app/webhooks",wu0=async d=>g(sP0(),{...d,method:"POST"}),oP0=()=>"/stripe-app/marketplace-authorize",Fu0=async(d,c)=>g(oP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iP0=()=>"/stripe-app/connect",Au0=async(d,c)=>g(iP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),aP0=()=>"/stripe-app/connection",ku0=async d=>g(aP0(),{...d,method:"GET"}),rP0=()=>"/stripe-app/connection",ju0=async d=>g(rP0(),{...d,method:"DELETE"}),lP0=()=>"/stripe-app/settings",Lu0=async d=>g(lP0(),{...d,method:"GET"}),dP0=()=>"/stripe-app/settings",Hu0=async(d,c)=>g(dP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cP0=()=>"/stripe-app/invoices",Gu0=async(d,c)=>g(cP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),uP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/stripe-app/invoices?${p}`:"/stripe-app/invoices"},Ku0=async(d,c)=>g(uP0(d),{...c,method:"GET"}),pP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/stripe-app/invoices/lookup?${p}`:"/stripe-app/invoices/lookup"},Zu0=async(d,c)=>g(pP0(d),{...c,method:"GET"}),mP0=d=>`/stripe-app/invoices/${d}`,Vu0=async(d,c)=>g(mP0(d),{...c,method:"GET"}),xP0=()=>"/stripe-app/entity-connection",qu0=async d=>g(xP0(),{...d,method:"GET"}),gP0=()=>"/stripe-app/entity-connection",Wu0=async d=>g(gP0(),{...d,method:"DELETE"}),yP0=()=>"/stripe-app/entity-settings",Yu0=async d=>g(yP0(),{...d,method:"GET"}),OP0=()=>"/stripe-app/entity-settings",Ju0=async(d,c)=>g(OP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var zn={stripeAppAuthorize:O(Pu0),stripeAppOAuthCallback:O(Cu0),stripeAppWebhook:O(wu0),stripeAppMarketplaceAuthorize:O(Fu0),stripeAppConnect:O(Au0),stripeAppGetConnection:O(ku0),stripeAppDisconnect:O(ju0),stripeAppGetSettings:O(Lu0),stripeAppUpdateSettings:O(Hu0),stripeAppCreateInvoice:O(Gu0),stripeAppListInvoices:O(Ku0),stripeAppLookupInvoice:O(Zu0),stripeAppGetInvoice:O(Vu0),stripeAppEntityGetConnection:O(qu0),stripeAppEntityDisconnect:O(Wu0),stripeAppEntityGetSettings:O(Yu0),stripeAppEntityUpdateSettings:O(Ju0)};var SP0=()=>"/subscriptions",$u0=async d=>g(SP0(),{...d,method:"GET"}),BP0=()=>"/subscriptions/spending-limit",Qu0=async(d,c)=>g(BP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vP0=()=>"/subscriptions/check-entity-limit",Xu0=async d=>g(vP0(),{...d,method:"GET"});var Dn={getCurrent:O($u0),update:O(Qu0),checkEntityLimit:O(Xu0)};var TP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/tax-rate-estimates/us?${p}`:"/tax-rate-estimates/us"},ep0=async(d,c)=>g(TP0(d),{...c,method:"GET"});var Nn={listUsTaxRateEstimates:O(ep0)};var EP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/tax-reports/kir?${p}`:"/tax-reports/kir"},tp0=async(d,c)=>g(EP0(d),{...c,method:"POST"}),bP0=()=>"/tax-reports/si/profile",np0=async d=>g(bP0(),{...d,method:"GET"}),IP0=()=>"/tax-reports/si/profile",sp0=async(d,c)=>g(IP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),fP0=()=>"/tax-reports/si/yearly/normirani/review",op0=async(d,c)=>g(fP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zP0=()=>"/tax-reports/si/yearly/normirani/export",ip0=async(d,c)=>g(zP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DP0=()=>"/tax-reports/si/accounting/vod/export",ap0=async(d,c)=>g(DP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Mn={generateKirExport:O(tp0),getSloveniaTaxProfile:O(np0),updateSloveniaTaxProfile:O(sp0),reviewSloveniaYearlyNormiraniReport:O(op0),exportSloveniaYearlyNormiraniReport:O(ip0),exportSloveniaVodXml:O(ap0)};var NP0=()=>"/taxes",rp0=async(d,c)=>g(NP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/taxes?${p}`:"/taxes"},lp0=async(d,c)=>g(MP0(d),{...c,method:"GET"}),_P0=d=>`/taxes/${d}`,dp0=async(d,c,p)=>g(_P0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),UP0=d=>`/taxes/${d}`,cp0=async(d,c,p)=>g(UP0(d),{...p,method:"PUT",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),hP0=d=>`/taxes/${d}`,up0=async(d,c)=>g(hP0(d),{...c,method:"DELETE"}),RP0=d=>`/taxes/${d}/restore`,pp0=async(d,c)=>g(RP0(d),{...c,method:"POST"}),PP0=d=>`/taxes/${d}/permanent`,mp0=async(d,c)=>g(PP0(d),{...c,method:"DELETE"});var _n={create:O(rp0),list:J(lp0),update:O(dp0),replaceTax:O(cp0),delete:O(up0),restoreTax:O(pp0),permanentDeleteTax:O(mp0)};var CP0=()=>"/transaction-type/check",xp0=async(d,c)=>g(CP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Un={checkTransactionType:O(xp0)};var be="https://eu.spaceinvoices.com";var wP0=d=>`/documents/${d}/ujp`,gp0=async(d,c)=>g(wP0(d),{...c,method:"GET"});var hn={download:O(gp0)};var FP0=()=>"/upload/image",yp0=async(d,c)=>{let p=new FormData;return p.append("file",d.file),g(FP0(),{...c,method:"POST",body:p})};var Rn={uploadImage:O(yp0)};var AP0=()=>"/users/login",Op0=async(d,c)=>g(AP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),kP0=()=>"/users/signup",Sp0=async(d,c)=>g(kP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jP0=()=>"/users/password-reset",Bp0=async(d,c)=>g(jP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LP0=()=>"/users/password-reset/confirm",vp0=async(d,c)=>g(LP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HP0=()=>"/users/me/accounts",Tp0=async d=>g(HP0(),{...d,method:"GET"}),GP0=()=>"/users/me",Ep0=async d=>g(GP0(),{...d,method:"GET"}),KP0=()=>"/users/me",bp0=async(d,c)=>g(KP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZP0=()=>"/users/me/account-deletion",Ip0=async d=>g(ZP0(),{...d,method:"POST"}),VP0=()=>"/users/me/settings/furs",fp0=async(d,c)=>g(VP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),qP0=()=>"/users/me/settings/fina",zp0=async(d,c)=>g(qP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),WP0=()=>"/users/me/settings/pt",Dp0=async(d,c)=>g(WP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Pn={login:O(Op0),signup:O(Sp0),requestPasswordReset:O(Bp0),confirmPasswordReset:O(vp0),listMyAccounts:O(Tp0),getMe:O(Ep0),update:O(bp0),requestAccountDeletion:O(Ip0),updateFursSettings:O(fp0),updateFinaSettings:O(zp0),updatePtSettings:O(Dp0)};var YP0=()=>"/vies/check",Np0=async(d,c)=>g(YP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Cn={checkVies:O(Np0)};var JP0=()=>"/webhooks",Mp0=async(d,c)=>g(JP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$P0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/webhooks?${p}`:"/webhooks"},_p0=async(d,c)=>g($P0(d),{...c,method:"GET"}),QP0=d=>`/webhooks/${d}`,Up0=async(d,c)=>g(QP0(d),{...c,method:"GET"}),XP0=d=>`/webhooks/${d}`,hp0=async(d,c,p)=>g(XP0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),eC0=d=>`/webhooks/${d}`,Rp0=async(d,c)=>g(eC0(d),{...c,method:"DELETE"}),tC0=d=>`/webhooks/${d}/test`,Pp0=async(d,c)=>g(tC0(d),{...c,method:"POST"});var nC0=d=>`/webhooks/${d}/rotate-secret`,Cp0=async(d,c)=>g(nC0(d),{...c,method:"POST"});var wn={create:O(Mp0),list:J(_p0),get:O(Up0),update:O(hp0),delete:O(Rp0),testWebhook:O(Pp0),rotateWebhookSecret:O(Cp0)};var sC0=()=>"/white-label-subscriptions",wp0=async d=>g(sC0(),{...d,method:"GET"}),oC0=()=>"/white-label-subscriptions/plans",Fp0=async d=>g(oC0(),{...d,method:"GET"}),iC0=d=>`/white-label-subscriptions/check-feature/${d}`,Ap0=async(d,c)=>g(iC0(d),{...c,method:"GET"}),aC0=d=>`/white-label-subscriptions/check-limit/${d}`,kp0=async(d,c)=>g(aC0(d),{...c,method:"GET"}),rC0=()=>"/white-label-subscriptions/billing-email",jp0=async(d,c)=>g(rC0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Fn={getCurrentWLSubscription:O(wp0),list:O(Fp0),checkWLFeature:O(Ap0),checkWLLimit:O(kp0),update:O(jp0)};var lC0=()=>"/white-labels/current",Lp0=async d=>g(lC0(),{...d,method:"GET"}),dC0=()=>"/white-labels/me",Hp0=async d=>g(dC0(),{...d,method:"GET"});var An={getCurrentWhiteLabel:O(Lp0),getMyWhiteLabel:O(Hp0)};var Ee=class{sdkConfig;accountWebhooks=G(Ut,()=>this.sdkConfig);activities=G(ht,()=>this.sdkConfig);advanceInvoices=G(Rt,()=>this.sdkConfig);businessUnits=G(Pt,()=>this.sdkConfig);companyRegistry=G(Ct,()=>this.sdkConfig);creditNotes=G(wt,()=>this.sdkConfig);currency=G(Ft,()=>this.sdkConfig);customers=G(At,()=>this.sdkConfig);deliveryNotes=G(kt,()=>this.sdkConfig);documents=G(Ht,()=>this.sdkConfig);eInvoicing=G(Gt,()=>this.sdkConfig);eSlog=G(Kt,()=>this.sdkConfig);email=G(Zt,()=>this.sdkConfig);entities=G(Vt,()=>this.sdkConfig);entityApiKeys=G(qt,()=>this.sdkConfig);entityInvitations=G(Wt,()=>this.sdkConfig);entityStats=G(Yt,()=>this.sdkConfig);entityUsers=G(Jt,()=>this.sdkConfig);estimates=G($t,()=>this.sdkConfig);expenses=G(Qt,()=>this.sdkConfig);exports=G(Xt,()=>this.sdkConfig);files=G(en,()=>this.sdkConfig);finaCertificate=G(tn,()=>this.sdkConfig);finaDevices=G(nn,()=>this.sdkConfig);finaPremises=G(sn,()=>this.sdkConfig);finaSettings=G(on,()=>this.sdkConfig);financialCategories=G(an,()=>this.sdkConfig);fursCertificate=G(rn,()=>this.sdkConfig);fursDevices=G(ln,()=>this.sdkConfig);fursInternalAct=G(dn,()=>this.sdkConfig);fursPremises=G(cn,()=>this.sdkConfig);fursSettings=G(un,()=>this.sdkConfig);health=G(pn,()=>this.sdkConfig);invoices=G(xn,()=>this.sdkConfig);items=G(gn,()=>this.sdkConfig);legacyMigration=G(yn,()=>this.sdkConfig);locale=G(On,()=>this.sdkConfig);orderIntegrations=G(Sn,()=>this.sdkConfig);orders=G(Bn,()=>this.sdkConfig);paymentReminders=G(vn,()=>this.sdkConfig);payments=G(Tn,()=>this.sdkConfig);ptAtcudSeries=G(En,()=>this.sdkConfig);ptSafT=G(bn,()=>this.sdkConfig);recurringInvoices=G(In,()=>this.sdkConfig);revenueRecognition=G(fn,()=>this.sdkConfig);stripeApp=G(zn,()=>this.sdkConfig);subscriptions=G(Dn,()=>this.sdkConfig);taxRateEstimates=G(Nn,()=>this.sdkConfig);taxReports=G(Mn,()=>this.sdkConfig);taxes=G(_n,()=>this.sdkConfig);transactionType=G(Un,()=>this.sdkConfig);ujp=G(hn,()=>this.sdkConfig);upload=G(Rn,()=>this.sdkConfig);users=G(Pn,()=>this.sdkConfig);vies=G(Cn,()=>this.sdkConfig);webhooks=G(wn,()=>this.sdkConfig);whiteLabelSubscriptions=G(Fn,()=>this.sdkConfig);whiteLabels=G(An,()=>this.sdkConfig);constructor(c){let p=typeof c=="string"?{accessToken:c}:c,f=typeof p.accessToken=="function"?p.accessToken:()=>p.accessToken;this.sdkConfig={baseUrl:p.basePath??be,getAccessToken:f,clientName:p.clientName??"js-sdk",onUnauthorized:p.onUnauthorized,requestTimeoutMs:p.requestTimeoutMs,accountId:p.accountId??null};}};function cC0(d){let c=typeof d=="string"?{accessToken:d}:d,p=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;Ba0({baseUrl:c.basePath??be,getAccessToken:p,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),_t(c.accountId??null);}
|
|
179
|
+
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.")}),rD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Us0=36,hs0=100,Rs0=0,Ps0=100,Cs0=36,lD0=e.object({data:e.array(e.object({id:e.string().max(Us0),name:e.string().max(hs0),tax_rates:e.array(e.object({rate:e.number().min(Rs0).max(Ps0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(Cs0),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")}),ws0=/^[a-z]{3,4}_[0-9a-f]{24}$/,dD0=e.object({id:e.stringFormat("resource-id",ws0).describe("Unique resource identifier")}),cD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Fs0=0,As0=100,uD0=e.object({tax_rates:e.array(e.object({rate:e.number().min(Fs0).max(As0),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)")}),ks0=36,js0=100,Ls0=0,Hs0=100,Gs0=36,pD0=e.object({id:e.string().max(ks0),name:e.string().max(js0),tax_rates:e.array(e.object({rate:e.number().min(Ls0).max(Hs0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(Gs0),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"),Ks0=/^[a-z]{3,4}_[0-9a-f]{24}$/,mD0=e.object({id:e.stringFormat("resource-id",Ks0).describe("Unique resource identifier")}),xD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zs0=100,Vs0=0,qs0=100,gD0=e.object({name:e.string().max(Zs0).optional(),tax_rates:e.array(e.object({rate:e.number().min(Vs0).max(qs0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),metadata:e.record(e.string(),e.string()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Ws0=36,Ys0=100,Js0=0,$s0=100,Qs0=36,yD0=e.object({id:e.string().max(Ws0),name:e.string().max(Ys0),tax_rates:e.array(e.object({rate:e.number().min(Js0).max($s0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(Qs0),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"),Xs0=/^[a-z]{3,4}_[0-9a-f]{24}$/,OD0=e.object({id:e.stringFormat("resource-id",Xs0).describe("Unique resource identifier")}),SD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),eo0=/^[a-z]{3,4}_[0-9a-f]{24}$/,BD0=e.object({id:e.stringFormat("resource-id",eo0).describe("Unique resource identifier")}),vD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),to0=36,no0=100,so0=0,oo0=100,io0=36,TD0=e.object({id:e.string().max(to0),name:e.string().max(no0),tax_rates:e.array(e.object({rate:e.number().min(so0).max(oo0),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e.string().max(io0),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"),ao0=/^[a-z]{3,4}_[0-9a-f]{24}$/,ED0=e.object({id:e.stringFormat("resource-id",ao0).describe("Unique resource identifier")}),bD0=e.object({"x-entity-id":e.string().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 vt={};K(vt,{CheckTransactionTypeBody:()=>ID0,CheckTransactionTypeResponse:()=>fD0,checkTransactionTypeBodyCustomerCountryCodeMax:()=>uo0,checkTransactionTypeBodyCustomerCountryCodeMin:()=>co0,checkTransactionTypeBodyIssuerCountryCodeMax:()=>lo0,checkTransactionTypeBodyIssuerCountryCodeMin:()=>ro0,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>do0,checkTransactionTypeResponseCustomerCountryCodeMax:()=>go0,checkTransactionTypeResponseCustomerCountryCodeMin:()=>xo0,checkTransactionTypeResponseIssuerCountryCodeMax:()=>mo0,checkTransactionTypeResponseIssuerCountryCodeMin:()=>po0});var ro0=2,lo0=2,do0=true,co0=2,uo0=2,ID0=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(ro0).max(lo0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(do0).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(co0).max(uo0).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")}),po0=2,mo0=2,xo0=2,go0=2,fD0=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(po0).max(mo0).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(xo0).max(go0).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var Tt={};K(Tt,{DownloadUjpPackageHeader:()=>DD0,DownloadUjpPackageParams:()=>zD0});var zD0=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),DD0=e.object({"x-entity-id":e.string().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 Et={};K(Et,{UploadImageBody:()=>MD0,UploadImageHeader:()=>ND0,UploadImageResponse:()=>_D0});var ND0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),MD0=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)")}),_D0=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 bt={};K(bt,{ConfirmPasswordResetBody:()=>wD0,ConfirmPasswordResetResponse:()=>FD0,GetMeResponse:()=>kD0,ListMyAccountsResponse:()=>AD0,LoginBody:()=>UD0,LoginResponse:()=>hD0,PatchMeBody:()=>jD0,PatchMeResponse:()=>LD0,RequestPasswordResetBody:()=>PD0,RequestPasswordResetResponse:()=>CD0,SignupBody:()=>RD0,UpdateUserFinaSettingsBody:()=>VD0,UpdateUserFinaSettingsHeader:()=>ZD0,UpdateUserFinaSettingsResponse:()=>qD0,UpdateUserFursSettingsBody:()=>GD0,UpdateUserFursSettingsHeader:()=>HD0,UpdateUserFursSettingsResponse:()=>KD0,UpdateUserPtSettingsBody:()=>YD0,UpdateUserPtSettingsHeader:()=>WD0,UpdateUserPtSettingsResponse:()=>JD0,confirmPasswordResetBodyPasswordMin:()=>No0,confirmPasswordResetBodyPasswordRegExp:()=>Mo0,getMeResponseAccountIdMax:()=>Ro0,getMeResponseEmailMax:()=>Uo0,getMeResponseIdMax:()=>_o0,getMeResponseNameMax:()=>ho0,loginResponseOneIdMax:()=>yo0,loginResponseOneImpersonatorUserIdMax:()=>vo0,loginResponseOneScopeMax:()=>Bo0,loginResponseOneTtlDefault:()=>So0,loginResponseOneUserIdMax:()=>Oo0,loginResponseTwoUserAccountIdMax:()=>Io0,loginResponseTwoUserEmailMax:()=>Eo0,loginResponseTwoUserIdMax:()=>To0,loginResponseTwoUserNameMax:()=>bo0,patchMeBodyNameMin:()=>Po0,patchMeResponseAccountIdMax:()=>Ao0,patchMeResponseEmailMax:()=>wo0,patchMeResponseIdMax:()=>Co0,patchMeResponseNameMax:()=>Fo0,signupBodyNameMin:()=>fo0,signupBodyPasswordMin:()=>zo0,signupBodyPasswordRegExp:()=>Do0,updateUserFinaSettingsResponseAccountIdMax:()=>Vo0,updateUserFinaSettingsResponseEmailMax:()=>Ko0,updateUserFinaSettingsResponseIdMax:()=>Go0,updateUserFinaSettingsResponseNameMax:()=>Zo0,updateUserFursSettingsResponseAccountIdMax:()=>Ho0,updateUserFursSettingsResponseEmailMax:()=>jo0,updateUserFursSettingsResponseIdMax:()=>ko0,updateUserFursSettingsResponseNameMax:()=>Lo0,updateUserPtSettingsResponseAccountIdMax:()=>Jo0,updateUserPtSettingsResponseEmailMax:()=>Wo0,updateUserPtSettingsResponseIdMax:()=>qo0,updateUserPtSettingsResponseNameMax:()=>Yo0});var UD0=e.object({email:e.email(),password:e.string()}),yo0=100,Oo0=36,So0=31536e3,Bo0=50,vo0=36,To0=36,Eo0=255,bo0=255,Io0=36,hD0=e.object({id:e.string().max(yo0),user_id:e.string().max(Oo0),ttl:e.number().default(So0).describe("Token time-to-live in seconds"),scope:e.string().max(Bo0).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(vo0).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(To0),email:e.string().max(Eo0),name:e.string().max(bo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Io0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),fo0=2,zo0=8,Do0=/[a-z]/,RD0=e.object({email:e.email(),name:e.string().min(fo0).nullish(),password:e.string().min(zo0).regex(Do0),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()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional()}),PD0=e.object({email:e.email()}),CD0=e.object({message:e.string()}),No0=8,Mo0=/[a-z]/,wD0=e.object({token:e.string().min(1),password:e.string().min(No0).regex(Mo0)}),FD0=e.object({message:e.string()}),AD0=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"])}))}),_o0=36,Uo0=255,ho0=255,Ro0=36,kD0=e.object({id:e.string().max(_o0),email:e.string().max(Uo0),name:e.string().max(ho0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Ro0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Po0=2,jD0=e.object({name:e.string().min(Po0).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(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),Co0=36,wo0=255,Fo0=255,Ao0=36,LD0=e.object({id:e.string().max(Co0),email:e.string().max(wo0),name:e.string().max(Fo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Ao0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),HD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),GD0=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"),ko0=36,jo0=255,Lo0=255,Ho0=36,KD0=e.object({id:e.string().max(ko0),email:e.string().max(jo0),name:e.string().max(Lo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Ho0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),ZD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),VD0=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"),Go0=36,Ko0=255,Zo0=255,Vo0=36,qD0=e.object({id:e.string().max(Go0),email:e.string().max(Ko0),name:e.string().max(Zo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Vo0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),WD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),YD0=e.object({operator_first_name:e.string().optional().describe("PT operator first name"),operator_last_name:e.string().optional().describe("PT operator last name"),operator_tax_number:e.string().optional().describe("PT operator tax number"),account_first_name:e.string().optional().describe("Deprecated alias for PT operator first name"),account_last_name:e.string().optional().describe("Deprecated alias for PT operator last name"),account_tax_number:e.string().optional().describe("Deprecated alias for PT operator tax number")}).describe("Update user PT operator settings for a specific entity"),qo0=36,Wo0=255,Yo0=255,Jo0=36,JD0=e.object({id:e.string().max(qo0),email:e.string().max(Wo0),name:e.string().max(Yo0).nullish(),email_verified:e.boolean(),account_id:e.string().max(Jo0).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var It={};K(It,{CheckViesBody:()=>$D0,CheckViesResponse:()=>QD0,checkViesBodyCustomerCountryCodeMax:()=>ti0,checkViesBodyCustomerCountryCodeMin:()=>ei0,checkViesBodyIssuerCountryCodeMax:()=>Qo0,checkViesBodyIssuerCountryCodeMin:()=>$o0,checkViesBodyIssuerIsTaxSubjectDefault:()=>Xo0,checkViesResponseCustomerCountryCodeMax:()=>ii0,checkViesResponseCustomerCountryCodeMin:()=>oi0,checkViesResponseIssuerCountryCodeMax:()=>si0,checkViesResponseIssuerCountryCodeMin:()=>ni0});var $o0=2,Qo0=2,Xo0=true,ei0=2,ti0=2,$D0=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($o0).max(Qo0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(Xo0).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(ei0).max(ti0).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")}),ni0=2,si0=2,oi0=2,ii0=2,QD0=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(ni0).max(si0).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(oi0).max(ii0).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var ft={};K(ft,{CreateWebhookBody:()=>eN0,CreateWebhookHeader:()=>XD0,DeleteWebhookHeader:()=>pN0,DeleteWebhookParams:()=>uN0,DeleteWebhookResponse:()=>mN0,GetWebhookByIdHeader:()=>iN0,GetWebhookByIdParams:()=>oN0,GetWebhookByIdResponse:()=>aN0,GetWebhookDeliveriesHeader:()=>BN0,GetWebhookDeliveriesParams:()=>ON0,GetWebhookDeliveriesQueryParams:()=>SN0,GetWebhookDeliveriesResponse:()=>vN0,GetWebhooksHeader:()=>nN0,GetWebhooksQueryParams:()=>tN0,GetWebhooksResponse:()=>sN0,RotateWebhookSecretHeader:()=>EN0,RotateWebhookSecretParams:()=>TN0,RotateWebhookSecretResponse:()=>bN0,TestWebhookHeader:()=>gN0,TestWebhookParams:()=>xN0,TestWebhookResponse:()=>yN0,UpdateWebhookBody:()=>dN0,UpdateWebhookHeader:()=>lN0,UpdateWebhookParams:()=>rN0,UpdateWebhookResponse:()=>cN0,createWebhookBodyActiveDefault:()=>li0,createWebhookBodyDescriptionMax:()=>ri0,createWebhookBodyUrlMax:()=>ai0,deleteWebhookPathIdRegExp:()=>_i0,getWebhookByIdPathIdRegExp:()=>yi0,getWebhookByIdResponseDescriptionMax:()=>vi0,getWebhookByIdResponseEntityIdMax:()=>Si0,getWebhookByIdResponseIdMax:()=>Oi0,getWebhookByIdResponseMetadataDefault:()=>Ti0,getWebhookByIdResponseUrlMax:()=>Bi0,getWebhookDeliveriesPathIdRegExp:()=>Vi0,getWebhookDeliveriesQueryLimitDefault:()=>qi0,getWebhookDeliveriesQueryLimitMax:()=>Wi0,getWebhookDeliveriesResponseDataItemAttemptMax:()=>oa0,getWebhookDeliveriesResponseDataItemAttemptMin:()=>sa0,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>la0,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>ra0,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>$i0,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>na0,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>Qi0,getWebhookDeliveriesResponseDataItemIdMax:()=>Yi0,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>aa0,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>ia0,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>ta0,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>ea0,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>Xi0,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Ji0,getWebhooksQueryLimitDefault:()=>di0,getWebhooksQueryLimitMax:()=>ci0,getWebhooksResponseDataItemDescriptionMax:()=>xi0,getWebhooksResponseDataItemEntityIdMax:()=>pi0,getWebhooksResponseDataItemIdMax:()=>ui0,getWebhooksResponseDataItemMetadataDefault:()=>gi0,getWebhooksResponseDataItemUrlMax:()=>mi0,rotateWebhookSecretPathIdRegExp:()=>da0,rotateWebhookSecretResponseDescriptionMax:()=>ma0,rotateWebhookSecretResponseEntityIdMax:()=>ua0,rotateWebhookSecretResponseIdMax:()=>ca0,rotateWebhookSecretResponseMetadataDefault:()=>ga0,rotateWebhookSecretResponseSecretMax:()=>xa0,rotateWebhookSecretResponseUrlMax:()=>pa0,testWebhookPathIdRegExp:()=>Ui0,testWebhookResponseAttemptMax:()=>Li0,testWebhookResponseAttemptMin:()=>ji0,testWebhookResponseDurationMsMax:()=>Zi0,testWebhookResponseDurationMsMin:()=>Ki0,testWebhookResponseEntityIdMax:()=>Pi0,testWebhookResponseErrorMessageMax:()=>ki0,testWebhookResponseEventTypeMax:()=>Ci0,testWebhookResponseIdMax:()=>hi0,testWebhookResponseMaxAttemptsMax:()=>Gi0,testWebhookResponseMaxAttemptsMin:()=>Hi0,testWebhookResponseResponseBodyMax:()=>Ai0,testWebhookResponseResponseStatusMax:()=>Fi0,testWebhookResponseResponseStatusMin:()=>wi0,testWebhookResponseWebhookIdMax:()=>Ri0,updateWebhookBodyDescriptionMax:()=>Ii0,updateWebhookBodyUrlMax:()=>bi0,updateWebhookPathIdRegExp:()=>Ei0,updateWebhookResponseDescriptionMax:()=>Ni0,updateWebhookResponseEntityIdMax:()=>zi0,updateWebhookResponseIdMax:()=>fi0,updateWebhookResponseMetadataDefault:()=>Mi0,updateWebhookResponseUrlMax:()=>Di0});var XD0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ai0=2048,ri0=500,li0=true,eN0=e.object({url:e.url().max(ai0).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(ri0).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.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(li0).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),di0=10,ci0=100,tN0=e.object({limit:e.number().min(1).max(ci0).default(di0).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.")}),nN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ui0=36,pi0=36,mi0=2048,xi0=500,gi0={},sN0=e.object({data:e.array(e.object({id:e.string().max(ui0),entity_id:e.string().max(pi0),url:e.string().max(mi0),description:e.string().max(xi0).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.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()).default(gi0),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")}),yi0=/^[a-z]{3,4}_[0-9a-f]{24}$/,oN0=e.object({id:e.stringFormat("resource-id",yi0).describe("Unique resource identifier")}),iN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Oi0=36,Si0=36,Bi0=2048,vi0=500,Ti0={},aN0=e.object({id:e.string().max(Oi0),entity_id:e.string().max(Si0),url:e.string().max(Bi0),description:e.string().max(vi0).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.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()).default(Ti0),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)"),Ei0=/^[a-z]{3,4}_[0-9a-f]{24}$/,rN0=e.object({id:e.stringFormat("resource-id",Ei0).describe("Unique resource identifier")}),lN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),bi0=2048,Ii0=500,dN0=e.object({url:e.url().max(bi0).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Ii0).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.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()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),fi0=36,zi0=36,Di0=2048,Ni0=500,Mi0={},cN0=e.object({id:e.string().max(fi0),entity_id:e.string().max(zi0),url:e.string().max(Di0),description:e.string().max(Ni0).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.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()).default(Mi0),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)"),_i0=/^[a-z]{3,4}_[0-9a-f]{24}$/,uN0=e.object({id:e.stringFormat("resource-id",_i0).describe("Unique resource identifier")}),pN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mN0=e.object({success:e.boolean()}),Ui0=/^[a-z]{3,4}_[0-9a-f]{24}$/,xN0=e.object({id:e.stringFormat("resource-id",Ui0).describe("Unique resource identifier")}),gN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hi0=36,Ri0=36,Pi0=36,Ci0=100,wi0=-2147483648,Fi0=2147483647,Ai0=1e4,ki0=2e3,ji0=-2147483648,Li0=2147483647,Hi0=-2147483648,Gi0=2147483647,Ki0=-2147483648,Zi0=2147483647,yN0=e.object({id:e.string().max(hi0),webhook_id:e.string().max(Ri0),entity_id:e.string().max(Pi0),event_type:e.string().max(Ci0),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(wi0).max(Fi0).nullish(),response_body:e.string().max(Ai0).nullish(),error_message:e.string().max(ki0).nullish(),attempt:e.number().min(ji0).max(Li0),max_attempts:e.number().min(Hi0).max(Gi0),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Ki0).max(Zi0).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Vi0=/^[a-z]{3,4}_[0-9a-f]{24}$/,ON0=e.object({id:e.stringFormat("resource-id",Vi0).describe("Unique resource identifier")}),qi0=10,Wi0=100,SN0=e.object({limit:e.number().min(1).max(Wi0).default(qi0).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.")}),BN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Yi0=36,Ji0=36,$i0=36,Qi0=100,Xi0=-2147483648,ea0=2147483647,ta0=1e4,na0=2e3,sa0=-2147483648,oa0=2147483647,ia0=-2147483648,aa0=2147483647,ra0=-2147483648,la0=2147483647,vN0=e.object({data:e.array(e.object({id:e.string().max(Yi0),webhook_id:e.string().max(Ji0),entity_id:e.string().max($i0),event_type:e.string().max(Qi0),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Xi0).max(ea0).nullish(),response_body:e.string().max(ta0).nullish(),error_message:e.string().max(na0).nullish(),attempt:e.number().min(sa0).max(oa0),max_attempts:e.number().min(ia0).max(aa0),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(ra0).max(la0).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")}),da0=/^[a-z]{3,4}_[0-9a-f]{24}$/,TN0=e.object({id:e.stringFormat("resource-id",da0).describe("Unique resource identifier")}),EN0=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ca0=36,ua0=36,pa0=2048,ma0=500,xa0=64,ga0={},bN0=e.object({id:e.string().max(ca0),entity_id:e.string().max(ua0),url:e.string().max(pa0),description:e.string().max(ma0).nullish(),secret:e.string().max(xa0),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.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()).default(ga0),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var zt={};K(zt,{CheckWLFeatureParams:()=>zN0,CheckWLFeatureResponse:()=>DN0,CheckWLLimitParams:()=>NN0,CheckWLLimitResponse:()=>MN0,GetCurrentWLSubscriptionResponse:()=>IN0,GetWLSubscriptionPlansResponse:()=>fN0,UpdateWLSubscriptionBillingEmailBody:()=>_N0,UpdateWLSubscriptionBillingEmailResponse:()=>UN0,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>ya0,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>Oa0});var ya0=0,Oa0=null,IN0=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."),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"),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."),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(ya0).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(Oa0).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"),fN0=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."),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"),zN0=e.object({feature:e.string().describe("Feature slug to check")}),DN0=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"),NN0=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),MN0=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"),_N0=e.object({billing_email:e.email().nullable()}),UN0=e.object({billing_email:e.string().nullable()});var Dt={};K(Dt,{GetCurrentWhiteLabelResponse:()=>hN0,GetMyWhiteLabelResponse:()=>RN0});var hN0=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."),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"),RN0=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."),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 PN0=125e3,Nt=null,Ie=null,Mt=false;function Ba0(d){Nt=d;}function _t(d){Ie=d,d==null&&(Mt=false);}function CN0(){Mt||(Mt=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 wN0(){return Ie}function FN0(){if(!Nt)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return Nt}function AN0(d){if(!d)return {};if(d instanceof Headers){let c={};return d.forEach((p,f)=>{c[f]=p;}),c}if(Array.isArray(d)){let c={};for(let[p,f]of d)c[p]=f;return c}return d}function kN0(d,c){if(c==null||c<=0)return {signal:d??void 0,cleanup:()=>{}};let p=new AbortController,f=()=>{p.abort(d?.reason);};if(d?.aborted)return f(),{signal:p.signal,cleanup:()=>{}};let T=setTimeout(()=>{p.abort(new Error(`SDK request timed out after ${c}ms`));},c),h=()=>{clearTimeout(T),d?.removeEventListener("abort",f);};return d?.addEventListener("abort",f,{once:true}),p.signal.addEventListener("abort",h,{once:true}),{signal:p.signal,cleanup:h}}async function g(d,c){let{timeoutMs:p,sdkConfig:f,...T}=c??{},h=f??FN0(),de=await Promise.resolve(h.getAccessToken()),me=`${h.baseUrl}${d}`,ce={...AN0(T.headers)};h.clientName&&Object.assign(ce,fe(h.clientName)),de&&(ce.Authorization=`Bearer ${de}`);let Be=ce["x-account-id"]||ce["X-Account-Id"]||h.accountId||null;!Be&&Ie&&(f&&CN0(),Be=Ie),Be&&!ce["x-account-id"]&&!ce["X-Account-Id"]&&(ce["x-account-id"]=Be);let ge=kN0(T.signal,p===void 0?h.requestTimeoutMs??PN0:p);try{let pe=await fetch(me,{...T,headers:ce,signal:ge.signal});pe.status===401&&h.onUnauthorized&&h.onUnauthorized(pe);let Se,Gp0=pe.headers.get("content-length"),xe=pe.headers.get("content-type");if(Gp0==="0"||pe.status===204)Se=void 0;else if(xe?.includes("application/pdf")||xe?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||xe?.includes("application/octet-stream")||xe?.includes("application/zip")||xe?.includes("application/x-zip-compressed")||xe?.includes("image/"))Se=await pe.blob();else if(xe?.includes("application/xml")||xe?.includes("text/xml"))Se=await pe.text();else if(xe?.includes("text/html"))Se=await pe.text();else try{Se=await pe.json();}catch{Se=void 0;}return {data:Se,status:pe.status,headers:pe.headers}}finally{ge.cleanup();}}var jN0=()=>"/account-webhooks",va0=async(d,c)=>g(jN0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LN0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/account-webhooks?${p}`:"/account-webhooks"},Ta0=async(d,c)=>g(LN0(d),{...c,method:"GET"}),HN0=d=>`/account-webhooks/${d}`,Ea0=async(d,c)=>g(HN0(d),{...c,method:"GET"}),GN0=d=>`/account-webhooks/${d}`,ba0=async(d,c,p)=>g(GN0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),KN0=d=>`/account-webhooks/${d}`,Ia0=async(d,c)=>g(KN0(d),{...c,method:"DELETE"}),ZN0=d=>`/account-webhooks/${d}/test`,fa0=async(d,c)=>g(ZN0(d),{...c,method:"POST"});var VN0=d=>`/account-webhooks/${d}/rotate-secret`,za0=async(d,c)=>g(VN0(d),{...c,method:"POST"});async function qN0(d,c){return d(...c)}function Na0(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 O(d){return async(...c)=>{let p=c[c.length-1],f=p&&typeof p=="object"&&("entity_id"in p||"account_id"in p||"request_id"in p||"signal"in p||"timeoutMs"in p||"sdkConfig"in p||Object.keys(p).length===0),T,h;f?(T=c.slice(0,-1),h=Na0(p)):T=[...c],T.push(h);let de=await qN0(d,T);if(de.status>=200&&de.status<300)return de.data;let me=new Error(`API error: ${de.status}`);throw me.status=de.status,me.data=de.data,me}}function J(d){return Object.assign(async p=>{let{entity_id:f,account_id:T,request_id:h,signal:de,timeoutMs:me,sdkConfig:Oe,...ce}=p||{},Be=Na0({entity_id:f,account_id:T,request_id:h,signal:de,timeoutMs:me,sdkConfig:Oe}),ge=await d(ce,Be);if(ge.status===200)return ge.data;let pe=new Error(`API error: ${ge.status}`);throw pe.status=ge.status,pe.data=ge.data,pe},{__sdkListMethod:true})}function Da0(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 G(d,c){let p=Object.entries(d).map(([f,T])=>typeof T!="function"?[f,T]:[f,(...h)=>{let de=c(),me=h[h.length-1],Oe=T;if(Oe.__sdkListMethod){let ce=h[0];h[0]=ce&&typeof ce=="object"?{...ce,sdkConfig:de}:{sdkConfig:de};}else if(typeof Oe.__sdkOptionsIndex=="number"){let ce=h[Oe.__sdkOptionsIndex];h[Oe.__sdkOptionsIndex]=Da0(ce)?{...ce,sdkConfig:de}:{sdkConfig:de};}else Da0(me)?h[h.length-1]={...me,sdkConfig:de}:h.push({sdkConfig:de});return T(...h)}]);return Object.fromEntries(p)}var Ut={create:O(va0),list:J(Ta0),get:O(Ea0),update:O(ba0),delete:O(Ia0),testAccountWebhook:O(fa0),rotateAccountWebhookSecret:O(za0)};var WN0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/activities?${p}`:"/activities"},Ma0=async(d,c)=>g(WN0(d),{...c,method:"GET"});var ht={list:J(Ma0)};var YN0=d=>`/advance-invoices/shareable/${d}`,_a0=async(d,c)=>g(YN0(d),{...c,method:"GET"}),JN0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/advance-invoices/shareable/${d}/html?${f}`:`/advance-invoices/shareable/${d}/html`},Ua0=async(d,c,p)=>g(JN0(d,c),{...p,method:"GET"}),$N0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/advance-invoices/shareable/${d}/pdf?${f}`:`/advance-invoices/shareable/${d}/pdf`},ha0=async(d,c,p)=>g($N0(d,c),{...p,method:"GET"}),QN0=d=>`/advance-invoices/shareable/${d}/eslog`,Ra0=async(d,c)=>g(QN0(d),{...c,method:"GET"}),XN0=()=>"/advance-invoices",Pa0=async(d,c)=>g(XN0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),eM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/advance-invoices?${p}`:"/advance-invoices"},Ca0=async(d,c)=>g(eM0(d),{...c,method:"GET"}),tM0=()=>"/advance-invoices/custom",wa0=async(d,c)=>g(tM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),nM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/advance-invoices/${d}?${f}`:`/advance-invoices/${d}`},Fa0=async(d,c,p)=>g(nM0(d,c),{...p,method:"GET"}),sM0=d=>`/advance-invoices/${d}`,Aa0=async(d,c,p)=>g(sM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),oM0=d=>`/advance-invoices/${d}/versions`,ka0=async(d,c)=>g(oM0(d),{...c,method:"GET"}),iM0=(d,c)=>`/advance-invoices/${d}/versions/${c}`,ja0=async(d,c,p)=>g(iM0(d,c),{...p,method:"GET"}),aM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/advance-invoices/render?${p}`:"/advance-invoices/render"},La0=async(d,c,p)=>g(aM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),rM0=d=>`/advance-invoices/${d}/void`,Ha0=async(d,c,p)=>g(rM0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var Rt={getShareableAdvanceInvoice:O(_a0),getShareableAdvanceInvoiceHtml:O(Ua0),getShareableAdvanceInvoicePdf:O(ha0),getShareableAdvanceInvoiceEslog:O(Ra0),create:O(Pa0),list:J(Ca0),createCustom:O(wa0),get:O(Fa0),update:O(Aa0),getVersions:O(ka0),getVersion:O(ja0),renderAdvanceInvoicePreview:O(La0),void:O(Ha0)};var lM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/business-units?${p}`:"/business-units"},Ga0=async(d,c)=>g(lM0(d),{...c,method:"GET"}),dM0=()=>"/business-units",Ka0=async(d,c)=>g(dM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/business-units/${d}?${f}`:`/business-units/${d}`},Za0=async(d,c,p)=>g(cM0(d,c),{...p,method:"GET"}),uM0=d=>`/business-units/${d}`,Va0=async(d,c,p)=>g(uM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),pM0=d=>`/business-units/${d}`,qa0=async(d,c)=>g(pM0(d),{...c,method:"DELETE"});var Pt={list:J(Ga0),create:O(Ka0),get:O(Za0),update:O(Va0),delete:O(qa0)};var mM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/company-registry/search?${p}`:"/company-registry/search"},Wa0=async(d,c)=>g(mM0(d),{...c,method:"GET"}),xM0=()=>"/company-registry/countries",Ya0=async d=>g(xM0(),{...d,method:"GET"});var Ct={searchCompanyRegistry:O(Wa0),list:O(Ya0)};var gM0=d=>`/credit-notes/shareable/${d}`,Ja0=async(d,c)=>g(gM0(d),{...c,method:"GET"}),yM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/credit-notes/shareable/${d}/html?${f}`:`/credit-notes/shareable/${d}/html`},$a0=async(d,c,p)=>g(yM0(d,c),{...p,method:"GET"}),OM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/credit-notes/shareable/${d}/pdf?${f}`:`/credit-notes/shareable/${d}/pdf`},Qa0=async(d,c,p)=>g(OM0(d,c),{...p,method:"GET"}),SM0=d=>`/credit-notes/shareable/${d}/eslog`,Xa0=async(d,c)=>g(SM0(d),{...c,method:"GET"}),BM0=()=>"/credit-notes",er0=async(d,c)=>g(BM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/credit-notes?${p}`:"/credit-notes"},tr0=async(d,c)=>g(vM0(d),{...c,method:"GET"}),TM0=()=>"/credit-notes/custom",nr0=async(d,c)=>g(TM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),EM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/credit-notes/${d}?${f}`:`/credit-notes/${d}`},sr0=async(d,c,p)=>g(EM0(d,c),{...p,method:"GET"}),bM0=d=>`/credit-notes/${d}`,or0=async(d,c,p)=>g(bM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),IM0=d=>`/credit-notes/${d}/xrechnung`,ir0=async(d,c)=>g(IM0(d),{...c,method:"GET"}),fM0=d=>`/credit-notes/${d}/zugferd`,ar0=async(d,c)=>g(fM0(d),{...c,method:"GET"}),zM0=d=>`/credit-notes/${d}/versions`,rr0=async(d,c)=>g(zM0(d),{...c,method:"GET"}),DM0=(d,c)=>`/credit-notes/${d}/versions/${c}`,lr0=async(d,c,p)=>g(DM0(d,c),{...p,method:"GET"}),NM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/credit-notes/render?${p}`:"/credit-notes/render"},dr0=async(d,c,p)=>g(NM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),MM0=d=>`/credit-notes/${d}/fiscalize`,cr0=async(d,c)=>g(MM0(d),{...c,method:"POST"}),_M0=d=>`/credit-notes/${d}/void`,ur0=async(d,c,p)=>g(_M0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var wt={getShareableCreditNote:O(Ja0),getShareableCreditNoteHtml:O($a0),getShareableCreditNotePdf:O(Qa0),getShareableCreditNoteEslog:O(Xa0),create:O(er0),list:J(tr0),createCustom:O(nr0),get:O(sr0),update:O(or0),downloadCreditNoteXRechnung:O(ir0),downloadCreditNoteZugferd:O(ar0),getVersions:O(rr0),getVersion:O(lr0),renderCreditNotePreview:O(dr0),fiscalizeCreditNote:O(cr0),void:O(ur0)};var UM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/currency/exchange-rate?${p}`:"/currency/exchange-rate"},pr0=async(d,c)=>g(UM0(d),{...c,method:"GET"});var Ft={getExchangeRate:O(pr0)};var hM0=()=>"/customers",mr0=async(d,c)=>g(hM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),RM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/customers?${p}`:"/customers"},xr0=async(d,c)=>g(RM0(d),{...c,method:"GET"}),PM0=d=>`/customers/${d}`,gr0=async(d,c)=>g(PM0(d),{...c,method:"GET"}),CM0=d=>`/customers/${d}`,yr0=async(d,c,p)=>g(CM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),wM0=d=>`/customers/${d}`,Or0=async(d,c)=>g(wM0(d),{...c,method:"DELETE"}),FM0=d=>`/customers/${d}/restore`,Sr0=async(d,c)=>g(FM0(d),{...c,method:"POST"}),AM0=d=>`/customers/${d}/permanent`,Br0=async(d,c)=>g(AM0(d),{...c,method:"DELETE"});var At={create:O(mr0),list:J(xr0),get:O(gr0),update:O(yr0),delete:O(Or0),restoreCustomer:O(Sr0),permanentDeleteCustomer:O(Br0)};var kM0=d=>`/delivery-notes/shareable/${d}`,vr0=async(d,c)=>g(kM0(d),{...c,method:"GET"}),jM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/delivery-notes/shareable/${d}/html?${f}`:`/delivery-notes/shareable/${d}/html`},Tr0=async(d,c,p)=>g(jM0(d,c),{...p,method:"GET"}),LM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/delivery-notes/shareable/${d}/pdf?${f}`:`/delivery-notes/shareable/${d}/pdf`},Er0=async(d,c,p)=>g(LM0(d,c),{...p,method:"GET"}),HM0=()=>"/delivery-notes",br0=async(d,c)=>g(HM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),GM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/delivery-notes?${p}`:"/delivery-notes"},Ir0=async(d,c)=>g(GM0(d),{...c,method:"GET"}),KM0=()=>"/delivery-notes/custom",fr0=async(d,c)=>g(KM0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/delivery-notes/${d}?${f}`:`/delivery-notes/${d}`},zr0=async(d,c,p)=>g(ZM0(d,c),{...p,method:"GET"}),VM0=d=>`/delivery-notes/${d}`,Dr0=async(d,c,p)=>g(VM0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),qM0=d=>`/delivery-notes/${d}/versions`,Nr0=async(d,c)=>g(qM0(d),{...c,method:"GET"}),WM0=(d,c)=>`/delivery-notes/${d}/versions/${c}`,Mr0=async(d,c,p)=>g(WM0(d,c),{...p,method:"GET"}),YM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/delivery-notes/render?${p}`:"/delivery-notes/render"},_r0=async(d,c,p)=>g(YM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),JM0=d=>`/delivery-notes/${d}/void`,Ur0=async(d,c,p)=>g(JM0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var kt={getShareableDeliveryNote:O(vr0),getShareableDeliveryNoteHtml:O(Tr0),getShareableDeliveryNotePdf:O(Er0),create:O(br0),list:J(Ir0),createCustom:O(fr0),get:O(zr0),update:O(Dr0),getVersions:O(Nr0),getVersion:O(Mr0),renderDeliveryNotePreview:O(_r0),void:O(Ur0)};var $M0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/next-number?${p}`:"/documents/next-number"},hr0=async(d,c)=>g($M0(d),{...c,method:"GET"}),QM0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/calculate?${p}`:"/documents/calculate"},Rr0=async(d,c,p)=>g(QM0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),XM0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/finalize?${f}`:`/documents/${d}/finalize`},Pr0=async(d,c,p,f)=>g(XM0(d,p),{...f,method:"POST",headers:{"Content-Type":"application/json",...f?.headers},body:JSON.stringify(c)}),e_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/fiscalize?${f}`:`/documents/${d}/fiscalize`},Cr0=async(d,c,p,f)=>g(e_0(d,p),{...f,method:"POST",headers:{"Content-Type":"application/json",...f?.headers},body:JSON.stringify(c)}),t_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/register-output?${f}`:`/documents/${d}/register-output`},wr0=async(d,c,p)=>g(t_0(d,c),{...p,method:"POST"}),n_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}?${f}`:`/documents/${d}`},Fr0=async(d,c,p)=>g(n_0(d,c),{...p,method:"DELETE"}),s_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/restore?${f}`:`/documents/${d}/restore`},Ar0=async(d,c,p)=>g(s_0(d,c),{...p,method:"POST"}),o_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/permanent?${f}`:`/documents/${d}/permanent`},kr0=async(d,c,p)=>g(o_0(d,c),{...p,method:"DELETE"}),i_0=d=>`/documents/${d}/send`,jr0=async(d,c,p)=>g(i_0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),a_0=d=>`/documents/${d}/share`,Lr0=async(d,c)=>g(a_0(d),{...c,method:"POST"}),r_0=d=>`/documents/${d}/share`,Hr0=async(d,c)=>g(r_0(d),{...c,method:"GET"}),l_0=d=>`/documents/${d}/share`,Gr0=async(d,c)=>g(l_0(d),{...c,method:"DELETE"});var jt=O(Cr0);function d_0(d){return !!d&&typeof d=="object"&&"type"in d}function Lt(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 c_0=async(d,c,p,f)=>{if(Lt(c))return jt(d,void 0,void 0,c);if(d_0(c))return jt(d,void 0,c,p);let T=Lt(p)?void 0:p,h=Lt(p)?p:f;return jt(d,c,T,h)},Ht={getNextNumber:O(hr0),calculateDocumentPreview:O(Rr0),finalizeDocument:O(Pr0),fiscalizeDocument:c_0,registerDocumentOutput:O(wr0),delete:O(Fr0),restoreDocument:O(Ar0),permanentDeleteDocument:O(kr0),sendDocument:O(jr0),shareDocument:O(Lr0),getShareableId:O(Hr0),unshareDocument:O(Gr0)};var u_0=()=>"/e-invoicing/settings",Kr0=async d=>g(u_0(),{...d,method:"GET"}),p_0=()=>"/e-invoicing/settings",Zr0=async(d,c)=>g(p_0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),m_0=()=>"/e-invoicing/enrollment/sync",Vr0=async d=>g(m_0(),{...d,method:"POST"}),x_0=()=>"/e-invoicing/enrollment/verification-link",qr0=async d=>g(x_0(),{...d,method:"POST"}),g_0=()=>"/e-invoicing/supplier",Wr0=async(d,c)=>g(g_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),y_0=()=>"/e-invoicing/supplier",Yr0=async d=>g(y_0(),{...d,method:"GET"});var O_0=()=>"/e-invoicing/recipients/check",Jr0=async(d,c)=>g(O_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),S_0=()=>"/e-invoicing/customer-search",$r0=async(d,c)=>g(S_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),B_0=d=>`/e-invoicing/documents/${d}/send`,Qr0=async(d,c,p)=>g(B_0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),v_0=()=>"/e-invoicing/send/:documentType/:documentId",Xr0=async(d,c)=>g(v_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),T_0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/e-invoicing/submissions?${p}`:"/e-invoicing/submissions"},el0=async(d,c)=>g(T_0(d),{...c,method:"GET"}),E_0=d=>`/e-invoicing/submissions/${d}`,tl0=async(d,c)=>g(E_0(d),{...c,method:"GET"}),b_0=d=>`/e-invoicing/submissions/${d}/retry`,nl0=async(d,c)=>g(b_0(d),{...c,method:"POST"}),I_0=()=>"/e-invoicing/submissions/:id",sl0=async d=>g(I_0(),{...d,method:"GET"}),f_0=()=>"/e-invoicing/submissions/:id/retry",ol0=async d=>g(f_0(),{...d,method:"POST"});var Gt={list:O(Kr0),update:O(Zr0),syncEInvoicingEnrollment:O(Vr0),create:O(qr0),registerEInvoicingSupplier:O(Wr0),getEInvoicingSupplier:O(Yr0),checkEInvoicingRecipient:O(Jr0),searchEInvoicingCustomer:O($r0),sendEInvoicingDocument:O(Qr0),sendEInvoice:O(Xr0),listEInvoicingSubmissions:O(el0),get:O(tl0),retryEInvoicingSubmissionById:O(nl0),getEInvoicingSubmission:O(sl0),retryEInvoicingSubmission:O(ol0)};var z_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/eslog/${d}/validate?${f}`:`/eslog/${d}/validate`},il0=async(d,c,p)=>g(z_0(d,c),{...p,method:"POST"}),D_0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/eslog/${d}/download?${f}`:`/eslog/${d}/download`},al0=async(d,c,p)=>g(D_0(d,c),{...p,method:"GET"});var Kt={validate:O(il0),download:O(al0)};var N_0=()=>"/email/send",rl0=async(d,c)=>g(N_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Zt={sendEmail:O(rl0)};var M_0=()=>"/entities",ll0=async(d,c)=>g(M_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),__0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/entities?${p}`:"/entities"},dl0=async(d,c)=>g(__0(d),{...c,method:"GET"}),U_0=d=>`/entities/${d}`,cl0=async(d,c)=>g(U_0(d),{...c,method:"GET"}),h_0=d=>`/entities/${d}`,ul0=async(d,c,p)=>g(h_0(d),{...p,method:"PUT",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),R_0=d=>`/entities/${d}/enable`,pl0=async(d,c)=>g(R_0(d),{...c,method:"POST"}),P_0=d=>`/entities/${d}/disable`,ml0=async(d,c)=>g(P_0(d),{...c,method:"POST"}),C_0=d=>`/entities/${d}/email-sender`,xl0=async(d,c)=>g(C_0(d),{...c,method:"GET"}),w_0=d=>`/entities/${d}/email-sender`,gl0=async(d,c,p)=>g(w_0(d),{...p,method:"PUT",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),F_0=d=>`/entities/${d}/email-sender`,yl0=async(d,c)=>g(F_0(d),{...c,method:"DELETE"}),A_0=d=>`/entities/${d}/email-sender/recheck`,Ol0=async(d,c)=>g(A_0(d),{...c,method:"POST"});var Vt={create:O(ll0),list:J(dl0),get:O(cl0),update:O(ul0),enableEntity:O(pl0),disableEntity:O(ml0),getEntityEmailSender:O(xl0),putEntityEmailSender:O(gl0),deleteEntityEmailSender:O(yl0),recheckEntityEmailSender:O(Ol0)};var k_0=()=>"/entities/api-keys",Sl0=async d=>g(k_0(),{...d,method:"GET"}),j_0=()=>"/entities/api-keys",Bl0=async(d,c)=>g(j_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),L_0=d=>`/entities/api-keys/${d}`,vl0=async(d,c)=>g(L_0(d),{...c,method:"DELETE"});var qt={listEntityApiKeys:O(Sl0),create:O(Bl0),delete:O(vl0)};var H_0=()=>"/entities/invitations",Tl0=async d=>g(H_0(),{...d,method:"GET"}),G_0=d=>`/entities/invitations/${d}`,El0=async(d,c)=>g(G_0(d),{...c,method:"GET"}),K_0=d=>`/entities/invitations/${d}`,bl0=async(d,c)=>g(K_0(d),{...c,method:"DELETE"}),Z_0=d=>`/entities/invitations/${d}/resend`,Il0=async(d,c)=>g(Z_0(d),{...c,method:"POST"}),V_0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invitations/preview?${p}`:"/invitations/preview"},fl0=async(d,c)=>g(V_0(d),{...c,method:"GET"}),q_0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invitations/accept?${p}`:"/invitations/accept"},zl0=async(d,c,p)=>g(q_0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)});var Wt={listEntityInvitations:O(Tl0),getEntityInvitation:O(El0),cancelEntityInvitation:O(bl0),resendEntityInvitation:O(Il0),preview:O(fl0),acceptEntityInvitation:O(zl0)};var W_0=()=>"/stats/query",Dl0=async(d,c)=>g(W_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Yt={queryEntityStats:O(Dl0)};var Y_0=()=>"/entities/users",Nl0=async d=>g(Y_0(),{...d,method:"GET"}),J_0=()=>"/entities/users",Ml0=async(d,c)=>g(J_0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$_0=()=>"/entities/users/access",_l0=async d=>g($_0(),{...d,method:"GET"}),Q_0=d=>`/entities/users/${d}`,Ul0=async(d,c,p)=>g(Q_0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),X_0=d=>`/entities/users/${d}`,hl0=async(d,c)=>g(X_0(d),{...c,method:"DELETE"}),eU0=d=>`/entities/users/${d}/token`,Rl0=async(d,c)=>g(eU0(d),{...c,method:"POST"});var Jt={list:O(Nl0),addEntityUser:O(Ml0),getAccess:O(_l0),update:O(Ul0),removeEntityUser:O(hl0),generateEntityUserToken:O(Rl0)};var tU0=d=>`/estimates/shareable/${d}`,Pl0=async(d,c)=>g(tU0(d),{...c,method:"GET"}),nU0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/estimates/shareable/${d}/html?${f}`:`/estimates/shareable/${d}/html`},Cl0=async(d,c,p)=>g(nU0(d,c),{...p,method:"GET"}),sU0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/estimates/shareable/${d}/pdf?${f}`:`/estimates/shareable/${d}/pdf`},wl0=async(d,c,p)=>g(sU0(d,c),{...p,method:"GET"}),oU0=d=>`/estimates/shareable/${d}/eslog`,Fl0=async(d,c)=>g(oU0(d),{...c,method:"GET"}),iU0=()=>"/estimates",Al0=async(d,c)=>g(iU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),aU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/estimates?${p}`:"/estimates"},kl0=async(d,c)=>g(aU0(d),{...c,method:"GET"}),rU0=()=>"/estimates/custom",jl0=async(d,c)=>g(rU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lU0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/estimates/${d}?${f}`:`/estimates/${d}`},Ll0=async(d,c,p)=>g(lU0(d,c),{...p,method:"GET"}),dU0=d=>`/estimates/${d}`,Hl0=async(d,c,p)=>g(dU0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),cU0=d=>`/estimates/${d}/versions`,Gl0=async(d,c)=>g(cU0(d),{...c,method:"GET"}),uU0=(d,c)=>`/estimates/${d}/versions/${c}`,Kl0=async(d,c,p)=>g(uU0(d,c),{...p,method:"GET"}),pU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/estimates/render?${p}`:"/estimates/render"},Zl0=async(d,c,p)=>g(pU0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)});var $t={getShareableEstimate:O(Pl0),getShareableEstimateHtml:O(Cl0),getShareableEstimatePdf:O(wl0),getShareableEstimateEslog:O(Fl0),create:O(Al0),list:J(kl0),createCustom:O(jl0),get:O(Ll0),update:O(Hl0),getVersions:O(Gl0),getVersion:O(Kl0),renderEstimatePreview:O(Zl0)};var mU0=()=>"/expenses",Vl0=async(d,c)=>g(mU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),xU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/expenses?${p}`:"/expenses"},ql0=async(d,c)=>g(xU0(d),{...c,method:"GET"}),gU0=()=>"/expenses/custom",Wl0=async(d,c)=>g(gU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),yU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/expenses/report?${p}`:"/expenses/report"},Yl0=async(d,c)=>g(yU0(d),{...c,method:"GET"}),OU0=()=>"/expenses/recognition/settings",Jl0=async d=>g(OU0(),{...d,method:"GET"}),SU0=()=>"/expenses/recognition/settings",$l0=async(d,c)=>g(SU0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),BU0=()=>"/expenses/recognition/backfill",Ql0=async(d,c)=>g(BU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vU0=()=>"/expenses/recognitions",Xl0=async(d,c)=>{let p=new FormData;return p.append("file",d.file),g(vU0(),{...c,method:"POST",body:p})},TU0=d=>`/expenses/recognitions/${d}`,ed0=async(d,c)=>g(TU0(d),{...c,method:"GET"}),EU0=d=>`/expenses/recognitions/${d}/retry`,td0=async(d,c)=>g(EU0(d),{...c,method:"POST"}),bU0=d=>`/expenses/${d}/recognition`,nd0=async(d,c)=>g(bU0(d),{...c,method:"GET"}),IU0=d=>`/expenses/${d}`,sd0=async(d,c)=>g(IU0(d),{...c,method:"GET"}),fU0=d=>`/expenses/${d}`,od0=async(d,c,p)=>g(fU0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),zU0=d=>`/expenses/${d}`,id0=async(d,c)=>g(zU0(d),{...c,method:"DELETE"}),DU0=d=>`/expenses/${d}/void`,ad0=async(d,c)=>g(DU0(d),{...c,method:"POST"}),NU0=d=>`/expenses/${d}/restore`,rd0=async(d,c)=>g(NU0(d),{...c,method:"POST"}),MU0=d=>`/expenses/${d}/attachments`,ld0=async(d,c,p)=>{let f=new FormData;return c.file!==void 0&&f.append("file",c.file),g(MU0(d),{...p,method:"POST",body:f})},_U0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/expenses/${d}/attachments?${f}`:`/expenses/${d}/attachments`},dd0=async(d,c,p)=>g(_U0(d,c),{...p,method:"GET"}),UU0=(d,c)=>`/expenses/${d}/attachments/${c}`,cd0=async(d,c,p)=>g(UU0(d,c),{...p,method:"DELETE"}),hU0=d=>`/expenses/${d}/payments`,ud0=async(d,c)=>g(hU0(d),{...c,method:"GET"}),RU0=d=>`/expenses/${d}/payments`,pd0=async(d,c,p)=>g(RU0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var Qt={create:O(Vl0),list:J(ql0),createCustom:O(Wl0),getExpenseCategoryReport:O(Yl0),getRecognitionSettings:O(Jl0),updateRecognitionSettings:O($l0),backfillExpenseRecognition:O(Ql0),createRecognition:O(Xl0),getRecognition:O(ed0),retryRecognition:O(td0),getLatestRecognition:O(nd0),get:O(sd0),update:O(od0),delete:O(id0),void:O(ad0),restoreExpense:O(rd0),uploadExpenseAttachment:O(ld0),getExpenseAttachments:O(dd0),deleteExpenseAttachment:O(cd0),getExpensePayments:O(ud0),createExpensePayment:O(pd0)};var PU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/export?${p}`:"/documents/export"},md0=async(d,c)=>g(PU0(d),{...c,method:"GET"}),CU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/export/sales-per-item?${p}`:"/documents/export/sales-per-item"},xd0=async(d,c)=>g(CU0(d),{...c,method:"GET"}),wU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/documents/export/revenue-by-category?${p}`:"/documents/export/revenue-by-category"},gd0=async(d,c)=>g(wU0(d),{...c,method:"GET"}),FU0=()=>"/documents/export/pdf",yd0=async(d,c)=>g(FU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),AU0=d=>`/documents/export/pdf/${d}`,Od0=async(d,c)=>g(AU0(d),{...c,method:"GET"}),kU0=d=>`/documents/export/pdf/${d}/download`,Sd0=async(d,c)=>g(kU0(d),{...c,method:"GET"}),jU0=()=>"/documents/export/eslog",Bd0=async(d,c)=>g(jU0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LU0=d=>`/documents/export/eslog/${d}`,vd0=async(d,c)=>g(LU0(d),{...c,method:"GET"}),HU0=d=>`/documents/export/eslog/${d}/download`,Td0=async(d,c)=>g(HU0(d),{...c,method:"GET"});var Xt={exportDocuments:O(md0),exportSalesPerItem:O(xd0),exportRevenueByCategory:O(gd0),startPdfExport:O(yd0),getPdfStatus:O(Od0),downloadPdfExport:O(Sd0),startEslogExport:O(Bd0),getEslogStatus:O(vd0),downloadEslogExport:O(Td0)};var GU0=()=>"/files",Ed0=async(d,c)=>{let p=new FormData;return d.file!==void 0&&p.append("file",d.file),p.append("category",d.category),d.account_payable_id!==void 0&&p.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&p.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&p.append("expense_id",d.expense_id),g(GU0(),{...c,method:"POST",body:p})},KU0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/files?${p}`:"/files"},bd0=async(d,c)=>g(KU0(d),{...c,method:"GET"}),ZU0=d=>`/files/${d}`,Id0=async(d,c)=>g(ZU0(d),{...c,method:"GET"}),VU0=d=>`/files/${d}`,fd0=async(d,c)=>g(VU0(d),{...c,method:"DELETE"});var en={uploadFile:O(Ed0),list:J(bd0),get:O(Id0),delete:O(fd0)};var qU0=()=>"/fiscalization/fina/settings/certificate",zd0=async(d,c)=>{let p=new FormData;return d.file!==void 0&&p.append("file",d.file),d.passphrase!==void 0&&p.append("passphrase",d.passphrase),g(qU0(),{...c,method:"POST",body:p})},WU0=()=>"/fiscalization/fina/settings/certificate",Dd0=async d=>g(WU0(),{...d,method:"GET"}),YU0=()=>"/fiscalization/fina/settings/certificate",Nd0=async d=>g(YU0(),{...d,method:"DELETE"});var tn={uploadFinaCertificate:O(zd0),getFinaCertificate:O(Dd0),delete:O(Nd0)};var JU0=d=>`/fiscalization/fina/premises/${d}/devices`,Md0=async(d,c)=>g(JU0(d),{...c,method:"GET"}),$U0=d=>`/fiscalization/fina/premises/${d}/devices`,_d0=async(d,c,p)=>g($U0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),QU0=d=>`/fiscalization/fina/devices/${d}`,Ud0=async(d,c)=>g(QU0(d),{...c,method:"GET"}),XU0=d=>`/fiscalization/fina/devices/${d}`,hd0=async(d,c,p)=>g(XU0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),eh0=d=>`/fiscalization/fina/devices/${d}`,Rd0=async(d,c)=>g(eh0(d),{...c,method:"DELETE"});var nn={listFinaDevices:O(Md0),registerFinaDevice:O(_d0),getFinaDevice:O(Ud0),update:O(hd0),delete:O(Rd0)};var th0=()=>"/fiscalization/fina/premises",Pd0=async d=>g(th0(),{...d,method:"GET"}),nh0=()=>"/fiscalization/fina/premises",Cd0=async(d,c)=>g(nh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),sh0=d=>`/fiscalization/fina/premises/${d}`,wd0=async(d,c)=>g(sh0(d),{...c,method:"GET"}),oh0=d=>`/fiscalization/fina/premises/${d}`,Fd0=async(d,c,p)=>g(oh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),ih0=d=>`/fiscalization/fina/premises/${d}`,Ad0=async(d,c)=>g(ih0(d),{...c,method:"DELETE"});var sn={listFinaPremises:O(Pd0),create:O(Cd0),getFinaPremise:O(wd0),update:O(Fd0),delete:O(Ad0)};var ah0=()=>"/fiscalization/fina/settings",kd0=async d=>g(ah0(),{...d,method:"GET"}),rh0=()=>"/fiscalization/fina/settings",jd0=async(d,c)=>g(rh0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var on={list:O(kd0),update:O(jd0)};var lh0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/financial-categories?${p}`:"/financial-categories"},Ld0=async(d,c)=>g(lh0(d),{...c,method:"GET"}),dh0=()=>"/financial-categories",Hd0=async(d,c)=>g(dh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ch0=d=>`/financial-categories/${d}`,Gd0=async(d,c,p)=>g(ch0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),uh0=d=>`/financial-categories/${d}`,Kd0=async(d,c)=>g(uh0(d),{...c,method:"DELETE"}),ph0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/financial-categories/revenue-summary?${p}`:"/financial-categories/revenue-summary"},Zd0=async(d,c)=>g(ph0(d),{...c,method:"GET"}),mh0=()=>"/financial-categories/document-items/batch",Vd0=async(d,c)=>g(mh0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),xh0=d=>`/financial-categories/document-items/${d}`,qd0=async(d,c,p)=>g(xh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var an={list:J(Ld0),create:O(Hd0),update:O(Gd0),delete:O(Kd0),getRevenueByFinancialCategory:O(Zd0),updateDocumentItemFinancialCategories:O(Vd0),updateDocumentItemFinancialCategory:O(qd0)};var gh0=()=>"/fiscalization/furs/settings/certificate",Wd0=async(d,c)=>{let p=new FormData;return d.file!==void 0&&p.append("file",d.file),d.passphrase!==void 0&&p.append("passphrase",d.passphrase),g(gh0(),{...c,method:"POST",body:p})},yh0=()=>"/fiscalization/furs/settings/certificate",Yd0=async d=>g(yh0(),{...d,method:"GET"}),Oh0=()=>"/fiscalization/furs/settings/certificate",Jd0=async d=>g(Oh0(),{...d,method:"DELETE"});var rn={uploadFursCertificate:O(Wd0),getFursCertificate:O(Yd0),delete:O(Jd0)};var Sh0=d=>`/fiscalization/furs/premises/${d}/devices`,$d0=async(d,c)=>g(Sh0(d),{...c,method:"GET"}),Bh0=d=>`/fiscalization/furs/premises/${d}/devices`,Qd0=async(d,c,p)=>g(Bh0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),vh0=d=>`/fiscalization/furs/devices/${d}`,Xd0=async(d,c)=>g(vh0(d),{...c,method:"GET"}),Th0=d=>`/fiscalization/furs/devices/${d}`,ec0=async(d,c,p)=>g(Th0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)});var ln={listFursElectronicDevices:O($d0),registerFursElectronicDevice:O(Qd0),getFursElectronicDevice:O(Xd0),update:O(ec0)};var Eh0=()=>"/fiscalization/furs/internal-act/report.pdf",tc0=async d=>g(Eh0(),{...d,method:"GET"}),bh0=()=>"/fiscalization/furs/internal-act/report.docx",nc0=async d=>g(bh0(),{...d,method:"GET"});var dn={generateFursInternalActPdf:O(tc0),generateFursInternalActDocx:O(nc0)};var Ih0=()=>"/fiscalization/furs/premises",sc0=async d=>g(Ih0(),{...d,method:"GET"}),fh0=d=>`/fiscalization/furs/premises/${d}`,oc0=async(d,c)=>g(fh0(d),{...c,method:"GET"}),zh0=d=>`/fiscalization/furs/premises/${d}`,ic0=async(d,c,p)=>g(zh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),Dh0=()=>"/fiscalization/furs/premises/real-estate",ac0=async(d,c)=>g(Dh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Nh0=()=>"/fiscalization/furs/premises/movable",rc0=async(d,c)=>g(Nh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Mh0=d=>`/fiscalization/furs/premises/${d}/close`,lc0=async(d,c)=>g(Mh0(d),{...c,method:"POST"});var cn={listFursBusinessPremises:O(sc0),getFursBusinessPremise:O(oc0),update:O(ic0),registerFursRealEstatePremise:O(ac0),registerFursMovablePremise:O(rc0),closeFursBusinessPremise:O(lc0)};var _h0=()=>"/fiscalization/furs/settings",dc0=async d=>g(_h0(),{...d,method:"GET"}),Uh0=()=>"/fiscalization/furs/settings",cc0=async(d,c)=>g(Uh0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var un={list:O(dc0),update:O(cc0)};var hh0=()=>"/health/live",uc0=async d=>g(hh0(),{...d,method:"GET"}),Rh0=()=>"/health/ready",pc0=async d=>g(Rh0(),{...d,method:"GET"}),Ph0=()=>"/health",mc0=async d=>g(Ph0(),{...d,method:"GET"});var pn={livenessCheck:O(uc0),readinessCheck:O(pc0),healthCheck:O(mc0)};var Ch0=d=>`/invoices/shareable/${d}`,xc0=async(d,c)=>g(Ch0(d),{...c,method:"GET"}),wh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/invoices/shareable/${d}/html?${f}`:`/invoices/shareable/${d}/html`},gc0=async(d,c,p)=>g(wh0(d,c),{...p,method:"GET"}),Fh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/invoices/shareable/${d}/pdf?${f}`:`/invoices/shareable/${d}/pdf`},yc0=async(d,c,p)=>g(Fh0(d,c),{...p,method:"GET"}),Ah0=d=>`/invoices/shareable/${d}/eslog`,Oc0=async(d,c)=>g(Ah0(d),{...c,method:"GET"}),kh0=()=>"/invoices",Sc0=async(d,c)=>g(kh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jh0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invoices?${p}`:"/invoices"},Bc0=async(d,c)=>g(jh0(d),{...c,method:"GET"}),Lh0=()=>"/invoices/custom",vc0=async(d,c)=>g(Lh0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),Hh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/invoices/${d}?${f}`:`/invoices/${d}`},Tc0=async(d,c,p)=>g(Hh0(d,c),{...p,method:"GET"}),Gh0=d=>`/invoices/${d}`,Ec0=async(d,c,p)=>g(Gh0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),Kh0=d=>`/invoices/${d}/xrechnung`,bc0=async(d,c)=>g(Kh0(d),{...c,method:"GET"}),Zh0=d=>`/invoices/${d}/zugferd`,Ic0=async(d,c)=>g(Zh0(d),{...c,method:"GET"}),Vh0=d=>`/invoices/${d}/versions`,fc0=async(d,c)=>g(Vh0(d),{...c,method:"GET"}),qh0=(d,c)=>`/invoices/${d}/versions/${c}`,zc0=async(d,c,p)=>g(qh0(d,c),{...p,method:"GET"}),Wh0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/invoices/render?${p}`:"/invoices/render"},Dc0=async(d,c,p)=>g(Wh0(c),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(d)}),Yh0=d=>`/invoices/${d}/void`,Nc0=async(d,c,p)=>g(Yh0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),Jh0=d=>`/invoices/${d}/fiscalize`,Mc0=async(d,c)=>g(Jh0(d),{...c,method:"POST"}),$h0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/html?${f}`:`/documents/${d}/html`},_c0=async(d,c,p)=>g($h0(d,c),{...p,method:"GET"}),Qh0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/documents/${d}/pdf?${f}`:`/documents/${d}/pdf`},Uc0=async(d,c,p)=>g(Qh0(d,c),{...p,method:"GET"});function mn(d,c){let p=URL.createObjectURL(d),f=document.createElement("a");f.href=p,f.download=c,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(p);}var hc0=O(Uc0),Xh0=Object.assign(async(d,c,p,f)=>{let T=await hc0(d,p,f);mn(T,c);},{__sdkOptionsIndex:3}),xn={getShareableInvoice:O(xc0),getShareableInvoiceHtml:O(gc0),getShareableInvoicePdf:O(yc0),getShareableInvoiceEslog:O(Oc0),create:O(Sc0),list:J(Bc0),createCustom:O(vc0),get:O(Tc0),update:O(Ec0),downloadInvoiceXRechnung:O(bc0),downloadInvoiceZugferd:O(Ic0),getVersions:O(fc0),getVersion:O(zc0),renderInvoicePreview:O(Dc0),void:O(Nc0),fiscalizeInvoice:O(Mc0),renderHtml:O(_c0),renderPdf:hc0,downloadPdf:Xh0};var eR0=()=>"/items",Rc0=async(d,c)=>g(eR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),tR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/items?${p}`:"/items"},Pc0=async(d,c)=>g(tR0(d),{...c,method:"GET"}),nR0=d=>`/items/${d}`,Cc0=async(d,c,p)=>g(nR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),sR0=d=>`/items/${d}`,wc0=async(d,c)=>g(sR0(d),{...c,method:"DELETE"}),oR0=d=>`/items/${d}/restore`,Fc0=async(d,c)=>g(oR0(d),{...c,method:"POST"}),iR0=d=>`/items/${d}/permanent`,Ac0=async(d,c)=>g(iR0(d),{...c,method:"DELETE"});var gn={create:O(Rc0),list:J(Pc0),update:O(Cc0),delete:O(wc0),restoreItem:O(Fc0),permanentDeleteItem:O(Ac0)};var aR0=()=>"/legacy-migration/auth",kc0=async(d,c)=>g(aR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),rR0=()=>"/legacy-migration/jobs",jc0=async(d,c)=>g(rR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),lR0=()=>"/legacy-migration/jobs",Lc0=async d=>g(lR0(),{...d,method:"GET"}),dR0=d=>`/legacy-migration/jobs/${d}`,Hc0=async(d,c)=>g(dR0(d),{...c,method:"GET"});var yn={legacyMigrationAuth:O(kc0),create:O(jc0),listMigrationJobs:O(Lc0),getMigrationJob:O(Hc0)};var cR0=()=>"/locale/detect",Gc0=async d=>g(cR0(),{...d,method:"GET"});var On={detectLocale:O(Gc0)};var uR0=()=>"/order-integrations/shopify/authorize",Kc0=async(d,c)=>g(uR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),pR0=()=>"/order-integrations/shopify/resume-install",Zc0=async(d,c)=>g(pR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),mR0=d=>`/order-integrations/${d}/sync-shopify`,Vc0=async(d,c,p)=>g(mR0(d),{...p,method:"POST",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),xR0=()=>"/order-integrations",qc0=async(d,c)=>g(xR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),gR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/order-integrations?${p}`:"/order-integrations"},Wc0=async(d,c)=>g(gR0(d),{...c,method:"GET"}),yR0=d=>`/order-integrations/${d}`,Yc0=async(d,c)=>g(yR0(d),{...c,method:"GET"}),OR0=d=>`/order-integrations/${d}`,Jc0=async(d,c,p)=>g(OR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),SR0=d=>`/order-integrations/${d}`,$c0=async(d,c)=>g(SR0(d),{...c,method:"DELETE"});var Sn={authorizeShopify:O(Kc0),resumeShopifyInstall:O(Zc0),syncShopifyOrders:O(Vc0),create:O(qc0),list:J(Wc0),get:O(Yc0),update:O(Jc0),delete:O($c0)};var BR0=()=>"/orders",Qc0=async(d,c)=>g(BR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/orders?${p}`:"/orders"},Xc0=async(d,c)=>g(vR0(d),{...c,method:"GET"}),TR0=d=>`/orders/${d}`,eu0=async(d,c)=>g(TR0(d),{...c,method:"GET"}),ER0=d=>`/orders/${d}`,tu0=async(d,c,p)=>g(ER0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),bR0=d=>`/orders/${d}`,nu0=async(d,c)=>g(bR0(d),{...c,method:"DELETE"}),IR0=d=>`/orders/${d}/process`,su0=async(d,c)=>g(IR0(d),{...c,method:"POST"}),fR0=d=>`/orders/${d}/cancel`,ou0=async(d,c)=>g(fR0(d),{...c,method:"POST"}),zR0=d=>`/orders/${d}/reissue`,iu0=async(d,c)=>g(zR0(d),{...c,method:"POST"});var Bn={create:O(Qc0),list:J(Xc0),get:O(eu0),update:O(tu0),delete:O(nu0),processOrder:O(su0),cancelOrder:O(ou0),reissueOrder:O(iu0)};var DR0=()=>"/payment-reminders/send",au0=async(d,c)=>g(DR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var vn={sendPaymentReminder:O(au0)};var NR0=()=>"/payments",ru0=async(d,c)=>g(NR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/payments?${p}`:"/payments"},lu0=async(d,c)=>g(MR0(d),{...c,method:"GET"}),_R0=(d,c)=>{let p=new URLSearchParams;Object.entries(c||{}).forEach(([T,h])=>{h!==void 0&&p.append(T,h===null?"null":h.toString());});let f=p.toString();return f.length>0?`/payments/${d}?${f}`:`/payments/${d}`},du0=async(d,c,p)=>g(_R0(d,c),{...p,method:"GET"}),UR0=d=>`/payments/${d}`,cu0=async(d,c,p)=>g(UR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),hR0=d=>`/payments/${d}`,uu0=async(d,c)=>g(hR0(d),{...c,method:"DELETE"}),RR0=d=>`/payments/${d}/restore`,pu0=async(d,c)=>g(RR0(d),{...c,method:"POST"}),PR0=d=>`/payments/${d}/permanent`,mu0=async(d,c)=>g(PR0(d),{...c,method:"DELETE"});var Tn={create:O(ru0),list:J(lu0),get:O(du0),update:O(cu0),delete:O(uu0),restorePayment:O(pu0),permanentDeletePayment:O(mu0)};var CR0=()=>"/fiscalization/pt/atcud-series",xu0=async(d,c)=>g(CR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),wR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/fiscalization/pt/atcud-series?${p}`:"/fiscalization/pt/atcud-series"},gu0=async(d,c)=>g(wR0(d),{...c,method:"GET"}),FR0=d=>`/fiscalization/pt/atcud-series/${d}`,yu0=async(d,c)=>g(FR0(d),{...c,method:"GET"}),AR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/fiscalization/pt/atcud-series/active?${p}`:"/fiscalization/pt/atcud-series/active"},Ou0=async(d,c)=>g(AR0(d),{...c,method:"POST"});var En={create:O(xu0),list:J(gu0),get:O(yu0),getActive:O(Ou0)};var kR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/fiscalization/pt/saft/report?${p}`:"/fiscalization/pt/saft/report"},Su0=async(d,c)=>g(kR0(d),{...c,method:"GET"});var bn={generateReport:O(Su0)};var jR0=()=>"/recurring-invoices",Bu0=async(d,c)=>g(jR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/recurring-invoices?${p}`:"/recurring-invoices"},vu0=async(d,c)=>g(LR0(d),{...c,method:"GET"}),HR0=d=>`/recurring-invoices/${d}`,Tu0=async(d,c)=>g(HR0(d),{...c,method:"GET"}),GR0=d=>`/recurring-invoices/${d}`,Eu0=async(d,c,p)=>g(GR0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),KR0=d=>`/recurring-invoices/${d}`,bu0=async(d,c)=>g(KR0(d),{...c,method:"DELETE"}),ZR0=d=>`/recurring-invoices/${d}/restore`,Iu0=async(d,c)=>g(ZR0(d),{...c,method:"POST"}),VR0=d=>`/recurring-invoices/${d}/permanent`,fu0=async(d,c)=>g(VR0(d),{...c,method:"DELETE"}),qR0=d=>`/recurring-invoices/${d}/pause`,zu0=async(d,c)=>g(qR0(d),{...c,method:"POST"}),WR0=d=>`/recurring-invoices/${d}/resume`,Du0=async(d,c)=>g(WR0(d),{...c,method:"POST"}),YR0=d=>`/recurring-invoices/${d}/trigger`,Nu0=async(d,c)=>g(YR0(d),{...c,method:"POST"});var In={create:O(Bu0),list:J(vu0),get:O(Tu0),update:O(Eu0),delete:O(bu0),restoreRecurringInvoice:O(Iu0),permanentDeleteRecurringInvoice:O(fu0),pauseRecurringInvoice:O(zu0),resumeRecurringInvoice:O(Du0),triggerRecurringInvoice:O(Nu0)};var JR0=()=>"/revenue-recognition/settings",Mu0=async d=>g(JR0(),{...d,method:"GET"}),$R0=()=>"/revenue-recognition/settings",_u0=async(d,c)=>g($R0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),QR0=()=>"/revenue-recognition/backfill",Uu0=async(d,c)=>g(QR0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),XR0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/revenue-recognition/report?${p}`:"/revenue-recognition/report"},hu0=async(d,c)=>g(XR0(d),{...c,method:"GET"}),eP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/revenue-recognition/details?${p}`:"/revenue-recognition/details"},Ru0=async(d,c)=>g(eP0(d),{...c,method:"GET"});var fn={getSettings:O(Mu0),updateSettings:O(_u0),backfill:O(Uu0),getReport:O(hu0),getDetails:O(Ru0)};var tP0=()=>"/stripe-app/authorize",Pu0=async d=>g(tP0(),{...d,method:"GET"}),nP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/stripe-app/oauth/callback?${p}`:"/stripe-app/oauth/callback"},Cu0=async(d,c)=>g(nP0(d),{...c,method:"GET"}),sP0=()=>"/stripe-app/webhooks",wu0=async d=>g(sP0(),{...d,method:"POST"}),oP0=()=>"/stripe-app/marketplace-authorize",Fu0=async(d,c)=>g(oP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),iP0=()=>"/stripe-app/connect",Au0=async(d,c)=>g(iP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),aP0=()=>"/stripe-app/connection",ku0=async d=>g(aP0(),{...d,method:"GET"}),rP0=()=>"/stripe-app/connection",ju0=async d=>g(rP0(),{...d,method:"DELETE"}),lP0=()=>"/stripe-app/settings",Lu0=async d=>g(lP0(),{...d,method:"GET"}),dP0=()=>"/stripe-app/settings",Hu0=async(d,c)=>g(dP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),cP0=()=>"/stripe-app/invoices",Gu0=async(d,c)=>g(cP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),uP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/stripe-app/invoices?${p}`:"/stripe-app/invoices"},Ku0=async(d,c)=>g(uP0(d),{...c,method:"GET"}),pP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/stripe-app/invoices/lookup?${p}`:"/stripe-app/invoices/lookup"},Zu0=async(d,c)=>g(pP0(d),{...c,method:"GET"}),mP0=d=>`/stripe-app/invoices/${d}`,Vu0=async(d,c)=>g(mP0(d),{...c,method:"GET"}),xP0=()=>"/stripe-app/entity-connection",qu0=async d=>g(xP0(),{...d,method:"GET"}),gP0=()=>"/stripe-app/entity-connection",Wu0=async d=>g(gP0(),{...d,method:"DELETE"}),yP0=()=>"/stripe-app/entity-settings",Yu0=async d=>g(yP0(),{...d,method:"GET"}),OP0=()=>"/stripe-app/entity-settings",Ju0=async(d,c)=>g(OP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var zn={stripeAppAuthorize:O(Pu0),stripeAppOAuthCallback:O(Cu0),stripeAppWebhook:O(wu0),stripeAppMarketplaceAuthorize:O(Fu0),stripeAppConnect:O(Au0),stripeAppGetConnection:O(ku0),stripeAppDisconnect:O(ju0),stripeAppGetSettings:O(Lu0),stripeAppUpdateSettings:O(Hu0),stripeAppCreateInvoice:O(Gu0),stripeAppListInvoices:O(Ku0),stripeAppLookupInvoice:O(Zu0),stripeAppGetInvoice:O(Vu0),stripeAppEntityGetConnection:O(qu0),stripeAppEntityDisconnect:O(Wu0),stripeAppEntityGetSettings:O(Yu0),stripeAppEntityUpdateSettings:O(Ju0)};var SP0=()=>"/subscriptions",$u0=async d=>g(SP0(),{...d,method:"GET"}),BP0=()=>"/subscriptions/spending-limit",Qu0=async(d,c)=>g(BP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),vP0=()=>"/subscriptions/check-entity-limit",Xu0=async d=>g(vP0(),{...d,method:"GET"});var Dn={getCurrent:O($u0),update:O(Qu0),checkEntityLimit:O(Xu0)};var TP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/tax-rate-estimates/us?${p}`:"/tax-rate-estimates/us"},ep0=async(d,c)=>g(TP0(d),{...c,method:"GET"});var Nn={listUsTaxRateEstimates:O(ep0)};var EP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/tax-reports/kir?${p}`:"/tax-reports/kir"},tp0=async(d,c)=>g(EP0(d),{...c,method:"POST"}),bP0=()=>"/tax-reports/si/profile",np0=async d=>g(bP0(),{...d,method:"GET"}),IP0=()=>"/tax-reports/si/profile",sp0=async(d,c)=>g(IP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),fP0=()=>"/tax-reports/si/yearly/normirani/review",op0=async(d,c)=>g(fP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),zP0=()=>"/tax-reports/si/yearly/normirani/export",ip0=async(d,c)=>g(zP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),DP0=()=>"/tax-reports/si/accounting/vod/export",ap0=async(d,c)=>g(DP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Mn={generateKirExport:O(tp0),getSloveniaTaxProfile:O(np0),updateSloveniaTaxProfile:O(sp0),reviewSloveniaYearlyNormiraniReport:O(op0),exportSloveniaYearlyNormiraniReport:O(ip0),exportSloveniaVodXml:O(ap0)};var NP0=()=>"/taxes",rp0=async(d,c)=>g(NP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),MP0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/taxes?${p}`:"/taxes"},lp0=async(d,c)=>g(MP0(d),{...c,method:"GET"}),_P0=d=>`/taxes/${d}`,dp0=async(d,c,p)=>g(_P0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),UP0=d=>`/taxes/${d}`,cp0=async(d,c,p)=>g(UP0(d),{...p,method:"PUT",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),hP0=d=>`/taxes/${d}`,up0=async(d,c)=>g(hP0(d),{...c,method:"DELETE"}),RP0=d=>`/taxes/${d}/restore`,pp0=async(d,c)=>g(RP0(d),{...c,method:"POST"}),PP0=d=>`/taxes/${d}/permanent`,mp0=async(d,c)=>g(PP0(d),{...c,method:"DELETE"});var _n={create:O(rp0),list:J(lp0),update:O(dp0),replaceTax:O(cp0),delete:O(up0),restoreTax:O(pp0),permanentDeleteTax:O(mp0)};var CP0=()=>"/transaction-type/check",xp0=async(d,c)=>g(CP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Un={checkTransactionType:O(xp0)};var be="https://eu.spaceinvoices.com";var wP0=d=>`/documents/${d}/ujp`,gp0=async(d,c)=>g(wP0(d),{...c,method:"GET"});var hn={download:O(gp0)};var FP0=()=>"/upload/image",yp0=async(d,c)=>{let p=new FormData;return p.append("file",d.file),g(FP0(),{...c,method:"POST",body:p})};var Rn={uploadImage:O(yp0)};var AP0=()=>"/users/login",Op0=async(d,c)=>g(AP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),kP0=()=>"/users/signup",Sp0=async(d,c)=>g(kP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),jP0=()=>"/users/password-reset",Bp0=async(d,c)=>g(jP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),LP0=()=>"/users/password-reset/confirm",vp0=async(d,c)=>g(LP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),HP0=()=>"/users/me/accounts",Tp0=async d=>g(HP0(),{...d,method:"GET"}),GP0=()=>"/users/me",Ep0=async d=>g(GP0(),{...d,method:"GET"}),KP0=()=>"/users/me",bp0=async(d,c)=>g(KP0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),ZP0=()=>"/users/me/account-deletion",Ip0=async d=>g(ZP0(),{...d,method:"POST"}),VP0=()=>"/users/me/settings/furs",fp0=async(d,c)=>g(VP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),qP0=()=>"/users/me/settings/fina",zp0=async(d,c)=>g(qP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),WP0=()=>"/users/me/settings/pt",Dp0=async(d,c)=>g(WP0(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Pn={login:O(Op0),signup:O(Sp0),requestPasswordReset:O(Bp0),confirmPasswordReset:O(vp0),listMyAccounts:O(Tp0),getMe:O(Ep0),update:O(bp0),requestAccountDeletion:O(Ip0),updateFursSettings:O(fp0),updateFinaSettings:O(zp0),updatePtSettings:O(Dp0)};var YP0=()=>"/vies/check",Np0=async(d,c)=>g(YP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Cn={checkVies:O(Np0)};var JP0=()=>"/webhooks",Mp0=async(d,c)=>g(JP0(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)}),$P0=d=>{let c=new URLSearchParams;Object.entries(d||{}).forEach(([f,T])=>{T!==void 0&&c.append(f,T===null?"null":T.toString());});let p=c.toString();return p.length>0?`/webhooks?${p}`:"/webhooks"},_p0=async(d,c)=>g($P0(d),{...c,method:"GET"}),QP0=d=>`/webhooks/${d}`,Up0=async(d,c)=>g(QP0(d),{...c,method:"GET"}),XP0=d=>`/webhooks/${d}`,hp0=async(d,c,p)=>g(XP0(d),{...p,method:"PATCH",headers:{"Content-Type":"application/json",...p?.headers},body:JSON.stringify(c)}),eC0=d=>`/webhooks/${d}`,Rp0=async(d,c)=>g(eC0(d),{...c,method:"DELETE"}),tC0=d=>`/webhooks/${d}/test`,Pp0=async(d,c)=>g(tC0(d),{...c,method:"POST"});var nC0=d=>`/webhooks/${d}/rotate-secret`,Cp0=async(d,c)=>g(nC0(d),{...c,method:"POST"});var wn={create:O(Mp0),list:J(_p0),get:O(Up0),update:O(hp0),delete:O(Rp0),testWebhook:O(Pp0),rotateWebhookSecret:O(Cp0)};var sC0=()=>"/white-label-subscriptions",wp0=async d=>g(sC0(),{...d,method:"GET"}),oC0=()=>"/white-label-subscriptions/plans",Fp0=async d=>g(oC0(),{...d,method:"GET"}),iC0=d=>`/white-label-subscriptions/check-feature/${d}`,Ap0=async(d,c)=>g(iC0(d),{...c,method:"GET"}),aC0=d=>`/white-label-subscriptions/check-limit/${d}`,kp0=async(d,c)=>g(aC0(d),{...c,method:"GET"}),rC0=()=>"/white-label-subscriptions/billing-email",jp0=async(d,c)=>g(rC0(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(d)});var Fn={getCurrentWLSubscription:O(wp0),list:O(Fp0),checkWLFeature:O(Ap0),checkWLLimit:O(kp0),update:O(jp0)};var lC0=()=>"/white-labels/current",Lp0=async d=>g(lC0(),{...d,method:"GET"}),dC0=()=>"/white-labels/me",Hp0=async d=>g(dC0(),{...d,method:"GET"});var An={getCurrentWhiteLabel:O(Lp0),getMyWhiteLabel:O(Hp0)};var Ee=class{sdkConfig;accountWebhooks=G(Ut,()=>this.sdkConfig);activities=G(ht,()=>this.sdkConfig);advanceInvoices=G(Rt,()=>this.sdkConfig);businessUnits=G(Pt,()=>this.sdkConfig);companyRegistry=G(Ct,()=>this.sdkConfig);creditNotes=G(wt,()=>this.sdkConfig);currency=G(Ft,()=>this.sdkConfig);customers=G(At,()=>this.sdkConfig);deliveryNotes=G(kt,()=>this.sdkConfig);documents=G(Ht,()=>this.sdkConfig);eInvoicing=G(Gt,()=>this.sdkConfig);eSlog=G(Kt,()=>this.sdkConfig);email=G(Zt,()=>this.sdkConfig);entities=G(Vt,()=>this.sdkConfig);entityApiKeys=G(qt,()=>this.sdkConfig);entityInvitations=G(Wt,()=>this.sdkConfig);entityStats=G(Yt,()=>this.sdkConfig);entityUsers=G(Jt,()=>this.sdkConfig);estimates=G($t,()=>this.sdkConfig);expenses=G(Qt,()=>this.sdkConfig);exports=G(Xt,()=>this.sdkConfig);files=G(en,()=>this.sdkConfig);finaCertificate=G(tn,()=>this.sdkConfig);finaDevices=G(nn,()=>this.sdkConfig);finaPremises=G(sn,()=>this.sdkConfig);finaSettings=G(on,()=>this.sdkConfig);financialCategories=G(an,()=>this.sdkConfig);fursCertificate=G(rn,()=>this.sdkConfig);fursDevices=G(ln,()=>this.sdkConfig);fursInternalAct=G(dn,()=>this.sdkConfig);fursPremises=G(cn,()=>this.sdkConfig);fursSettings=G(un,()=>this.sdkConfig);health=G(pn,()=>this.sdkConfig);invoices=G(xn,()=>this.sdkConfig);items=G(gn,()=>this.sdkConfig);legacyMigration=G(yn,()=>this.sdkConfig);locale=G(On,()=>this.sdkConfig);orderIntegrations=G(Sn,()=>this.sdkConfig);orders=G(Bn,()=>this.sdkConfig);paymentReminders=G(vn,()=>this.sdkConfig);payments=G(Tn,()=>this.sdkConfig);ptAtcudSeries=G(En,()=>this.sdkConfig);ptSafT=G(bn,()=>this.sdkConfig);recurringInvoices=G(In,()=>this.sdkConfig);revenueRecognition=G(fn,()=>this.sdkConfig);stripeApp=G(zn,()=>this.sdkConfig);subscriptions=G(Dn,()=>this.sdkConfig);taxRateEstimates=G(Nn,()=>this.sdkConfig);taxReports=G(Mn,()=>this.sdkConfig);taxes=G(_n,()=>this.sdkConfig);transactionType=G(Un,()=>this.sdkConfig);ujp=G(hn,()=>this.sdkConfig);upload=G(Rn,()=>this.sdkConfig);users=G(Pn,()=>this.sdkConfig);vies=G(Cn,()=>this.sdkConfig);webhooks=G(wn,()=>this.sdkConfig);whiteLabelSubscriptions=G(Fn,()=>this.sdkConfig);whiteLabels=G(An,()=>this.sdkConfig);constructor(c){let p=typeof c=="string"?{accessToken:c}:c,f=typeof p.accessToken=="function"?p.accessToken:()=>p.accessToken;this.sdkConfig={baseUrl:p.basePath??be,getAccessToken:f,clientName:p.clientName??"js-sdk",onUnauthorized:p.onUnauthorized,requestTimeoutMs:p.requestTimeoutMs,accountId:p.accountId??null};}};function cC0(d){let c=typeof d=="string"?{accessToken:d}:d,p=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;Ba0({baseUrl:c.basePath??be,getAccessToken:p,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),_t(c.accountId??null);}
|
|
180
180
|
export{mC0 as AccountInfoRole,gC0 as AccountWebhookDeliveryStatus,OC0 as AccountWebhookResponseEventsItem,BC0 as AccountWebhookWithSecretEventsItem,TC0 as AddEntityUserBodyRole,bC0 as AdvanceInvoiceCalculationMode,fC0 as AdvanceInvoiceItemClassification,DC0 as AdvanceInvoiceItemType,MC0 as AdvanceInvoiceTransactionType,UC0 as AvailablePlansAllowedPaymentProvidersItem,RC0 as AvailablePlansBillingProfile,CC0 as AvailablePlansCurrencyCode,FC0 as AvailablePlansStripePublishableKeyKind,kC0 as BusinessUnitSettingsPdfTemplate,kn as CLIENT_HEADER_NAME,GC0 as CalculateDocumentPreviewCalculationMode,ZC0 as CalculateDocumentPreviewType,LC0 as CalculatedItemType,qC0 as CalculationSettingsDefaultMode,YC0 as CheckEInvoicingRecipientRequestDocumentType,$C0 as CompleteAdvanceInvoicePreviewCalculationMode,XC0 as CompleteAdvanceInvoicePreviewCreationSource,t20 as CompleteCreditNotePreviewCalculationMode,s20 as CompleteCreditNotePreviewCreationSource,i20 as CompleteDeliveryNotePreviewCalculationMode,r20 as CompleteDeliveryNotePreviewCreationSource,d20 as CompleteEstimatePreviewCalculationMode,u20 as CompleteEstimatePreviewCreationSource,m20 as CompleteEstimatePreviewTitleType,g20 as CompleteInvoicePreviewCalculationMode,O20 as CompleteInvoicePreviewCreationSource,B20 as CreateAccountWebhookBodyEventsItem,T20 as CreateAdvanceInvoiceCalculationMode,b20 as CreateCheckoutRequestBillingInterval,f20 as CreateCreditNoteCalculationMode,D20 as CreateCustomerBodyContactType,M20 as CreateDeliveryNoteCalculationMode,U20 as CreateDocumentItemClassification,R20 as CreateDocumentItemType,C20 as CreateDocumentPaymentType,F20 as CreateEntityBodyEnvironment,k20 as CreateEntityBodySettingsPdfTemplate,L20 as CreateEstimateCalculationMode,G20 as CreateEstimateTitleType,Z20 as CreateExpenseBodyCalculationMode,q20 as CreateExpenseBodyPaymentsItemType,Y20 as CreateExpenseBodyTransactionType,$20 as CreateExpenseBodyType,X20 as CreateExpenseItemClassification,tw0 as CreateExpenseItemType,sw0 as CreateExpensePaymentBodyType,iw0 as CreateFinaInvoiceDataPaymentType,rw0 as CreateInvoiceCalculationMode,dw0 as CreateItemBodyClassification,uw0 as CreateMigrationJobRequestEnvironment,mw0 as CreateMigrationJobResponseStatus,gw0 as CreateOrderBodyPaymentStatus,Ow0 as CreateOrderBodySource,Bw0 as CreateOrderIntegrationBodySource,Tw0 as CreatePaymentBodyType,bw0 as CreatePtAtcudSeriesBodyDocumentType,fw0 as CreateRecurringInvoiceBodyFrequency,Dw0 as CreateWebhookBodyEventsItem,Mw0 as CreationSource,Uw0 as CreditNoteCalculationMode,Rw0 as CreditNoteItemClassification,Cw0 as CreditNoteItemType,Fw0 as CreditNoteTransactionType,kw0 as CurrentSubscriptionAllowedPaymentProvidersItem,Lw0 as CurrentSubscriptionBillingProfile,Gw0 as CurrentSubscriptionCurrencyCode,Zw0 as CurrentSubscriptionPaymentProvider,qw0 as CurrentSubscriptionStripePublishableKeyKind,Yw0 as CustomCreateAdvanceInvoiceCalculationMode,$w0 as CustomCreateCreditNoteCalculationMode,Xw0 as CustomCreateDeliveryNoteCalculationMode,tF0 as CustomCreateEstimateCalculationMode,sF0 as CustomCreateEstimateTitleType,iF0 as CustomCreateExpenseTransactionType,rF0 as CustomCreateExpenseType,dF0 as CustomCreateInvoiceCalculationMode,uF0 as CustomDocumentItemClassification,mF0 as CustomDocumentItemType,gF0 as CustomExpenseItemClassification,OF0 as CustomExpenseItemType,BF0 as CustomExpenseWriteCalculationMode,TF0 as CustomExpenseWritePaymentsItemType,bF0 as CustomExpenseWriteTransactionType,fF0 as CustomExpenseWriteType,be as DEFAULT_BASE_URL,DF0 as DeleteDocumentType,MF0 as DeliveryNoteCalculationMode,UF0 as DeliveryNoteItemClassification,RF0 as DeliveryNoteItemType,CF0 as DeliveryNoteTransactionType,FF0 as DocumentCalculationCalculationMode,kF0 as DocumentCalculationTransactionType,LF0 as DocumentItemRevenueRecognitionMethod,GF0 as DocumentRelationRelatedDocumentTitleType,ZF0 as DocumentRelationRelatedDocumentType,qF0 as DocumentRelationSourceType,YF0 as DocumentRelationTargetType,$F0 as DocumentVersionDocumentType,XF0 as DownloadDocumentEslogType,t50 as EInvoicingEnrollmentEnvironment,s50 as EInvoicingEnrollmentState,i50 as EInvoicingRecipientCheckResponseDocumentType,r50 as EmailSenderDomainVerificationStatus,d50 as EmailSenderEffectiveSource,u50 as EmailSenderEmailVerificationStatus,m50 as EmailSenderVerificationStatus,g50 as EntityApiKeyEnvironment,O50 as EntityBankAccountType,B50 as EntityEnvironment,T50 as EntityInvitationPreviewRole,b50 as EntityInvitationPreviewStatus,f50 as EntityInvitationRole,D50 as EntityInvitationStatus,M50 as EntitySettingsPdfTemplate,U50 as EntitySettingsUpdatePdfTemplate,R50 as EntityUserRole,C50 as EntityUsersAccessAccountRole,F50 as EntityUsersAccessEntityRole,k50 as EslogDataValidationStatus,L50 as EslogExportByDateRangeTypesItem,G50 as EstimateCalculationMode,Z50 as EstimateItemClassification,q50 as EstimateItemType,Y50 as EstimateTitleType,$50 as EstimateTransactionType,X50 as ExpenseCategoryReportResponseBasis,tA0 as ExpenseCategoryReportResponseCalculationMode,sA0 as ExpenseCategoryReportResponseGroupBy,iA0 as ExpenseItemClassification,rA0 as ExpenseItemRecognitionMethod,dA0 as ExpenseItemType,uA0 as ExpenseRecognitionJobSimulationMode,mA0 as ExpenseRecognitionJobStatus,gA0 as ExpenseRecognitionJobWarningsItemCode,OA0 as ExpenseRecognitionSettingsDefaultMethod,BA0 as ExpenseRecognitionSettingsResponseDefaultMethod,TA0 as ExpenseSummaryClassification,bA0 as ExpenseType,fA0 as ExportDocumentsFormat,DA0 as ExportDocumentsLanguage,MA0 as ExportDocumentsType,UA0 as ExportRevenueByCategoryFormat,RA0 as ExportRevenueByCategoryLanguage,CA0 as ExportSalesPerItemFormat,FA0 as ExportSalesPerItemLanguage,kA0 as FinaFiscalizationResponseStatus,LA0 as FinalizeDocumentType,GA0 as FiscalizeDocumentType,ZA0 as FiscalizedOutputRegistrationFiscalizationProvider,qA0 as FursFiscalizationResponseStatus,YA0 as FursPremiseSuccessResponseEnvironment,$A0 as GermanEInvoicingDataValidationStatus,XA0 as GetActivePtAtcudSeriesDocumentType,tk0 as GetActivities200DataItemActorType,sk0 as GetEntitiesEnvironment,ik0 as GetEslogExportStatus200Status,rk0 as GetExpenseCategoryReportBasis,dk0 as GetExpenseCategoryReportGroupBy,uk0 as GetFilesCategory,mk0 as GetFinaSettings200CertificateStatus,gk0 as GetFinaSettings200NumberingSequence,Ok0 as GetFursSettings200CertificateStatus,Bk0 as GetFursSettings200NumberingStrategy,Tk0 as GetNextDocumentNumberType,bk0 as GetPdfExportStatus200Status,fk0 as GetRevenueRecognitionDetailsBasis,Dk0 as GetRevenueRecognitionDetailsGroupBy,Mk0 as GetRevenueRecognitionReportBasis,Uk0 as GetRevenueRecognitionReportGroupBy,Rk0 as GetShareableAdvanceInvoiceHtmlLanguage,Ck0 as GetShareableAdvanceInvoiceHtmlLocale,Fk0 as GetShareableAdvanceInvoicePdfLanguage,kk0 as GetShareableAdvanceInvoicePdfLocale,Lk0 as GetShareableCreditNoteHtmlLanguage,Gk0 as GetShareableCreditNoteHtmlLocale,Zk0 as GetShareableCreditNotePdfLanguage,qk0 as GetShareableCreditNotePdfLocale,Yk0 as GetShareableDeliveryNoteHtmlLanguage,$k0 as GetShareableDeliveryNoteHtmlLocale,Xk0 as GetShareableDeliveryNotePdfLanguage,tj0 as GetShareableDeliveryNotePdfLocale,sj0 as GetShareableEstimateHtmlLanguage,ij0 as GetShareableEstimateHtmlLocale,rj0 as GetShareableEstimatePdfLanguage,dj0 as GetShareableEstimatePdfLocale,uj0 as GetShareableInvoiceHtmlLanguage,mj0 as GetShareableInvoiceHtmlLocale,gj0 as GetShareableInvoicePdfLanguage,Oj0 as GetShareableInvoicePdfLocale,Bj0 as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,Tj0 as GetSloveniaTaxProfile200BusinessForm,bj0 as GetSloveniaTaxProfile200BusinessFormSource,fj0 as GetSloveniaTaxProfile200IncomeTaxRegime,Dj0 as GetSloveniaTaxProfile200InferredBusinessForm,Mj0 as GetSloveniaTaxProfile200TaxResidency,Uj0 as GetSloveniaTaxProfile200VatProfile,Rj0 as GetSloveniaTaxProfile200YearlyReportingAccountingType,Cj0 as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,Fj0 as InvoiceCalculationMode,kj0 as InvoiceItemClassification,Lj0 as InvoiceItemType,Gj0 as InvoiceTransactionType,Zj0 as ItemClassification,qj0 as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,Yj0 as LineDiscountType,$j0 as ListPtAtcudSeriesDocumentType,Xj0 as MigrationJobResponseStatus,tL0 as OrderBasePaymentStatus,sL0 as OrderBaseSource,iL0 as OrderBaseStatus,rL0 as OrderIntegrationBaseAutoProcessOn,dL0 as OrderIntegrationBaseSource,uL0 as OrderItemKind,mL0 as PartialAdvanceInvoicePreviewCalculationMode,gL0 as PartialAdvanceInvoicePreviewCreationSource,OL0 as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,BL0 as PartialAdvanceInvoicePreviewItemsItemType,TL0 as PartialCreditNotePreviewCalculationMode,bL0 as PartialCreditNotePreviewCreationSource,fL0 as PartialCreditNotePreviewItemsItemDiscountsItemType,DL0 as PartialCreditNotePreviewItemsItemType,ML0 as PartialDeliveryNotePreviewCalculationMode,UL0 as PartialDeliveryNotePreviewCreationSource,RL0 as PartialDeliveryNotePreviewItemsItemDiscountsItemType,CL0 as PartialDeliveryNotePreviewItemsItemType,FL0 as PartialEstimatePreviewCalculationMode,kL0 as PartialEstimatePreviewCreationSource,LL0 as PartialEstimatePreviewItemsItemDiscountsItemType,GL0 as PartialEstimatePreviewItemsItemType,ZL0 as PartialEstimatePreviewTitleType,qL0 as PartialInvoicePreviewCalculationMode,YL0 as PartialInvoicePreviewCreationSource,$L0 as PartialInvoicePreviewItemsItemDiscountsItemType,XL0 as PartialInvoicePreviewItemsItemType,tH0 as PatchEntityBodySettingsPdfTemplate,sH0 as PatchMeBodyLocale,iH0 as PaymentType,rH0 as PdfExportByDateRangeLanguage,dH0 as PdfExportByDateRangeLocale,uH0 as PdfExportByDateRangeTypesItem,mH0 as PdfExportByDocumentIdsLanguage,gH0 as PdfExportByDocumentIdsLocale,OH0 as PermanentDeleteDocumentType,BH0 as PtAtcudSeriesDocumentType,TH0 as RecurringInvoiceBaseFrequency,bH0 as RecurringInvoiceBaseStatus,fH0 as RegisterDocumentOutputType,DH0 as RegisterFursMovablePremiseBodyMovablePremisePremiseType,MH0 as RenderAdvanceInvoicePreviewEpcQrEnabled,UH0 as RenderAdvanceInvoicePreviewHub3QrEnabled,RH0 as RenderAdvanceInvoicePreviewPartial,CH0 as RenderAdvanceInvoicePreviewTemplate,FH0 as RenderAdvanceInvoicePreviewUpnQrDisplayMode,kH0 as RenderAdvanceInvoicePreviewUpnQrEnabled,LH0 as RenderCreditNotePreviewEpcQrEnabled,GH0 as RenderCreditNotePreviewHub3QrEnabled,ZH0 as RenderCreditNotePreviewPartial,qH0 as RenderCreditNotePreviewTemplate,YH0 as RenderCreditNotePreviewUpnQrDisplayMode,$H0 as RenderCreditNotePreviewUpnQrEnabled,XH0 as RenderDeliveryNotePreviewEpcQrEnabled,tG0 as RenderDeliveryNotePreviewHub3QrEnabled,sG0 as RenderDeliveryNotePreviewPartial,iG0 as RenderDeliveryNotePreviewTemplate,rG0 as RenderDeliveryNotePreviewUpnQrDisplayMode,dG0 as RenderDeliveryNotePreviewUpnQrEnabled,uG0 as RenderDocumentHtmlTemplate,mG0 as RenderDocumentPdfTemplate,gG0 as RenderEstimatePreviewEpcQrEnabled,OG0 as RenderEstimatePreviewHub3QrEnabled,BG0 as RenderEstimatePreviewPartial,TG0 as RenderEstimatePreviewTemplate,bG0 as RenderEstimatePreviewUpnQrDisplayMode,fG0 as RenderEstimatePreviewUpnQrEnabled,DG0 as RenderInvoicePreviewEpcQrEnabled,MG0 as RenderInvoicePreviewHub3QrEnabled,UG0 as RenderInvoicePreviewPartial,RG0 as RenderInvoicePreviewTemplate,CG0 as RenderInvoicePreviewUpnQrDisplayMode,FG0 as RenderInvoicePreviewUpnQrEnabled,kG0 as RestoreDocumentType,LG0 as RevenueRecognitionDetailsResponseCalculationMode,GG0 as RevenueRecognitionReportResponseBasis,ZG0 as RevenueRecognitionReportResponseCalculationMode,qG0 as RevenueRecognitionReportResponseGroupBy,YG0 as RevenueRecognitionSettingsDefaultMethod,$G0 as RevenueRecognitionSettingsResponseDefaultMethod,XG0 as ReviewSloveniaYearlyNormiraniReport200FilingKind,t30 as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,s30 as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,i30 as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,r30 as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,d30 as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,u30 as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,m30 as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,g30 as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,O30 as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,B30 as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,T30 as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,b30 as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,f30 as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,D30 as SendDocument200Status,M30 as SendEmail200Status,U30 as SendEmailBodyLanguage,R30 as SendEmailBodyLocale,C30 as SendPaymentReminderBodyLocale,F30 as SendPaymentReminderResponseStatus,k30 as SloveniaAccountingExportsSettingsPreferredFormat,L30 as SloveniaEntitySettingsBusinessForm,G30 as SloveniaEntitySettingsIncomeTaxRegime,Z30 as SloveniaEntitySettingsTaxResidency,q30 as SloveniaEntitySettingsVatProfile,Y30 as SloveniaYearlyReportingSettingsAccountingType,$30 as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,Ee as SpaceInvoices,X30 as StartEslogExport202Status,t40 as StartPdfExport202Status,s40 as StatsQueryRequestMetricsItemType,i40 as StatsQueryRequestOrderByItemDirection,r40 as StatsQueryRequestTable,d40 as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,u40 as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,m40 as SubscriptionTier,g40 as SyncShopifyOrdersResponseCompletionState,O40 as TransactionTypeCheckResponseTransactionType,B40 as UjpDataValidationStatus,T40 as UpdateAccountWebhookBodyEventsItem,b40 as UpdateCustomerBodyContactType,f40 as UpdateEntityUserRoleBodyRole,D40 as UpdateEstimateTitleType,M40 as UpdateExpenseBodyCalculationMode,U40 as UpdateExpenseBodyTransactionType,R40 as UpdateExpenseBodyType,C40 as UpdateExpenseRecognitionSettingsDefaultMethod,F40 as UpdateFinaSettings200CertificateStatus,k40 as UpdateFinaSettings200NumberingSequence,L40 as UpdateFinaSettingsBodyNumberingSequence,G40 as UpdateFursSettings200CertificateStatus,Z40 as UpdateFursSettings200NumberingStrategy,q40 as UpdateFursSettingsBodyNumberingStrategy,Y40 as UpdateItemBodyClassification,$40 as UpdateOrderBodyPaymentStatus,X40 as UpdateOrderIntegrationBodyAutoProcessOn,t10 as UpdatePaymentBodyType,s10 as UpdateRecurringInvoiceBodyFrequency,i10 as UpdateRevenueRecognitionSettingsDefaultMethod,r10 as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,d10 as UpdateSloveniaTaxProfile200BusinessForm,u10 as UpdateSloveniaTaxProfile200BusinessFormSource,m10 as UpdateSloveniaTaxProfile200IncomeTaxRegime,g10 as UpdateSloveniaTaxProfile200InferredBusinessForm,O10 as UpdateSloveniaTaxProfile200TaxResidency,B10 as UpdateSloveniaTaxProfile200VatProfile,T10 as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,b10 as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,f10 as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,D10 as UpdateSloveniaTaxProfileBodyBusinessForm,M10 as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,U10 as UpdateSloveniaTaxProfileBodyTaxResidency,R10 as UpdateSloveniaTaxProfileBodyVatProfile,C10 as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,F10 as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,k10 as UpdateWebhookBodyEventsItem,L10 as UploadFileBodyCategory,G10 as UpnQrSettingsDisplayMode,Z10 as ValidateDocumentEslogType,q10 as WebhookDeliveryStatus,Y10 as WebhookResponseEventsItem,$10 as WebhookWithSecretEventsItem,X10 as WhiteLabelConfigEnvironment,tK0 as WhiteLabelPlanCurrencyCode,Ut as accountWebhooks,ht as activities,Rt as advanceInvoices,Pt as businessUnits,Ct as companyRegistry,wt as creditNotes,Ft as currency,At as customers,Ee as default,kt as deliveryNotes,Ht as documents,mn as downloadBlob,Gt as eInvoicing,Kt as eSlog,Zt as email,Vt as entities,qt as entityApiKeys,Wt as entityInvitations,Yt as entityStats,Jt as entityUsers,$t as estimates,Qt as expenses,Xt as exports,en as files,tn as finaCertificate,nn as finaDevices,sn as finaPremises,on as finaSettings,an as financialCategories,rn as fursCertificate,ln as fursDevices,dn as fursInternalAct,cn as fursPremises,un as fursSettings,wN0 as getAccountId,fe as getClientHeaders,pn as health,cC0 as initSDK,xn as invoices,gn as items,yn as legacyMigration,On as locale,Sn as orderIntegrations,Bn as orders,vn as paymentReminders,Tn as payments,En as ptAtcudSeries,bn as ptSafT,In as recurringInvoices,fn as revenueRecognition,_t as setAccountId,zn as stripeApp,Dn as subscriptions,Nn as taxRateEstimates,Mn as taxReports,_n as taxes,Un as transactionType,hn as ujp,Rn as upload,Pn as users,Cn as vies,wn as webhooks,Fn as whiteLabelSubscriptions,An as whiteLabels,Sa0 as zod};
|