@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.cjs
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__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),vf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(K6g),entity_id:e__namespace.string().max(Z6g),document_id:e__namespace.string().max(V6g),name:e__namespace.string().max(q6g),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(W6g).max(Y6g),day_of_week:e__namespace.number().min(J6g).max($6g).nullish(),day_of_month:e__namespace.number().min(Q6g).max(X6g).nullish(),month_of_year:e__namespace.number().min(e$g).max(t$g).nullish(),start_date:e__namespace.string().max(n$g),end_date:e__namespace.string().max(s$g).nullish(),next_run_date:e__namespace.string().max(o$g).nullish(),last_run_date:e__namespace.string().max(i$g).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(a$g).nullish(),payment_terms_days:e__namespace.number().min(r$g).max(l$g).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(d$g).max(c$g),last_generated_invoice_id:e__namespace.string().max(u$g).nullish(),last_error:e__namespace.string().max(p$g).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",m$g).describe("Unique resource identifier")}),bf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(x$g),entity_id:e__namespace.string().max(g$g),document_id:e__namespace.string().max(y$g),name:e__namespace.string().max(O$g),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(S$g).max(B$g),day_of_week:e__namespace.number().min(v$g).max(T$g).nullish(),day_of_month:e__namespace.number().min(E$g).max(b$g).nullish(),month_of_year:e__namespace.number().min(I$g).max(f$g).nullish(),start_date:e__namespace.string().max(z$g),end_date:e__namespace.string().max(D$g).nullish(),next_run_date:e__namespace.string().max(N$g).nullish(),last_run_date:e__namespace.string().max(M$g).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(_$g).nullish(),payment_terms_days:e__namespace.number().min(U$g).max(h$g).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(R$g).max(P$g),last_generated_invoice_id:e__namespace.string().max(C$g).nullish(),last_error:e__namespace.string().max(w$g).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),F$g=/^[a-z]{3,4}_[0-9a-f]{24}$/,ff0=e__namespace.object({id:e__namespace.stringFormat("resource-id",F$g).describe("Unique resource identifier")}),zf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({name:e__namespace.string().max(A$g).optional(),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e__namespace.number().min(k$g).max(j$g).optional(),day_of_week:e__namespace.number().min(L$g).max(H$g).nullish(),day_of_month:e__namespace.number().min(G$g).max(K$g).nullish(),month_of_year:e__namespace.number().min(Z$g).max(V$g).nullish(),start_date:e__namespace.string().regex(q$g).optional(),end_date:e__namespace.string().regex(W$g).nullish(),auto_send:e__namespace.boolean().optional(),create_as_draft:e__namespace.boolean().optional(),send_to:e__namespace.string().max(Y$g).nullish(),payment_terms_days:e__namespace.number().min(J$g).max($$g).nullish(),notify_owner:e__namespace.boolean().optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Q$g),entity_id:e__namespace.string().max(X$g),document_id:e__namespace.string().max(eQg),name:e__namespace.string().max(tQg),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(nQg).max(sQg),day_of_week:e__namespace.number().min(oQg).max(iQg).nullish(),day_of_month:e__namespace.number().min(aQg).max(rQg).nullish(),month_of_year:e__namespace.number().min(lQg).max(dQg).nullish(),start_date:e__namespace.string().max(cQg),end_date:e__namespace.string().max(uQg).nullish(),next_run_date:e__namespace.string().max(pQg).nullish(),last_run_date:e__namespace.string().max(mQg).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(xQg).nullish(),payment_terms_days:e__namespace.number().min(gQg).max(yQg).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(OQg).max(SQg),last_generated_invoice_id:e__namespace.string().max(BQg).nullish(),last_error:e__namespace.string().max(vQg).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),TQg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Mf0=e__namespace.object({id:e__namespace.stringFormat("resource-id",TQg).describe("Unique resource identifier")}),_f0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.stringFormat("resource-id",EQg).describe("Unique resource identifier")}),hf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(bQg),entity_id:e__namespace.string().max(IQg),document_id:e__namespace.string().max(fQg),name:e__namespace.string().max(zQg),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(DQg).max(NQg),day_of_week:e__namespace.number().min(MQg).max(_Qg).nullish(),day_of_month:e__namespace.number().min(UQg).max(hQg).nullish(),month_of_year:e__namespace.number().min(RQg).max(PQg).nullish(),start_date:e__namespace.string().max(CQg),end_date:e__namespace.string().max(wQg).nullish(),next_run_date:e__namespace.string().max(FQg).nullish(),last_run_date:e__namespace.string().max(AQg).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(kQg).nullish(),payment_terms_days:e__namespace.number().min(jQg).max(LQg).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(HQg).max(GQg),last_generated_invoice_id:e__namespace.string().max(KQg).nullish(),last_error:e__namespace.string().max(ZQg).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),VQg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Pf0=e__namespace.object({id:e__namespace.stringFormat("resource-id",VQg).describe("Unique resource identifier")}),Cf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.stringFormat("resource-id",qQg).describe("Unique resource identifier")}),Ff0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(WQg),entity_id:e__namespace.string().max(YQg),document_id:e__namespace.string().max(JQg),name:e__namespace.string().max($Qg),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(QQg).max(XQg),day_of_week:e__namespace.number().min(eXg).max(tXg).nullish(),day_of_month:e__namespace.number().min(nXg).max(sXg).nullish(),month_of_year:e__namespace.number().min(oXg).max(iXg).nullish(),start_date:e__namespace.string().max(aXg),end_date:e__namespace.string().max(rXg).nullish(),next_run_date:e__namespace.string().max(lXg).nullish(),last_run_date:e__namespace.string().max(dXg).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(cXg).nullish(),payment_terms_days:e__namespace.number().min(uXg).max(pXg).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(mXg).max(xXg),last_generated_invoice_id:e__namespace.string().max(gXg).nullish(),last_error:e__namespace.string().max(yXg).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),OXg=/^[a-z]{3,4}_[0-9a-f]{24}$/,kf0=e__namespace.object({id:e__namespace.stringFormat("resource-id",OXg).describe("Unique resource identifier")}),jf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(SXg),entity_id:e__namespace.string().max(BXg),document_id:e__namespace.string().max(vXg),name:e__namespace.string().max(TXg),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(EXg).max(bXg),day_of_week:e__namespace.number().min(IXg).max(fXg).nullish(),day_of_month:e__namespace.number().min(zXg).max(DXg).nullish(),month_of_year:e__namespace.number().min(NXg).max(MXg).nullish(),start_date:e__namespace.string().max(_Xg),end_date:e__namespace.string().max(UXg).nullish(),next_run_date:e__namespace.string().max(hXg).nullish(),last_run_date:e__namespace.string().max(RXg).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(PXg).nullish(),payment_terms_days:e__namespace.number().min(CXg).max(wXg).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(FXg).max(AXg),last_generated_invoice_id:e__namespace.string().max(kXg).nullish(),last_error:e__namespace.string().max(jXg).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),LXg=/^[a-z]{3,4}_[0-9a-f]{24}$/,Hf0=e__namespace.object({id:e__namespace.stringFormat("resource-id",LXg).describe("Unique resource identifier")}),HXg=100,Gf0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.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__namespace.object({id:e__namespace.string().max(GXg),entity_id:e__namespace.string().max(KXg),document_id:e__namespace.string().max(ZXg),name:e__namespace.string().max(VXg),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(qXg).max(WXg),day_of_week:e__namespace.number().min(YXg).max(JXg).nullish(),day_of_month:e__namespace.number().min($Xg).max(QXg).nullish(),month_of_year:e__namespace.number().min(XXg).max(ee0).nullish(),start_date:e__namespace.string().max(te0),end_date:e__namespace.string().max(ne0).nullish(),next_run_date:e__namespace.string().max(se0).nullish(),last_run_date:e__namespace.string().max(oe0).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(ie0).nullish(),payment_terms_days:e__namespace.number().min(ae0).max(re0).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(le0).max(de0),last_generated_invoice_id:e__namespace.string().max(ce0).nullish(),last_error:e__namespace.string().max(ue0).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({default_method:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({default_method:e__namespace.union([e__namespace.literal("off"),e__namespace.literal("service_period_daily"),e__namespace.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__namespace.object({default_method:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({date_from:e__namespace.string().nullish().describe("Optional document issue date lower bound in YYYY-MM-DD format."),date_to:e__namespace.string().nullish().describe("Optional document issue date upper bound in YYYY-MM-DD format."),dry_run:e__namespace.boolean().default(ge0).describe("When true, counts eligible documents without writing entries.")}),Qf0=e__namespace.object({processed_documents:e__namespace.number(),generated_entries:e__namespace.number(),dry_run:e__namespace.boolean()}),ye0="recognized",Oe0="financial_category",Xf0=e__namespace.object({date_from:e__namespace.string().describe("Report start date in YYYY-MM-DD format."),date_to:e__namespace.string().describe("Report end date in YYYY-MM-DD format."),basis:e__namespace.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__namespace.enum(["financial_category"]).default(Oe0).describe("Report grouping dimension.")}),ez0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({basis:e__namespace.enum(["recognized","deferred"]),group_by:e__namespace.enum(["financial_category"]),calculation_mode:e__namespace.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__namespace.array(e__namespace.object({period:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string()})),series:e__namespace.array(e__namespace.object({key:e__namespace.string(),financial_category_id:e__namespace.string().nullable(),name:e__namespace.string(),color:e__namespace.string().nullable(),values:e__namespace.array(e__namespace.number()),total:e__namespace.number()})),totals:e__namespace.array(e__namespace.number()),total:e__namespace.number(),currency_code:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string()}),Se0="recognized",Be0="financial_category",nz0=e__namespace.object({date_from:e__namespace.string().describe("Report start date in YYYY-MM-DD format."),date_to:e__namespace.string().describe("Report end date in YYYY-MM-DD format."),basis:e__namespace.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__namespace.enum(["financial_category"]).default(Be0).describe("Report grouping dimension."),financial_category_id:e__namespace.string().nullish().describe("Optional category ID. Use null/omit for all categories.")}),sz0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({calculation_mode:e__namespace.enum(["recognition_entries","document_date_fallback","mixed"]),data:e__namespace.array(e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.string(),document_number:e__namespace.string(),document_date:e__namespace.string(),document_item_id:e__namespace.string(),customer_id:e__namespace.string().nullable(),customer_name:e__namespace.string().nullable(),financial_category_id:e__namespace.string().nullable(),financial_category_name:e__namespace.string(),currency_code:e__namespace.string(),source_amount:e__namespace.number(),recognized_amount:e__namespace.number(),period_start:e__namespace.string(),period_end:e__namespace.string(),service_period_start:e__namespace.string(),service_period_end:e__namespace.string(),method:e__namespace.string()})),total:e__namespace.number(),currency_code:e__namespace.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__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID from the Stripe App context")}),az0=e__namespace.object({redirect_url:e__namespace.url().describe("URL to redirect the user to for authentication")}),rz0=e__namespace.object({code:e__namespace.string().min(1).describe("OAuth authorization code from Stripe"),state:e__namespace.string().min(1).describe("Encrypted state token from the authorize step")}),lz0=e__namespace.object({received:e__namespace.boolean().describe("Whether the webhook was received successfully")}),dz0=e__namespace.object({entity_id:e__namespace.string().min(1).describe("Entity ID to connect to the Stripe account")}),cz0=e__namespace.object({redirect_url:e__namespace.url().describe("URL to redirect the user to for authentication")}),uz0=e__namespace.object({state:e__namespace.string().min(1).describe("State token from the authorize step"),entity_id:e__namespace.string().min(1).describe("Entity ID to connect to the Stripe account"),force:e__namespace.boolean().optional().describe("If true, disconnects any existing connection for this Stripe account before connecting")}),pz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),mz0=e__namespace.object({id:e__namespace.string().describe("Connection ID"),stripe_account_id:e__namespace.string().describe("Connected Stripe account ID"),entity_id:e__namespace.string().describe("Connected Space Invoices entity ID"),white_label_id:e__namespace.string().describe("White-label context for this connection"),auto_invoice_config:e__namespace.object({enabled:e__namespace.boolean(),events:e__namespace.array(e__namespace.string()),default_note:e__namespace.string().optional()}).describe("Auto-invoice configuration"),created_at:e__namespace.iso.datetime({}).describe("When the connection was created")}),xz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),gz0=e__namespace.object({message:e__namespace.string()}),yz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),Oz0=e__namespace.object({auto_invoice_enabled:e__namespace.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e__namespace.array(e__namespace.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e__namespace.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),Sz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),ve0=500,Te0=0,Ee0=100,Bz0=e__namespace.object({auto_invoice_enabled:e__namespace.boolean().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:e__namespace.array(e__namespace.enum(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().max(ve0).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:e__namespace.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__namespace.object({auto_invoice_enabled:e__namespace.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e__namespace.array(e__namespace.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e__namespace.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),Tz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),be0=2e3,Ez0=e__namespace.object({stripe_object_id:e__namespace.string().min(1).describe("Stripe object ID (pi_xxx for payment intents, in_xxx for invoices). Type is auto-detected from prefix."),note:e__namespace.string().max(be0).optional().describe("Optional note to include on the invoice")}),Ie0=10,fe0=50,bz0=e__namespace.object({limit:e__namespace.number().min(1).max(fe0).default(Ie0).describe("Number of invoices to return")}),Iz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),fz0=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Space Invoices invoice ID"),number:e__namespace.string().nullable().describe("Invoice number"),status:e__namespace.string().describe("Invoice status"),total:e__namespace.number().describe("Invoice total amount"),currency:e__namespace.string().describe("Currency code"),public_url:e__namespace.url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e__namespace.string().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e__namespace.iso.datetime({}).describe("When the invoice was created")}))}),zz0=e__namespace.object({stripe_object_id:e__namespace.string().min(1).describe("Stripe object ID (e.g. in_xxx for invoices, pi_xxx for payment intents)")}),Dz0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),Nz0=e__namespace.object({id:e__namespace.string().describe("Space Invoices invoice ID"),number:e__namespace.string().nullable().describe("Invoice number"),status:e__namespace.string().describe("Invoice status"),total:e__namespace.number().describe("Invoice total amount"),currency:e__namespace.string().describe("Currency code"),public_url:e__namespace.url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e__namespace.string().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e__namespace.iso.datetime({}).describe("When the invoice was created")}),Mz0=e__namespace.object({id:e__namespace.string().describe("Invoice ID")}),_z0=e__namespace.object({"stripe-user-account-id":e__namespace.string().describe("Stripe account ID")}),Uz0=e__namespace.object({id:e__namespace.string().describe("Space Invoices invoice ID"),number:e__namespace.string().nullable().describe("Invoice number"),status:e__namespace.string().describe("Invoice status"),total:e__namespace.number().describe("Invoice total amount"),currency:e__namespace.string().describe("Currency code"),public_url:e__namespace.url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e__namespace.string().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e__namespace.iso.datetime({}).describe("When the invoice was created")}),hz0=e__namespace.object({id:e__namespace.string().describe("Connection ID"),stripe_account_id:e__namespace.string().describe("Connected Stripe account ID"),entity_id:e__namespace.string().describe("Connected Space Invoices entity ID"),white_label_id:e__namespace.string().describe("White-label context for this connection"),auto_invoice_config:e__namespace.object({enabled:e__namespace.boolean(),events:e__namespace.array(e__namespace.string()),default_note:e__namespace.string().optional()}).describe("Auto-invoice configuration"),created_at:e__namespace.iso.datetime({}).describe("When the connection was created")}),Rz0=e__namespace.object({message:e__namespace.string()}),Pz0=e__namespace.object({auto_invoice_enabled:e__namespace.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e__namespace.array(e__namespace.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e__namespace.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),ze0=500,De0=0,Ne0=100,Cz0=e__namespace.object({auto_invoice_enabled:e__namespace.boolean().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:e__namespace.array(e__namespace.enum(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().max(ze0).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:e__namespace.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__namespace.object({auto_invoice_enabled:e__namespace.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e__namespace.array(e__namespace.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e__namespace.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__namespace.object({subscription:e__namespace.object({id:e__namespace.string(),account_id:e__namespace.string(),tier:e__namespace.enum(["free","metered"]),spending_limit_cents:e__namespace.number().nullable(),is_internal:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string()}),usage:e__namespace.object({documents_count:e__namespace.number(),e_invoicing_send_count:e__namespace.number().default(Me0),entities_active:e__namespace.number(),period_start:e__namespace.string(),period_end:e__namespace.string()}),limits:e__namespace.object({entities:e__namespace.number().nullable().describe("Max entities for free tier (null for metered)"),documents_per_month:e__namespace.number().nullable().describe("Max docs per month for free tier (null for metered)")}),is_over_limit:e__namespace.boolean()}).describe("Current subscription and usage for Space Invoices account"),_e0=0,Az0=e__namespace.object({spending_limit_cents:e__namespace.number().min(_e0).nullable()}).describe("Request to update spending limit for metered tier"),kz0=e__namespace.object({spending_limit_cents:e__namespace.number().nullable()}).describe("Updated spending limit"),jz0=e__namespace.object({can_create:e__namespace.boolean(),current_count:e__namespace.number(),limit:e__namespace.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__namespace.object({zip_code:e__namespace.string().regex(Ue0).describe("US ZIP code to look up."),state:e__namespace.string().min(he0).max(Re0).optional().describe("Optional two-letter US state filter.")}),Hz0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Pe0),country_code:e__namespace.string().max(Ce0),state:e__namespace.string().max(we0),zip_code:e__namespace.string().max(Fe0),tax_region_name:e__namespace.string().max(Ae0),estimated_combined_rate:e__namespace.number().min(ke0).max(je0),state_rate:e__namespace.number().min(Le0).max(He0),county_rate:e__namespace.number().min(Ge0).max(Ke0),city_rate:e__namespace.number().min(Ze0).max(Ve0),special_rate:e__namespace.number().min(qe0).max(We0),risk_level:e__namespace.number().min(Ye0).max(Je0),source:e__namespace.string().max($e0),source_month:e__namespace.string().max(Qe0),imported_at:e__namespace.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__namespace.object({year:e__namespace.string().regex(Xe0).describe("Year for KIR export (e.g., 2025)"),month:e__namespace.string().regex(et0).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e__namespace.string().regex(tt0).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),Zz0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(nt0).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e__namespace.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e__namespace.number().min(st0).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e__namespace.number().min(ot0).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(it0).nullish(),payables:e__namespace.string().max(at0).nullish(),sales_vat_22:e__namespace.string().max(rt0).nullish(),sales_vat_95:e__namespace.string().max(lt0).nullish(),sales_vat_5:e__namespace.string().max(dt0).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(ct0).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(ut0).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(pt0).nullish(),sales_revenue_22:e__namespace.string().max(mt0).nullish(),sales_revenue_95:e__namespace.string().max(xt0).nullish(),sales_revenue_5:e__namespace.string().max(gt0).nullish(),sales_revenue_exempt:e__namespace.string().max(yt0).nullish(),sales_revenue_eu_goods:e__namespace.string().max(Ot0).nullish(),sales_revenue_eu_services:e__namespace.string().max(St0).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(Bt0).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(vt0).nullish(),sales_revenue_third_country_services:e__namespace.string().max(Tt0).nullish(),purchase_expense_22:e__namespace.string().max(Et0).nullish(),purchase_expense_95:e__namespace.string().max(bt0).nullish(),purchase_expense_5:e__namespace.string().max(It0).nullish(),purchase_expense_exempt:e__namespace.string().max(ft0).nullish(),purchase_expense_eu_goods:e__namespace.string().max(zt0).nullish(),purchase_expense_eu_services:e__namespace.string().max(Dt0).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(Nt0).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(Mt0).nullish(),purchase_expense_third_country_services:e__namespace.string().max(_t0).nullish()}).and(e__namespace.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e__namespace.enum(["stored","registry","unknown"]),inferred_business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e__namespace.object({yearly_normirani:e__namespace.boolean(),vod_xml:e__namespace.boolean(),vasco_xml:e__namespace.boolean(),minimax_xml:e__namespace.boolean()}),unsupported_reason:e__namespace.string().nullable()}),Wz0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullish().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullish().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullish().describe("Slovenia-specific VAT subject subtype."),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullish().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(Ut0).describe("Slovenian SKD activity code used for yearly reporting.")).nullish(),registration_number:e__namespace.string().nullish(),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullish().describe("Accounting or records mode used for the yearly filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullish().describe("Insurance basis used to determine the applicable normirani rules."),default_withholding_tax_amount:e__namespace.number().min(ht0).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e__namespace.number().min(Rt0).nullish().describe("Monetary amount in EUR.")}).nullish(),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullish().describe("Stored preferred export format for Slovenian accounting handoff."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(Pt0).nullish(),payables:e__namespace.string().max(Ct0).nullish(),sales_vat_22:e__namespace.string().max(wt0).nullish(),sales_vat_95:e__namespace.string().max(Ft0).nullish(),sales_vat_5:e__namespace.string().max(At0).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(kt0).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(jt0).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(Lt0).nullish(),sales_revenue_22:e__namespace.string().max(Ht0).nullish(),sales_revenue_95:e__namespace.string().max(Gt0).nullish(),sales_revenue_5:e__namespace.string().max(Kt0).nullish(),sales_revenue_exempt:e__namespace.string().max(Zt0).nullish(),sales_revenue_eu_goods:e__namespace.string().max(Vt0).nullish(),sales_revenue_eu_services:e__namespace.string().max(qt0).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(Wt0).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(Yt0).nullish(),sales_revenue_third_country_services:e__namespace.string().max(Jt0).nullish(),purchase_expense_22:e__namespace.string().max($t0).nullish(),purchase_expense_95:e__namespace.string().max(Qt0).nullish(),purchase_expense_5:e__namespace.string().max(Xt0).nullish(),purchase_expense_exempt:e__namespace.string().max(en0).nullish(),purchase_expense_eu_goods:e__namespace.string().max(tn0).nullish(),purchase_expense_eu_services:e__namespace.string().max(nn0).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(sn0).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(on0).nullish(),purchase_expense_third_country_services:e__namespace.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__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(an0).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e__namespace.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e__namespace.number().min(rn0).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e__namespace.number().min(ln0).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(dn0).nullish(),payables:e__namespace.string().max(cn0).nullish(),sales_vat_22:e__namespace.string().max(un0).nullish(),sales_vat_95:e__namespace.string().max(pn0).nullish(),sales_vat_5:e__namespace.string().max(mn0).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(xn0).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(gn0).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(yn0).nullish(),sales_revenue_22:e__namespace.string().max(On0).nullish(),sales_revenue_95:e__namespace.string().max(Sn0).nullish(),sales_revenue_5:e__namespace.string().max(Bn0).nullish(),sales_revenue_exempt:e__namespace.string().max(vn0).nullish(),sales_revenue_eu_goods:e__namespace.string().max(Tn0).nullish(),sales_revenue_eu_services:e__namespace.string().max(En0).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(bn0).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(In0).nullish(),sales_revenue_third_country_services:e__namespace.string().max(fn0).nullish(),purchase_expense_22:e__namespace.string().max(zn0).nullish(),purchase_expense_95:e__namespace.string().max(Dn0).nullish(),purchase_expense_5:e__namespace.string().max(Nn0).nullish(),purchase_expense_exempt:e__namespace.string().max(Mn0).nullish(),purchase_expense_eu_goods:e__namespace.string().max(_n0).nullish(),purchase_expense_eu_services:e__namespace.string().max(Un0).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(hn0).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(Rn0).nullish(),purchase_expense_third_country_services:e__namespace.string().max(Pn0).nullish()}).and(e__namespace.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e__namespace.enum(["stored","registry","unknown"]),inferred_business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e__namespace.object({yearly_normirani:e__namespace.boolean(),vod_xml:e__namespace.boolean(),vasco_xml:e__namespace.boolean(),minimax_xml:e__namespace.boolean()}),unsupported_reason:e__namespace.string().nullable()}),$z0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({year:e__namespace.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__namespace.object({entity_id:e__namespace.string(),year:e__namespace.number().min(Fn0).max(An0).describe("Tax year for the yearly Slovenia eDavki filing."),filing_kind:e__namespace.enum(["regular_annual"]),profile:e__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(kn0).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e__namespace.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e__namespace.number().min(jn0).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e__namespace.number().min(Ln0).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(Hn0).nullish(),payables:e__namespace.string().max(Gn0).nullish(),sales_vat_22:e__namespace.string().max(Kn0).nullish(),sales_vat_95:e__namespace.string().max(Zn0).nullish(),sales_vat_5:e__namespace.string().max(Vn0).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(qn0).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(Wn0).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(Yn0).nullish(),sales_revenue_22:e__namespace.string().max(Jn0).nullish(),sales_revenue_95:e__namespace.string().max($n0).nullish(),sales_revenue_5:e__namespace.string().max(Qn0).nullish(),sales_revenue_exempt:e__namespace.string().max(Xn0).nullish(),sales_revenue_eu_goods:e__namespace.string().max(es0).nullish(),sales_revenue_eu_services:e__namespace.string().max(ts0).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(ns0).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(ss0).nullish(),sales_revenue_third_country_services:e__namespace.string().max(os0).nullish(),purchase_expense_22:e__namespace.string().max(is0).nullish(),purchase_expense_95:e__namespace.string().max(as0).nullish(),purchase_expense_5:e__namespace.string().max(rs0).nullish(),purchase_expense_exempt:e__namespace.string().max(ls0).nullish(),purchase_expense_eu_goods:e__namespace.string().max(ds0).nullish(),purchase_expense_eu_services:e__namespace.string().max(cs0).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(us0).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(ps0).nullish(),purchase_expense_third_country_services:e__namespace.string().max(ms0).nullish()}).and(e__namespace.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e__namespace.enum(["stored","registry","unknown"]),inferred_business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e__namespace.object({yearly_normirani:e__namespace.boolean(),vod_xml:e__namespace.boolean(),vasco_xml:e__namespace.boolean(),minimax_xml:e__namespace.boolean()}),unsupported_reason:e__namespace.string().nullable()}),auto_values:e__namespace.object({total_invoice_revenue:e__namespace.number(),total_credit_note_reduction:e__namespace.number(),computed_revenue:e__namespace.number(),adjusted_revenue:e__namespace.number(),normative_expense_rate:e__namespace.number(),normative_expenses:e__namespace.number(),tax_base:e__namespace.number(),income_tax_rate:e__namespace.number(),income_tax_amount:e__namespace.number(),advance_tax_amount:e__namespace.number(),monthly_installment_amount:e__namespace.number(),quarterly_installment_amount:e__namespace.number()}),manual_values:e__namespace.object({withholding_tax_amount:e__namespace.number().min(xs0).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e__namespace.number().min(gs0).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e__namespace.number().min(ys0).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e__namespace.number().min(Os0).describe("Monetary amount in EUR."),revenue_adjustment_increase:e__namespace.number().min(Ss0).describe("Monetary amount in EUR.")}),derived_flags:e__namespace.object({has_foreign_customers:e__namespace.boolean(),has_foreign_tax_numbers:e__namespace.boolean(),has_non_eur_documents:e__namespace.boolean()}),warnings:e__namespace.array(e__namespace.object({code:e__namespace.string(),message:e__namespace.string(),severity:e__namespace.enum(["info","warning"])})),issue_details:e__namespace.array(e__namespace.object({code:e__namespace.string(),title:e__namespace.string(),summary:e__namespace.string(),explanation:e__namespace.string(),action:e__namespace.string().nullable(),severity:e__namespace.enum(["info","warning"]),official_sources:e__namespace.array(e__namespace.object({label:e__namespace.string(),url:e__namespace.url(),issuer:e__namespace.enum(["FURS","PISRS"])})),affected_documents:e__namespace.array(e__namespace.object({id:e__namespace.string(),type:e__namespace.enum(["invoice","credit_note"]),number:e__namespace.string(),date:e__namespace.string(),customer_name:e__namespace.string().nullable(),customer_country_code:e__namespace.string().nullable(),customer_tax_number:e__namespace.string().nullable(),currency_code:e__namespace.string(),total:e__namespace.number(),total_converted:e__namespace.number().nullable(),reason:e__namespace.string(),document_path:e__namespace.string()}))})),rule_summary:e__namespace.object({normative_expense_rule:e__namespace.string(),income_tax_rule:e__namespace.string(),advance_rule:e__namespace.string()})}),eD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({year:e__namespace.number().min(Bs0).max(vs0).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e__namespace.object({withholding_tax_amount:e__namespace.number().min(Ts0).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e__namespace.number().min(Es0).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e__namespace.number().min(bs0).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e__namespace.number().min(Is0).describe("Monetary amount in EUR."),revenue_adjustment_increase:e__namespace.number().min(fs0).describe("Monetary amount in EUR.")})}),nD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({date_from:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({name:e__namespace.string().max(zs0).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Ds0).max(Ns0),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(_s0).default(Ms0).describe("Number of results per request."),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.union([e__namespace.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),e__namespace.array(e__namespace.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__namespace.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__namespace.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__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),rD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Us0),name:e__namespace.string().max(hs0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Rs0).max(Ps0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(Cs0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",ws0).describe("Unique resource identifier")}),cD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Fs0).max(As0),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.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__namespace.object({id:e__namespace.string().max(ks0),name:e__namespace.string().max(js0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Ls0).max(Hs0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(Gs0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Ks0).describe("Unique resource identifier")}),xD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({name:e__namespace.string().max(Zs0).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Vs0).max(qs0),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Ws0),name:e__namespace.string().max(Ys0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Js0).max($s0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(Qs0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Xs0).describe("Unique resource identifier")}),SD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.stringFormat("resource-id",eo0).describe("Unique resource identifier")}),vD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(to0),name:e__namespace.string().max(no0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(so0).max(oo0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(io0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",ao0).describe("Unique resource identifier")}),bD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.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__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(co0).max(uo0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.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__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(po0).max(mo0).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(xo0).max(go0).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e__namespace.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e__namespace.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__namespace.object({id:e__namespace.string().describe("Document ID. The document type is detected from the ID prefix.")}),DD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),_D0=e__namespace.object({url:e__namespace.url().describe("Public URL of the uploaded image"),secure_url:e__namespace.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e__namespace.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e__namespace.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e__namespace.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e__namespace.string().describe("Image format (jpg, png, webp, etc.)"),width:e__namespace.number().describe("Image width in pixels"),height:e__namespace.number().describe("Image height in pixels"),bytes:e__namespace.number().describe("File size in bytes"),entity_id:e__namespace.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__namespace.object({email:e__namespace.email(),password:e__namespace.string()}),yo0=100,Oo0=36,So0=31536e3,Bo0=50,vo0=36,To0=36,Eo0=255,bo0=255,Io0=36,hD0=e__namespace.object({id:e__namespace.string().max(yo0),user_id:e__namespace.string().max(Oo0),ttl:e__namespace.number().default(So0).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Bo0).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(vo0).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(To0),email:e__namespace.string().max(Eo0),name:e__namespace.string().max(bo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Io0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.string().nullish()})).describe("Access token for authentication"),fo0=2,zo0=8,Do0=/[a-z]/,RD0=e__namespace.object({email:e__namespace.email(),name:e__namespace.string().min(fo0).nullish(),password:e__namespace.string().min(zo0).regex(Do0),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]).optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.string().min(1).optional(),account_invitation_token:e__namespace.string().min(1).optional()}),PD0=e__namespace.object({email:e__namespace.email()}),CD0=e__namespace.object({message:e__namespace.string()}),No0=8,Mo0=/[a-z]/,wD0=e__namespace.object({token:e__namespace.string().min(1),password:e__namespace.string().min(No0).regex(Mo0)}),FD0=e__namespace.object({message:e__namespace.string()}),AD0=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),name:e__namespace.string(),role:e__namespace.enum(["owner","admin","member"])}))}),_o0=36,Uo0=255,ho0=255,Ro0=36,kD0=e__namespace.object({id:e__namespace.string().max(_o0),email:e__namespace.string().max(Uo0),name:e__namespace.string().max(ho0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Ro0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),Po0=2,jD0=e__namespace.object({name:e__namespace.string().min(Po0).nullish().describe("User display name"),locale:e__namespace.union([e__namespace.literal("en"),e__namespace.literal("de"),e__namespace.literal("sl"),e__namespace.literal("it"),e__namespace.literal("fr"),e__namespace.literal("es"),e__namespace.literal("pt"),e__namespace.literal("nl"),e__namespace.literal("pl"),e__namespace.literal("hr"),e__namespace.literal("sv"),e__namespace.literal("fi"),e__namespace.literal("et"),e__namespace.literal("bg"),e__namespace.literal("cs"),e__namespace.literal("sk"),e__namespace.literal("nb"),e__namespace.literal("is"),e__namespace.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__namespace.object({id:e__namespace.string().max(Co0),email:e__namespace.string().max(wo0),name:e__namespace.string().max(Fo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Ao0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),HD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({operator_tax_number:e__namespace.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e__namespace.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__namespace.object({id:e__namespace.string().max(ko0),email:e__namespace.string().max(jo0),name:e__namespace.string().max(Lo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Ho0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),ZD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({operator_oib:e__namespace.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e__namespace.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__namespace.object({id:e__namespace.string().max(Go0),email:e__namespace.string().max(Ko0),name:e__namespace.string().max(Zo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Vo0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),WD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({operator_first_name:e__namespace.string().optional().describe("PT operator first name"),operator_last_name:e__namespace.string().optional().describe("PT operator last name"),operator_tax_number:e__namespace.string().optional().describe("PT operator tax number"),account_first_name:e__namespace.string().optional().describe("Deprecated alias for PT operator first name"),account_last_name:e__namespace.string().optional().describe("Deprecated alias for PT operator last name"),account_tax_number:e__namespace.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__namespace.object({id:e__namespace.string().max(qo0),email:e__namespace.string().max(Wo0),name:e__namespace.string().max(Yo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Jo0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.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__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(ei0).max(ti0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.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__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(ni0).max(si0).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(oi0).max(ii0).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e__namespace.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({url:e__namespace.url().max(ai0).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(ri0).optional().describe("Optional description for this webhook"),events:e__namespace.array(e__namespace.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__namespace.boolean().default(li0).describe("Whether webhook is active"),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(ci0).default(di0).describe("Number of results per request."),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(ui0),entity_id:e__namespace.string().max(pi0),url:e__namespace.string().max(mi0),description:e__namespace.string().max(xi0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(gi0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",yi0).describe("Unique resource identifier")}),iN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(Oi0),entity_id:e__namespace.string().max(Si0),url:e__namespace.string().max(Bi0),description:e__namespace.string().max(vi0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(Ti0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Ei0).describe("Unique resource identifier")}),lN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({url:e__namespace.url().max(bi0).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Ii0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean().optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(fi0),entity_id:e__namespace.string().max(zi0),url:e__namespace.string().max(Di0),description:e__namespace.string().max(Ni0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(Mi0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",_i0).describe("Unique resource identifier")}),pN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({success:e__namespace.boolean()}),Ui0=/^[a-z]{3,4}_[0-9a-f]{24}$/,xN0=e__namespace.object({id:e__namespace.stringFormat("resource-id",Ui0).describe("Unique resource identifier")}),gN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(hi0),webhook_id:e__namespace.string().max(Ri0),entity_id:e__namespace.string().max(Pi0),event_type:e__namespace.string().max(Ci0),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(wi0).max(Fi0).nullish(),response_body:e__namespace.string().max(Ai0).nullish(),error_message:e__namespace.string().max(ki0).nullish(),attempt:e__namespace.number().min(ji0).max(Li0),max_attempts:e__namespace.number().min(Hi0).max(Gi0),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(Ki0).max(Zi0).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Vi0=/^[a-z]{3,4}_[0-9a-f]{24}$/,ON0=e__namespace.object({id:e__namespace.stringFormat("resource-id",Vi0).describe("Unique resource identifier")}),qi0=10,Wi0=100,SN0=e__namespace.object({limit:e__namespace.number().min(1).max(Wi0).default(qi0).describe("Number of results per request."),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Yi0),webhook_id:e__namespace.string().max(Ji0),entity_id:e__namespace.string().max($i0),event_type:e__namespace.string().max(Qi0),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(Xi0).max(ea0).nullish(),response_body:e__namespace.string().max(ta0).nullish(),error_message:e__namespace.string().max(na0).nullish(),attempt:e__namespace.number().min(sa0).max(oa0),max_attempts:e__namespace.number().min(ia0).max(aa0),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(ra0).max(la0).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",da0).describe("Unique resource identifier")}),EN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(ca0),entity_id:e__namespace.string().max(ua0),url:e__namespace.string().max(pa0),description:e__namespace.string().max(ma0).nullish(),secret:e__namespace.string().max(xa0),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(ga0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null falls back to computed yearly pricing."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Yearly price in cents for each additional connected store."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),e_invoicing_sends_included:e__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e__namespace.string().describe("Subscription status"),billing_interval:e__namespace.string().nullable().describe("Current billing interval"),current_period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),current_period_end:e__namespace.string().describe("Current period end date (ISO 8601)"),payment_provider:e__namespace.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e__namespace.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e__namespace.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e__namespace.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e__namespace.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e__namespace.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e__namespace.boolean().describe("True only when this request created the trial subscription."),cancel_at:e__namespace.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null falls back to computed yearly pricing."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Yearly price in cents for each additional connected store."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),e_invoicing_sends_included:e__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e__namespace.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e__namespace.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e__namespace.object({last4:e__namespace.string().nullable(),brand:e__namespace.string().nullable(),has_card:e__namespace.boolean()}).nullable(),store_billing:e__namespace.union([e__namespace.object({connected_stores:e__namespace.number(),included_stores:e__namespace.number(),billable_extra_stores:e__namespace.number(),invoices_included_from_extra_stores:e__namespace.number(),extra_store_price_cents_monthly:e__namespace.number().nullable(),extra_store_price_cents_yearly:e__namespace.number().nullable()}),e__namespace.null()]),usage:e__namespace.object({documents_count:e__namespace.number().describe("Documents created this period"),documents_limit:e__namespace.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e__namespace.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e__namespace.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e__namespace.number().default(ya0).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e__namespace.number().nullish().default(Oa0).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),period_end:e__namespace.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),fN0=e__namespace.object({plans:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null falls back to computed yearly pricing."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Yearly price in cents for each additional connected store."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),e_invoicing_sends_included:e__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.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__namespace.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.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__namespace.object({feature:e__namespace.string().describe("Feature slug to check")}),DN0=e__namespace.object({feature:e__namespace.string().describe("Feature being checked"),allowed:e__namespace.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e__namespace.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e__namespace.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),NN0=e__namespace.object({resource:e__namespace.string().describe("Resource type to check (e.g., 'documents')")}),MN0=e__namespace.object({resource:e__namespace.string().describe("Resource being checked"),allowed:e__namespace.boolean().describe("Whether creating more of this resource is allowed"),usage:e__namespace.number().describe("Current usage count"),limit:e__namespace.number().nullable().describe("Current limit. Null means unlimited."),percentage:e__namespace.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),_N0=e__namespace.object({billing_email:e__namespace.email().nullable()}),UN0=e__namespace.object({billing_email:e__namespace.string().nullable()});var Dt={};K(Dt,{GetCurrentWhiteLabelResponse:()=>hN0,GetMyWhiteLabelResponse:()=>RN0});var hN0=e__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.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__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.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__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),reviewed_feature_catalog_ids:e__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.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__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.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__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.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__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.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__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.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__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),reviewed_feature_catalog_ids:e__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.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__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.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__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.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__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),rD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Us0),name:e__namespace.string().max(hs0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Rs0).max(Ps0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(Cs0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",ws0).describe("Unique resource identifier")}),cD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Fs0).max(As0),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.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__namespace.object({id:e__namespace.string().max(ks0),name:e__namespace.string().max(js0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Ls0).max(Hs0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(Gs0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Ks0).describe("Unique resource identifier")}),xD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({name:e__namespace.string().max(Zs0).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Vs0).max(qs0),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Ws0),name:e__namespace.string().max(Ys0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Js0).max($s0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(Qs0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Xs0).describe("Unique resource identifier")}),SD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.stringFormat("resource-id",eo0).describe("Unique resource identifier")}),vD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(to0),name:e__namespace.string().max(no0),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(so0).max(oo0),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.string().nullish().describe("Portugal exemption reason associated with pt_exemption_code."),entity_id:e__namespace.string().max(io0),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",ao0).describe("Unique resource identifier")}),bD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.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__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(co0).max(uo0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.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__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(po0).max(mo0).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(xo0).max(go0).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e__namespace.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e__namespace.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__namespace.object({id:e__namespace.string().describe("Document ID. The document type is detected from the ID prefix.")}),DD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),_D0=e__namespace.object({url:e__namespace.url().describe("Public URL of the uploaded image"),secure_url:e__namespace.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e__namespace.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e__namespace.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e__namespace.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e__namespace.string().describe("Image format (jpg, png, webp, etc.)"),width:e__namespace.number().describe("Image width in pixels"),height:e__namespace.number().describe("Image height in pixels"),bytes:e__namespace.number().describe("File size in bytes"),entity_id:e__namespace.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__namespace.object({email:e__namespace.email(),password:e__namespace.string()}),yo0=100,Oo0=36,So0=31536e3,Bo0=50,vo0=36,To0=36,Eo0=255,bo0=255,Io0=36,hD0=e__namespace.object({id:e__namespace.string().max(yo0),user_id:e__namespace.string().max(Oo0),ttl:e__namespace.number().default(So0).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Bo0).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(vo0).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(To0),email:e__namespace.string().max(Eo0),name:e__namespace.string().max(bo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Io0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.string().nullish()})).describe("Access token for authentication"),fo0=2,zo0=8,Do0=/[a-z]/,RD0=e__namespace.object({email:e__namespace.email(),name:e__namespace.string().min(fo0).nullish(),password:e__namespace.string().min(zo0).regex(Do0),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]).optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.string().min(1).optional(),account_invitation_token:e__namespace.string().min(1).optional()}),PD0=e__namespace.object({email:e__namespace.email()}),CD0=e__namespace.object({message:e__namespace.string()}),No0=8,Mo0=/[a-z]/,wD0=e__namespace.object({token:e__namespace.string().min(1),password:e__namespace.string().min(No0).regex(Mo0)}),FD0=e__namespace.object({message:e__namespace.string()}),AD0=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),name:e__namespace.string(),role:e__namespace.enum(["owner","admin","member"])}))}),_o0=36,Uo0=255,ho0=255,Ro0=36,kD0=e__namespace.object({id:e__namespace.string().max(_o0),email:e__namespace.string().max(Uo0),name:e__namespace.string().max(ho0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Ro0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),Po0=2,jD0=e__namespace.object({name:e__namespace.string().min(Po0).nullish().describe("User display name"),locale:e__namespace.union([e__namespace.literal("en"),e__namespace.literal("de"),e__namespace.literal("sl"),e__namespace.literal("it"),e__namespace.literal("fr"),e__namespace.literal("es"),e__namespace.literal("pt"),e__namespace.literal("nl"),e__namespace.literal("pl"),e__namespace.literal("hr"),e__namespace.literal("sv"),e__namespace.literal("fi"),e__namespace.literal("et"),e__namespace.literal("bg"),e__namespace.literal("cs"),e__namespace.literal("sk"),e__namespace.literal("nb"),e__namespace.literal("is"),e__namespace.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__namespace.object({id:e__namespace.string().max(Co0),email:e__namespace.string().max(wo0),name:e__namespace.string().max(Fo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Ao0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),HD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({operator_tax_number:e__namespace.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e__namespace.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__namespace.object({id:e__namespace.string().max(ko0),email:e__namespace.string().max(jo0),name:e__namespace.string().max(Lo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Ho0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),ZD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({operator_oib:e__namespace.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e__namespace.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__namespace.object({id:e__namespace.string().max(Go0),email:e__namespace.string().max(Ko0),name:e__namespace.string().max(Zo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Vo0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),WD0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({operator_first_name:e__namespace.string().optional().describe("PT operator first name"),operator_last_name:e__namespace.string().optional().describe("PT operator last name"),operator_tax_number:e__namespace.string().optional().describe("PT operator tax number"),account_first_name:e__namespace.string().optional().describe("Deprecated alias for PT operator first name"),account_last_name:e__namespace.string().optional().describe("Deprecated alias for PT operator last name"),account_tax_number:e__namespace.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__namespace.object({id:e__namespace.string().max(qo0),email:e__namespace.string().max(Wo0),name:e__namespace.string().max(Yo0).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Jo0).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.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__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(ei0).max(ti0).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.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__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(ni0).max(si0).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(oi0).max(ii0).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e__namespace.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({url:e__namespace.url().max(ai0).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(ri0).optional().describe("Optional description for this webhook"),events:e__namespace.array(e__namespace.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__namespace.boolean().default(li0).describe("Whether webhook is active"),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(ci0).default(di0).describe("Number of results per request."),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(ui0),entity_id:e__namespace.string().max(pi0),url:e__namespace.string().max(mi0),description:e__namespace.string().max(xi0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(gi0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",yi0).describe("Unique resource identifier")}),iN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(Oi0),entity_id:e__namespace.string().max(Si0),url:e__namespace.string().max(Bi0),description:e__namespace.string().max(vi0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(Ti0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Ei0).describe("Unique resource identifier")}),lN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({url:e__namespace.url().max(bi0).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Ii0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean().optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(fi0),entity_id:e__namespace.string().max(zi0),url:e__namespace.string().max(Di0),description:e__namespace.string().max(Ni0).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(Mi0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",_i0).describe("Unique resource identifier")}),pN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({success:e__namespace.boolean()}),Ui0=/^[a-z]{3,4}_[0-9a-f]{24}$/,xN0=e__namespace.object({id:e__namespace.stringFormat("resource-id",Ui0).describe("Unique resource identifier")}),gN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(hi0),webhook_id:e__namespace.string().max(Ri0),entity_id:e__namespace.string().max(Pi0),event_type:e__namespace.string().max(Ci0),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(wi0).max(Fi0).nullish(),response_body:e__namespace.string().max(Ai0).nullish(),error_message:e__namespace.string().max(ki0).nullish(),attempt:e__namespace.number().min(ji0).max(Li0),max_attempts:e__namespace.number().min(Hi0).max(Gi0),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(Ki0).max(Zi0).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Vi0=/^[a-z]{3,4}_[0-9a-f]{24}$/,ON0=e__namespace.object({id:e__namespace.stringFormat("resource-id",Vi0).describe("Unique resource identifier")}),qi0=10,Wi0=100,SN0=e__namespace.object({limit:e__namespace.number().min(1).max(Wi0).default(qi0).describe("Number of results per request."),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Yi0),webhook_id:e__namespace.string().max(Ji0),entity_id:e__namespace.string().max($i0),event_type:e__namespace.string().max(Qi0),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(Xi0).max(ea0).nullish(),response_body:e__namespace.string().max(ta0).nullish(),error_message:e__namespace.string().max(na0).nullish(),attempt:e__namespace.number().min(sa0).max(oa0),max_attempts:e__namespace.number().min(ia0).max(aa0),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(ra0).max(la0).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.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__namespace.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__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",da0).describe("Unique resource identifier")}),EN0=e__namespace.object({"x-entity-id":e__namespace.string().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__namespace.object({id:e__namespace.string().max(ca0),entity_id:e__namespace.string().max(ua0),url:e__namespace.string().max(pa0),description:e__namespace.string().max(ma0).nullish(),secret:e__namespace.string().max(xa0),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).default(ga0),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.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__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),e_invoicing_sends_included:e__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e__namespace.string().describe("Subscription status"),billing_interval:e__namespace.string().nullable().describe("Current billing interval"),current_period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),current_period_end:e__namespace.string().describe("Current period end date (ISO 8601)"),payment_provider:e__namespace.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e__namespace.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e__namespace.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e__namespace.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e__namespace.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e__namespace.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e__namespace.boolean().describe("True only when this request created the trial subscription."),cancel_at:e__namespace.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.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__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),e_invoicing_sends_included:e__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e__namespace.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e__namespace.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e__namespace.object({last4:e__namespace.string().nullable(),brand:e__namespace.string().nullable(),has_card:e__namespace.boolean()}).nullable(),store_billing:e__namespace.union([e__namespace.object({connected_stores:e__namespace.number(),included_stores:e__namespace.number(),billable_extra_stores:e__namespace.number(),invoices_included_from_extra_stores:e__namespace.number(),extra_store_price_cents_monthly:e__namespace.number().nullable(),extra_store_price_cents_yearly:e__namespace.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e__namespace.null()]),usage:e__namespace.object({documents_count:e__namespace.number().describe("Documents created this period"),documents_limit:e__namespace.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e__namespace.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e__namespace.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e__namespace.number().default(ya0).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e__namespace.number().nullish().default(Oa0).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),period_end:e__namespace.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),fN0=e__namespace.object({plans:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.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__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),e_invoicing_sends_included:e__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.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__namespace.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.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__namespace.object({feature:e__namespace.string().describe("Feature slug to check")}),DN0=e__namespace.object({feature:e__namespace.string().describe("Feature being checked"),allowed:e__namespace.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e__namespace.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e__namespace.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),NN0=e__namespace.object({resource:e__namespace.string().describe("Resource type to check (e.g., 'documents')")}),MN0=e__namespace.object({resource:e__namespace.string().describe("Resource being checked"),allowed:e__namespace.boolean().describe("Whether creating more of this resource is allowed"),usage:e__namespace.number().describe("Current usage count"),limit:e__namespace.number().nullable().describe("Current limit. Null means unlimited."),percentage:e__namespace.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),_N0=e__namespace.object({billing_email:e__namespace.email().nullable()}),UN0=e__namespace.object({billing_email:e__namespace.string().nullable()});var Dt={};K(Dt,{GetCurrentWhiteLabelResponse:()=>hN0,GetMyWhiteLabelResponse:()=>RN0});var hN0=e__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.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__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.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__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),reviewed_feature_catalog_ids:e__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.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__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.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__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.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__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.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__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.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__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),reviewed_feature_catalog_ids:e__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.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__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.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__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.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
|
exports.AccountInfoRole=mC0;exports.AccountWebhookDeliveryStatus=gC0;exports.AccountWebhookResponseEventsItem=OC0;exports.AccountWebhookWithSecretEventsItem=BC0;exports.AddEntityUserBodyRole=TC0;exports.AdvanceInvoiceCalculationMode=bC0;exports.AdvanceInvoiceItemClassification=fC0;exports.AdvanceInvoiceItemType=DC0;exports.AdvanceInvoiceTransactionType=MC0;exports.AvailablePlansAllowedPaymentProvidersItem=UC0;exports.AvailablePlansBillingProfile=RC0;exports.AvailablePlansCurrencyCode=CC0;exports.AvailablePlansStripePublishableKeyKind=FC0;exports.BusinessUnitSettingsPdfTemplate=kC0;exports.CLIENT_HEADER_NAME=kn;exports.CalculateDocumentPreviewCalculationMode=GC0;exports.CalculateDocumentPreviewType=ZC0;exports.CalculatedItemType=LC0;exports.CalculationSettingsDefaultMode=qC0;exports.CheckEInvoicingRecipientRequestDocumentType=YC0;exports.CompleteAdvanceInvoicePreviewCalculationMode=$C0;exports.CompleteAdvanceInvoicePreviewCreationSource=XC0;exports.CompleteCreditNotePreviewCalculationMode=t20;exports.CompleteCreditNotePreviewCreationSource=s20;exports.CompleteDeliveryNotePreviewCalculationMode=i20;exports.CompleteDeliveryNotePreviewCreationSource=r20;exports.CompleteEstimatePreviewCalculationMode=d20;exports.CompleteEstimatePreviewCreationSource=u20;exports.CompleteEstimatePreviewTitleType=m20;exports.CompleteInvoicePreviewCalculationMode=g20;exports.CompleteInvoicePreviewCreationSource=O20;exports.CreateAccountWebhookBodyEventsItem=B20;exports.CreateAdvanceInvoiceCalculationMode=T20;exports.CreateCheckoutRequestBillingInterval=b20;exports.CreateCreditNoteCalculationMode=f20;exports.CreateCustomerBodyContactType=D20;exports.CreateDeliveryNoteCalculationMode=M20;exports.CreateDocumentItemClassification=U20;exports.CreateDocumentItemType=R20;exports.CreateDocumentPaymentType=C20;exports.CreateEntityBodyEnvironment=F20;exports.CreateEntityBodySettingsPdfTemplate=k20;exports.CreateEstimateCalculationMode=L20;exports.CreateEstimateTitleType=G20;exports.CreateExpenseBodyCalculationMode=Z20;exports.CreateExpenseBodyPaymentsItemType=q20;exports.CreateExpenseBodyTransactionType=Y20;exports.CreateExpenseBodyType=$20;exports.CreateExpenseItemClassification=X20;exports.CreateExpenseItemType=tw0;exports.CreateExpensePaymentBodyType=sw0;exports.CreateFinaInvoiceDataPaymentType=iw0;exports.CreateInvoiceCalculationMode=rw0;exports.CreateItemBodyClassification=dw0;exports.CreateMigrationJobRequestEnvironment=uw0;exports.CreateMigrationJobResponseStatus=mw0;exports.CreateOrderBodyPaymentStatus=gw0;exports.CreateOrderBodySource=Ow0;exports.CreateOrderIntegrationBodySource=Bw0;exports.CreatePaymentBodyType=Tw0;exports.CreatePtAtcudSeriesBodyDocumentType=bw0;exports.CreateRecurringInvoiceBodyFrequency=fw0;exports.CreateWebhookBodyEventsItem=Dw0;exports.CreationSource=Mw0;exports.CreditNoteCalculationMode=Uw0;exports.CreditNoteItemClassification=Rw0;exports.CreditNoteItemType=Cw0;exports.CreditNoteTransactionType=Fw0;exports.CurrentSubscriptionAllowedPaymentProvidersItem=kw0;exports.CurrentSubscriptionBillingProfile=Lw0;exports.CurrentSubscriptionCurrencyCode=Gw0;exports.CurrentSubscriptionPaymentProvider=Zw0;exports.CurrentSubscriptionStripePublishableKeyKind=qw0;exports.CustomCreateAdvanceInvoiceCalculationMode=Yw0;exports.CustomCreateCreditNoteCalculationMode=$w0;exports.CustomCreateDeliveryNoteCalculationMode=Xw0;exports.CustomCreateEstimateCalculationMode=tF0;exports.CustomCreateEstimateTitleType=sF0;exports.CustomCreateExpenseTransactionType=iF0;exports.CustomCreateExpenseType=rF0;exports.CustomCreateInvoiceCalculationMode=dF0;exports.CustomDocumentItemClassification=uF0;exports.CustomDocumentItemType=mF0;exports.CustomExpenseItemClassification=gF0;exports.CustomExpenseItemType=OF0;exports.CustomExpenseWriteCalculationMode=BF0;exports.CustomExpenseWritePaymentsItemType=TF0;exports.CustomExpenseWriteTransactionType=bF0;exports.CustomExpenseWriteType=fF0;exports.DEFAULT_BASE_URL=be;exports.DeleteDocumentType=DF0;exports.DeliveryNoteCalculationMode=MF0;exports.DeliveryNoteItemClassification=UF0;exports.DeliveryNoteItemType=RF0;exports.DeliveryNoteTransactionType=CF0;exports.DocumentCalculationCalculationMode=FF0;exports.DocumentCalculationTransactionType=kF0;exports.DocumentItemRevenueRecognitionMethod=LF0;exports.DocumentRelationRelatedDocumentTitleType=GF0;exports.DocumentRelationRelatedDocumentType=ZF0;exports.DocumentRelationSourceType=qF0;exports.DocumentRelationTargetType=YF0;exports.DocumentVersionDocumentType=$F0;exports.DownloadDocumentEslogType=XF0;exports.EInvoicingEnrollmentEnvironment=t50;exports.EInvoicingEnrollmentState=s50;exports.EInvoicingRecipientCheckResponseDocumentType=i50;exports.EmailSenderDomainVerificationStatus=r50;exports.EmailSenderEffectiveSource=d50;exports.EmailSenderEmailVerificationStatus=u50;exports.EmailSenderVerificationStatus=m50;exports.EntityApiKeyEnvironment=g50;exports.EntityBankAccountType=O50;exports.EntityEnvironment=B50;exports.EntityInvitationPreviewRole=T50;exports.EntityInvitationPreviewStatus=b50;exports.EntityInvitationRole=f50;exports.EntityInvitationStatus=D50;exports.EntitySettingsPdfTemplate=M50;exports.EntitySettingsUpdatePdfTemplate=U50;exports.EntityUserRole=R50;exports.EntityUsersAccessAccountRole=C50;exports.EntityUsersAccessEntityRole=F50;exports.EslogDataValidationStatus=k50;exports.EslogExportByDateRangeTypesItem=L50;exports.EstimateCalculationMode=G50;exports.EstimateItemClassification=Z50;exports.EstimateItemType=q50;exports.EstimateTitleType=Y50;exports.EstimateTransactionType=$50;exports.ExpenseCategoryReportResponseBasis=X50;exports.ExpenseCategoryReportResponseCalculationMode=tA0;exports.ExpenseCategoryReportResponseGroupBy=sA0;exports.ExpenseItemClassification=iA0;exports.ExpenseItemRecognitionMethod=rA0;exports.ExpenseItemType=dA0;exports.ExpenseRecognitionJobSimulationMode=uA0;exports.ExpenseRecognitionJobStatus=mA0;exports.ExpenseRecognitionJobWarningsItemCode=gA0;exports.ExpenseRecognitionSettingsDefaultMethod=OA0;exports.ExpenseRecognitionSettingsResponseDefaultMethod=BA0;exports.ExpenseSummaryClassification=TA0;exports.ExpenseType=bA0;exports.ExportDocumentsFormat=fA0;exports.ExportDocumentsLanguage=DA0;exports.ExportDocumentsType=MA0;exports.ExportRevenueByCategoryFormat=UA0;exports.ExportRevenueByCategoryLanguage=RA0;exports.ExportSalesPerItemFormat=CA0;exports.ExportSalesPerItemLanguage=FA0;exports.FinaFiscalizationResponseStatus=kA0;exports.FinalizeDocumentType=LA0;exports.FiscalizeDocumentType=GA0;exports.FiscalizedOutputRegistrationFiscalizationProvider=ZA0;exports.FursFiscalizationResponseStatus=qA0;exports.FursPremiseSuccessResponseEnvironment=YA0;exports.GermanEInvoicingDataValidationStatus=$A0;exports.GetActivePtAtcudSeriesDocumentType=XA0;exports.GetActivities200DataItemActorType=tk0;exports.GetEntitiesEnvironment=sk0;exports.GetEslogExportStatus200Status=ik0;exports.GetExpenseCategoryReportBasis=rk0;exports.GetExpenseCategoryReportGroupBy=dk0;exports.GetFilesCategory=uk0;exports.GetFinaSettings200CertificateStatus=mk0;exports.GetFinaSettings200NumberingSequence=gk0;exports.GetFursSettings200CertificateStatus=Ok0;exports.GetFursSettings200NumberingStrategy=Bk0;exports.GetNextDocumentNumberType=Tk0;exports.GetPdfExportStatus200Status=bk0;exports.GetRevenueRecognitionDetailsBasis=fk0;exports.GetRevenueRecognitionDetailsGroupBy=Dk0;exports.GetRevenueRecognitionReportBasis=Mk0;exports.GetRevenueRecognitionReportGroupBy=Uk0;exports.GetShareableAdvanceInvoiceHtmlLanguage=Rk0;exports.GetShareableAdvanceInvoiceHtmlLocale=Ck0;exports.GetShareableAdvanceInvoicePdfLanguage=Fk0;exports.GetShareableAdvanceInvoicePdfLocale=kk0;exports.GetShareableCreditNoteHtmlLanguage=Lk0;exports.GetShareableCreditNoteHtmlLocale=Gk0;exports.GetShareableCreditNotePdfLanguage=Zk0;exports.GetShareableCreditNotePdfLocale=qk0;exports.GetShareableDeliveryNoteHtmlLanguage=Yk0;exports.GetShareableDeliveryNoteHtmlLocale=$k0;exports.GetShareableDeliveryNotePdfLanguage=Xk0;exports.GetShareableDeliveryNotePdfLocale=tj0;exports.GetShareableEstimateHtmlLanguage=sj0;exports.GetShareableEstimateHtmlLocale=ij0;exports.GetShareableEstimatePdfLanguage=rj0;exports.GetShareableEstimatePdfLocale=dj0;exports.GetShareableInvoiceHtmlLanguage=uj0;exports.GetShareableInvoiceHtmlLocale=mj0;exports.GetShareableInvoicePdfLanguage=gj0;exports.GetShareableInvoicePdfLocale=Oj0;exports.GetSloveniaTaxProfile200AccountingExportsPreferredFormat=Bj0;exports.GetSloveniaTaxProfile200BusinessForm=Tj0;exports.GetSloveniaTaxProfile200BusinessFormSource=bj0;exports.GetSloveniaTaxProfile200IncomeTaxRegime=fj0;exports.GetSloveniaTaxProfile200InferredBusinessForm=Dj0;exports.GetSloveniaTaxProfile200TaxResidency=Mj0;exports.GetSloveniaTaxProfile200VatProfile=Uj0;exports.GetSloveniaTaxProfile200YearlyReportingAccountingType=Rj0;exports.GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis=Cj0;exports.InvoiceCalculationMode=Fj0;exports.InvoiceItemClassification=kj0;exports.InvoiceItemType=Lj0;exports.InvoiceTransactionType=Gj0;exports.ItemClassification=Zj0;exports.LegacyAuthResponseOrganizationsItemUnsupportedItemCode=qj0;exports.LineDiscountType=Yj0;exports.ListPtAtcudSeriesDocumentType=$j0;exports.MigrationJobResponseStatus=Xj0;exports.OrderBasePaymentStatus=tL0;exports.OrderBaseSource=sL0;exports.OrderBaseStatus=iL0;exports.OrderIntegrationBaseAutoProcessOn=rL0;exports.OrderIntegrationBaseSource=dL0;exports.OrderItemKind=uL0;exports.PartialAdvanceInvoicePreviewCalculationMode=mL0;exports.PartialAdvanceInvoicePreviewCreationSource=gL0;exports.PartialAdvanceInvoicePreviewItemsItemDiscountsItemType=OL0;exports.PartialAdvanceInvoicePreviewItemsItemType=BL0;exports.PartialCreditNotePreviewCalculationMode=TL0;exports.PartialCreditNotePreviewCreationSource=bL0;exports.PartialCreditNotePreviewItemsItemDiscountsItemType=fL0;exports.PartialCreditNotePreviewItemsItemType=DL0;exports.PartialDeliveryNotePreviewCalculationMode=ML0;exports.PartialDeliveryNotePreviewCreationSource=UL0;exports.PartialDeliveryNotePreviewItemsItemDiscountsItemType=RL0;exports.PartialDeliveryNotePreviewItemsItemType=CL0;exports.PartialEstimatePreviewCalculationMode=FL0;exports.PartialEstimatePreviewCreationSource=kL0;exports.PartialEstimatePreviewItemsItemDiscountsItemType=LL0;exports.PartialEstimatePreviewItemsItemType=GL0;exports.PartialEstimatePreviewTitleType=ZL0;exports.PartialInvoicePreviewCalculationMode=qL0;exports.PartialInvoicePreviewCreationSource=YL0;exports.PartialInvoicePreviewItemsItemDiscountsItemType=$L0;exports.PartialInvoicePreviewItemsItemType=XL0;exports.PatchEntityBodySettingsPdfTemplate=tH0;exports.PatchMeBodyLocale=sH0;exports.PaymentType=iH0;exports.PdfExportByDateRangeLanguage=rH0;exports.PdfExportByDateRangeLocale=dH0;exports.PdfExportByDateRangeTypesItem=uH0;exports.PdfExportByDocumentIdsLanguage=mH0;exports.PdfExportByDocumentIdsLocale=gH0;exports.PermanentDeleteDocumentType=OH0;exports.PtAtcudSeriesDocumentType=BH0;exports.RecurringInvoiceBaseFrequency=TH0;exports.RecurringInvoiceBaseStatus=bH0;exports.RegisterDocumentOutputType=fH0;exports.RegisterFursMovablePremiseBodyMovablePremisePremiseType=DH0;exports.RenderAdvanceInvoicePreviewEpcQrEnabled=MH0;exports.RenderAdvanceInvoicePreviewHub3QrEnabled=UH0;exports.RenderAdvanceInvoicePreviewPartial=RH0;exports.RenderAdvanceInvoicePreviewTemplate=CH0;exports.RenderAdvanceInvoicePreviewUpnQrDisplayMode=FH0;exports.RenderAdvanceInvoicePreviewUpnQrEnabled=kH0;exports.RenderCreditNotePreviewEpcQrEnabled=LH0;exports.RenderCreditNotePreviewHub3QrEnabled=GH0;exports.RenderCreditNotePreviewPartial=ZH0;exports.RenderCreditNotePreviewTemplate=qH0;exports.RenderCreditNotePreviewUpnQrDisplayMode=YH0;exports.RenderCreditNotePreviewUpnQrEnabled=$H0;exports.RenderDeliveryNotePreviewEpcQrEnabled=XH0;exports.RenderDeliveryNotePreviewHub3QrEnabled=tG0;exports.RenderDeliveryNotePreviewPartial=sG0;exports.RenderDeliveryNotePreviewTemplate=iG0;exports.RenderDeliveryNotePreviewUpnQrDisplayMode=rG0;exports.RenderDeliveryNotePreviewUpnQrEnabled=dG0;exports.RenderDocumentHtmlTemplate=uG0;exports.RenderDocumentPdfTemplate=mG0;exports.RenderEstimatePreviewEpcQrEnabled=gG0;exports.RenderEstimatePreviewHub3QrEnabled=OG0;exports.RenderEstimatePreviewPartial=BG0;exports.RenderEstimatePreviewTemplate=TG0;exports.RenderEstimatePreviewUpnQrDisplayMode=bG0;exports.RenderEstimatePreviewUpnQrEnabled=fG0;exports.RenderInvoicePreviewEpcQrEnabled=DG0;exports.RenderInvoicePreviewHub3QrEnabled=MG0;exports.RenderInvoicePreviewPartial=UG0;exports.RenderInvoicePreviewTemplate=RG0;exports.RenderInvoicePreviewUpnQrDisplayMode=CG0;exports.RenderInvoicePreviewUpnQrEnabled=FG0;exports.RestoreDocumentType=kG0;exports.RevenueRecognitionDetailsResponseCalculationMode=LG0;exports.RevenueRecognitionReportResponseBasis=GG0;exports.RevenueRecognitionReportResponseCalculationMode=ZG0;exports.RevenueRecognitionReportResponseGroupBy=qG0;exports.RevenueRecognitionSettingsDefaultMethod=YG0;exports.RevenueRecognitionSettingsResponseDefaultMethod=$G0;exports.ReviewSloveniaYearlyNormiraniReport200FilingKind=XG0;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType=t30;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer=s30;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity=i30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat=r30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm=d30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource=u30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime=m30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm=g30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency=O30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile=B30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType=T30;exports.ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis=b30;exports.ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity=f30;exports.SendDocument200Status=D30;exports.SendEmail200Status=M30;exports.SendEmailBodyLanguage=U30;exports.SendEmailBodyLocale=R30;exports.SendPaymentReminderBodyLocale=C30;exports.SendPaymentReminderResponseStatus=F30;exports.SloveniaAccountingExportsSettingsPreferredFormat=k30;exports.SloveniaEntitySettingsBusinessForm=L30;exports.SloveniaEntitySettingsIncomeTaxRegime=G30;exports.SloveniaEntitySettingsTaxResidency=Z30;exports.SloveniaEntitySettingsVatProfile=q30;exports.SloveniaYearlyReportingSettingsAccountingType=Y30;exports.SloveniaYearlyReportingSettingsNormiranecInsuranceBasis=$30;exports.SpaceInvoices=Ee;exports.StartEslogExport202Status=X30;exports.StartPdfExport202Status=t40;exports.StatsQueryRequestMetricsItemType=s40;exports.StatsQueryRequestOrderByItemDirection=i40;exports.StatsQueryRequestTable=r40;exports.StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem=d40;exports.StripeAppUpdateSettingsBodyAutoInvoiceEventsItem=u40;exports.SubscriptionTier=m40;exports.SyncShopifyOrdersResponseCompletionState=g40;exports.TransactionTypeCheckResponseTransactionType=O40;exports.UjpDataValidationStatus=B40;exports.UpdateAccountWebhookBodyEventsItem=T40;exports.UpdateCustomerBodyContactType=b40;exports.UpdateEntityUserRoleBodyRole=f40;exports.UpdateEstimateTitleType=D40;exports.UpdateExpenseBodyCalculationMode=M40;exports.UpdateExpenseBodyTransactionType=U40;exports.UpdateExpenseBodyType=R40;exports.UpdateExpenseRecognitionSettingsDefaultMethod=C40;exports.UpdateFinaSettings200CertificateStatus=F40;exports.UpdateFinaSettings200NumberingSequence=k40;exports.UpdateFinaSettingsBodyNumberingSequence=L40;exports.UpdateFursSettings200CertificateStatus=G40;exports.UpdateFursSettings200NumberingStrategy=Z40;exports.UpdateFursSettingsBodyNumberingStrategy=q40;exports.UpdateItemBodyClassification=Y40;exports.UpdateOrderBodyPaymentStatus=$40;exports.UpdateOrderIntegrationBodyAutoProcessOn=X40;exports.UpdatePaymentBodyType=t10;exports.UpdateRecurringInvoiceBodyFrequency=s10;exports.UpdateRevenueRecognitionSettingsDefaultMethod=i10;exports.UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat=r10;exports.UpdateSloveniaTaxProfile200BusinessForm=d10;exports.UpdateSloveniaTaxProfile200BusinessFormSource=u10;exports.UpdateSloveniaTaxProfile200IncomeTaxRegime=m10;exports.UpdateSloveniaTaxProfile200InferredBusinessForm=g10;exports.UpdateSloveniaTaxProfile200TaxResidency=O10;exports.UpdateSloveniaTaxProfile200VatProfile=B10;exports.UpdateSloveniaTaxProfile200YearlyReportingAccountingType=T10;exports.UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis=b10;exports.UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat=f10;exports.UpdateSloveniaTaxProfileBodyBusinessForm=D10;exports.UpdateSloveniaTaxProfileBodyIncomeTaxRegime=M10;exports.UpdateSloveniaTaxProfileBodyTaxResidency=U10;exports.UpdateSloveniaTaxProfileBodyVatProfile=R10;exports.UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType=C10;exports.UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis=F10;exports.UpdateWebhookBodyEventsItem=k10;exports.UploadFileBodyCategory=L10;exports.UpnQrSettingsDisplayMode=G10;exports.ValidateDocumentEslogType=Z10;exports.WebhookDeliveryStatus=q10;exports.WebhookResponseEventsItem=Y10;exports.WebhookWithSecretEventsItem=$10;exports.WhiteLabelConfigEnvironment=X10;exports.WhiteLabelPlanCurrencyCode=tK0;exports.accountWebhooks=Ut;exports.activities=ht;exports.advanceInvoices=Rt;exports.businessUnits=Pt;exports.companyRegistry=Ct;exports.creditNotes=wt;exports.currency=Ft;exports.customers=At;exports.default=Ee;exports.deliveryNotes=kt;exports.documents=Ht;exports.downloadBlob=mn;exports.eInvoicing=Gt;exports.eSlog=Kt;exports.email=Zt;exports.entities=Vt;exports.entityApiKeys=qt;exports.entityInvitations=Wt;exports.entityStats=Yt;exports.entityUsers=Jt;exports.estimates=$t;exports.expenses=Qt;exports.exports=Xt;exports.files=en;exports.finaCertificate=tn;exports.finaDevices=nn;exports.finaPremises=sn;exports.finaSettings=on;exports.financialCategories=an;exports.fursCertificate=rn;exports.fursDevices=ln;exports.fursInternalAct=dn;exports.fursPremises=cn;exports.fursSettings=un;exports.getAccountId=wN0;exports.getClientHeaders=fe;exports.health=pn;exports.initSDK=cC0;exports.invoices=xn;exports.items=gn;exports.legacyMigration=yn;exports.locale=On;exports.orderIntegrations=Sn;exports.orders=Bn;exports.paymentReminders=vn;exports.payments=Tn;exports.ptAtcudSeries=En;exports.ptSafT=bn;exports.recurringInvoices=In;exports.revenueRecognition=fn;exports.setAccountId=_t;exports.stripeApp=zn;exports.subscriptions=Dn;exports.taxRateEstimates=Nn;exports.taxReports=Mn;exports.taxes=_n;exports.transactionType=Un;exports.ujp=hn;exports.upload=Rn;exports.users=Pn;exports.vies=Cn;exports.webhooks=wn;exports.whiteLabelSubscriptions=Fn;exports.whiteLabels=An;exports.zod=Sa0;
|