@spaceinvoices/js-sdk 16.0.0 → 16.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -229,7 +229,7 @@ Defaults to true (best-effort). When omitted, behaves like true but won't fail t
229
229
  Searches are case-insensitive and match partial strings.
230
230
  Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),F1h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Aeh=36,Feh=36,keh=36,jeh=255,Heh=-2147483648,Leh=2147483647,Geh=-2147483648,Veh=2147483647,Keh=-2147483648,Zeh=2147483647,qeh=-2147483648,Weh=2147483647,Yeh=10,$eh=10,Qeh=10,Jeh=10,Xeh=255,eth=-2147483648,tth=2147483647,nth=-2147483648,sth=2147483647,oth=36,ith=1e3,k1h=e.object({data:e.array(e.object({id:e.string().max(Aeh),entity_id:e.string().max(Feh),document_id:e.string().max(keh),name:e.string().max(jeh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(Heh).max(Leh),day_of_week:e.number().min(Geh).max(Veh).nullish(),day_of_month:e.number().min(Keh).max(Zeh).nullish(),month_of_year:e.number().min(qeh).max(Weh).nullish(),start_date:e.string().max(Yeh),end_date:e.string().max($eh).nullish(),next_run_date:e.string().max(Qeh).nullish(),last_run_date:e.string().max(Jeh).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(Xeh).nullish(),payment_terms_days:e.number().min(eth).max(tth).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(nth).max(sth),last_generated_invoice_id:e.string().max(oth).nullish(),last_error:e.string().max(ith).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ath=/^[a-z]{3,4}_[0-9a-f]{24}$/,j1h=e.object({id:e.stringFormat("resource-id",ath).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H1h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),rth=36,lth=36,dth=36,cth=255,uth=-2147483648,pth=2147483647,mth=-2147483648,xth=2147483647,gth=-2147483648,yth=2147483647,Oth=-2147483648,vth=2147483647,hth=10,Sth=10,bth=10,zth=10,fth=255,Bth=-2147483648,Ith=2147483647,Tth=-2147483648,Eth=2147483647,Dth=36,Rth=1e3,L1h=e.object({id:e.string().max(rth),entity_id:e.string().max(lth),document_id:e.string().max(dth),name:e.string().max(cth),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(uth).max(pth),day_of_week:e.number().min(mth).max(xth).nullish(),day_of_month:e.number().min(gth).max(yth).nullish(),month_of_year:e.number().min(Oth).max(vth).nullish(),start_date:e.string().max(hth),end_date:e.string().max(Sth).nullish(),next_run_date:e.string().max(bth).nullish(),last_run_date:e.string().max(zth).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(fth).nullish(),payment_terms_days:e.number().min(Bth).max(Ith).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Tth).max(Eth),last_generated_invoice_id:e.string().max(Dth).nullish(),last_error:e.string().max(Rth).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),_th=/^[a-z]{3,4}_[0-9a-f]{24}$/,G1h=e.object({id:e.stringFormat("resource-id",_th).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V1h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Nth=255,Mth=-2147483648,Uth=2147483647,Pth=-2147483648,Cth=2147483647,wth=-2147483648,Ath=2147483647,Fth=-2147483648,kth=2147483647,jth=/^\d{4}-\d{2}-\d{2}$/,Hth=/^\d{4}-\d{2}-\d{2}$/,Lth=255,Gth=-2147483648,Vth=2147483647,K1h=e.object({name:e.string().max(Nth).optional(),frequency:e.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e.number().min(Mth).max(Uth).optional(),day_of_week:e.number().min(Pth).max(Cth).nullish(),day_of_month:e.number().min(wth).max(Ath).nullish(),month_of_year:e.number().min(Fth).max(kth).nullish(),start_date:e.string().regex(jth).optional(),end_date:e.string().regex(Hth).nullish(),auto_send:e.boolean().optional(),create_as_draft:e.boolean().optional(),send_to:e.string().max(Lth).nullish(),payment_terms_days:e.number().min(Gth).max(Vth).nullish(),notify_owner:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Kth=36,Zth=36,qth=36,Wth=255,Yth=-2147483648,$th=2147483647,Qth=-2147483648,Jth=2147483647,Xth=-2147483648,enh=2147483647,tnh=-2147483648,nnh=2147483647,snh=10,onh=10,inh=10,anh=10,rnh=255,lnh=-2147483648,dnh=2147483647,cnh=-2147483648,unh=2147483647,pnh=36,mnh=1e3,Z1h=e.object({id:e.string().max(Kth),entity_id:e.string().max(Zth),document_id:e.string().max(qth),name:e.string().max(Wth),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(Yth).max($th),day_of_week:e.number().min(Qth).max(Jth).nullish(),day_of_month:e.number().min(Xth).max(enh).nullish(),month_of_year:e.number().min(tnh).max(nnh).nullish(),start_date:e.string().max(snh),end_date:e.string().max(onh).nullish(),next_run_date:e.string().max(inh).nullish(),last_run_date:e.string().max(anh).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(rnh).nullish(),payment_terms_days:e.number().min(lnh).max(dnh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(cnh).max(unh),last_generated_invoice_id:e.string().max(pnh).nullish(),last_error:e.string().max(mnh).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),xnh=/^[a-z]{3,4}_[0-9a-f]{24}$/,q1h=e.object({id:e.stringFormat("resource-id",xnh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),W1h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),gnh=/^[a-z]{3,4}_[0-9a-f]{24}$/,Y1h=e.object({id:e.stringFormat("resource-id",gnh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$1h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ynh=36,Onh=36,vnh=36,hnh=255,Snh=-2147483648,bnh=2147483647,znh=-2147483648,fnh=2147483647,Bnh=-2147483648,Inh=2147483647,Tnh=-2147483648,Enh=2147483647,Dnh=10,Rnh=10,_nh=10,Nnh=10,Mnh=255,Unh=-2147483648,Pnh=2147483647,Cnh=-2147483648,wnh=2147483647,Anh=36,Fnh=1e3,Q1h=e.object({id:e.string().max(ynh),entity_id:e.string().max(Onh),document_id:e.string().max(vnh),name:e.string().max(hnh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(Snh).max(bnh),day_of_week:e.number().min(znh).max(fnh).nullish(),day_of_month:e.number().min(Bnh).max(Inh).nullish(),month_of_year:e.number().min(Tnh).max(Enh).nullish(),start_date:e.string().max(Dnh),end_date:e.string().max(Rnh).nullish(),next_run_date:e.string().max(_nh).nullish(),last_run_date:e.string().max(Nnh).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(Mnh).nullish(),payment_terms_days:e.number().min(Unh).max(Pnh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(Cnh).max(wnh),last_generated_invoice_id:e.string().max(Anh).nullish(),last_error:e.string().max(Fnh).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),knh=/^[a-z]{3,4}_[0-9a-f]{24}$/,J1h=e.object({id:e.stringFormat("resource-id",knh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),X1h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jnh=/^[a-z]{3,4}_[0-9a-f]{24}$/,e4h=e.object({id:e.stringFormat("resource-id",jnh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),t4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hnh=36,Lnh=36,Gnh=36,Vnh=255,Knh=-2147483648,Znh=2147483647,qnh=-2147483648,Wnh=2147483647,Ynh=-2147483648,$nh=2147483647,Qnh=-2147483648,Jnh=2147483647,Xnh=10,esh=10,tsh=10,nsh=10,ssh=255,osh=-2147483648,ish=2147483647,ash=-2147483648,rsh=2147483647,lsh=36,dsh=1e3,n4h=e.object({id:e.string().max(Hnh),entity_id:e.string().max(Lnh),document_id:e.string().max(Gnh),name:e.string().max(Vnh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(Knh).max(Znh),day_of_week:e.number().min(qnh).max(Wnh).nullish(),day_of_month:e.number().min(Ynh).max($nh).nullish(),month_of_year:e.number().min(Qnh).max(Jnh).nullish(),start_date:e.string().max(Xnh),end_date:e.string().max(esh).nullish(),next_run_date:e.string().max(tsh).nullish(),last_run_date:e.string().max(nsh).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(ssh).nullish(),payment_terms_days:e.number().min(osh).max(ish).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(ash).max(rsh),last_generated_invoice_id:e.string().max(lsh).nullish(),last_error:e.string().max(dsh).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),csh=/^[a-z]{3,4}_[0-9a-f]{24}$/,s4h=e.object({id:e.stringFormat("resource-id",csh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),o4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ush=36,psh=36,msh=36,xsh=255,gsh=-2147483648,ysh=2147483647,Osh=-2147483648,vsh=2147483647,hsh=-2147483648,Ssh=2147483647,bsh=-2147483648,zsh=2147483647,fsh=10,Bsh=10,Ish=10,Tsh=10,Esh=255,Dsh=-2147483648,Rsh=2147483647,_sh=-2147483648,Nsh=2147483647,Msh=36,Ush=1e3,i4h=e.object({id:e.string().max(ush),entity_id:e.string().max(psh),document_id:e.string().max(msh),name:e.string().max(xsh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(gsh).max(ysh),day_of_week:e.number().min(Osh).max(vsh).nullish(),day_of_month:e.number().min(hsh).max(Ssh).nullish(),month_of_year:e.number().min(bsh).max(zsh).nullish(),start_date:e.string().max(fsh),end_date:e.string().max(Bsh).nullish(),next_run_date:e.string().max(Ish).nullish(),last_run_date:e.string().max(Tsh).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(Esh).nullish(),payment_terms_days:e.number().min(Dsh).max(Rsh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(_sh).max(Nsh),last_generated_invoice_id:e.string().max(Msh).nullish(),last_error:e.string().max(Ush).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule"),Psh=/^[a-z]{3,4}_[0-9a-f]{24}$/,a4h=e.object({id:e.stringFormat("resource-id",Psh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Csh=100,r4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist."),"X-Request-Id":e.string().max(Csh).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/).")}),wsh=36,Ash=36,Fsh=36,ksh=255,jsh=-2147483648,Hsh=2147483647,Lsh=-2147483648,Gsh=2147483647,Vsh=-2147483648,Ksh=2147483647,Zsh=-2147483648,qsh=2147483647,Wsh=10,Ysh=10,$sh=10,Qsh=10,Jsh=255,Xsh=-2147483648,eoh=2147483647,toh=-2147483648,noh=2147483647,soh=36,ooh=1e3,l4h=e.object({id:e.string().max(wsh),entity_id:e.string().max(Ash),document_id:e.string().max(Fsh),name:e.string().max(ksh),frequency:e.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e.number().min(jsh).max(Hsh),day_of_week:e.number().min(Lsh).max(Gsh).nullish(),day_of_month:e.number().min(Vsh).max(Ksh).nullish(),month_of_year:e.number().min(Zsh).max(qsh).nullish(),start_date:e.string().max(Wsh),end_date:e.string().max(Ysh).nullish(),next_run_date:e.string().max($sh).nullish(),last_run_date:e.string().max(Qsh).nullish(),status:e.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e.boolean(),create_as_draft:e.boolean(),send_to:e.string().max(Jsh).nullish(),payment_terms_days:e.number().min(Xsh).max(eoh).nullish(),notify_owner:e.boolean(),invoices_generated:e.number().min(toh).max(noh),last_generated_invoice_id:e.string().max(soh).nullish(),last_error:e.string().max(ooh).nullish(),last_error_at:e.iso.datetime({}).nullish(),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e.looseObject({})).describe("Recurring invoice schedule");var Wt={};Y(Wt,{BackfillRevenueRecognitionBody:()=>g4h,BackfillRevenueRecognitionHeader:()=>x4h,BackfillRevenueRecognitionResponse:()=>y4h,GetRevenueRecognitionDetailsHeader:()=>b4h,GetRevenueRecognitionDetailsQueryParams:()=>S4h,GetRevenueRecognitionDetailsResponse:()=>z4h,GetRevenueRecognitionDocumentScheduleHeader:()=>E4h,GetRevenueRecognitionDocumentScheduleParams:()=>T4h,GetRevenueRecognitionDocumentScheduleResponse:()=>D4h,GetRevenueRecognitionReportHeader:()=>v4h,GetRevenueRecognitionReportQueryParams:()=>O4h,GetRevenueRecognitionReportResponse:()=>h4h,GetRevenueRecognitionSettingsHeader:()=>d4h,GetRevenueRecognitionSettingsResponse:()=>c4h,ListRevenueRecognitionLinesHeader:()=>B4h,ListRevenueRecognitionLinesQueryParams:()=>f4h,ListRevenueRecognitionLinesResponse:()=>I4h,UpdateRevenueRecognitionSettingsBody:()=>p4h,UpdateRevenueRecognitionSettingsHeader:()=>u4h,UpdateRevenueRecognitionSettingsResponse:()=>m4h,backfillRevenueRecognitionBodyDryRunDefault:()=>loh,getRevenueRecognitionDetailsQueryBasisDefault:()=>uoh,getRevenueRecognitionDetailsQueryFinancialCategoryKeyMax:()=>moh,getRevenueRecognitionDetailsQueryGroupByDefault:()=>poh,getRevenueRecognitionDocumentSchedulePathIdRegExp:()=>voh,getRevenueRecognitionReportQueryBasisDefault:()=>doh,getRevenueRecognitionReportQueryGroupByDefault:()=>coh,getRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>ioh,listRevenueRecognitionLinesQueryBasisDefault:()=>xoh,listRevenueRecognitionLinesQueryFinancialCategoryKeyMax:()=>yoh,listRevenueRecognitionLinesQueryGroupByDefault:()=>goh,listRevenueRecognitionLinesQueryLimitMax:()=>Ooh,updateRevenueRecognitionSettingsBodyDefaultMethodDefault:()=>aoh,updateRevenueRecognitionSettingsResponseDefaultMethodDefault:()=>roh});var d4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ioh="off",c4h=e.object({default_method:e.enum(["off","service_period_daily"]).default(ioh).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),u4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aoh="off",p4h=e.object({default_method:e.union([e.literal("off"),e.literal("service_period_daily"),e.literal(null)]).nullish().default(aoh).describe("Entity default for generated revenue recognition entries. Send null to clear back to the default off behavior.")}),roh="off",m4h=e.object({default_method:e.enum(["off","service_period_daily"]).default(roh).describe("Entity default for generated revenue recognition entries. Individual document lines can opt out with method=immediate.")}),x4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),loh=false,g4h=e.object({date_from:e.string().nullish().describe("Optional document issue date lower bound in YYYY-MM-DD format."),date_to:e.string().nullish().describe("Optional document issue date upper bound in YYYY-MM-DD format."),dry_run:e.boolean().default(loh).describe("When true, counts eligible documents without writing entries.")}),y4h=e.object({processed_documents:e.number(),generated_entries:e.number(),dry_run:e.boolean()}),doh="recognized",coh="financial_category",O4h=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(doh).describe("recognized returns revenue recognized inside each period. deferred returns the remaining future recognition balance at the end of each period."),group_by:e.enum(["financial_category"]).default(coh).describe("Report grouping dimension.")}),v4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),h4h=e.object({basis:e.enum(["recognized","deferred"]),group_by:e.enum(["financial_category"]),calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]).describe("How report values were calculated. recognition_entries uses generated service-period schedules; document_date_fallback uses finalized document-item totals by issue date while automation is off; mixed combines document-date fallback with explicit line-level recognition entries."),periods:e.array(e.object({period:e.string(),date_from:e.string(),date_to:e.string()})),series:e.array(e.object({key:e.string(),financial_category_id:e.string().nullable(),name:e.string(),color:e.string().nullable(),values:e.array(e.number()),total:e.number()})),totals:e.array(e.number()),total:e.number(),currency_code:e.string(),date_from:e.string(),date_to:e.string()}),uoh="recognized",poh="financial_category",moh=200,S4h=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(uoh).describe("recognized returns the entries recognized inside the date range. deferred returns the entries still to be recognized after date_to from documents dated on or before date_to, so the total equals the deferred balance at date_to."),group_by:e.enum(["financial_category"]).default(poh).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e.string().max(moh).nullish().describe("Optional category key (for example `office-supplies`), as an alternative to financial_category_id. Cannot be combined with financial_category_id. An unknown key selects nothing, like an unknown ID. Use null/omit for all categories.")}),b4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),z4h=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({id:e.string(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),document_item_id:e.string(),document_item_name:e.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number(),recognized_amount:e.number(),period_start:e.string(),period_end:e.string(),service_period_start:e.string(),service_period_end:e.string(),method:e.string()})),total:e.number(),currency_code:e.string()}),xoh="recognized",goh="financial_category",yoh=200,Ooh=100,f4h=e.object({date_from:e.string().describe("Report start date in YYYY-MM-DD format."),date_to:e.string().describe("Report end date in YYYY-MM-DD format."),basis:e.enum(["recognized","deferred"]).default(xoh).describe("recognized returns the entries recognized inside the date range. deferred returns the entries still to be recognized after date_to from documents dated on or before date_to, so the total equals the deferred balance at date_to."),group_by:e.enum(["financial_category"]).default(goh).describe("Report grouping dimension."),financial_category_id:e.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e.string().max(yoh).nullish().describe("Optional category key (for example `office-supplies`), as an alternative to financial_category_id. Cannot be combined with financial_category_id. An unknown key selects nothing, like an unknown ID. Use null/omit for all categories."),uncategorized:e.boolean().nullish().describe("When true, only lines without a financial category. Cannot be combined with financial_category_id or financial_category_key."),limit:e.number().min(1).max(Ooh).nullish().describe("Number of lines per page (1-100). Defaults to 20; null or omitted uses the default."),next_cursor:e.string().nullish().describe("Opaque cursor from pagination.next_cursor of the previous response. Null or omitted starts at the first page."),prev_cursor:e.string().nullish().describe("Opaque cursor from pagination.prev_cursor of the previous response. Null or omitted starts at the first page.")}),B4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),I4h=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({document_item_id:e.string(),document_item_name:e.string().nullable(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number().describe("Net amount of the whole document line."),amount:e.number().describe("Sum of the line's entries in the selection: recognized inside the range, or still deferred after date_to."),entry_count:e.number(),first_period_start:e.string(),last_period_start:e.string(),service_period_start:e.string(),service_period_end:e.string()})),total:e.number().describe("Sum of amount across every line in the selection, not only this page."),currency_code:e.string(),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),voh=/^[a-z]{3,4}_[0-9a-f]{24}$/,T4h=e.object({id:e.stringFormat("resource-id",voh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),E4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),D4h=e.object({calculation_mode:e.enum(["recognition_entries","document_date_fallback","mixed"]),data:e.array(e.object({id:e.string(),document_id:e.string(),document_type:e.string(),document_number:e.string(),document_date:e.string(),document_item_id:e.string(),document_item_name:e.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e.string().nullable(),customer_name:e.string().nullable(),financial_category_id:e.string().nullable(),financial_category_name:e.string(),currency_code:e.string(),source_amount:e.number(),recognized_amount:e.number(),period_start:e.string(),period_end:e.string(),service_period_start:e.string(),service_period_end:e.string(),method:e.string()})),total:e.number(),currency_code:e.string()}).and(e.object({document_id:e.string()}));var Yt={};Y(Yt,{StripeAppConnectBody:()=>N4h,StripeAppEntityDisconnectResponse:()=>U4h,StripeAppEntityGetConnectionResponse:()=>M4h,StripeAppEntityGetSettingsResponse:()=>P4h,StripeAppEntityUpdateSettingsBody:()=>C4h,StripeAppEntityUpdateSettingsResponse:()=>w4h,StripeAppMarketplaceAuthorizeBody:()=>R4h,StripeAppMarketplaceAuthorizeResponse:()=>_4h,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>hoh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>boh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>Soh});var R4h=e.object({entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account")}),_4h=e.object({redirect_url:e.url().describe("URL to redirect the user to for authentication")}),N4h=e.object({state:e.string().min(1).describe("State token from the authorize step"),entity_id:e.string().min(1).describe("Entity ID to connect to the Stripe account"),force:e.boolean().nullish().describe("If true, disconnects any existing connection for this Stripe account before connecting. Null is treated as false.")}),M4h=e.object({id:e.string().describe("Connection ID"),stripe_account_id:e.string().describe("Connected Stripe account ID"),entity_id:e.string().describe("Connected Space Invoices entity ID"),entity_name:e.string().optional().describe("Connected Space Invoices entity name"),entity_environment:e.enum(["live","sandbox"]).optional().describe("Connected Space Invoices entity environment"),entity_is_tax_subject:e.boolean().optional().describe("Whether the connected entity is configured to charge tax"),white_label_id:e.string().describe("White-label context for this connection"),auto_invoice_config:e.object({enabled:e.boolean(),events:e.array(e.string()),default_note:e.string().optional()}).describe("Auto-invoice configuration"),created_at:e.iso.datetime({}).describe("When the connection was created")}),U4h=e.object({message:e.string()}),P4h=e.object({auto_invoice_enabled:e.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e.array(e.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),hoh=500,Soh=0,boh=100,C4h=e.object({auto_invoice_enabled:e.boolean().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:e.array(e.enum(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().max(hoh).nullish().describe("Default note to include on auto-created invoices. Set to null to clear the note."),default_tax_rate:e.number().min(Soh).max(boh).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),w4h=e.object({auto_invoice_enabled:e.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e.array(e.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")});var $t={};Y($t,{CheckEntityLimitResponse:()=>j4h,GetCurrentSubscriptionResponse:()=>A4h,UpdateSpendingLimitBody:()=>F4h,UpdateSpendingLimitResponse:()=>k4h,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>zoh,updateSpendingLimitBodySpendingLimitCentsMin:()=>foh});var zoh=0,A4h=e.object({subscription:e.object({id:e.string(),account_id:e.string(),tier:e.enum(["free","metered"]),spending_limit_cents:e.number().nullable(),is_internal:e.boolean(),created_at:e.string(),updated_at:e.string()}),usage:e.object({documents_count:e.number(),e_invoicing_send_count:e.number().default(zoh),entities_active:e.number(),period_start:e.string(),period_end:e.string()}),limits:e.object({entities:e.number().nullable().describe("Max entities for free tier (null for metered)"),documents_per_month:e.number().nullable().describe("Max docs per month for free tier (null for metered)")}),is_over_limit:e.boolean()}).describe("Current subscription and usage for Space Invoices account"),foh=0,F4h=e.object({spending_limit_cents:e.number().min(foh).nullable()}).describe("Request to update spending limit for metered tier"),k4h=e.object({spending_limit_cents:e.number().nullable()}).describe("Updated spending limit"),j4h=e.object({can_create:e.boolean(),current_count:e.number(),limit:e.number().nullable()});var Qt={};Y(Qt,{ListUsTaxRateEstimatesHeader:()=>L4h,ListUsTaxRateEstimatesQueryParams:()=>H4h,ListUsTaxRateEstimatesResponse:()=>G4h,listUsTaxRateEstimatesQueryStateMax:()=>Toh,listUsTaxRateEstimatesQueryStateMin:()=>Ioh,listUsTaxRateEstimatesQueryZipCodeRegExp:()=>Boh,listUsTaxRateEstimatesResponseDataItemCityRateMax:()=>koh,listUsTaxRateEstimatesResponseDataItemCityRateMin:()=>Foh,listUsTaxRateEstimatesResponseDataItemCountryCodeMax:()=>Doh,listUsTaxRateEstimatesResponseDataItemCountyRateMax:()=>Aoh,listUsTaxRateEstimatesResponseDataItemCountyRateMin:()=>woh,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMax:()=>Uoh,listUsTaxRateEstimatesResponseDataItemEstimatedCombinedRateMin:()=>Moh,listUsTaxRateEstimatesResponseDataItemIdMax:()=>Eoh,listUsTaxRateEstimatesResponseDataItemRiskLevelMax:()=>Goh,listUsTaxRateEstimatesResponseDataItemRiskLevelMin:()=>Loh,listUsTaxRateEstimatesResponseDataItemSourceMax:()=>Voh,listUsTaxRateEstimatesResponseDataItemSourceMonthMax:()=>Koh,listUsTaxRateEstimatesResponseDataItemSpecialRateMax:()=>Hoh,listUsTaxRateEstimatesResponseDataItemSpecialRateMin:()=>joh,listUsTaxRateEstimatesResponseDataItemStateMax:()=>Roh,listUsTaxRateEstimatesResponseDataItemStateRateMax:()=>Coh,listUsTaxRateEstimatesResponseDataItemStateRateMin:()=>Poh,listUsTaxRateEstimatesResponseDataItemTaxRegionNameMax:()=>Noh,listUsTaxRateEstimatesResponseDataItemZipCodeMax:()=>_oh});var Boh=/^\d{5}$/,Ioh=2,Toh=2,H4h=e.object({zip_code:e.string().regex(Boh).describe("US ZIP code to look up."),state:e.string().min(Ioh).max(Toh).optional().describe("Optional two-letter US state filter.")}),L4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Eoh=36,Doh=2,Roh=2,_oh=10,Noh=255,Moh=-140737488355328,Uoh=0x7fffffffffff,Poh=-140737488355328,Coh=0x7fffffffffff,woh=-140737488355328,Aoh=0x7fffffffffff,Foh=-140737488355328,koh=0x7fffffffffff,joh=-140737488355328,Hoh=0x7fffffffffff,Loh=-2147483648,Goh=2147483647,Voh=50,Koh=7,G4h=e.object({data:e.array(e.object({id:e.string().max(Eoh),country_code:e.string().max(Doh),state:e.string().max(Roh),zip_code:e.string().max(_oh),tax_region_name:e.string().max(Noh),estimated_combined_rate:e.number().min(Moh).max(Uoh),state_rate:e.number().min(Poh).max(Coh),county_rate:e.number().min(woh).max(Aoh),city_rate:e.number().min(Foh).max(koh),special_rate:e.number().min(joh).max(Hoh),risk_level:e.number().min(Loh).max(Goh),source:e.string().max(Voh),source_month:e.string().max(Koh),imported_at:e.iso.datetime({})}).describe("Imported ZIP-level tax-rate estimate. This is informational and must be verified before use."))});var Jt={};Y(Jt,{CreateTaxPaymentBody:()=>Q4h,CreateTaxPaymentHeader:()=>$4h,DeleteTaxPaymentHeader:()=>s3h,DeleteTaxPaymentParams:()=>n3h,ExportQuickbooksCsvHeader:()=>T3h,ExportQuickbooksCsvQueryParams:()=>I3h,ExportSloveniaMinimaxXmlBody:()=>z3h,ExportSloveniaMinimaxXmlHeader:()=>b3h,ExportSloveniaVascoXmlBody:()=>B3h,ExportSloveniaVascoXmlHeader:()=>f3h,ExportSloveniaVodXmlBody:()=>S3h,ExportSloveniaVodXmlHeader:()=>h3h,ExportSloveniaYearlyNormiraniReportBody:()=>v3h,ExportSloveniaYearlyNormiraniReportHeader:()=>O3h,GenerateKirExportHeader:()=>l3h,GenerateKirExportQueryParams:()=>r3h,GetEuOssReportHeader:()=>i3h,GetEuOssReportQueryParams:()=>o3h,GetEuOssReportResponse:()=>a3h,GetSloveniaTaxProfileHeader:()=>d3h,GetSloveniaTaxProfileResponse:()=>c3h,GetTaxLiabilityReportHeader:()=>K4h,GetTaxLiabilityReportQueryParams:()=>V4h,GetTaxLiabilityReportResponse:()=>Z4h,GetTaxPaymentsHeader:()=>W4h,GetTaxPaymentsQueryParams:()=>q4h,GetTaxPaymentsResponse:()=>Y4h,ReviewSloveniaYearlyNormiraniReportBody:()=>g3h,ReviewSloveniaYearlyNormiraniReportHeader:()=>x3h,ReviewSloveniaYearlyNormiraniReportResponse:()=>y3h,UpdateSloveniaTaxProfileBody:()=>p3h,UpdateSloveniaTaxProfileHeader:()=>u3h,UpdateSloveniaTaxProfileResponse:()=>m3h,UpdateTaxPaymentBody:()=>e3h,UpdateTaxPaymentHeader:()=>X4h,UpdateTaxPaymentParams:()=>J4h,UpdateTaxPaymentResponse:()=>t3h,createTaxPaymentBodyAmountExclusiveMin:()=>Zoh,createTaxPaymentBodyCurrencyCodeMax:()=>Woh,createTaxPaymentBodyCurrencyCodeMin:()=>qoh,createTaxPaymentBodyNoteMax:()=>$oh,createTaxPaymentBodyReferenceMax:()=>Yoh,deleteTaxPaymentPathIdRegExp:()=>tih,exportSloveniaYearlyNormiraniReportBodyManualValuesForeignTaxCreditAmountMin:()=>Krh,exportSloveniaYearlyNormiraniReportBodyManualValuesPriorAdvanceIncomeTaxAmountMin:()=>Zrh,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentDecreaseMin:()=>qrh,exportSloveniaYearlyNormiraniReportBodyManualValuesRevenueAdjustmentIncreaseMin:()=>Wrh,exportSloveniaYearlyNormiraniReportBodyManualValuesWithholdingTaxAmountMin:()=>Vrh,exportSloveniaYearlyNormiraniReportBodyYearMax:()=>Grh,exportSloveniaYearlyNormiraniReportBodyYearMin:()=>Lrh,generateKirExportQueryMonthRegExp:()=>gih,generateKirExportQueryQuarterRegExp:()=>yih,generateKirExportQueryYearRegExp:()=>xih,getEuOssReportQueryYearMax:()=>sih,getEuOssReportQueryYearMin:()=>nih,getEuOssReportResponseIssuerCountryCodeMax:()=>iih,getEuOssReportResponseIssuerCountryCodeMin:()=>oih,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMax:()=>uih,getEuOssReportResponsePeriodsItemCountriesItemCountryCodeMin:()=>cih,getEuOssReportResponsePeriodsItemCountriesItemCreditNoteCountMin:()=>mih,getEuOssReportResponsePeriodsItemCountriesItemInvoiceCountMin:()=>pih,getEuOssReportResponsePeriodsItemCreditNoteCountMin:()=>dih,getEuOssReportResponsePeriodsItemInvoiceCountMin:()=>lih,getEuOssReportResponseReportingCurrencyCodeMax:()=>rih,getEuOssReportResponseReportingCurrencyCodeMin:()=>aih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>fih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>zih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>bih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>kih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Hih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>jih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Gih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>Vih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Lih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Kih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Zih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>qih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>Eih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>Rih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>Dih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>Sih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>_ih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>Mih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Nih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>Pih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Cih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>Uih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>wih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>Aih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Fih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>Bih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>Tih,getSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>Iih,getSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>Oih,getSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>hih,getSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>vih,reviewSloveniaYearlyNormiraniReportBodyYearMax:()=>srh,reviewSloveniaYearlyNormiraniReportBodyYearMin:()=>nrh,reviewSloveniaYearlyNormiraniReportResponseManualValuesForeignTaxCreditAmountMin:()=>Frh,reviewSloveniaYearlyNormiraniReportResponseManualValuesPriorAdvanceIncomeTaxAmountMin:()=>krh,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentDecreaseMin:()=>jrh,reviewSloveniaYearlyNormiraniReportResponseManualValuesRevenueAdjustmentIncreaseMin:()=>Hrh,reviewSloveniaYearlyNormiraniReportResponseManualValuesWithholdingTaxAmountMin:()=>Arh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>prh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>urh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePayablesMax:()=>crh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>Drh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>_rh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>Rrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Mrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>Urh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>Nrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Prh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>Crh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>wrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>yrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>vrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>Orh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneReceivablesMax:()=>drh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>hrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>brh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>Srh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>frh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Brh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>zrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>Irh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>Trh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Erh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat22Max:()=>mrh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat5Max:()=>grh,reviewSloveniaYearlyNormiraniReportResponseProfileAccountingExportsKontoMappingsOneSalesVat95Max:()=>xrh,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingActivityCodesItemRegExp:()=>arh,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultForeignTaxCreditAmountMin:()=>lrh,reviewSloveniaYearlyNormiraniReportResponseProfileYearlyReportingDefaultWithholdingTaxAmountMin:()=>rrh,reviewSloveniaYearlyNormiraniReportResponseYearMax:()=>irh,reviewSloveniaYearlyNormiraniReportResponseYearMin:()=>orh,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesPaidMax:()=>eah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsAdvancesReceivedMax:()=>Xih,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPayablesMax:()=>Jih,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense22Max:()=>yah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense5Max:()=>vah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpense95Max:()=>Oah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuGoodsMax:()=>Sah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseEuServicesMax:()=>bah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseExemptMax:()=>hah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseReverseChargeMax:()=>zah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryGoodsMax:()=>fah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseExpenseThirdCountryServicesMax:()=>Bah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable22Max:()=>oah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable5Max:()=>aah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsPurchaseVatRecoverable95Max:()=>iah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsReceivablesMax:()=>Qih,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue22Max:()=>rah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue5Max:()=>dah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenue95Max:()=>lah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuGoodsMax:()=>uah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueEuServicesMax:()=>pah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueExemptMax:()=>cah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueReverseChargeMax:()=>mah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryGoodsMax:()=>xah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesRevenueThirdCountryServicesMax:()=>gah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat22Max:()=>tah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat5Max:()=>sah,updateSloveniaTaxProfileBodyAccountingExportsKontoMappingsSalesVat95Max:()=>nah,updateSloveniaTaxProfileBodyYearlyReportingActivityCodesItemRegExp:()=>Wih,updateSloveniaTaxProfileBodyYearlyReportingDefaultForeignTaxCreditAmountMin:()=>$ih,updateSloveniaTaxProfileBodyYearlyReportingDefaultWithholdingTaxAmountMin:()=>Yih,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesPaidMax:()=>Nah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneAdvancesReceivedMax:()=>_ah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePayablesMax:()=>Rah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense22Max:()=>qah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense5Max:()=>Yah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpense95Max:()=>Wah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuGoodsMax:()=>Qah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseEuServicesMax:()=>Jah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseExemptMax:()=>$ah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseReverseChargeMax:()=>Xah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryGoodsMax:()=>erh,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseExpenseThirdCountryServicesMax:()=>trh,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable22Max:()=>Cah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable5Max:()=>Aah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOnePurchaseVatRecoverable95Max:()=>wah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneReceivablesMax:()=>Dah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue22Max:()=>Fah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue5Max:()=>jah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenue95Max:()=>kah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuGoodsMax:()=>Lah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueEuServicesMax:()=>Gah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueExemptMax:()=>Hah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueReverseChargeMax:()=>Vah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryGoodsMax:()=>Kah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesRevenueThirdCountryServicesMax:()=>Zah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat22Max:()=>Mah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat5Max:()=>Pah,updateSloveniaTaxProfileResponseAccountingExportsKontoMappingsOneSalesVat95Max:()=>Uah,updateSloveniaTaxProfileResponseYearlyReportingActivityCodesItemRegExp:()=>Iah,updateSloveniaTaxProfileResponseYearlyReportingDefaultForeignTaxCreditAmountMin:()=>Eah,updateSloveniaTaxProfileResponseYearlyReportingDefaultWithholdingTaxAmountMin:()=>Tah,updateTaxPaymentBodyAmountExclusiveMin:()=>Joh,updateTaxPaymentBodyNoteMax:()=>eih,updateTaxPaymentBodyReferenceMax:()=>Xoh,updateTaxPaymentPathIdRegExp:()=>Qoh});var V4h=e.object({date_from:e.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),K4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Z4h=e.object({date_from:e.string(),date_to:e.string(),currency_code:e.string(),totals:e.object({output_tax:e.number(),output_tax_adjustments:e.number(),input_tax:e.number(),input_tax_adjustments:e.number(),reverse_charge_tax:e.number(),non_deductible_input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number()}),by_rate:e.array(e.object({rate:e.number().nullable(),output_tax:e.number(),output_tax_adjustments:e.number(),input_tax:e.number(),input_tax_adjustments:e.number(),reverse_charge_tax:e.number(),non_deductible_input_tax:e.number(),net_tax_due:e.number()})),payments:e.array(e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})})),remaining:e.number(),warnings:e.array(e.object({code:e.string(),message:e.string(),document_id:e.string().nullable(),document_type:e.string().nullable()}))}),q4h=e.object({date_from:e.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),W4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Y4h=e.object({data:e.array(e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}))}),$4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zoh=0,qoh=3,Woh=3,Yoh=100,$oh=500,Q4h=e.object({date_from:e.iso.date().describe("Tax period start date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Tax period end date in YYYY-MM-DD format."),amount:e.number().gt(Zoh).describe("Amount paid to the tax authority."),currency_code:e.string().min(qoh).max(Woh).nullish().describe("Payment currency. Defaults to and must match the entity currency."),payment_date:e.iso.date().nullish().describe("Payment date in YYYY-MM-DD format. Defaults to today."),type:e.union([e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),e.null()]).optional().describe("How the tax authority payment was made. Defaults to bank_transfer when omitted or null."),reference:e.string().max(Yoh).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max($oh).nullish().describe("Internal note for this tax payment."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Qoh=/^txpay_[0-9a-f]{24}$/,J4h=e.object({id:e.string().regex(Qoh).describe("Tax payment identifier")}),X4h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Joh=0,Xoh=100,eih=500,e3h=e.object({amount:e.number().gt(Joh).optional().describe("Amount paid to the tax authority."),payment_date:e.iso.date().optional().describe("Replacement payment date in YYYY-MM-DD format. Omit to leave it unchanged."),type:e.enum(["bank_transfer","card","cash","check","other"]).optional().describe("Replacement payment type. Omit to leave it unchanged; null is not accepted."),reference:e.string().max(Xoh).nullish().describe("Bank, tax authority, or filing reference."),note:e.string().max(eih).nullish().describe("Internal note for this tax payment."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),t3h=e.object({id:e.string(),entity_id:e.string(),date_from:e.string(),date_to:e.string(),amount:e.number(),currency_code:e.string(),payment_date:e.string(),type:e.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e.string().nullable(),note:e.string().nullable(),liability_snapshot:e.union([e.object({date_from:e.string(),date_to:e.string(),output_tax:e.number(),input_tax:e.number(),net_tax_due:e.number(),paid:e.number(),remaining:e.number(),currency_code:e.string()}),e.null()]),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),deleted_at:e.iso.datetime({}).nullable(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),tih=/^txpay_[0-9a-f]{24}$/,n3h=e.object({id:e.string().regex(tih).describe("Tax payment identifier")}),s3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nih=2021,sih=2100,o3h=e.object({year:e.number().min(nih).max(sih).optional().describe("Calendar year to review together with its preceding year.")}),i3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oih=2,iih=2,aih=3,rih=3,lih=0,dih=0,cih=2,uih=2,pih=0,mih=0,a3h=e.object({entity_id:e.string(),eligible:e.boolean(),eligibility_reason:e.enum(["eligible","issuer_not_in_eu","issuer_country_not_supported","entity_not_tax_subject"]),issuer_country_code:e.string().min(oih).max(iih).nullable(),reporting_currency_code:e.string().min(aih).max(rih).nullable(),selected_year:e.number(),auto_apply_destination_vat:e.boolean(),threshold:e.object({amount:e.literal(1e4),currency_code:e.enum(["EUR"]),comparison_available:e.boolean(),status:e.enum(["below_threshold","exceeds_threshold","comparison_unavailable"]),selected_year_net_sales:e.number(),preceding_year_net_sales:e.number()}).describe("Comparison with the EU-wide EUR 10,000 threshold. Status is unavailable when the entity reporting currency is not EUR."),periods:e.array(e.object({year:e.number(),invoice_count:e.number().min(lih),credit_note_count:e.number().min(dih),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),countries:e.array(e.object({country_code:e.string().min(cih).max(uih),country_name:e.string(),invoice_count:e.number().min(pih),credit_note_count:e.number().min(mih),net_sales:e.number(),vat_collected:e.number(),gross_sales:e.number(),standard_vat_rate:e.number().nullable(),reduced_vat_rates:e.array(e.number())}).describe("Operational intra-EU B2C sales totals for one destination country."))}).describe("EU OSS tracking totals for one calendar year.")),guidance_url:e.url(),vat_rates_verified_through:e.iso.date(),notices:e.array(e.enum(["scope_requires_review","vat_rates_reference_only","vat_rates_last_verified","stored_conversion_data_only"]))}).describe("Operational EU OSS tracker for finalized intra-EU B2C invoices and credit notes. It is not a legal filing determination."),xih=/^\d{4}$/,gih=/^(1[0-2]|[1-9])$/,yih=/^[1-4]$/,r3h=e.object({year:e.string().regex(xih).describe("Year for the combined KIR/KPR export (e.g., 2025)"),month:e.string().regex(gih).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e.string().regex(yih).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),l3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),d3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Oih=/^\d{2}\.\d{3}$/,vih=0,hih=0,Sih=8,bih=8,zih=8,fih=8,Bih=8,Iih=8,Tih=8,Eih=8,Dih=8,Rih=8,_ih=8,Nih=8,Mih=8,Uih=8,Pih=8,Cih=8,wih=8,Aih=8,Fih=8,kih=8,jih=8,Hih=8,Lih=8,Gih=8,Vih=8,Kih=8,Zih=8,qih=8,c3h=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(Oih).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(vih).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(hih).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(Sih).nullish(),payables:e.string().max(bih).nullish(),advances_received:e.string().max(zih).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(fih).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(Bih).nullish(),sales_vat_95:e.string().max(Iih).nullish(),sales_vat_5:e.string().max(Tih).nullish(),purchase_vat_recoverable_22:e.string().max(Eih).nullish(),purchase_vat_recoverable_95:e.string().max(Dih).nullish(),purchase_vat_recoverable_5:e.string().max(Rih).nullish(),sales_revenue_22:e.string().max(_ih).nullish(),sales_revenue_95:e.string().max(Nih).nullish(),sales_revenue_5:e.string().max(Mih).nullish(),sales_revenue_exempt:e.string().max(Uih).nullish(),sales_revenue_eu_goods:e.string().max(Pih).nullish(),sales_revenue_eu_services:e.string().max(Cih).nullish(),sales_revenue_reverse_charge:e.string().max(wih).nullish(),sales_revenue_third_country_goods:e.string().max(Aih).nullish(),sales_revenue_third_country_services:e.string().max(Fih).nullish(),purchase_expense_22:e.string().max(kih).nullish(),purchase_expense_95:e.string().max(jih).nullish(),purchase_expense_5:e.string().max(Hih).nullish(),purchase_expense_exempt:e.string().max(Lih).nullish(),purchase_expense_eu_goods:e.string().max(Gih).nullish(),purchase_expense_eu_services:e.string().max(Vih).nullish(),purchase_expense_reverse_charge:e.string().max(Kih).nullish(),purchase_expense_third_country_goods:e.string().max(Zih).nullish(),purchase_expense_third_country_services:e.string().max(qih).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),u3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wih=/^\d{2}\.\d{3}$/,Yih=0,$ih=0,Qih=8,Jih=8,Xih=8,eah=8,tah=8,nah=8,sah=8,oah=8,iah=8,aah=8,rah=8,lah=8,dah=8,cah=8,uah=8,pah=8,mah=8,xah=8,gah=8,yah=8,Oah=8,vah=8,hah=8,Sah=8,bah=8,zah=8,fah=8,Bah=8,p3h=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullish().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullish().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullish().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().nullish(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullish().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(Wih).describe("Slovenian SKD activity code used for yearly reporting.")).nullish(),registration_number:e.string().nullish(),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullish().describe("Accounting or records mode used for the yearly filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullish().describe("Insurance basis used to determine the applicable normirani rules."),default_withholding_tax_amount:e.number().min(Yih).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e.number().min($ih).nullish().describe("Monetary amount in EUR.")}).nullish(),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullish().describe("Stored preferred export format for Slovenian accounting handoff."),konto_mappings:e.object({receivables:e.string().max(Qih).nullish(),payables:e.string().max(Jih).nullish(),advances_received:e.string().max(Xih).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(eah).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(tah).nullish(),sales_vat_95:e.string().max(nah).nullish(),sales_vat_5:e.string().max(sah).nullish(),purchase_vat_recoverable_22:e.string().max(oah).nullish(),purchase_vat_recoverable_95:e.string().max(iah).nullish(),purchase_vat_recoverable_5:e.string().max(aah).nullish(),sales_revenue_22:e.string().max(rah).nullish(),sales_revenue_95:e.string().max(lah).nullish(),sales_revenue_5:e.string().max(dah).nullish(),sales_revenue_exempt:e.string().max(cah).nullish(),sales_revenue_eu_goods:e.string().max(uah).nullish(),sales_revenue_eu_services:e.string().max(pah).nullish(),sales_revenue_reverse_charge:e.string().max(mah).nullish(),sales_revenue_third_country_goods:e.string().max(xah).nullish(),sales_revenue_third_country_services:e.string().max(gah).nullish(),purchase_expense_22:e.string().max(yah).nullish(),purchase_expense_95:e.string().max(Oah).nullish(),purchase_expense_5:e.string().max(vah).nullish(),purchase_expense_exempt:e.string().max(hah).nullish(),purchase_expense_eu_goods:e.string().max(Sah).nullish(),purchase_expense_eu_services:e.string().max(bah).nullish(),purchase_expense_reverse_charge:e.string().max(zah).nullish(),purchase_expense_third_country_goods:e.string().max(fah).nullish(),purchase_expense_third_country_services:e.string().max(Bah).nullish()}).nullish()}).nullish()}),Iah=/^\d{2}\.\d{3}$/,Tah=0,Eah=0,Dah=8,Rah=8,_ah=8,Nah=8,Mah=8,Uah=8,Pah=8,Cah=8,wah=8,Aah=8,Fah=8,kah=8,jah=8,Hah=8,Lah=8,Gah=8,Vah=8,Kah=8,Zah=8,qah=8,Wah=8,Yah=8,$ah=8,Qah=8,Jah=8,Xah=8,erh=8,trh=8,m3h=e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(Iah).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(Tah).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(Eah).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(Dah).nullish(),payables:e.string().max(Rah).nullish(),advances_received:e.string().max(_ah).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(Nah).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(Mah).nullish(),sales_vat_95:e.string().max(Uah).nullish(),sales_vat_5:e.string().max(Pah).nullish(),purchase_vat_recoverable_22:e.string().max(Cah).nullish(),purchase_vat_recoverable_95:e.string().max(wah).nullish(),purchase_vat_recoverable_5:e.string().max(Aah).nullish(),sales_revenue_22:e.string().max(Fah).nullish(),sales_revenue_95:e.string().max(kah).nullish(),sales_revenue_5:e.string().max(jah).nullish(),sales_revenue_exempt:e.string().max(Hah).nullish(),sales_revenue_eu_goods:e.string().max(Lah).nullish(),sales_revenue_eu_services:e.string().max(Gah).nullish(),sales_revenue_reverse_charge:e.string().max(Vah).nullish(),sales_revenue_third_country_goods:e.string().max(Kah).nullish(),sales_revenue_third_country_services:e.string().max(Zah).nullish(),purchase_expense_22:e.string().max(qah).nullish(),purchase_expense_95:e.string().max(Wah).nullish(),purchase_expense_5:e.string().max(Yah).nullish(),purchase_expense_exempt:e.string().max($ah).nullish(),purchase_expense_eu_goods:e.string().max(Qah).nullish(),purchase_expense_eu_services:e.string().max(Jah).nullish(),purchase_expense_reverse_charge:e.string().max(Xah).nullish(),purchase_expense_third_country_goods:e.string().max(erh).nullish(),purchase_expense_third_country_services:e.string().max(trh).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),x3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nrh=2025,srh=2100,g3h=e.object({year:e.number().min(nrh).max(srh).describe("Tax year for the yearly Slovenia eDavki filing.")}),orh=2025,irh=2100,arh=/^\d{2}\.\d{3}$/,rrh=0,lrh=0,drh=8,crh=8,urh=8,prh=8,mrh=8,xrh=8,grh=8,yrh=8,Orh=8,vrh=8,hrh=8,Srh=8,brh=8,zrh=8,frh=8,Brh=8,Irh=8,Trh=8,Erh=8,Drh=8,Rrh=8,_rh=8,Nrh=8,Mrh=8,Urh=8,Prh=8,Crh=8,wrh=8,Arh=0,Frh=0,krh=0,jrh=0,Hrh=0,y3h=e.object({entity_id:e.string(),year:e.number().min(orh).max(irh).describe("Tax year for the yearly Slovenia eDavki filing."),filing_kind:e.enum(["regular_annual"]),profile:e.object({business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e.union([e.literal("normirani"),e.literal("dejanski"),e.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e.union([e.literal("standard"),e.literal("special_vat_identified"),e.literal("non_vat_subject"),e.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e.boolean().optional(),tax_residency:e.union([e.literal("resident"),e.literal("non_resident"),e.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e.object({activity_codes:e.array(e.string().regex(arh).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e.union([e.literal("records"),e.literal("single_entry"),e.literal("double_entry"),e.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e.union([e.literal("full_time_self_employed"),e.literal("other"),e.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e.number().min(rrh).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e.number().min(lrh).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e.object({preferred_format:e.union([e.literal("vod_xml"),e.literal("vasco_xml"),e.literal("minimax_xml"),e.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e.object({receivables:e.string().max(drh).nullish(),payables:e.string().max(crh).nullish(),advances_received:e.string().max(urh).nullish().describe("Received advance liability account for miniMAX final-invoice settlement. Defaults to 2300; use the account on which receipts are booked in miniMAX."),advances_paid:e.string().max(prh).nullish().describe("Paid advance asset account for miniMAX final-invoice settlement. Defaults to 1300; use the account on which advance payments are booked in miniMAX."),sales_vat_22:e.string().max(mrh).nullish(),sales_vat_95:e.string().max(xrh).nullish(),sales_vat_5:e.string().max(grh).nullish(),purchase_vat_recoverable_22:e.string().max(yrh).nullish(),purchase_vat_recoverable_95:e.string().max(Orh).nullish(),purchase_vat_recoverable_5:e.string().max(vrh).nullish(),sales_revenue_22:e.string().max(hrh).nullish(),sales_revenue_95:e.string().max(Srh).nullish(),sales_revenue_5:e.string().max(brh).nullish(),sales_revenue_exempt:e.string().max(zrh).nullish(),sales_revenue_eu_goods:e.string().max(frh).nullish(),sales_revenue_eu_services:e.string().max(Brh).nullish(),sales_revenue_reverse_charge:e.string().max(Irh).nullish(),sales_revenue_third_country_goods:e.string().max(Trh).nullish(),sales_revenue_third_country_services:e.string().max(Erh).nullish(),purchase_expense_22:e.string().max(Drh).nullish(),purchase_expense_95:e.string().max(Rrh).nullish(),purchase_expense_5:e.string().max(_rh).nullish(),purchase_expense_exempt:e.string().max(Nrh).nullish(),purchase_expense_eu_goods:e.string().max(Mrh).nullish(),purchase_expense_eu_services:e.string().max(Urh).nullish(),purchase_expense_reverse_charge:e.string().max(Prh).nullish(),purchase_expense_third_country_goods:e.string().max(Crh).nullish(),purchase_expense_third_country_services:e.string().max(wrh).nullish()}).and(e.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e.enum(["stored","registry","unknown"]),inferred_business_form:e.union([e.literal("sp"),e.literal("doo"),e.literal("dno"),e.literal("club"),e.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e.object({yearly_normirani:e.boolean(),vod_xml:e.boolean(),vasco_xml:e.boolean(),minimax_xml:e.boolean()}),unsupported_reason:e.string().nullable()}),auto_values:e.object({total_invoice_revenue:e.number(),total_credit_note_reduction:e.number(),computed_revenue:e.number(),adjusted_revenue:e.number(),normative_expense_rate:e.number(),normative_expenses:e.number(),tax_base:e.number(),income_tax_rate:e.number(),income_tax_amount:e.number(),advance_tax_amount:e.number(),monthly_installment_amount:e.number(),quarterly_installment_amount:e.number()}),manual_values:e.object({withholding_tax_amount:e.number().min(Arh).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Frh).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(krh).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(jrh).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(Hrh).describe("Monetary amount in EUR.")}),derived_flags:e.object({has_foreign_customers:e.boolean(),has_foreign_tax_numbers:e.boolean(),has_non_eur_documents:e.boolean()}),warnings:e.array(e.object({code:e.string(),message:e.string(),severity:e.enum(["info","warning"])})),issue_details:e.array(e.object({code:e.string(),title:e.string(),summary:e.string(),explanation:e.string(),action:e.string().nullable(),severity:e.enum(["info","warning"]),official_sources:e.array(e.object({label:e.string(),url:e.url(),issuer:e.enum(["FURS","PISRS"])})),affected_documents:e.array(e.object({id:e.string(),type:e.enum(["invoice","credit_note"]),number:e.string(),date:e.string(),customer_name:e.string().nullable(),customer_country_code:e.string().nullable(),customer_tax_number:e.string().nullable(),currency_code:e.string(),total:e.number(),total_converted:e.number().nullable(),reason:e.string(),document_path:e.string()}))})),rule_summary:e.object({normative_expense_rule:e.string(),income_tax_rule:e.string(),advance_rule:e.string()})}),O3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Lrh=2025,Grh=2100,Vrh=0,Krh=0,Zrh=0,qrh=0,Wrh=0,v3h=e.object({year:e.number().min(Lrh).max(Grh).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e.object({withholding_tax_amount:e.number().min(Vrh).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e.number().min(Krh).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e.number().min(Zrh).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e.number().min(qrh).describe("Monetary amount in EUR."),revenue_adjustment_increase:e.number().min(Wrh).describe("Monetary amount in EUR.")})}),h3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),S3h=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),b3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),z3h=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),f3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),B3h=e.object({date_from:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),I3h=e.object({date_from:e.iso.date().describe("Inclusive lower bound of the issued or supplier document date, in YYYY-MM-DD format."),date_to:e.iso.date().describe("Inclusive upper bound of the issued or supplier document date, in YYYY-MM-DD format. The range cannot exceed one year.")}),T3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Xt={};Y(Xt,{CreateTaxBody:()=>D3h,CreateTaxHeader:()=>E3h,DeleteTaxHeader:()=>H3h,DeleteTaxParams:()=>j3h,GetTaxesHeader:()=>_3h,GetTaxesQueryParams:()=>R3h,GetTaxesResponse:()=>N3h,PermanentDeleteTaxHeader:()=>Z3h,PermanentDeleteTaxParams:()=>K3h,ReplaceTaxBody:()=>F3h,ReplaceTaxHeader:()=>A3h,ReplaceTaxParams:()=>w3h,ReplaceTaxResponse:()=>k3h,RestoreTaxHeader:()=>G3h,RestoreTaxParams:()=>L3h,RestoreTaxResponse:()=>V3h,UpdateTaxBody:()=>P3h,UpdateTaxHeader:()=>U3h,UpdateTaxParams:()=>M3h,UpdateTaxResponse:()=>C3h,createTaxBodyDestinationVatCountryCodeMax:()=>Xrh,createTaxBodyDestinationVatCountryCodeMin:()=>Jrh,createTaxBodyNameMax:()=>Yrh,createTaxBodyPtExemptionReasonMax:()=>elh,createTaxBodyTaxRatesItemRateMax:()=>Qrh,createTaxBodyTaxRatesItemRateMin:()=>$rh,deleteTaxPathIdRegExp:()=>Plh,getTaxesQueryLimitDefault:()=>tlh,getTaxesQueryLimitMax:()=>nlh,getTaxesResponseDataItemOneDestinationVatCountryCodeMax:()=>llh,getTaxesResponseDataItemOneDestinationVatCountryCodeMin:()=>rlh,getTaxesResponseDataItemOneEntityIdMax:()=>dlh,getTaxesResponseDataItemOneIdMax:()=>slh,getTaxesResponseDataItemOneNameMax:()=>olh,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>alh,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>ilh,permanentDeleteTaxPathIdRegExp:()=>Glh,replaceTaxBodyDestinationVatCountryCodeMax:()=>Ilh,replaceTaxBodyDestinationVatCountryCodeMin:()=>Blh,replaceTaxBodyNameMax:()=>blh,replaceTaxBodyPtExemptionReasonMax:()=>Tlh,replaceTaxBodyTaxRatesItemRateMax:()=>flh,replaceTaxBodyTaxRatesItemRateMin:()=>zlh,replaceTaxPathIdRegExp:()=>Slh,replaceTaxResponseOneDestinationVatCountryCodeMax:()=>Mlh,replaceTaxResponseOneDestinationVatCountryCodeMin:()=>Nlh,replaceTaxResponseOneEntityIdMax:()=>Ulh,replaceTaxResponseOneIdMax:()=>Elh,replaceTaxResponseOneNameMax:()=>Dlh,replaceTaxResponseOneTaxRatesItemRateMax:()=>_lh,replaceTaxResponseOneTaxRatesItemRateMin:()=>Rlh,restoreTaxPathIdRegExp:()=>Clh,restoreTaxResponseOneDestinationVatCountryCodeMax:()=>Hlh,restoreTaxResponseOneDestinationVatCountryCodeMin:()=>jlh,restoreTaxResponseOneEntityIdMax:()=>Llh,restoreTaxResponseOneIdMax:()=>wlh,restoreTaxResponseOneNameMax:()=>Alh,restoreTaxResponseOneTaxRatesItemRateMax:()=>klh,restoreTaxResponseOneTaxRatesItemRateMin:()=>Flh,updateTaxBodyTaxRatesItemRateMax:()=>plh,updateTaxBodyTaxRatesItemRateMin:()=>ulh,updateTaxPathIdRegExp:()=>clh,updateTaxResponseOneDestinationVatCountryCodeMax:()=>vlh,updateTaxResponseOneDestinationVatCountryCodeMin:()=>Olh,updateTaxResponseOneEntityIdMax:()=>hlh,updateTaxResponseOneIdMax:()=>mlh,updateTaxResponseOneNameMax:()=>xlh,updateTaxResponseOneTaxRatesItemRateMax:()=>ylh,updateTaxResponseOneTaxRatesItemRateMin:()=>glh});var E3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Yrh=100,$rh=0,Qrh=100,Jrh=2,Xrh=2,elh=60,D3h=e.object({name:e.string().max(Yrh).optional(),tax_rates:e.array(e.object({rate:e.number().min($rh).max(Qrh),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Jrh).max(Xrh).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(elh).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),tlh=10,nlh=100,R3h=e.object({limit:e.number().min(1).max(nlh).default(tlh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e.union([e.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),e.array(e.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, is_default, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e.string().optional().describe(`Full-text search query to filter results across multiple fields.
231
231
  Searches are case-insensitive and match partial strings.
232
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),_3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),slh=36,olh=100,ilh=0,alh=100,rlh=2,llh=2,dlh=36,N3h=e.object({data:e.array(e.object({id:e.string().max(slh),name:e.string().max(olh),tax_rates:e.array(e.object({rate:e.number().min(ilh).max(alh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(rlh).max(llh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(dlh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,M3h=e.object({id:e.stringFormat("resource-id",clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),U3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ulh=0,plh=100,P3h=e.object({tax_rates:e.array(e.object({rate:e.number().min(ulh).max(plh),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),mlh=36,xlh=100,glh=0,ylh=100,Olh=2,vlh=2,hlh=36,C3h=e.object({id:e.string().max(mlh),name:e.string().max(xlh),tax_rates:e.array(e.object({rate:e.number().min(glh).max(ylh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Olh).max(vlh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(hlh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Slh=/^[a-z]{3,4}_[0-9a-f]{24}$/,w3h=e.object({id:e.stringFormat("resource-id",Slh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),A3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),blh=100,zlh=0,flh=100,Blh=2,Ilh=2,Tlh=60,F3h=e.object({name:e.string().max(blh).optional(),tax_rates:e.array(e.object({rate:e.number().min(zlh).max(flh),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Blh).max(Ilh).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(Tlh).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Elh=36,Dlh=100,Rlh=0,_lh=100,Nlh=2,Mlh=2,Ulh=36,k3h=e.object({id:e.string().max(Elh),name:e.string().max(Dlh),tax_rates:e.array(e.object({rate:e.number().min(Rlh).max(_lh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Nlh).max(Mlh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Ulh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Plh=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3h=e.object({id:e.stringFormat("resource-id",Plh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,L3h=e.object({id:e.stringFormat("resource-id",Clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),G3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wlh=36,Alh=100,Flh=0,klh=100,jlh=2,Hlh=2,Llh=36,V3h=e.object({id:e.string().max(wlh),name:e.string().max(Alh),tax_rates:e.array(e.object({rate:e.number().min(Flh).max(klh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(jlh).max(Hlh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Llh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Glh=/^[a-z]{3,4}_[0-9a-f]{24}$/,K3h=e.object({id:e.stringFormat("resource-id",Glh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Z3h=e.object({"x-entity-id":e.string().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 en={};Y(en,{DownloadTicketBaiRecordXmlHeader:()=>iGh,DownloadTicketBaiRecordXmlParams:()=>oGh,GetTicketBaiRecordHeader:()=>nGh,GetTicketBaiRecordParams:()=>tGh,GetTicketBaiRecordResponse:()=>sGh,GetTicketBaiSettingsHeader:()=>q3h,GetTicketBaiSettingsResponse:()=>W3h,ReconcileTicketBaiRecordHeader:()=>cGh,ReconcileTicketBaiRecordParams:()=>dGh,ReconcileTicketBaiRecordResponse:()=>uGh,RetryTicketBaiRecordHeader:()=>rGh,RetryTicketBaiRecordParams:()=>aGh,RetryTicketBaiRecordResponse:()=>lGh,UpdateTicketBaiSettingsBody:()=>$3h,UpdateTicketBaiSettingsHeader:()=>Y3h,UpdateTicketBaiSettingsResponse:()=>Q3h,UploadTicketBaiCertificateBody:()=>X3h,UploadTicketBaiCertificateHeader:()=>J3h,UploadTicketBaiCertificateResponse:()=>eGh,downloadTicketBaiRecordXmlPathIdMax:()=>edh,getTicketBaiRecordPathIdMax:()=>Xlh,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>Vlh,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>Klh,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Zlh,reconcileTicketBaiRecordPathIdMax:()=>ndh,retryTicketBaiRecordPathIdMax:()=>tdh,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>qlh,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>Wlh,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>Ylh,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>$lh,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>Qlh,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Jlh});var q3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vlh=120,Klh=120,Zlh=120,W3h=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(Vlh),surname1:e.string().min(1).max(Klh),surname2:e.string().min(1).max(Zlh)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),Y3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qlh=120,Wlh=120,Ylh=120,$3h=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(qlh),surname1:e.string().min(1).max(Wlh),surname2:e.string().min(1).max(Ylh)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),$lh=120,Qlh=120,Jlh=120,Q3h=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max($lh),surname1:e.string().min(1).max(Qlh),surname2:e.string().min(1).max(Jlh)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),J3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),X3h=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),eGh=e.object({certificate_expiry:e.string()}),Xlh=36,tGh=e.object({id:e.string().min(1).max(Xlh)}),nGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sGh=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),edh=36,oGh=e.object({id:e.string().min(1).max(edh)}),iGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tdh=36,aGh=e.object({id:e.string().min(1).max(tdh)}),rGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lGh=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),ndh=36,dGh=e.object({id:e.string().min(1).max(ndh)}),cGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uGh=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var tn={};Y(tn,{CheckTransactionTypeBody:()=>mGh,CheckTransactionTypeHeader:()=>pGh,CheckTransactionTypeResponse:()=>xGh,checkTransactionTypeBodyCustomerCountryCodeMax:()=>rdh,checkTransactionTypeBodyCustomerCountryCodeMin:()=>adh,checkTransactionTypeBodyIssuerCountryCodeMax:()=>odh,checkTransactionTypeBodyIssuerCountryCodeMin:()=>sdh,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>idh,checkTransactionTypeResponseCustomerCountryCodeMax:()=>udh,checkTransactionTypeResponseCustomerCountryCodeMin:()=>cdh,checkTransactionTypeResponseIssuerCountryCodeMax:()=>ddh,checkTransactionTypeResponseIssuerCountryCodeMin:()=>ldh,checkTransactionTypeResponseVatIdCountryCodeMax:()=>mdh,checkTransactionTypeResponseVatIdCountryCodeMin:()=>pdh});var pGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),sdh=2,odh=2,idh=true,adh=2,rdh=2,mGh=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(sdh).max(odh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(idh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(adh).max(rdh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),ldh=2,ddh=2,cdh=2,udh=2,pdh=2,mdh=2,xGh=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(ldh).max(ddh).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(cdh).max(udh).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(pdh).max(mdh).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var nn={};Y(nn,{ApproveTravelOrderHeader:()=>kGh,ApproveTravelOrderParams:()=>FGh,ApproveTravelOrderResponse:()=>jGh,CalculateTravelOrderRouteDistanceBody:()=>EGh,CalculateTravelOrderRouteDistanceHeader:()=>TGh,CalculateTravelOrderRouteDistanceResponse:()=>DGh,CancelTravelOrderHeader:()=>YGh,CancelTravelOrderParams:()=>WGh,CancelTravelOrderResponse:()=>$Gh,CreateTravelOrderBody:()=>hGh,CreateTravelOrderHeader:()=>vGh,DeleteTravelOrderHeader:()=>AGh,DeleteTravelOrderParams:()=>wGh,GetTravelOrderByIdHeader:()=>_Gh,GetTravelOrderByIdParams:()=>RGh,GetTravelOrderByIdResponse:()=>NGh,GetTravelOrdersHeader:()=>yGh,GetTravelOrdersQueryParams:()=>gGh,GetTravelOrdersResponse:()=>OGh,PreviewTravelOrderBody:()=>bGh,PreviewTravelOrderHeader:()=>SGh,PreviewTravelOrderResponse:()=>zGh,RenderTravelOrderHtmlHeader:()=>nVh,RenderTravelOrderHtmlParams:()=>eVh,RenderTravelOrderHtmlQueryParams:()=>tVh,RenderTravelOrderPdfHeader:()=>XGh,RenderTravelOrderPdfParams:()=>QGh,RenderTravelOrderPdfQueryParams:()=>JGh,RenderTravelOrderPreviewBody:()=>IGh,RenderTravelOrderPreviewHeader:()=>BGh,RenderTravelOrderPreviewQueryParams:()=>fGh,ReopenTravelOrderBody:()=>ZGh,ReopenTravelOrderHeader:()=>KGh,ReopenTravelOrderParams:()=>VGh,ReopenTravelOrderResponse:()=>qGh,SettleTravelOrderHeader:()=>LGh,SettleTravelOrderParams:()=>HGh,SettleTravelOrderResponse:()=>GGh,UpdateTravelOrderBody:()=>PGh,UpdateTravelOrderHeader:()=>UGh,UpdateTravelOrderParams:()=>MGh,UpdateTravelOrderResponse:()=>CGh,approveTravelOrderPathIdRegExp:()=>huh,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>buh,approveTravelOrderResponseCostsItemAmountMax:()=>zuh,approveTravelOrderResponseCostsItemDateRegExp:()=>fuh,approveTravelOrderResponseCostsItemDescriptionMax:()=>Suh,calculateTravelOrderRouteDistanceBodyFromMax:()=>Ach,calculateTravelOrderRouteDistanceBodyFromMin:()=>wch,calculateTravelOrderRouteDistanceBodyToMax:()=>kch,calculateTravelOrderRouteDistanceBodyToMin:()=>Fch,cancelTravelOrderPathIdRegExp:()=>wuh,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>Fuh,cancelTravelOrderResponseCostsItemAmountMax:()=>kuh,cancelTravelOrderResponseCostsItemDateRegExp:()=>juh,cancelTravelOrderResponseCostsItemDescriptionMax:()=>Auh,createTravelOrderBodyAdvanceAmountMax:()=>Cdh,createTravelOrderBodyAdvanceAmountMin:()=>Pdh,createTravelOrderBodyBreakfastsProvidedMax:()=>Ndh,createTravelOrderBodyBreakfastsProvidedMin:()=>_dh,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>Adh,createTravelOrderBodyCostsItemAmountMax:()=>Fdh,createTravelOrderBodyCostsItemDateRegExp:()=>kdh,createTravelOrderBodyCostsItemDescriptionMax:()=>wdh,createTravelOrderBodyCostsMax:()=>jdh,createTravelOrderBodyDateRegExp:()=>zdh,createTravelOrderBodyDestinationCountryCodeRegExp:()=>Tdh,createTravelOrderBodyDestinationMax:()=>Idh,createTravelOrderBodyDistanceKmMax:()=>Rdh,createTravelOrderBodyDistanceKmMin:()=>Ddh,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>Mdh,createTravelOrderBodyForeignDailyRateMax:()=>Udh,createTravelOrderBodyNoteMax:()=>Hdh,createTravelOrderBodyOriginMax:()=>Bdh,createTravelOrderBodyPurposeMax:()=>fdh,createTravelOrderBodyTravelerNameMax:()=>Sdh,createTravelOrderBodyTravelerPositionMax:()=>bdh,createTravelOrderBodyVehicleRegistrationMax:()=>Edh,deleteTravelOrderPathIdRegExp:()=>vuh,getTravelOrderByIdPathIdRegExp:()=>jch,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>Lch,getTravelOrderByIdResponseCostsItemAmountMax:()=>Gch,getTravelOrderByIdResponseCostsItemDateRegExp:()=>Vch,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>Hch,getTravelOrdersQueryLimitDefault:()=>xdh,getTravelOrdersQueryLimitMax:()=>gdh,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>Odh,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>vdh,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>hdh,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>ydh,previewTravelOrderBodyAdvanceAmountMax:()=>sch,previewTravelOrderBodyAdvanceAmountMin:()=>nch,previewTravelOrderBodyBreakfastsProvidedMax:()=>Xdh,previewTravelOrderBodyBreakfastsProvidedMin:()=>Jdh,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>ich,previewTravelOrderBodyCostsItemAmountMax:()=>ach,previewTravelOrderBodyCostsItemDateRegExp:()=>rch,previewTravelOrderBodyCostsItemDescriptionMax:()=>och,previewTravelOrderBodyCostsMax:()=>lch,previewTravelOrderBodyDateRegExp:()=>Vdh,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>Wdh,previewTravelOrderBodyDestinationMax:()=>qdh,previewTravelOrderBodyDistanceKmMax:()=>Qdh,previewTravelOrderBodyDistanceKmMin:()=>$dh,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>ech,previewTravelOrderBodyForeignDailyRateMax:()=>tch,previewTravelOrderBodyNoteMax:()=>dch,previewTravelOrderBodyOriginMax:()=>Zdh,previewTravelOrderBodyPurposeMax:()=>Kdh,previewTravelOrderBodyTravelerNameMax:()=>Ldh,previewTravelOrderBodyTravelerPositionMax:()=>Gdh,previewTravelOrderBodyVehicleRegistrationMax:()=>Ydh,renderTravelOrderHtmlPathIdRegExp:()=>Zuh,renderTravelOrderHtmlQueryLanguageMax:()=>$uh,renderTravelOrderHtmlQueryLanguageMin:()=>Yuh,renderTravelOrderHtmlQueryLocaleMax:()=>Wuh,renderTravelOrderHtmlQueryLocaleMin:()=>quh,renderTravelOrderPdfPathIdRegExp:()=>Huh,renderTravelOrderPdfQueryLanguageMax:()=>Kuh,renderTravelOrderPdfQueryLanguageMin:()=>Vuh,renderTravelOrderPdfQueryLocaleMax:()=>Guh,renderTravelOrderPdfQueryLocaleMin:()=>Luh,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>Rch,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>Dch,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>Ich,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>Bch,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>Nch,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>Mch,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>Uch,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>_ch,renderTravelOrderPreviewBodyCostsMax:()=>Pch,renderTravelOrderPreviewBodyDateRegExp:()=>ych,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>Sch,renderTravelOrderPreviewBodyDestinationMax:()=>hch,renderTravelOrderPreviewBodyDistanceKmMax:()=>fch,renderTravelOrderPreviewBodyDistanceKmMin:()=>zch,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>Tch,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>Ech,renderTravelOrderPreviewBodyNoteMax:()=>Cch,renderTravelOrderPreviewBodyOriginMax:()=>vch,renderTravelOrderPreviewBodyPurposeMax:()=>Och,renderTravelOrderPreviewBodyTravelerNameMax:()=>xch,renderTravelOrderPreviewBodyTravelerPositionMax:()=>gch,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>bch,renderTravelOrderPreviewQueryLanguageMax:()=>mch,renderTravelOrderPreviewQueryLanguageMin:()=>pch,renderTravelOrderPreviewQueryLocaleMax:()=>uch,renderTravelOrderPreviewQueryLocaleMin:()=>cch,reopenTravelOrderBodyReasonMax:()=>Nuh,reopenTravelOrderBodyReasonMin:()=>_uh,reopenTravelOrderPathIdRegExp:()=>Ruh,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>Uuh,reopenTravelOrderResponseCostsItemAmountMax:()=>Puh,reopenTravelOrderResponseCostsItemDateRegExp:()=>Cuh,reopenTravelOrderResponseCostsItemDescriptionMax:()=>Muh,settleTravelOrderPathIdRegExp:()=>Buh,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>Tuh,settleTravelOrderResponseCostsItemAmountMax:()=>Euh,settleTravelOrderResponseCostsItemDateRegExp:()=>Duh,settleTravelOrderResponseCostsItemDescriptionMax:()=>Iuh,updateTravelOrderBodyAdvanceAmountMax:()=>ruh,updateTravelOrderBodyAdvanceAmountMin:()=>auh,updateTravelOrderBodyBreakfastsProvidedMax:()=>suh,updateTravelOrderBodyBreakfastsProvidedMin:()=>nuh,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>duh,updateTravelOrderBodyCostsItemAmountMax:()=>cuh,updateTravelOrderBodyCostsItemDateRegExp:()=>uuh,updateTravelOrderBodyCostsItemDescriptionMax:()=>luh,updateTravelOrderBodyCostsMax:()=>puh,updateTravelOrderBodyDateRegExp:()=>Wch,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>Jch,updateTravelOrderBodyDestinationMax:()=>Qch,updateTravelOrderBodyDistanceKmMax:()=>tuh,updateTravelOrderBodyDistanceKmMin:()=>euh,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>ouh,updateTravelOrderBodyForeignDailyRateMax:()=>iuh,updateTravelOrderBodyNoteMax:()=>muh,updateTravelOrderBodyOriginMax:()=>$ch,updateTravelOrderBodyPurposeMax:()=>Ych,updateTravelOrderBodyTravelerNameMax:()=>Zch,updateTravelOrderBodyTravelerPositionMax:()=>qch,updateTravelOrderBodyVehicleRegistrationMax:()=>Xch,updateTravelOrderPathIdRegExp:()=>Kch,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>guh,updateTravelOrderResponseCostsItemAmountMax:()=>yuh,updateTravelOrderResponseCostsItemDateRegExp:()=>Ouh,updateTravelOrderResponseCostsItemDescriptionMax:()=>xuh});var xdh=10,gdh=100,gGh=e.object({limit:e.number().min(1).max(gdh).default(xdh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
232
+ Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),_3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),slh=36,olh=100,ilh=0,alh=100,rlh=2,llh=2,dlh=36,N3h=e.object({data:e.array(e.object({id:e.string().max(slh),name:e.string().max(olh),tax_rates:e.array(e.object({rate:e.number().min(ilh).max(alh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(rlh).max(llh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(dlh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,M3h=e.object({id:e.stringFormat("resource-id",clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),U3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ulh=0,plh=100,P3h=e.object({tax_rates:e.array(e.object({rate:e.number().min(ulh).max(plh),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),mlh=36,xlh=100,glh=0,ylh=100,Olh=2,vlh=2,hlh=36,C3h=e.object({id:e.string().max(mlh),name:e.string().max(xlh),tax_rates:e.array(e.object({rate:e.number().min(glh).max(ylh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Olh).max(vlh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(hlh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Slh=/^[a-z]{3,4}_[0-9a-f]{24}$/,w3h=e.object({id:e.stringFormat("resource-id",Slh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),A3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),blh=100,zlh=0,flh=100,Blh=2,Ilh=2,Tlh=60,F3h=e.object({name:e.string().max(blh).optional(),tax_rates:e.array(e.object({rate:e.number().min(zlh).max(flh),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Blh).max(Ilh).nullish().describe("Optional EU destination country for an OSS-specific saved tax. The issuer must support EU OSS and the destination must differ from the issuer country. Set to null or omit for a local/unclassified tax."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(Tlh).nullish().describe("Optional Portugal legal wording override, at most 60 characters. Omit for the standard wording of pt_exemption_code. M19 has no default: a specific legal reason must be supplied on this tax or its document line before issuance. Supplied wording is preserved."),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Elh=36,Dlh=100,Rlh=0,_lh=100,Nlh=2,Mlh=2,Ulh=36,k3h=e.object({id:e.string().max(Elh),name:e.string().max(Dlh),tax_rates:e.array(e.object({rate:e.number().min(Rlh).max(_lh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(Nlh).max(Mlh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Ulh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Plh=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3h=e.object({id:e.stringFormat("resource-id",Plh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,L3h=e.object({id:e.stringFormat("resource-id",Clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),G3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wlh=36,Alh=100,Flh=0,klh=100,jlh=2,Hlh=2,Llh=36,V3h=e.object({id:e.string().max(wlh),name:e.string().max(Alh),tax_rates:e.array(e.object({rate:e.number().min(Flh).max(klh),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(jlh).max(Hlh).nullish().describe("ISO 3166-1 alpha-2 destination country when this saved tax represents EU OSS destination VAT. Null means the tax is not destination-specific."),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Llh),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Glh=/^[a-z]{3,4}_[0-9a-f]{24}$/,K3h=e.object({id:e.stringFormat("resource-id",Glh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Z3h=e.object({"x-entity-id":e.string().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 en={};Y(en,{DownloadTicketBaiRecordXmlHeader:()=>iGh,DownloadTicketBaiRecordXmlParams:()=>oGh,GetTicketBaiRecordHeader:()=>nGh,GetTicketBaiRecordParams:()=>tGh,GetTicketBaiRecordResponse:()=>sGh,GetTicketBaiSettingsHeader:()=>q3h,GetTicketBaiSettingsResponse:()=>W3h,ReconcileTicketBaiRecordHeader:()=>cGh,ReconcileTicketBaiRecordParams:()=>dGh,ReconcileTicketBaiRecordResponse:()=>uGh,RetryTicketBaiRecordHeader:()=>rGh,RetryTicketBaiRecordParams:()=>aGh,RetryTicketBaiRecordResponse:()=>lGh,UpdateTicketBaiSettingsBody:()=>$3h,UpdateTicketBaiSettingsHeader:()=>Y3h,UpdateTicketBaiSettingsResponse:()=>Q3h,UploadTicketBaiCertificateBody:()=>X3h,UploadTicketBaiCertificateHeader:()=>J3h,UploadTicketBaiCertificateResponse:()=>eGh,downloadTicketBaiRecordXmlPathIdMax:()=>edh,getTicketBaiRecordPathIdMax:()=>Xlh,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>Vlh,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>Klh,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Zlh,reconcileTicketBaiRecordPathIdMax:()=>ndh,retryTicketBaiRecordPathIdMax:()=>tdh,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>qlh,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>Wlh,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>Ylh,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>$lh,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>Qlh,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Jlh});var q3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vlh=120,Klh=120,Zlh=120,W3h=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(Vlh),surname1:e.string().min(1).max(Klh),surname2:e.string().min(1).max(Zlh)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),Y3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qlh=120,Wlh=120,Ylh=120,$3h=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(qlh),surname1:e.string().min(1).max(Wlh),surname2:e.string().min(1).max(Ylh)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),$lh=120,Qlh=120,Jlh=120,Q3h=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max($lh),surname1:e.string().min(1).max(Qlh),surname2:e.string().min(1).max(Jlh)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),J3h=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),X3h=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),eGh=e.object({certificate_expiry:e.string()}),Xlh=36,tGh=e.object({id:e.string().min(1).max(Xlh)}),nGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sGh=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),edh=36,oGh=e.object({id:e.string().min(1).max(edh)}),iGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tdh=36,aGh=e.object({id:e.string().min(1).max(tdh)}),rGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lGh=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),ndh=36,dGh=e.object({id:e.string().min(1).max(ndh)}),cGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uGh=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var tn={};Y(tn,{CheckTransactionTypeBody:()=>mGh,CheckTransactionTypeHeader:()=>pGh,CheckTransactionTypeResponse:()=>xGh,checkTransactionTypeBodyCustomerCountryCodeMax:()=>rdh,checkTransactionTypeBodyCustomerCountryCodeMin:()=>adh,checkTransactionTypeBodyIssuerCountryCodeMax:()=>odh,checkTransactionTypeBodyIssuerCountryCodeMin:()=>sdh,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>idh,checkTransactionTypeResponseCustomerCountryCodeMax:()=>udh,checkTransactionTypeResponseCustomerCountryCodeMin:()=>cdh,checkTransactionTypeResponseIssuerCountryCodeMax:()=>ddh,checkTransactionTypeResponseIssuerCountryCodeMin:()=>ldh,checkTransactionTypeResponseVatIdCountryCodeMax:()=>mdh,checkTransactionTypeResponseVatIdCountryCodeMin:()=>pdh});var pGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),sdh=2,odh=2,idh=true,adh=2,rdh=2,mGh=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(sdh).max(odh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(idh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(adh).max(rdh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),ldh=2,ddh=2,cdh=2,udh=2,pdh=2,mdh=2,xGh=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(ldh).max(ddh).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(cdh).max(udh).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(pdh).max(mdh).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var nn={};Y(nn,{ApproveTravelOrderHeader:()=>kGh,ApproveTravelOrderParams:()=>FGh,ApproveTravelOrderResponse:()=>jGh,CalculateTravelOrderRouteDistanceBody:()=>EGh,CalculateTravelOrderRouteDistanceHeader:()=>TGh,CalculateTravelOrderRouteDistanceResponse:()=>DGh,CancelTravelOrderHeader:()=>YGh,CancelTravelOrderParams:()=>WGh,CancelTravelOrderResponse:()=>$Gh,CreateTravelOrderBody:()=>hGh,CreateTravelOrderHeader:()=>vGh,DeleteTravelOrderHeader:()=>AGh,DeleteTravelOrderParams:()=>wGh,GetTravelOrderByIdHeader:()=>_Gh,GetTravelOrderByIdParams:()=>RGh,GetTravelOrderByIdResponse:()=>NGh,GetTravelOrdersHeader:()=>yGh,GetTravelOrdersQueryParams:()=>gGh,GetTravelOrdersResponse:()=>OGh,PreviewTravelOrderBody:()=>bGh,PreviewTravelOrderHeader:()=>SGh,PreviewTravelOrderResponse:()=>zGh,RenderTravelOrderHtmlHeader:()=>nVh,RenderTravelOrderHtmlParams:()=>eVh,RenderTravelOrderHtmlQueryParams:()=>tVh,RenderTravelOrderPdfHeader:()=>XGh,RenderTravelOrderPdfParams:()=>QGh,RenderTravelOrderPdfQueryParams:()=>JGh,RenderTravelOrderPreviewBody:()=>IGh,RenderTravelOrderPreviewHeader:()=>BGh,RenderTravelOrderPreviewQueryParams:()=>fGh,ReopenTravelOrderBody:()=>ZGh,ReopenTravelOrderHeader:()=>KGh,ReopenTravelOrderParams:()=>VGh,ReopenTravelOrderResponse:()=>qGh,SettleTravelOrderHeader:()=>LGh,SettleTravelOrderParams:()=>HGh,SettleTravelOrderResponse:()=>GGh,UpdateTravelOrderBody:()=>PGh,UpdateTravelOrderHeader:()=>UGh,UpdateTravelOrderParams:()=>MGh,UpdateTravelOrderResponse:()=>CGh,approveTravelOrderPathIdRegExp:()=>huh,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>buh,approveTravelOrderResponseCostsItemAmountMax:()=>zuh,approveTravelOrderResponseCostsItemDateRegExp:()=>fuh,approveTravelOrderResponseCostsItemDescriptionMax:()=>Suh,calculateTravelOrderRouteDistanceBodyFromMax:()=>Ach,calculateTravelOrderRouteDistanceBodyFromMin:()=>wch,calculateTravelOrderRouteDistanceBodyToMax:()=>kch,calculateTravelOrderRouteDistanceBodyToMin:()=>Fch,cancelTravelOrderPathIdRegExp:()=>wuh,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>Fuh,cancelTravelOrderResponseCostsItemAmountMax:()=>kuh,cancelTravelOrderResponseCostsItemDateRegExp:()=>juh,cancelTravelOrderResponseCostsItemDescriptionMax:()=>Auh,createTravelOrderBodyAdvanceAmountMax:()=>Cdh,createTravelOrderBodyAdvanceAmountMin:()=>Pdh,createTravelOrderBodyBreakfastsProvidedMax:()=>Ndh,createTravelOrderBodyBreakfastsProvidedMin:()=>_dh,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>Adh,createTravelOrderBodyCostsItemAmountMax:()=>Fdh,createTravelOrderBodyCostsItemDateRegExp:()=>kdh,createTravelOrderBodyCostsItemDescriptionMax:()=>wdh,createTravelOrderBodyCostsMax:()=>jdh,createTravelOrderBodyDateRegExp:()=>zdh,createTravelOrderBodyDestinationCountryCodeRegExp:()=>Tdh,createTravelOrderBodyDestinationMax:()=>Idh,createTravelOrderBodyDistanceKmMax:()=>Rdh,createTravelOrderBodyDistanceKmMin:()=>Ddh,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>Mdh,createTravelOrderBodyForeignDailyRateMax:()=>Udh,createTravelOrderBodyNoteMax:()=>Hdh,createTravelOrderBodyOriginMax:()=>Bdh,createTravelOrderBodyPurposeMax:()=>fdh,createTravelOrderBodyTravelerNameMax:()=>Sdh,createTravelOrderBodyTravelerPositionMax:()=>bdh,createTravelOrderBodyVehicleRegistrationMax:()=>Edh,deleteTravelOrderPathIdRegExp:()=>vuh,getTravelOrderByIdPathIdRegExp:()=>jch,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>Lch,getTravelOrderByIdResponseCostsItemAmountMax:()=>Gch,getTravelOrderByIdResponseCostsItemDateRegExp:()=>Vch,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>Hch,getTravelOrdersQueryLimitDefault:()=>xdh,getTravelOrdersQueryLimitMax:()=>gdh,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>Odh,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>vdh,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>hdh,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>ydh,previewTravelOrderBodyAdvanceAmountMax:()=>sch,previewTravelOrderBodyAdvanceAmountMin:()=>nch,previewTravelOrderBodyBreakfastsProvidedMax:()=>Xdh,previewTravelOrderBodyBreakfastsProvidedMin:()=>Jdh,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>ich,previewTravelOrderBodyCostsItemAmountMax:()=>ach,previewTravelOrderBodyCostsItemDateRegExp:()=>rch,previewTravelOrderBodyCostsItemDescriptionMax:()=>och,previewTravelOrderBodyCostsMax:()=>lch,previewTravelOrderBodyDateRegExp:()=>Vdh,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>Wdh,previewTravelOrderBodyDestinationMax:()=>qdh,previewTravelOrderBodyDistanceKmMax:()=>Qdh,previewTravelOrderBodyDistanceKmMin:()=>$dh,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>ech,previewTravelOrderBodyForeignDailyRateMax:()=>tch,previewTravelOrderBodyNoteMax:()=>dch,previewTravelOrderBodyOriginMax:()=>Zdh,previewTravelOrderBodyPurposeMax:()=>Kdh,previewTravelOrderBodyTravelerNameMax:()=>Ldh,previewTravelOrderBodyTravelerPositionMax:()=>Gdh,previewTravelOrderBodyVehicleRegistrationMax:()=>Ydh,renderTravelOrderHtmlPathIdRegExp:()=>Zuh,renderTravelOrderHtmlQueryLanguageMax:()=>$uh,renderTravelOrderHtmlQueryLanguageMin:()=>Yuh,renderTravelOrderHtmlQueryLocaleMax:()=>Wuh,renderTravelOrderHtmlQueryLocaleMin:()=>quh,renderTravelOrderPdfPathIdRegExp:()=>Huh,renderTravelOrderPdfQueryLanguageMax:()=>Kuh,renderTravelOrderPdfQueryLanguageMin:()=>Vuh,renderTravelOrderPdfQueryLocaleMax:()=>Guh,renderTravelOrderPdfQueryLocaleMin:()=>Luh,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>Rch,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>Dch,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>Ich,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>Bch,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>Nch,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>Mch,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>Uch,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>_ch,renderTravelOrderPreviewBodyCostsMax:()=>Pch,renderTravelOrderPreviewBodyDateRegExp:()=>ych,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>Sch,renderTravelOrderPreviewBodyDestinationMax:()=>hch,renderTravelOrderPreviewBodyDistanceKmMax:()=>fch,renderTravelOrderPreviewBodyDistanceKmMin:()=>zch,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>Tch,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>Ech,renderTravelOrderPreviewBodyNoteMax:()=>Cch,renderTravelOrderPreviewBodyOriginMax:()=>vch,renderTravelOrderPreviewBodyPurposeMax:()=>Och,renderTravelOrderPreviewBodyTravelerNameMax:()=>xch,renderTravelOrderPreviewBodyTravelerPositionMax:()=>gch,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>bch,renderTravelOrderPreviewQueryLanguageMax:()=>mch,renderTravelOrderPreviewQueryLanguageMin:()=>pch,renderTravelOrderPreviewQueryLocaleMax:()=>uch,renderTravelOrderPreviewQueryLocaleMin:()=>cch,reopenTravelOrderBodyReasonMax:()=>Nuh,reopenTravelOrderBodyReasonMin:()=>_uh,reopenTravelOrderPathIdRegExp:()=>Ruh,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>Uuh,reopenTravelOrderResponseCostsItemAmountMax:()=>Puh,reopenTravelOrderResponseCostsItemDateRegExp:()=>Cuh,reopenTravelOrderResponseCostsItemDescriptionMax:()=>Muh,settleTravelOrderPathIdRegExp:()=>Buh,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>Tuh,settleTravelOrderResponseCostsItemAmountMax:()=>Euh,settleTravelOrderResponseCostsItemDateRegExp:()=>Duh,settleTravelOrderResponseCostsItemDescriptionMax:()=>Iuh,updateTravelOrderBodyAdvanceAmountMax:()=>ruh,updateTravelOrderBodyAdvanceAmountMin:()=>auh,updateTravelOrderBodyBreakfastsProvidedMax:()=>suh,updateTravelOrderBodyBreakfastsProvidedMin:()=>nuh,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>duh,updateTravelOrderBodyCostsItemAmountMax:()=>cuh,updateTravelOrderBodyCostsItemDateRegExp:()=>uuh,updateTravelOrderBodyCostsItemDescriptionMax:()=>luh,updateTravelOrderBodyCostsMax:()=>puh,updateTravelOrderBodyDateRegExp:()=>Wch,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>Jch,updateTravelOrderBodyDestinationMax:()=>Qch,updateTravelOrderBodyDistanceKmMax:()=>tuh,updateTravelOrderBodyDistanceKmMin:()=>euh,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>ouh,updateTravelOrderBodyForeignDailyRateMax:()=>iuh,updateTravelOrderBodyNoteMax:()=>muh,updateTravelOrderBodyOriginMax:()=>$ch,updateTravelOrderBodyPurposeMax:()=>Ych,updateTravelOrderBodyTravelerNameMax:()=>Zch,updateTravelOrderBodyTravelerPositionMax:()=>qch,updateTravelOrderBodyVehicleRegistrationMax:()=>Xch,updateTravelOrderPathIdRegExp:()=>Kch,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>guh,updateTravelOrderResponseCostsItemAmountMax:()=>yuh,updateTravelOrderResponseCostsItemDateRegExp:()=>Ouh,updateTravelOrderResponseCostsItemDescriptionMax:()=>xuh});var xdh=10,gdh=100,gGh=e.object({limit:e.number().min(1).max(gdh).default(xdh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
233
233
  Searches are case-insensitive and match partial strings.
234
- Searches across number, traveler name, purpose, origin, and destination.`)}),yGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ydh=200,Odh=0,vdh=1e6,hdh=/^\d{4}-\d{2}-\d{2}$/,OGh=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(ydh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Odh).max(vdh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(hdh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Sdh=200,bdh=200,zdh=/^\d{4}-\d{2}-\d{2}$/,fdh=500,Bdh=500,Idh=500,Tdh=/^[A-Za-z]{2}$/,Edh=20,Ddh=0,Rdh=1e5,_dh=0,Ndh=60,Mdh=0,Udh=1e4,Pdh=0,Cdh=1e6,wdh=200,Adh=0,Fdh=1e6,kdh=/^\d{4}-\d{2}-\d{2}$/,jdh=100,Hdh=2e3,hGh=e.object({traveler_name:e.string().min(1).max(Sdh).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(bdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(zdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(fdh).describe("Business purpose of the trip."),origin:e.string().max(Bdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(Idh).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(Tdh).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(Edh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(Ddh).max(Rdh).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(_dh).max(Ndh).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(Mdh).max(Udh).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(Pdh).max(Cdh).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(wdh).describe("Description of the cost line."),amount:e.number().gt(Adh).max(Fdh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(kdh).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(jdh).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Hdh).nullish().describe("Free-text note. Omit or send null to leave unset.")}),SGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ldh=200,Gdh=200,Vdh=/^\d{4}-\d{2}-\d{2}$/,Kdh=500,Zdh=500,qdh=500,Wdh=/^[A-Za-z]{2}$/,Ydh=20,$dh=0,Qdh=1e5,Jdh=0,Xdh=60,ech=0,tch=1e4,nch=0,sch=1e6,och=200,ich=0,ach=1e6,rch=/^\d{4}-\d{2}-\d{2}$/,lch=100,dch=2e3,bGh=e.object({traveler_name:e.string().min(1).max(Ldh).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Gdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Vdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Kdh).describe("Business purpose of the trip."),origin:e.string().max(Zdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(qdh).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(Wdh).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(Ydh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min($dh).max(Qdh).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(Jdh).max(Xdh).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(ech).max(tch).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(nch).max(sch).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(och).describe("Description of the cost line."),amount:e.number().gt(ich).max(ach).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(rch).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(lch).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(dch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),zGh=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),cch=2,uch=5,pch=2,mch=5,fGh=e.object({locale:e.string().min(cch).max(uch).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(pch).max(mch).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),BGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xch=200,gch=200,ych=/^\d{4}-\d{2}-\d{2}$/,Och=500,vch=500,hch=500,Sch=/^[A-Za-z]{2}$/,bch=20,zch=0,fch=1e5,Bch=0,Ich=60,Tch=0,Ech=1e4,Dch=0,Rch=1e6,_ch=200,Nch=0,Mch=1e6,Uch=/^\d{4}-\d{2}-\d{2}$/,Pch=100,Cch=2e3,IGh=e.object({traveler_name:e.string().min(1).max(xch).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(gch).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(ych).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Och).describe("Business purpose of the trip."),origin:e.string().max(vch).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(hch).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(Sch).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(bch).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(zch).max(fch).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(Bch).max(Ich).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(Tch).max(Ech).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(Dch).max(Rch).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(_ch).describe("Description of the cost line."),amount:e.number().gt(Nch).max(Mch).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Uch).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Pch).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Cch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),TGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wch=3,Ach=300,Fch=3,kch=300,EGh=e.object({from:e.string().min(wch).max(Ach).describe("Starting address to geocode."),to:e.string().min(Fch).max(kch).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),DGh=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),jch=/^[a-z]{3,4}_[0-9a-f]{24}$/,RGh=e.object({id:e.stringFormat("resource-id",jch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_Gh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hch=200,Lch=0,Gch=1e6,Vch=/^\d{4}-\d{2}-\d{2}$/,NGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Hch).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Lch).max(Gch).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Vch).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Kch=/^[a-z]{3,4}_[0-9a-f]{24}$/,MGh=e.object({id:e.stringFormat("resource-id",Kch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),UGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zch=200,qch=200,Wch=/^\d{4}-\d{2}-\d{2}$/,Ych=500,$ch=500,Qch=500,Jch=/^[A-Za-z]{2}$/,Xch=20,euh=0,tuh=1e5,nuh=0,suh=60,ouh=0,iuh=1e4,auh=0,ruh=1e6,luh=200,duh=0,cuh=1e6,uuh=/^\d{4}-\d{2}-\d{2}$/,puh=100,muh=2e3,PGh=e.object({traveler_name:e.string().min(1).max(Zch).nullish().describe("Full name of the traveling employee or contractor. Omit or send null to leave unchanged; cannot be cleared."),traveler_position:e.string().max(qch).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(Wch).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(Ych).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max($ch).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(Qch).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(Jch).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(Xch).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(euh).max(tuh).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(nuh).max(suh).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(ouh).max(iuh).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(auh).max(ruh).nullish().describe("Advance payment already given to the traveler. Omit to leave unchanged, send null to reset to 0."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(luh).describe("Description of the cost line."),amount:e.number().gt(duh).max(cuh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(uuh).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(puh).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(muh).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),xuh=200,guh=0,yuh=1e6,Ouh=/^\d{4}-\d{2}-\d{2}$/,CGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(xuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(guh).max(yuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Ouh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),vuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,wGh=e.object({id:e.stringFormat("resource-id",vuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),AGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),huh=/^[a-z]{3,4}_[0-9a-f]{24}$/,FGh=e.object({id:e.stringFormat("resource-id",huh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),kGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Suh=200,buh=0,zuh=1e6,fuh=/^\d{4}-\d{2}-\d{2}$/,jGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Suh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(buh).max(zuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(fuh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Buh=/^[a-z]{3,4}_[0-9a-f]{24}$/,HGh=e.object({id:e.stringFormat("resource-id",Buh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Iuh=200,Tuh=0,Euh=1e6,Duh=/^\d{4}-\d{2}-\d{2}$/,GGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Iuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Tuh).max(Euh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Duh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Ruh=/^[a-z]{3,4}_[0-9a-f]{24}$/,VGh=e.object({id:e.stringFormat("resource-id",Ruh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_uh=3,Nuh=500,ZGh=e.object({reason:e.string().min(_uh).max(Nuh).describe("Why this settled travel order is being reopened for correction. Required.")}),Muh=200,Uuh=0,Puh=1e6,Cuh=/^\d{4}-\d{2}-\d{2}$/,qGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Muh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Uuh).max(Puh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Cuh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),wuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,WGh=e.object({id:e.stringFormat("resource-id",wuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Auh=200,Fuh=0,kuh=1e6,juh=/^\d{4}-\d{2}-\d{2}$/,$Gh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Auh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Fuh).max(kuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(juh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Huh=/^[a-z]{3,4}_[0-9a-f]{24}$/,QGh=e.object({id:e.stringFormat("resource-id",Huh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Luh=2,Guh=5,Vuh=2,Kuh=5,JGh=e.object({locale:e.string().min(Luh).max(Guh).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(Vuh).max(Kuh).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),XGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,eVh=e.object({id:e.stringFormat("resource-id",Zuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),quh=2,Wuh=5,Yuh=2,$uh=5,tVh=e.object({locale:e.string().min(quh).max(Wuh).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(Yuh).max($uh).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),nVh=e.object({"x-entity-id":e.string().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 sn={};Y(sn,{DownloadUjpPackageHeader:()=>oVh,DownloadUjpPackageParams:()=>sVh});var sVh=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),oVh=e.object({"x-entity-id":e.string().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 on={};Y(on,{UploadImageBody:()=>aVh,UploadImageHeader:()=>iVh,UploadImageResponse:()=>rVh});var iVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aVh=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),rVh=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var an={};Y(an,{ConfirmPasswordResetBody:()=>FVh,ConfirmPasswordResetResponse:()=>kVh,DisableTwoFactorBody:()=>RVh,DisableTwoFactorResponse:()=>_Vh,EnableRequiredTwoFactorBody:()=>zVh,EnableRequiredTwoFactorResponse:()=>fVh,EnableTwoFactorBody:()=>EVh,EnableTwoFactorResponse:()=>DVh,GetAccountTwoFactorPolicyHeader:()=>lVh,GetAccountTwoFactorPolicyResponse:()=>dVh,GetEntityTwoFactorPolicyHeader:()=>xVh,GetEntityTwoFactorPolicyParams:()=>mVh,GetEntityTwoFactorPolicyResponse:()=>gVh,GetMeResponse:()=>HVh,GetTwoFactorConfigurationResponse:()=>BVh,ListMyAccountsResponse:()=>jVh,LoginBody:()=>UVh,LoginResponse:()=>PVh,PatchMeBody:()=>LVh,PatchMeResponse:()=>GVh,RequestPasswordResetBody:()=>wVh,RequestPasswordResetResponse:()=>AVh,SetupRequiredTwoFactorBody:()=>SVh,SetupRequiredTwoFactorResponse:()=>bVh,SetupTwoFactorBody:()=>IVh,SetupTwoFactorResponse:()=>TVh,SignupBody:()=>CVh,UpdateAccountTwoFactorPolicyBody:()=>uVh,UpdateAccountTwoFactorPolicyHeader:()=>cVh,UpdateAccountTwoFactorPolicyResponse:()=>pVh,UpdateEntityTwoFactorPolicyBody:()=>vVh,UpdateEntityTwoFactorPolicyHeader:()=>OVh,UpdateEntityTwoFactorPolicyParams:()=>yVh,UpdateEntityTwoFactorPolicyResponse:()=>hVh,UpdateUserFinaSettingsBody:()=>WVh,UpdateUserFinaSettingsHeader:()=>qVh,UpdateUserFinaSettingsResponse:()=>YVh,UpdateUserFursSettingsBody:()=>KVh,UpdateUserFursSettingsHeader:()=>VVh,UpdateUserFursSettingsResponse:()=>ZVh,VerifyTwoFactorBody:()=>NVh,VerifyTwoFactorResponse:()=>MVh,confirmPasswordResetBodyPasswordMin:()=>rmh,confirmPasswordResetBodyPasswordRegExp:()=>lmh,disableTwoFactorBodyCodeMax:()=>Sph,disableTwoFactorBodyCodeMin:()=>hph,disableTwoFactorBodyPasswordMax:()=>vph,enableRequiredTwoFactorBodyCodeRegExp:()=>iph,enableRequiredTwoFactorBodyTokenRegExp:()=>oph,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>cph,enableRequiredTwoFactorResponseSessionOneIdMax:()=>aph,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>uph,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>dph,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>lph,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>rph,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>gph,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>mph,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>pph,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>xph,enableTwoFactorBodyCodeRegExp:()=>Oph,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>Quh,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>eph,getEntityTwoFactorPolicyPathIdRegExp:()=>Xuh,getMeResponseAccountIdMax:()=>pmh,getMeResponseEmailMax:()=>cmh,getMeResponseIdMax:()=>dmh,getMeResponseNameMax:()=>umh,loginBodyShopifyReturnUrlMax:()=>wph,loginBodyShopifyReturnUrlMin:()=>Cph,loginBodyShopifyReturnUrlRegExp:()=>Aph,loginResponseOneEntityIdMax:()=>Lph,loginResponseOneIdMax:()=>Fph,loginResponseOneImpersonatorUserIdMax:()=>Gph,loginResponseOneScopeMax:()=>Hph,loginResponseOneTtlDefault:()=>jph,loginResponseOneUserIdMax:()=>kph,loginResponseTwoUserAccountIdMax:()=>qph,loginResponseTwoUserEmailMax:()=>Kph,loginResponseTwoUserIdMax:()=>Vph,loginResponseTwoUserNameMax:()=>Zph,patchMeBodyNameMin:()=>mmh,patchMeResponseAccountIdMax:()=>Omh,patchMeResponseEmailMax:()=>gmh,patchMeResponseIdMax:()=>xmh,patchMeResponseNameMax:()=>ymh,requestPasswordResetBodyShopifyReturnUrlMax:()=>imh,requestPasswordResetBodyShopifyReturnUrlMin:()=>omh,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>amh,setupRequiredTwoFactorBodyTokenRegExp:()=>sph,setupTwoFactorBodyPasswordMax:()=>yph,signupBodyNameMin:()=>Wph,signupBodyPasswordMin:()=>Yph,signupBodyPasswordRegExp:()=>$ph,signupBodySignupAttributionFbclidMax:()=>smh,signupBodySignupAttributionGbraidMax:()=>tmh,signupBodySignupAttributionGclidMax:()=>emh,signupBodySignupAttributionUtmCampaignMax:()=>Xph,signupBodySignupAttributionUtmMediumMax:()=>Jph,signupBodySignupAttributionUtmSourceMax:()=>Qph,signupBodySignupAttributionWbraidMax:()=>nmh,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>Juh,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>nph,updateEntityTwoFactorPolicyPathIdRegExp:()=>tph,updateUserFinaSettingsResponseAccountIdMax:()=>Imh,updateUserFinaSettingsResponseEmailMax:()=>fmh,updateUserFinaSettingsResponseIdMax:()=>zmh,updateUserFinaSettingsResponseNameMax:()=>Bmh,updateUserFursSettingsResponseAccountIdMax:()=>bmh,updateUserFursSettingsResponseEmailMax:()=>hmh,updateUserFursSettingsResponseIdMax:()=>vmh,updateUserFursSettingsResponseNameMax:()=>Smh,verifyTwoFactorBodyCodeMax:()=>Bph,verifyTwoFactorBodyCodeMin:()=>fph,verifyTwoFactorBodyTokenMax:()=>bph,verifyTwoFactorBodyTokenRegExp:()=>zph,verifyTwoFactorResponseOneEntityIdMax:()=>Rph,verifyTwoFactorResponseOneIdMax:()=>Iph,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>_ph,verifyTwoFactorResponseOneScopeMax:()=>Dph,verifyTwoFactorResponseOneTtlDefault:()=>Eph,verifyTwoFactorResponseOneUserIdMax:()=>Tph,verifyTwoFactorResponseTwoUserAccountIdMax:()=>Pph,verifyTwoFactorResponseTwoUserEmailMax:()=>Mph,verifyTwoFactorResponseTwoUserIdMax:()=>Nph,verifyTwoFactorResponseTwoUserNameMax:()=>Uph});var Quh=/^acc_[0-9a-fA-F]{24}$/,lVh=e.object({"x-account-id":e.string().regex(Quh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),dVh=e.object({required:e.boolean()}),Juh=/^acc_[0-9a-fA-F]{24}$/,cVh=e.object({"x-account-id":e.string().regex(Juh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uVh=e.object({required:e.boolean()}),pVh=e.object({required:e.boolean()}),Xuh=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,mVh=e.object({id:e.stringFormat("resource-id",Xuh).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),eph=/^acc_[0-9a-fA-F]{24}$/,xVh=e.object({"x-account-id":e.string().regex(eph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),gVh=e.object({required:e.boolean()}),tph=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,yVh=e.object({id:e.stringFormat("resource-id",tph).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),nph=/^acc_[0-9a-fA-F]{24}$/,OVh=e.object({"x-account-id":e.string().regex(nph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),vVh=e.object({required:e.boolean()}),hVh=e.object({required:e.boolean()}),sph=/^session_2fa_setup_[a-f0-9]{64}$/,SVh=e.object({token:e.string().regex(sph)}),bVh=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),oph=/^session_2fa_setup_[a-f0-9]{64}$/,iph=/^\d{6}$/,zVh=e.object({token:e.string().regex(oph),code:e.string().regex(iph)}),aph=100,rph=36,lph=31536e3,dph=50,cph=36,uph=36,pph=36,mph=255,xph=255,gph=36,fVh=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(aph),user_id:e.string().max(rph),ttl:e.number().default(lph).describe("Token time-to-live in seconds"),scope:e.string().max(dph).nullish(),entity_id:e.string().max(cph).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(uph).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(pph),email:e.string().max(mph),name:e.string().max(xph).nullish(),email_verified:e.boolean(),account_id:e.string().max(gph).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),BVh=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),yph=1024,IVh=e.object({password:e.string().max(yph).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),TVh=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),Oph=/^\d{6}$/,EVh=e.object({code:e.string().regex(Oph)}),DVh=e.object({recovery_codes:e.array(e.string())}),vph=1024,hph=6,Sph=32,RVh=e.object({password:e.string().max(vph).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes."),code:e.string().min(hph).max(Sph).describe("Six-digit authenticator code or a single-use recovery code.")}),_Vh=e.object({enabled:e.literal(false)}),bph=100,zph=/^session_2fa_[a-zA-Z0-9]+$/,fph=6,Bph=32,NVh=e.object({token:e.string().max(bph).regex(zph),code:e.string().min(fph).max(Bph).describe("Six-digit authenticator code or a single-use recovery code.")}),Iph=100,Tph=36,Eph=31536e3,Dph=50,Rph=36,_ph=36,Nph=36,Mph=255,Uph=255,Pph=36,MVh=e.object({id:e.string().max(Iph),user_id:e.string().max(Tph),ttl:e.number().default(Eph).describe("Token time-to-live in seconds"),scope:e.string().max(Dph).nullish(),entity_id:e.string().max(Rph).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(_ph).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Nph),email:e.string().max(Mph),name:e.string().max(Uph).nullish(),email_verified:e.boolean(),account_id:e.string().max(Pph).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),Cph=86,wph=86,Aph=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,UVh=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(Cph).max(wph).regex(Aph).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),Fph=100,kph=36,jph=31536e3,Hph=50,Lph=36,Gph=36,Vph=36,Kph=255,Zph=255,qph=36,PVh=e.object({id:e.string().max(Fph),user_id:e.string().max(kph),ttl:e.number().default(jph).describe("Token time-to-live in seconds"),scope:e.string().max(Hph).nullish(),entity_id:e.string().max(Lph).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Gph).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Vph),email:e.string().max(Kph),name:e.string().max(Zph).nullish(),email_verified:e.boolean(),account_id:e.string().max(qph).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),Wph=2,Yph=8,$ph=/[a-z]/,Qph=150,Jph=150,Xph=150,emh=512,tmh=512,nmh=512,smh=512,CVh=e.object({email:e.email(),name:e.string().min(Wph).nullish(),password:e.string().min(Yph).regex($ph),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(Qph).nullish(),utm_medium:e.string().min(1).max(Jph).nullish(),utm_campaign:e.string().min(1).max(Xph).nullish(),gclid:e.string().min(1).max(emh).nullish(),gbraid:e.string().min(1).max(tmh).nullish(),wbraid:e.string().min(1).max(nmh).nullish(),fbclid:e.string().min(1).max(smh).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) and ad click IDs (gclid, gbraid, wbraid, fbclid) from the link the user arrived through. Stored with the new user for first-party sign-up attribution and never returned. Each value is trimmed. A UTM value is kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; a click ID is kept only when it is 1\u2013512 characters of `A-Z a-z 0-9 _ . -`. Invalid values and malformed objects are ignored rather than rejected.")}),omh=86,imh=86,amh=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,wVh=e.object({email:e.email(),shopify_return_url:e.string().min(omh).max(imh).regex(amh).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),AVh=e.object({message:e.string()}),rmh=8,lmh=/[a-z]/,FVh=e.object({token:e.string().min(1),password:e.string().min(rmh).regex(lmh)}),kVh=e.object({message:e.string()}),jVh=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),dmh=36,cmh=255,umh=255,pmh=36,HVh=e.object({id:e.string().max(dmh),email:e.string().max(cmh),name:e.string().max(umh).nullish(),email_verified:e.boolean(),account_id:e.string().max(pmh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),mmh=2,LVh=e.object({name:e.string().min(mmh).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),xmh=36,gmh=255,ymh=255,Omh=36,GVh=e.object({id:e.string().max(xmh),email:e.string().max(gmh),name:e.string().max(ymh).nullish(),email_verified:e.boolean(),account_id:e.string().max(Omh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),VVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KVh=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),vmh=36,hmh=255,Smh=255,bmh=36,ZVh=e.object({id:e.string().max(vmh),email:e.string().max(hmh),name:e.string().max(Smh).nullish(),email_verified:e.boolean(),account_id:e.string().max(bmh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),qVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WVh=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),zmh=36,fmh=255,Bmh=255,Imh=36,YVh=e.object({id:e.string().max(zmh),email:e.string().max(fmh),name:e.string().max(Bmh).nullish(),email_verified:e.boolean(),account_id:e.string().max(Imh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var rn={};Y(rn,{CancelVerifactuRecordBody:()=>yKh,CancelVerifactuRecordHeader:()=>gKh,CancelVerifactuRecordParams:()=>xKh,CancelVerifactuRecordResponse:()=>OKh,CorrectVerifactuRecordBody:()=>pKh,CorrectVerifactuRecordHeader:()=>uKh,CorrectVerifactuRecordParams:()=>cKh,CorrectVerifactuRecordResponse:()=>mKh,GetVerifactuEvidenceHeader:()=>iKh,GetVerifactuEvidenceParams:()=>oKh,GetVerifactuEvidenceResponse:()=>aKh,GetVerifactuSettingsHeader:()=>$Vh,GetVerifactuSettingsResponse:()=>QVh,RetryVerifactuRecordHeader:()=>lKh,RetryVerifactuRecordParams:()=>rKh,RetryVerifactuRecordResponse:()=>dKh,UpdateVerifactuSettingsBody:()=>XVh,UpdateVerifactuSettingsHeader:()=>JVh,UpdateVerifactuSettingsResponse:()=>eKh,UploadVerifactuCertificateBody:()=>nKh,UploadVerifactuCertificateHeader:()=>tKh,UploadVerifactuCertificateResponse:()=>sKh,cancelVerifactuRecordBodyReasonMax:()=>Pmh,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>_mh,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>Mmh,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>Nmh,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>Umh,correctVerifactuRecordBodyReasonMax:()=>Rmh,getVerifactuSettingsResponsePendingRecordsMin:()=>Tmh,updateVerifactuSettingsResponsePendingRecordsMin:()=>Emh,uploadVerifactuCertificateResponsePendingRecordsMin:()=>Dmh});var $Vh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Tmh=0,QVh=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(Tmh).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),JVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVh=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),Emh=0,eKh=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(Emh).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),tKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nKh=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),Dmh=0,sKh=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(Dmh).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),oKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),iKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),rKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),lKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),cKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),uKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rmh=500,_mh=500,Nmh=0,Mmh=/^\d{2}$/,Umh=12,pKh=e.object({reason:e.string().min(1).max(Rmh).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(_mh).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(Nmh).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(Mmh).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(Umh).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction.")}).describe("Append a correction to a confirmed fiscal record without changing invoice financial or party facts."),mKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),xKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),gKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pmh=500,yKh=e.object({reason:e.string().min(1).max(Pmh).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),OKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var ln={};Y(ln,{CheckViesBody:()=>vKh,CheckViesResponse:()=>hKh,checkViesBodyCustomerCountryCodeMax:()=>kmh,checkViesBodyCustomerCountryCodeMin:()=>Fmh,checkViesBodyIssuerCountryCodeMax:()=>wmh,checkViesBodyIssuerCountryCodeMin:()=>Cmh,checkViesBodyIssuerIsTaxSubjectDefault:()=>Amh,checkViesResponseCustomerCountryCodeMax:()=>Gmh,checkViesResponseCustomerCountryCodeMin:()=>Lmh,checkViesResponseIssuerCountryCodeMax:()=>Hmh,checkViesResponseIssuerCountryCodeMin:()=>jmh,checkViesResponseVatIdCountryCodeMax:()=>Kmh,checkViesResponseVatIdCountryCodeMin:()=>Vmh});var Cmh=2,wmh=2,Amh=true,Fmh=2,kmh=2,vKh=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(Cmh).max(wmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(Amh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(Fmh).max(kmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),jmh=2,Hmh=2,Lmh=2,Gmh=2,Vmh=2,Kmh=2,hKh=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(jmh).max(Hmh).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(Lmh).max(Gmh).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(Vmh).max(Kmh).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var dn={};Y(dn,{CreateWarehouseBody:()=>BKh,CreateWarehouseHeader:()=>fKh,DeleteWarehouseHeader:()=>UKh,DeleteWarehouseParams:()=>MKh,GetWarehouseByIdHeader:()=>TKh,GetWarehouseByIdParams:()=>IKh,GetWarehouseByIdResponse:()=>EKh,GetWarehousesHeader:()=>bKh,GetWarehousesQueryParams:()=>SKh,GetWarehousesResponse:()=>zKh,UpdateWarehouseBody:()=>_Kh,UpdateWarehouseHeader:()=>RKh,UpdateWarehouseParams:()=>DKh,UpdateWarehouseResponse:()=>NKh,createWarehouseBodyNameMax:()=>Qmh,deleteWarehousePathIdRegExp:()=>rxh,getWarehouseByIdPathIdRegExp:()=>Jmh,getWarehouseByIdResponseEntityIdMax:()=>exh,getWarehouseByIdResponseIdMax:()=>Xmh,getWarehouseByIdResponseNameMax:()=>txh,getWarehousesQueryLimitDefault:()=>Zmh,getWarehousesQueryLimitMax:()=>qmh,getWarehousesResponseDataItemEntityIdMax:()=>Ymh,getWarehousesResponseDataItemIdMax:()=>Wmh,getWarehousesResponseDataItemNameMax:()=>$mh,updateWarehouseBodyNameMax:()=>sxh,updateWarehousePathIdRegExp:()=>nxh,updateWarehouseResponseEntityIdMax:()=>ixh,updateWarehouseResponseIdMax:()=>oxh,updateWarehouseResponseNameMax:()=>axh});var Zmh=10,qmh=100,SKh=e.object({limit:e.number().min(1).max(qmh).default(Zmh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),bKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wmh=36,Ymh=36,$mh=200,zKh=e.object({data:e.array(e.object({id:e.string().max(Wmh),entity_id:e.string().max(Ymh),name:e.string().max($mh),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),fKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Qmh=200,BKh=e.object({name:e.string().min(1).max(Qmh).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),Jmh=/^wh_[0-9a-f]{24}$/,IKh=e.object({id:e.stringFormat("resource-id",Jmh).describe("Warehouse identifier (wh_ prefix).")}),TKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Xmh=36,exh=36,txh=200,EKh=e.object({id:e.string().max(Xmh),entity_id:e.string().max(exh),name:e.string().max(txh),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),nxh=/^wh_[0-9a-f]{24}$/,DKh=e.object({id:e.stringFormat("resource-id",nxh).describe("Warehouse identifier (wh_ prefix).")}),RKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sxh=200,_Kh=e.object({name:e.string().min(1).max(sxh).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),oxh=36,ixh=36,axh=200,NKh=e.object({id:e.string().max(oxh),entity_id:e.string().max(ixh),name:e.string().max(axh),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),rxh=/^wh_[0-9a-f]{24}$/,MKh=e.object({id:e.stringFormat("resource-id",rxh).describe("Warehouse identifier (wh_ prefix).")}),UKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var cn={};Y(cn,{CreateWebhookBody:()=>CKh,CreateWebhookHeader:()=>PKh,DeleteWebhookHeader:()=>qKh,DeleteWebhookParams:()=>ZKh,DeleteWebhookResponse:()=>WKh,GetWebhookByIdHeader:()=>jKh,GetWebhookByIdParams:()=>kKh,GetWebhookByIdResponse:()=>HKh,GetWebhookDeliveriesHeader:()=>eZh,GetWebhookDeliveriesParams:()=>JKh,GetWebhookDeliveriesQueryParams:()=>XKh,GetWebhookDeliveriesResponse:()=>tZh,GetWebhooksHeader:()=>AKh,GetWebhooksQueryParams:()=>wKh,GetWebhooksResponse:()=>FKh,RotateWebhookSecretHeader:()=>sZh,RotateWebhookSecretParams:()=>nZh,RotateWebhookSecretResponse:()=>oZh,TestWebhookHeader:()=>$Kh,TestWebhookParams:()=>YKh,TestWebhookResponse:()=>QKh,UpdateWebhookBody:()=>VKh,UpdateWebhookHeader:()=>GKh,UpdateWebhookParams:()=>LKh,UpdateWebhookResponse:()=>KKh,createWebhookBodyActiveDefault:()=>cxh,createWebhookBodyDescriptionMax:()=>dxh,createWebhookBodyUrlMax:()=>lxh,deleteWebhookPathIdRegExp:()=>Mxh,getWebhookByIdPathIdRegExp:()=>vxh,getWebhookByIdResponseDescriptionMax:()=>zxh,getWebhookByIdResponseEntityIdMax:()=>Sxh,getWebhookByIdResponseIdMax:()=>hxh,getWebhookByIdResponseMetadataDefault:()=>fxh,getWebhookByIdResponseUrlMax:()=>bxh,getWebhookDeliveriesPathIdRegExp:()=>Wxh,getWebhookDeliveriesQueryLimitDefault:()=>Yxh,getWebhookDeliveriesQueryLimitMax:()=>$xh,getWebhookDeliveriesResponseDataItemAttemptMax:()=>agh,getWebhookDeliveriesResponseDataItemAttemptMin:()=>igh,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>cgh,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>dgh,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Xxh,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>ogh,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>egh,getWebhookDeliveriesResponseDataItemIdMax:()=>Qxh,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>lgh,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>rgh,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>sgh,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>ngh,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>tgh,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Jxh,getWebhooksQueryLimitDefault:()=>uxh,getWebhooksQueryLimitMax:()=>pxh,getWebhooksResponseDataItemDescriptionMax:()=>yxh,getWebhooksResponseDataItemEntityIdMax:()=>xxh,getWebhooksResponseDataItemIdMax:()=>mxh,getWebhooksResponseDataItemMetadataDefault:()=>Oxh,getWebhooksResponseDataItemUrlMax:()=>gxh,rotateWebhookSecretPathIdRegExp:()=>ugh,rotateWebhookSecretResponseDescriptionMax:()=>ggh,rotateWebhookSecretResponseEntityIdMax:()=>mgh,rotateWebhookSecretResponseIdMax:()=>pgh,rotateWebhookSecretResponseMetadataDefault:()=>Ogh,rotateWebhookSecretResponseSecretMax:()=>ygh,rotateWebhookSecretResponseUrlMax:()=>xgh,testWebhookPathIdRegExp:()=>Uxh,testWebhookResponseAttemptMax:()=>Gxh,testWebhookResponseAttemptMin:()=>Lxh,testWebhookResponseDurationMsMax:()=>qxh,testWebhookResponseDurationMsMin:()=>Zxh,testWebhookResponseEntityIdMax:()=>wxh,testWebhookResponseErrorMessageMax:()=>Hxh,testWebhookResponseEventTypeMax:()=>Axh,testWebhookResponseIdMax:()=>Pxh,testWebhookResponseMaxAttemptsMax:()=>Kxh,testWebhookResponseMaxAttemptsMin:()=>Vxh,testWebhookResponseResponseBodyMax:()=>jxh,testWebhookResponseResponseStatusMax:()=>kxh,testWebhookResponseResponseStatusMin:()=>Fxh,testWebhookResponseWebhookIdMax:()=>Cxh,updateWebhookBodyDescriptionMax:()=>Txh,updateWebhookBodyUrlMax:()=>Ixh,updateWebhookPathIdRegExp:()=>Bxh,updateWebhookResponseDescriptionMax:()=>_xh,updateWebhookResponseEntityIdMax:()=>Dxh,updateWebhookResponseIdMax:()=>Exh,updateWebhookResponseMetadataDefault:()=>Nxh,updateWebhookResponseUrlMax:()=>Rxh});var PKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lxh=2048,dxh=500,cxh=true,CKh=e.object({url:e.url().max(lxh).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(dxh).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).min(1).describe("Events that trigger this webhook. Use an exact event name, `<resource>.*` for every event of one resource, `document.<action>` or `document.*` for every document type, or `*` for every event."),active:e.boolean().default(cxh).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),uxh=10,pxh=100,wKh=e.object({limit:e.number().min(1).max(pxh).default(uxh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),AKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mxh=36,xxh=36,gxh=2048,yxh=500,Oxh={},FKh=e.object({data:e.array(e.object({id:e.string().max(mxh),entity_id:e.string().max(xxh),url:e.string().max(gxh),description:e.string().max(yxh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Oxh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,kKh=e.object({id:e.stringFormat("resource-id",vxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),jKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hxh=36,Sxh=36,bxh=2048,zxh=500,fxh={},HKh=e.object({id:e.string().max(hxh),entity_id:e.string().max(Sxh),url:e.string().max(bxh),description:e.string().max(zxh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(fxh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Bxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,LKh=e.object({id:e.stringFormat("resource-id",Bxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),GKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ixh=2048,Txh=500,VKh=e.object({url:e.url().max(Ixh).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Txh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Exh=36,Dxh=36,Rxh=2048,_xh=500,Nxh={},KKh=e.object({id:e.string().max(Exh),entity_id:e.string().max(Dxh),url:e.string().max(Rxh),description:e.string().max(_xh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Nxh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Mxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,ZKh=e.object({id:e.stringFormat("resource-id",Mxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),qKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WKh=e.object({success:e.boolean()}),Uxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,YKh=e.object({id:e.stringFormat("resource-id",Uxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$Kh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pxh=36,Cxh=36,wxh=36,Axh=100,Fxh=-2147483648,kxh=2147483647,jxh=1e4,Hxh=2e3,Lxh=-2147483648,Gxh=2147483647,Vxh=-2147483648,Kxh=2147483647,Zxh=-2147483648,qxh=2147483647,QKh=e.object({id:e.string().max(Pxh),webhook_id:e.string().max(Cxh),entity_id:e.string().max(wxh),event_type:e.string().max(Axh),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Fxh).max(kxh).nullish(),response_body:e.string().max(jxh).nullish(),error_message:e.string().max(Hxh).nullish(),attempt:e.number().min(Lxh).max(Gxh),max_attempts:e.number().min(Vxh).max(Kxh),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Zxh).max(qxh).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Wxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,JKh=e.object({id:e.stringFormat("resource-id",Wxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Yxh=10,$xh=100,XKh=e.object({limit:e.number().min(1).max($xh).default(Yxh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),eZh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Qxh=36,Jxh=36,Xxh=36,egh=100,tgh=-2147483648,ngh=2147483647,sgh=1e4,ogh=2e3,igh=-2147483648,agh=2147483647,rgh=-2147483648,lgh=2147483647,dgh=-2147483648,cgh=2147483647,tZh=e.object({data:e.array(e.object({id:e.string().max(Qxh),webhook_id:e.string().max(Jxh),entity_id:e.string().max(Xxh),event_type:e.string().max(egh),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(tgh).max(ngh).nullish(),response_body:e.string().max(sgh).nullish(),error_message:e.string().max(ogh).nullish(),attempt:e.number().min(igh).max(agh),max_attempts:e.number().min(rgh).max(lgh),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(dgh).max(cgh).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ugh=/^[a-z]{3,4}_[0-9a-f]{24}$/,nZh=e.object({id:e.stringFormat("resource-id",ugh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),sZh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),pgh=36,mgh=36,xgh=2048,ggh=500,ygh=64,Ogh={},oZh=e.object({id:e.string().max(pgh),entity_id:e.string().max(mgh),url:e.string().max(xgh),description:e.string().max(ggh).nullish(),secret:e.string().max(ygh),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Ogh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var un={};Y(un,{CheckWLFeatureParams:()=>rZh,CheckWLFeatureResponse:()=>lZh,CheckWLLimitParams:()=>dZh,CheckWLLimitResponse:()=>cZh,GetCurrentWLSubscriptionResponse:()=>iZh,GetWLSubscriptionPlansResponse:()=>aZh,UpdateWLSubscriptionBillingEmailBody:()=>uZh,UpdateWLSubscriptionBillingEmailResponse:()=>pZh,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>vgh,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>hgh});var vgh=0,hgh=null,iZh=e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(vgh).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(hgh).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),aZh=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),rZh=e.object({feature:e.string().describe("Feature slug to check")}),lZh=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),dZh=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),cZh=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),uZh=e.object({billing_email:e.email().nullable()}),pZh=e.object({billing_email:e.string().nullable()});var pn={};Y(pn,{GetCurrentWhiteLabelResponse:()=>mZh,GetMyWhiteLabelResponse:()=>xZh});var mZh=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),xZh=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var gZh=125e3,mn=null,Ne=null,xn=false;function bgh(d){mn=d;}function gn(d){Ne=d,d==null&&(xn=false);}function yZh(){xn||(xn=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 OZh(){return Ne}function vZh(){if(!mn)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return mn}function hZh(d){if(!d)return {};if(d instanceof Headers){let u={};return d.forEach((y,D)=>{u[D]=y;}),u}if(Array.isArray(d)){let u={};for(let[y,D]of d)u[y]=D;return u}return d}function SZh(d,u){if(u==null||u<=0)return {signal:d??void 0,cleanup:()=>{}};let y=new AbortController,D=()=>{y.abort(d?.reason);};if(d?.aborted)return D(),{signal:y.signal,cleanup:()=>{}};let f=setTimeout(()=>{y.abort(new Error(`SDK request timed out after ${u}ms`));},u),N=()=>{clearTimeout(f),d?.removeEventListener("abort",D);};return d?.addEventListener("abort",D,{once:true}),y.signal.addEventListener("abort",N,{once:true}),{signal:y.signal,cleanup:N}}async function b(d,u){let{timeoutMs:y,sdkConfig:D,...f}=u??{},N=D??vZh(),ye=await Promise.resolve(N.getAccessToken()),Oe=`${N.baseUrl}${d}`,me={...hZh(f.headers)};N.clientName&&Object.assign(me,nt(N.clientName)),ye&&(me.Authorization=`Bearer ${ye}`);let fe=me["x-account-id"]||me["X-Account-Id"]||N.accountId||null;!fe&&Ne&&(D&&yZh(),fe=Ne),fe&&!me["x-account-id"]&&!me["X-Account-Id"]&&(me["x-account-id"]=fe);let Be=SZh(f.signal,y===void 0?N.requestTimeoutMs??gZh:y);try{let he=await fetch(Oe,{...f,headers:me,signal:Be.signal});he.status===401&&N.onUnauthorized&&N.onUnauthorized(he);let Te,Yfh=he.headers.get("content-length"),Ie=he.headers.get("content-type"),$fh=he.headers.get("content-disposition");if(Yfh==="0"||he.status===204)Te=void 0;else if(Ie?.includes("application/pdf")||Ie?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||Ie?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||Ie?.includes("text/csv")||Ie?.includes("application/octet-stream")||Ie?.includes("application/zip")||Ie?.includes("application/x-zip-compressed")||Ie?.includes("image/"))Te=await he.blob();else if(Ie?.includes("application/xml")||Ie?.includes("text/xml"))Te=$fh?.toLowerCase().includes("attachment")?await he.blob():await he.text();else if(Ie?.includes("text/html"))Te=await he.text();else try{Te=await he.json();}catch{Te=void 0;}return {data:Te,status:he.status,headers:he.headers}}finally{Be.cleanup();}}var bZh=1e3;function zZh(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let u=d;return Array.isArray(u.data)&&!!u.pagination&&typeof u.pagination=="object"&&!Array.isArray(u.pagination)}function fZh(d){return Array.isArray(d)?"a bare array":d==null?String(d):typeof d!="object"?`a ${typeof d}`:Array.isArray(d.data)?"an object with a data array but no pagination object (e.g. { data, has_more } instead of { data, pagination: { next_cursor } })":"an object without a data array"}async function*BZh(d,u,y){let D=y?`listAll(${y})`:"listAll()",f=u?.next_cursor,N=0;for(;;){if(N>=1e3)throw new Error(`${D} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);N++;let ye=f,Oe=await d({...u,next_cursor:ye});if(!zZh(Oe))throw new Error(`${D} cannot paginate this method: its response is ${fZh(Oe)}, not the expected { data: T[], pagination: { next_cursor } } shape. This usually means the endpoint does not support cursor-based pagination at all. Call the method directly (it already returns everything in one response) instead of iterating it with listAll().`);for(let me of Oe.data)yield me;let be=Oe.pagination.next_cursor;if(!be)return;if(be===ye)throw new Error(`${D} received the same cursor it just sent (${ye}) after ${N} page(s). The API's pagination cursor is not advancing, which means the server has a pagination bug, not that the result set ended. Stopping here without this error would silently return an incomplete list as if it were complete.`);f=be;}}var IZh=()=>"/account-webhooks",zgh=async(d,u)=>b(IZh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/account-webhooks?${y}`:"/account-webhooks"},fgh=async(d,u)=>b(TZh(d),{...u,method:"GET"}),EZh=d=>`/account-webhooks/${d}`,Bgh=async(d,u)=>b(EZh(d),{...u,method:"GET"}),DZh=d=>`/account-webhooks/${d}`,Igh=async(d,u,y)=>b(DZh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),RZh=d=>`/account-webhooks/${d}`,Tgh=async(d,u)=>b(RZh(d),{...u,method:"DELETE"}),_Zh=d=>`/account-webhooks/${d}/test`,Egh=async(d,u)=>b(_Zh(d),{...u,method:"POST"});var NZh=d=>`/account-webhooks/${d}/rotate-secret`,Dgh=async(d,u)=>b(NZh(d),{...u,method:"POST"});async function MZh(d,u){return d(...u)}function _gh(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let u={};return (d.entity_id||d.account_id||d.request_id)&&(u.headers={...d.entity_id?{"x-entity-id":d.entity_id}:{},...d.account_id?{"x-account-id":d.account_id}:{},...d.request_id?{"X-Request-Id":d.request_id}:{}}),d.signal&&(u.signal=d.signal),d.timeoutMs!==void 0&&(u.timeoutMs=d.timeoutMs),d.sdkConfig&&(u.sdkConfig=d.sdkConfig),u}function z(d,u){let y=async(...f)=>{let N=f[f.length-1],ye=N&&typeof N=="object"&&("entity_id"in N||"account_id"in N||"request_id"in N||"signal"in N||"timeoutMs"in N||"sdkConfig"in N||Object.keys(N).length===0),Oe,be;ye?(Oe=f.slice(0,-1),be=_gh(N)):Oe=[...f];let me=Math.max(0,d.length-1);for(;Oe.length<me;)Oe.push(void 0);Oe.push(be);let fe=await MZh(d,Oe);if(fe.status>=200&&fe.status<300)return fe.data;let Be=new Error(`API error: ${fe.status}`);throw Be.status=fe.status,Be.data=fe.data,Be};return u===void 0?y:Object.assign(((...f)=>{let N=[...f];return N[u]??={},y(...N)}),{__sdkOptionsIndex:u})}function ee(d){return Object.assign(async y=>{let{entity_id:D,account_id:f,request_id:N,signal:ye,timeoutMs:Oe,sdkConfig:be,...me}=y||{},fe=_gh({entity_id:D,account_id:f,request_id:N,signal:ye,timeoutMs:Oe,sdkConfig:be}),Be=await d(me,fe);if(Be.status===200)return Be.data;let he=new Error(`API error: ${Be.status}`);throw he.status=Be.status,he.data=Be.data,he},{__sdkListMethod:true})}function Rgh(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}function q(d,u){let y=Object.entries(d).map(([D,f])=>typeof f!="function"?[D,f]:[D,(...N)=>{let ye=u(),Oe=N[N.length-1],be=f;if(be.__sdkListMethod){let me=N[0];N[0]=me&&typeof me=="object"?{...me,sdkConfig:ye}:{sdkConfig:ye};}else if(typeof be.__sdkOptionsIndex=="number"){let me=N[be.__sdkOptionsIndex];N[be.__sdkOptionsIndex]=Rgh(me)?{...me,sdkConfig:ye}:{sdkConfig:ye};}else Rgh(Oe)?N[N.length-1]={...Oe,sdkConfig:ye}:N.push({sdkConfig:ye});return f(...N)}]);return Object.fromEntries(y)}var yn={create:z(zgh,1),list:ee(fgh),get:z(Bgh,1),update:z(Igh,2),delete:z(Tgh,1),testAccountWebhook:z(Egh,1),rotateAccountWebhookSecret:z(Dgh,1)};var UZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/employees?${y}`:"/employees"},Me=async(d,u)=>b(UZh(d),{...u,method:"GET"}),PZh=()=>"/employees",Ue=async(d,u)=>b(PZh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),CZh=d=>`/employees/${d}`,Pe=async(d,u)=>b(CZh(d),{...u,method:"GET"}),wZh=d=>`/employees/${d}`,Ce=async(d,u,y)=>b(wZh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),AZh=d=>`/employees/${d}`,we=async(d,u)=>b(AZh(d),{...u,method:"DELETE"}),FZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/employees/${d}/attendance?${D}`:`/employees/${d}/attendance`},Ae=async(d,u,y)=>b(FZh(d,u),{...y,method:"GET"}),kZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/employees/${d}/attendance?${D}`:`/employees/${d}/attendance`},Fe=async(d,u,y,D)=>b(kZh(d,y),{...D,method:"PUT",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),jZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payroll/parameters?${y}`:"/payroll/parameters"},ke=async(d,u)=>b(jZh(d),{...u,method:"GET"}),HZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payroll/parameters/history?${y}`:"/payroll/parameters/history"},je=async(d,u)=>b(HZh(d),{...u,method:"GET"}),LZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/payroll/parameters/${d}?${D}`:`/payroll/parameters/${d}`},He=async(d,u,y,D)=>b(LZh(d,y),{...D,method:"PUT",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),GZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/vat-returns/preview?${y}`:"/vat-returns/preview"},Le=async(d,u)=>b(GZh(d),{...u,method:"GET"}),VZh=()=>"/vat-returns",Ge=async(d,u)=>b(VZh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/vat-returns?${y}`:"/vat-returns"},Ve=async(d,u)=>b(KZh(d),{...u,method:"GET"}),ZZh=d=>`/vat-returns/${d}`,Ke=async(d,u)=>b(ZZh(d),{...u,method:"GET"}),qZh=d=>`/vat-returns/${d}/recompute`,Ze=async(d,u)=>b(qZh(d),{...u,method:"POST"}),WZh=d=>`/vat-returns/${d}/approve`,qe=async(d,u)=>b(WZh(d),{...u,method:"POST"}),YZh=d=>`/vat-returns/${d}/submit`,We=async(d,u,y)=>b(YZh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),$Zh=d=>`/vat-returns/${d}/reopen`,Ye=async(d,u)=>b($Zh(d),{...u,method:"POST"}),QZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/vat-returns/${d}/export?${D}`:`/vat-returns/${d}/export`},$e=async(d,u,y)=>b(QZh(d,u),{...y,method:"GET"}),JZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/filings?${y}`:"/filings"},Qe=async(d,u)=>b(JZh(d),{...u,method:"GET"}),XZh=d=>`/filings/${d}/complete`,Je=async(d,u,y)=>b(XZh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),eqh=d=>`/filings/${d}/reopen`,Xe=async(d,u)=>b(eqh(d),{...u,method:"POST"}),tqh=d=>`/filings/${d}/dismiss`,et=async(d,u,y)=>b(tqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),nqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/accounting/filings-calendar?${y}`:"/accounting/filings-calendar"},tt=async(d,u)=>b(nqh(d),{...u,method:"GET"}),sqh=()=>"/ledger/accounts",Ngh=async d=>b(sqh(),{...d,method:"GET"}),oqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/trial-balance?${y}`:"/ledger/trial-balance"},Mgh=async(d,u)=>b(oqh(d),{...u,method:"GET"}),iqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/profit-and-loss?${y}`:"/ledger/profit-and-loss"},Ugh=async(d,u)=>b(iqh(d),{...u,method:"GET"}),aqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/balance-sheet?${y}`:"/ledger/balance-sheet"},Pgh=async(d,u)=>b(aqh(d),{...u,method:"GET"}),rqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/entries?${y}`:"/ledger/entries"},Cgh=async(d,u)=>b(rqh(d),{...u,method:"GET"}),lqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/journal-entries?${y}`:"/journal-entries"},wgh=async(d,u)=>b(lqh(d),{...u,method:"GET"}),dqh=()=>"/journal-entries",Agh=async(d,u)=>b(dqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cqh=d=>`/journal-entries/${d}`,Fgh=async(d,u)=>b(cqh(d),{...u,method:"GET"}),uqh=d=>`/journal-entries/${d}`,kgh=async(d,u,y)=>b(uqh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),pqh=d=>`/journal-entries/${d}`,jgh=async(d,u)=>b(pqh(d),{...u,method:"DELETE"}),mqh=()=>"/vendor-tax-profiles",Hgh=async d=>b(mqh(),{...d,method:"GET"}),xqh=d=>`/vendor-tax-profiles/${d}`,Lgh=async(d,u,y)=>b(xqh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),gqh=d=>`/us-tax-years/${d}`,Ggh=async(d,u)=>b(gqh(d),{...u,method:"GET"}),yqh=d=>`/us-tax-years/${d}/export`,Vgh=async(d,u)=>b(yqh(d),{...u,method:"GET"});var On={listEmployees:z(Me,1),registerEmployee:z(Ue,1),getEmployee:z(Pe,1),modifyEmployee:z(Ce,2),archiveEmployee:z(we,1),getEmployeeAttendance:z(Ae,2),replaceEmployeeAttendance:z(Fe,3),resolvePayrollParameters:z(ke,1),getPayrollParameterHistory:z(je,1),setPayrollParameterOverride:z(He,3),preview:z(Le,1),draftVatReturn:z(Ge,1),listVatReturns:z(Ve,1),getVatReturn:z(Ke,1),recomputeVatReturn:z(Ze,1),approveVatReturn:z(qe,1),submitVatReturn:z(We,2),reopenVatReturn:z(Ye,1),exportVatReturn:z($e,2),listFilings:z(Qe,1),completeFiling:z(Je,2),reopenFiling:z(Xe,1),dismissFiling:z(et,2),listAccountFilingsCalendar:z(tt,1),listLedgerAccounts:z(Ngh,0),getTrialBalance:z(Mgh,1),getProfitAndLossReport:z(Ugh,1),getBalanceSheet:z(Pgh,1),listLedgerEntries:z(Cgh,1),listJournalEntries:z(wgh,1),recordJournalEntry:z(Agh,1),getJournalEntry:z(Fgh,1),reviseJournalEntry:z(kgh,2),archiveJournalEntry:z(jgh,1),listVendorTaxProfiles:z(Hgh,0),setVendorTaxProfile:z(Lgh,2),getUsTaxYearWorksheet:z(Ggh,1),exportUsTaxYearWorksheet:z(Vgh,1)};var Oqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/activities?${y}`:"/activities"},Kgh=async(d,u)=>b(Oqh(d),{...u,method:"GET"});var vn={list:ee(Kgh)};var vqh=d=>`/advance-invoices/${d}/nav/retry`,Zgh=async(d,u)=>b(vqh(d),{...u,method:"POST"}),hqh=d=>`/advance-invoices/${d}/nav/reconcile`,qgh=async(d,u)=>b(hqh(d),{...u,method:"POST"}),Sqh=d=>`/advance-invoices/${d}/nav/annulment`,Wgh=async(d,u,y)=>b(Sqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),bqh=d=>`/advance-invoices/shareable/${d}`,Ygh=async(d,u)=>b(bqh(d),{...u,method:"GET"}),zqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/advance-invoices/shareable/${d}/html?${D}`:`/advance-invoices/shareable/${d}/html`},$gh=async(d,u,y)=>b(zqh(d,u),{...y,method:"GET"}),fqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/advance-invoices/shareable/${d}/pdf?${D}`:`/advance-invoices/shareable/${d}/pdf`},Qgh=async(d,u,y)=>b(fqh(d,u),{...y,method:"GET"}),Bqh=d=>`/advance-invoices/shareable/${d}/eslog`,Jgh=async(d,u)=>b(Bqh(d),{...u,method:"GET"}),Iqh=()=>"/advance-invoices",Xgh=async(d,u)=>b(Iqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Tqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/advance-invoices?${y}`:"/advance-invoices"},e0h=async(d,u)=>b(Tqh(d),{...u,method:"GET"}),Eqh=()=>"/advance-invoices/custom",t0h=async(d,u)=>b(Eqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Dqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/advance-invoices/${d}?${D}`:`/advance-invoices/${d}`},n0h=async(d,u,y)=>b(Dqh(d,u),{...y,method:"GET"}),Rqh=d=>`/advance-invoices/${d}`,s0h=async(d,u,y)=>b(Rqh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),_qh=d=>`/advance-invoices/${d}/versions`,o0h=async(d,u)=>b(_qh(d),{...u,method:"GET"}),Nqh=(d,u)=>`/advance-invoices/${d}/versions/${u}`,i0h=async(d,u,y)=>b(Nqh(d,u),{...y,method:"GET"}),Mqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/advance-invoices/render?${y}`:"/advance-invoices/render"},a0h=async(d,u,y)=>b(Mqh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),Uqh=d=>`/advance-invoices/${d}/void`,r0h=async(d,u,y)=>b(Uqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var hn={retryAdvanceInvoiceNav:z(Zgh,1),reconcileAdvanceInvoiceNav:z(qgh,1),annulAdvanceInvoiceNav:z(Wgh,2),getShareableAdvanceInvoice:z(Ygh,1),getShareableAdvanceInvoiceHtml:z($gh,2),getShareableAdvanceInvoicePdf:z(Qgh,2),getShareableAdvanceInvoiceEslog:z(Jgh,1),create:z(Xgh,1),list:ee(e0h),createCustom:z(t0h,1),get:z(n0h,2),update:z(s0h,2),getVersions:z(o0h,1),getVersion:z(i0h,2),renderAdvanceInvoicePreview:z(a0h,2),void:z(r0h,2)};var Pqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/business-units?${y}`:"/business-units"},l0h=async(d,u)=>b(Pqh(d),{...u,method:"GET"}),Cqh=()=>"/business-units",d0h=async(d,u)=>b(Cqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/business-units/${d}?${D}`:`/business-units/${d}`},c0h=async(d,u,y)=>b(wqh(d,u),{...y,method:"GET"}),Aqh=d=>`/business-units/${d}`,u0h=async(d,u,y)=>b(Aqh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Fqh=d=>`/business-units/${d}`,p0h=async(d,u)=>b(Fqh(d),{...u,method:"DELETE"});var Sn={list:ee(l0h),create:z(d0h,1),get:z(c0h,2),update:z(u0h,2),delete:z(p0h,1)};var kqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/company-registry/search?${y}`:"/company-registry/search"},m0h=async(d,u)=>b(kqh(d),{...u,method:"GET"}),jqh=()=>"/company-registry/countries",x0h=async d=>b(jqh(),{...d,method:"GET"});var bn={searchCompanyRegistry:z(m0h,1),list:z(x0h,0)};var Hqh=d=>`/credit-notes/${d}/nav/retry`,g0h=async(d,u)=>b(Hqh(d),{...u,method:"POST"}),Lqh=d=>`/credit-notes/${d}/nav/reconcile`,y0h=async(d,u)=>b(Lqh(d),{...u,method:"POST"}),Gqh=d=>`/credit-notes/${d}/nav/annulment`,O0h=async(d,u,y)=>b(Gqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Vqh=d=>`/credit-notes/shareable/${d}`,v0h=async(d,u)=>b(Vqh(d),{...u,method:"GET"}),Kqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/credit-notes/shareable/${d}/html?${D}`:`/credit-notes/shareable/${d}/html`},h0h=async(d,u,y)=>b(Kqh(d,u),{...y,method:"GET"}),Zqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/credit-notes/shareable/${d}/pdf?${D}`:`/credit-notes/shareable/${d}/pdf`},S0h=async(d,u,y)=>b(Zqh(d,u),{...y,method:"GET"}),qqh=d=>`/credit-notes/shareable/${d}/eslog`,b0h=async(d,u)=>b(qqh(d),{...u,method:"GET"}),Wqh=d=>`/credit-notes/${d}/ksef/recover`,z0h=async(d,u)=>b(Wqh(d),{...u,method:"POST"}),Yqh=d=>`/credit-notes/${d}/ksef`,f0h=async(d,u)=>b(Yqh(d),{...u,method:"GET"}),$qh=d=>`/credit-notes/${d}/ksef/submit`,B0h=async(d,u)=>b($qh(d),{...u,method:"POST"}),Qqh=d=>`/credit-notes/${d}/ksef/upo`,I0h=async(d,u)=>b(Qqh(d),{...u,method:"GET"}),Jqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes?${y}`:"/credit-notes"},T0h=async(d,u,y)=>b(Jqh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),Xqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes?${y}`:"/credit-notes"},E0h=async(d,u)=>b(Xqh(d),{...u,method:"GET"}),eWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes/custom?${y}`:"/credit-notes/custom"},D0h=async(d,u,y)=>b(eWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),tWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/credit-notes/${d}?${D}`:`/credit-notes/${d}`},R0h=async(d,u,y)=>b(tWh(d,u),{...y,method:"GET"}),nWh=d=>`/credit-notes/${d}`,_0h=async(d,u,y)=>b(nWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),sWh=d=>`/credit-notes/${d}/xrechnung`,N0h=async(d,u)=>b(sWh(d),{...u,method:"GET"}),oWh=d=>`/credit-notes/${d}/zugferd`,M0h=async(d,u)=>b(oWh(d),{...u,method:"GET"}),iWh=d=>`/credit-notes/${d}/versions`,U0h=async(d,u)=>b(iWh(d),{...u,method:"GET"}),aWh=(d,u)=>`/credit-notes/${d}/versions/${u}`,P0h=async(d,u,y)=>b(aWh(d,u),{...y,method:"GET"}),rWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes/render?${y}`:"/credit-notes/render"},C0h=async(d,u,y)=>b(rWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),lWh=d=>`/credit-notes/${d}/fiscalize`,w0h=async(d,u)=>b(lWh(d),{...u,method:"POST"}),dWh=d=>`/credit-notes/${d}/void`,A0h=async(d,u,y)=>b(dWh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});function F0h(d){let u=z(d);function y(D,f,N){let ye=f&&typeof f=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(me=>me in f),Oe=ye?void 0:f,be=ye?{...f,...N}:N;return u(D,Oe??{},be??{})}return Object.assign(y,{__sdkOptionsIndex:2})}var zn={retryCreditNoteNav:z(g0h,1),reconcileCreditNoteNav:z(y0h,1),annulCreditNoteNav:z(O0h,2),getShareableCreditNote:z(v0h,1),getShareableCreditNoteHtml:z(h0h,2),getShareableCreditNotePdf:z(S0h,2),getShareableCreditNoteEslog:z(b0h,1),recoverCreditNoteFromKsef:z(z0h,1),getCreditNoteKsefState:z(f0h,1),submitCreditNoteToKsef:z(B0h,1),getCreditNoteKsefUpo:z(I0h,1),create:F0h(T0h),list:ee(E0h),createCustom:F0h(D0h),get:z(R0h,2),update:z(_0h,2),downloadCreditNoteXRechnung:z(N0h,1),downloadCreditNoteZugferd:z(M0h,1),getVersions:z(U0h,1),getVersion:z(P0h,2),renderCreditNotePreview:z(C0h,2),fiscalizeCreditNote:z(w0h,1),void:z(A0h,2)};var cWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/currency/exchange-rate?${y}`:"/currency/exchange-rate"},k0h=async(d,u)=>b(cWh(d),{...u,method:"GET"});var fn={getExchangeRate:z(k0h,1)};var uWh=()=>"/customers",j0h=async(d,u)=>b(uWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/customers?${y}`:"/customers"},H0h=async(d,u)=>b(pWh(d),{...u,method:"GET"}),mWh=d=>`/customers/${d}`,L0h=async(d,u)=>b(mWh(d),{...u,method:"GET"}),xWh=d=>`/customers/${d}`,G0h=async(d,u,y)=>b(xWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),gWh=d=>`/customers/${d}`,V0h=async(d,u)=>b(gWh(d),{...u,method:"DELETE"}),yWh=d=>`/customers/${d}/restore`,K0h=async(d,u)=>b(yWh(d),{...u,method:"POST"}),OWh=d=>`/customers/${d}/permanent`,Z0h=async(d,u)=>b(OWh(d),{...u,method:"DELETE"});var Bn={create:z(j0h,1),list:ee(H0h),get:z(L0h,1),update:z(G0h,2),delete:z(V0h,1),restoreCustomer:z(K0h,1),permanentDeleteCustomer:z(Z0h,1)};var vWh=d=>`/delivery-notes/shareable/${d}`,q0h=async(d,u)=>b(vWh(d),{...u,method:"GET"}),hWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/delivery-notes/shareable/${d}/html?${D}`:`/delivery-notes/shareable/${d}/html`},W0h=async(d,u,y)=>b(hWh(d,u),{...y,method:"GET"}),SWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/delivery-notes/shareable/${d}/pdf?${D}`:`/delivery-notes/shareable/${d}/pdf`},Y0h=async(d,u,y)=>b(SWh(d,u),{...y,method:"GET"}),bWh=()=>"/delivery-notes",$0h=async(d,u)=>b(bWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),zWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/delivery-notes?${y}`:"/delivery-notes"},Q0h=async(d,u)=>b(zWh(d),{...u,method:"GET"}),fWh=()=>"/delivery-notes/custom",J0h=async(d,u)=>b(fWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),BWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/delivery-notes/${d}?${D}`:`/delivery-notes/${d}`},X0h=async(d,u,y)=>b(BWh(d,u),{...y,method:"GET"}),IWh=d=>`/delivery-notes/${d}`,eyh=async(d,u,y)=>b(IWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),TWh=d=>`/delivery-notes/${d}/versions`,tyh=async(d,u)=>b(TWh(d),{...u,method:"GET"}),EWh=(d,u)=>`/delivery-notes/${d}/versions/${u}`,nyh=async(d,u,y)=>b(EWh(d,u),{...y,method:"GET"}),DWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/delivery-notes/render?${y}`:"/delivery-notes/render"},syh=async(d,u,y)=>b(DWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),RWh=d=>`/delivery-notes/${d}/void`,oyh=async(d,u,y)=>b(RWh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),_Wh=d=>`/delivery-notes/${d}/sign`,iyh=async(d,u,y)=>b(_Wh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),NWh=d=>`/delivery-notes/${d}/quantities`,ayh=async(d,u,y)=>b(NWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var In={getShareableDeliveryNote:z(q0h,1),getShareableDeliveryNoteHtml:z(W0h,2),getShareableDeliveryNotePdf:z(Y0h,2),create:z($0h,1),list:ee(Q0h),createCustom:z(J0h,1),get:z(X0h,2),update:z(eyh,2),getVersions:z(tyh,1),getVersion:z(nyh,2),renderDeliveryNotePreview:z(syh,2),void:z(oyh,2),signDeliveryNote:z(iyh,2),setDeliveryNoteQuantities:z(ayh,2)};var MWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/next-number?${y}`:"/documents/next-number"},ryh=async(d,u)=>b(MWh(d),{...u,method:"GET"}),UWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/calculate?${y}`:"/documents/calculate"},lyh=async(d,u,y)=>b(UWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),PWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/finalize?${D}`:`/documents/${d}/finalize`},dyh=async(d,u,y,D)=>b(PWh(d,y),{...D,method:"POST",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),CWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/fiscalize?${D}`:`/documents/${d}/fiscalize`},cyh=async(d,u,y,D)=>b(CWh(d,y),{...D,method:"POST",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),wWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/register-output?${D}`:`/documents/${d}/register-output`},uyh=async(d,u,y)=>b(wWh(d,u),{...y,method:"POST"}),AWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}?${D}`:`/documents/${d}`},pyh=async(d,u,y)=>b(AWh(d,u),{...y,method:"DELETE"}),FWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/restore?${D}`:`/documents/${d}/restore`},myh=async(d,u,y)=>b(FWh(d,u),{...y,method:"POST"}),kWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/permanent?${D}`:`/documents/${d}/permanent`},xyh=async(d,u,y)=>b(kWh(d,u),{...y,method:"DELETE"}),jWh=d=>`/documents/${d}/send`,gyh=async(d,u,y)=>b(jWh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),HWh=d=>`/documents/${d}/share`,yyh=async(d,u)=>b(HWh(d),{...u,method:"POST"}),LWh=d=>`/documents/${d}/share`,Oyh=async(d,u)=>b(LWh(d),{...u,method:"GET"}),GWh=d=>`/documents/${d}/share`,vyh=async(d,u)=>b(GWh(d),{...u,method:"DELETE"});var Tn=z(cyh,3);function VWh(d){return !!d&&typeof d=="object"&&"type"in d}function En(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}var KWh=async(d,u,y,D)=>{if(En(u))return Tn(d,void 0,void 0,u);if(VWh(u))return Tn(d,void 0,u,y);let f=En(y)?void 0:y,N=En(y)?y:D;return Tn(d,u,f,N)},Dn={getNextNumber:z(ryh,1),calculateDocumentPreview:z(lyh,2),finalizeDocument:z(dyh,3),fiscalizeDocument:KWh,registerDocumentOutput:z(uyh,2),delete:z(pyh,2),restoreDocument:z(myh,2),permanentDeleteDocument:z(xyh,2),sendDocument:z(gyh,2),shareDocument:z(yyh,1),getShareableId:z(Oyh,1),unshareDocument:z(vyh,1)};var ZWh=()=>"/e-invoicing/settings",hyh=async d=>b(ZWh(),{...d,method:"GET"}),qWh=()=>"/e-invoicing/settings",Syh=async(d,u)=>b(qWh(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WWh=()=>"/e-invoicing/enrollment/sync",byh=async d=>b(WWh(),{...d,method:"POST"}),YWh=()=>"/e-invoicing/enrollment/verification-link",zyh=async d=>b(YWh(),{...d,method:"POST"}),$Wh=()=>"/e-invoicing/enrollment/authorize",fyh=async(d,u)=>b($Wh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),QWh=()=>"/e-invoicing/enrollment/disconnect",Byh=async d=>b(QWh(),{...d,method:"POST"}),JWh=()=>"/e-invoicing/france/directory/lookup",Iyh=async(d,u)=>b(JWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),XWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/e-invoicing/received-documents?${y}`:"/e-invoicing/received-documents"},Tyh=async(d,u)=>b(XWh(d),{...u,method:"GET"}),e6h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/e-invoicing/received-documents/${d}/download?${D}`:`/e-invoicing/received-documents/${d}/download`},Eyh=async(d,u,y)=>b(e6h(d,u),{...y,method:"GET"}),t6h=d=>`/e-invoicing/received-documents/${d}/accept`,Dyh=async(d,u)=>b(t6h(d),{...u,method:"POST"}),n6h=d=>`/e-invoicing/received-documents/${d}/lifecycle`,Ryh=async(d,u,y)=>b(n6h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),s6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/e-invoicing/reporting-records?${y}`:"/e-invoicing/reporting-records"},_yh=async(d,u)=>b(s6h(d),{...u,method:"GET"}),o6h=d=>`/e-invoicing/reporting-records/${d}/retry`,Nyh=async(d,u)=>b(o6h(d),{...u,method:"POST"}),i6h=()=>"/e-invoicing/supplier",Myh=async(d,u)=>b(i6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),a6h=()=>"/e-invoicing/supplier",Uyh=async d=>b(a6h(),{...d,method:"GET"});var r6h=()=>"/e-invoicing/recipients/check",Pyh=async(d,u)=>b(r6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),l6h=()=>"/e-invoicing/customer-search",Cyh=async(d,u)=>b(l6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),d6h=d=>`/e-invoicing/documents/${d}/send`,wyh=async(d,u,y)=>b(d6h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),c6h=(d,u)=>`/e-invoicing/send/${d}/${u}`,Ayh=async(d,u,y,D)=>b(c6h(d,u),{...D,method:"POST",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(y)}),u6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/e-invoicing/submissions?${y}`:"/e-invoicing/submissions"},Fyh=async(d,u)=>b(u6h(d),{...u,method:"GET"}),p6h=d=>`/e-invoicing/submissions/${d}`,Rn=async(d,u)=>b(p6h(d),{...u,method:"GET"}),m6h=d=>`/e-invoicing/submissions/${d}/retry`,_n=async(d,u)=>b(m6h(d),{...u,method:"POST"});var Nn={getEInvoicingSubmission:z(Rn,1),retryEInvoicingSubmission:z(_n,1),list:z(hyh,0),update:z(Syh,1),syncEInvoicingEnrollment:z(byh,0),create:z(zyh,0),createEInvoicingEnrollmentAuthorization:z(fyh,1),disconnectEInvoicingEnrollment:z(Byh,0),lookupFranceEInvoicingDirectory:z(Iyh,1),listReceivedEInvoices:z(Tyh,1),downloadReceivedEInvoice:z(Eyh,2),acceptReceivedEInvoice:z(Dyh,1),sendReceivedEInvoiceLifecycle:z(Ryh,2),listFrenchEReportingRecords:z(_yh,1),retryFrenchEReportingRecord:z(Nyh,1),registerEInvoicingSupplier:z(Myh,1),getEInvoicingSupplier:z(Uyh,0),checkEInvoicingRecipient:z(Pyh,1),searchEInvoicingCustomer:z(Cyh,1),sendEInvoicingDocument:z(wyh,2),sendEInvoice:z(Ayh,3),listEInvoicingSubmissions:z(Fyh,1),get:z(Rn,1),retryEInvoicingSubmissionById:z(_n,1)};var x6h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/eslog/${d}/validate?${D}`:`/eslog/${d}/validate`},kyh=async(d,u,y)=>b(x6h(d,u),{...y,method:"POST"}),g6h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/eslog/${d}/download?${D}`:`/eslog/${d}/download`},jyh=async(d,u,y)=>b(g6h(d,u),{...y,method:"GET"});var Mn={validate:z(kyh,2),download:z(jyh,2)};var y6h=()=>"/email/send",Hyh=async(d,u)=>b(y6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Un={sendEmail:z(Hyh,1)};var O6h=d=>`/entities/${d}/nav`,Lyh=async(d,u)=>b(O6h(d),{...u,method:"GET"}),v6h=d=>`/entities/${d}/nav`,Gyh=async(d,u,y)=>b(v6h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),h6h=d=>`/entities/${d}/nav/credentials`,Vyh=async(d,u,y)=>b(h6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),S6h=d=>`/entities/${d}/nav/credentials`,Kyh=async(d,u)=>b(S6h(d),{...u,method:"DELETE"}),b6h=d=>`/entities/${d}/nav/credentials/verify`,Zyh=async(d,u)=>b(b6h(d),{...u,method:"POST"}),z6h=d=>`/entities/${d}/ksef`,qyh=async(d,u)=>b(z6h(d),{...u,method:"GET"}),f6h=d=>`/entities/${d}/ksef`,Wyh=async(d,u,y)=>b(f6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),B6h=d=>`/entities/${d}/ksef/credentials`,Yyh=async(d,u,y)=>b(B6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),I6h=d=>`/entities/${d}/ksef/credentials`,$yh=async(d,u)=>b(I6h(d),{...u,method:"DELETE"}),T6h=()=>"/entities",Qyh=async(d,u)=>b(T6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),E6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/entities?${y}`:"/entities"},Jyh=async(d,u)=>b(E6h(d),{...u,method:"GET"}),D6h=d=>`/entities/${d}`,Xyh=async(d,u)=>b(D6h(d),{...u,method:"GET"}),R6h=d=>`/entities/${d}`,eOh=async(d,u,y)=>b(R6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),_6h=d=>`/entities/${d}/enable`,tOh=async(d,u)=>b(_6h(d),{...u,method:"POST"}),N6h=d=>`/entities/${d}/disable`,nOh=async(d,u)=>b(N6h(d),{...u,method:"POST"}),M6h=d=>`/entities/${d}/email-sender`,sOh=async(d,u)=>b(M6h(d),{...u,method:"GET"}),U6h=d=>`/entities/${d}/email-sender`,oOh=async(d,u,y)=>b(U6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),P6h=d=>`/entities/${d}/email-sender`,iOh=async(d,u)=>b(P6h(d),{...u,method:"DELETE"}),C6h=d=>`/entities/${d}/email-sender/recheck`,aOh=async(d,u)=>b(C6h(d),{...u,method:"POST"});var Pn={retrieveEntityNavSettings:z(Lyh,1),modifyEntityNavSettings:z(Gyh,2),storeEntityNavCredentials:z(Vyh,2),removeEntityNavCredentials:z(Kyh,1),verifyEntityNavCredentials:z(Zyh,1),getEntityKsefSetup:z(qyh,1),putEntityKsefSettings:z(Wyh,2),putEntityKsefCredential:z(Yyh,2),removeEntityKsefCredential:z($yh,1),create:z(Qyh,1),list:ee(Jyh),get:z(Xyh,1),update:z(eOh,2),enableEntity:z(tOh,1),disableEntity:z(nOh,1),getEntityEmailSender:z(sOh,1),putEntityEmailSender:z(oOh,2),deleteEntityEmailSender:z(iOh),recheckEntityEmailSender:z(aOh,1)};var w6h=()=>"/entities/api-keys",rOh=async d=>b(w6h(),{...d,method:"GET"}),A6h=()=>"/entities/api-keys",lOh=async(d,u)=>b(A6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F6h=d=>`/entities/api-keys/${d}`,dOh=async(d,u)=>b(F6h(d),{...u,method:"DELETE"}),k6h=()=>"/entities/api-keys/revoke-integration",cOh=async d=>b(k6h(),{...d,method:"POST"});var Cn={listEntityApiKeys:z(rOh,0),create:z(lOh,1),delete:z(dOh,1),revokeEntityApiKeyIntegration:z(cOh,0)};var j6h=()=>"/entities/invitations",uOh=async d=>b(j6h(),{...d,method:"GET"}),H6h=d=>`/entities/invitations/${d}`,pOh=async(d,u)=>b(H6h(d),{...u,method:"GET"}),L6h=d=>`/entities/invitations/${d}`,mOh=async(d,u)=>b(L6h(d),{...u,method:"DELETE"}),G6h=d=>`/entities/invitations/${d}/resend`,xOh=async(d,u)=>b(G6h(d),{...u,method:"POST"}),V6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invitations/preview?${y}`:"/invitations/preview"},gOh=async(d,u)=>b(V6h(d),{...u,method:"GET"}),K6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invitations/accept?${y}`:"/invitations/accept"},yOh=async(d,u,y)=>b(K6h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)});var wn={listEntityInvitations:z(uOh,0),getEntityInvitation:z(pOh,1),cancelEntityInvitation:z(mOh,1),resendEntityInvitation:z(xOh,1),preview:z(gOh,1),acceptEntityInvitation:z(yOh,2)};var Z6h=()=>"/stats/query",OOh=async(d,u)=>b(Z6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var An={queryEntityStats:z(OOh,1)};var q6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/entities/users?${y}`:"/entities/users"},vOh=async(d,u)=>b(q6h(d),{...u,method:"GET"}),W6h=()=>"/entities/users",hOh=async(d,u)=>b(W6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y6h=()=>"/entities/users/access",SOh=async d=>b(Y6h(),{...d,method:"GET"}),$6h=d=>`/entities/users/${d}`,bOh=async(d,u,y)=>b($6h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Q6h=d=>`/entities/users/${d}`,zOh=async(d,u)=>b(Q6h(d),{...u,method:"DELETE"}),J6h=d=>`/entities/users/${d}/token`,fOh=async(d,u,y)=>b(J6h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var Fn={list:ee(vOh),addEntityUser:z(hOh,1),getAccess:z(SOh,0),update:z(bOh,2),removeEntityUser:z(zOh,1),generateEntityUserToken:z(fOh,2)};var X6h=d=>`/estimates/shareable/${d}`,BOh=async(d,u)=>b(X6h(d),{...u,method:"GET"}),e7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/estimates/shareable/${d}/html?${D}`:`/estimates/shareable/${d}/html`},IOh=async(d,u,y)=>b(e7h(d,u),{...y,method:"GET"}),t7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/estimates/shareable/${d}/pdf?${D}`:`/estimates/shareable/${d}/pdf`},TOh=async(d,u,y)=>b(t7h(d,u),{...y,method:"GET"}),n7h=d=>`/estimates/shareable/${d}/eslog`,EOh=async(d,u)=>b(n7h(d),{...u,method:"GET"}),s7h=()=>"/estimates",DOh=async(d,u)=>b(s7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),o7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/estimates?${y}`:"/estimates"},ROh=async(d,u)=>b(o7h(d),{...u,method:"GET"}),i7h=()=>"/estimates/custom",_Oh=async(d,u)=>b(i7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),a7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/estimates/${d}?${D}`:`/estimates/${d}`},NOh=async(d,u,y)=>b(a7h(d,u),{...y,method:"GET"}),r7h=d=>`/estimates/${d}`,MOh=async(d,u,y)=>b(r7h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),l7h=d=>`/estimates/${d}/versions`,UOh=async(d,u)=>b(l7h(d),{...u,method:"GET"}),d7h=(d,u)=>`/estimates/${d}/versions/${u}`,POh=async(d,u,y)=>b(d7h(d,u),{...y,method:"GET"}),c7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/estimates/render?${y}`:"/estimates/render"},COh=async(d,u,y)=>b(c7h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)});var kn={getShareableEstimate:z(BOh,1),getShareableEstimateHtml:z(IOh,2),getShareableEstimatePdf:z(TOh,2),getShareableEstimateEslog:z(EOh,1),create:z(DOh,1),list:ee(ROh),createCustom:z(_Oh,1),get:z(NOh,2),update:z(MOh,2),getVersions:z(UOh,1),getVersion:z(POh,2),renderEstimatePreview:z(COh,2)};var u7h=()=>"/expenses",wOh=async(d,u)=>b(u7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),p7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses?${y}`:"/expenses"},AOh=async(d,u)=>b(p7h(d),{...u,method:"GET"}),m7h=()=>"/expenses/custom",FOh=async(d,u)=>b(m7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),x7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses/export?${y}`:"/expenses/export"},kOh=async(d,u)=>b(x7h(d),{...u,method:"GET"}),g7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses/report?${y}`:"/expenses/report"},jOh=async(d,u)=>b(g7h(d),{...u,method:"GET"}),y7h=()=>"/expenses/recognition/settings",HOh=async d=>b(y7h(),{...d,method:"GET"}),O7h=()=>"/expenses/recognition/settings",LOh=async(d,u)=>b(O7h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v7h=()=>"/expenses/recognition/backfill",GOh=async(d,u)=>b(v7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),h7h=()=>"/expenses/recognitions",VOh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(h7h(),{...u,method:"POST",body:y})},S7h=d=>`/expenses/recognitions/${d}`,KOh=async(d,u)=>b(S7h(d),{...u,method:"GET"}),b7h=d=>`/expenses/recognitions/${d}/retry`,ZOh=async(d,u)=>b(b7h(d),{...u,method:"POST"}),z7h=()=>"/expenses/inbound-email",qOh=async d=>b(z7h(),{...d,method:"GET"}),f7h=()=>"/expenses/inbound-email",WOh=async d=>b(f7h(),{...d,method:"POST"}),B7h=()=>"/expenses/inbound-email",YOh=async d=>b(B7h(),{...d,method:"DELETE"}),I7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses/inbound-email/messages?${y}`:"/expenses/inbound-email/messages"},$Oh=async(d,u)=>b(I7h(d),{...u,method:"GET"}),T7h=()=>"/expenses/imports/shareable/preview",QOh=async(d,u)=>b(T7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),E7h=()=>"/expenses/imports/shareable",JOh=async(d,u)=>b(E7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),D7h=d=>`/expenses/${d}/recognition`,XOh=async(d,u)=>b(D7h(d),{...u,method:"GET"}),R7h=d=>`/expenses/${d}`,evh=async(d,u)=>b(R7h(d),{...u,method:"GET"}),_7h=d=>`/expenses/${d}`,tvh=async(d,u,y)=>b(_7h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),N7h=d=>`/expenses/${d}`,nvh=async(d,u)=>b(N7h(d),{...u,method:"DELETE"}),M7h=d=>`/expenses/${d}/void`,svh=async(d,u)=>b(M7h(d),{...u,method:"POST"}),U7h=d=>`/expenses/${d}/restore`,ovh=async(d,u)=>b(U7h(d),{...u,method:"POST"}),P7h=d=>`/expenses/${d}/attachments`,ivh=async(d,u,y)=>{let D=new FormData;return D.append("file",u.file),b(P7h(d),{...y,method:"POST",body:D})},C7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/expenses/${d}/attachments?${D}`:`/expenses/${d}/attachments`},avh=async(d,u,y)=>b(C7h(d,u),{...y,method:"GET"}),w7h=(d,u)=>`/expenses/${d}/attachments/${u}`,rvh=async(d,u,y)=>b(w7h(d,u),{...y,method:"DELETE"}),A7h=d=>`/expenses/${d}/payments`,lvh=async(d,u)=>b(A7h(d),{...u,method:"GET"}),F7h=d=>`/expenses/${d}/payments`,dvh=async(d,u,y)=>b(F7h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var jn={create:z(wOh,1),list:ee(AOh),createCustom:z(FOh,1),exportExpenses:z(kOh,1),getExpenseCategoryReport:z(jOh,1),getRecognitionSettings:z(HOh,0),updateRecognitionSettings:z(LOh,1),backfillExpenseRecognition:z(GOh,1),createRecognition:z(VOh,1),getRecognition:z(KOh,1),retryRecognition:z(ZOh,1),getExpenseInboundEmail:z(qOh,0),rotateExpenseInboundEmail:z(WOh,0),disableExpenseInboundEmail:z(YOh,0),listExpenseInboundEmailMessages:z($Oh,1),previewImportFromShareableLink:z(QOh,1),importFromShareableLink:z(JOh,1),getLatestRecognition:z(XOh,1),get:z(evh,1),update:z(tvh,2),delete:z(nvh,1),void:z(svh,1),restoreExpense:z(ovh,1),uploadExpenseAttachment:z(ivh,2),getExpenseAttachments:z(avh,2),deleteExpenseAttachment:z(rvh,2),getExpensePayments:z(lvh,1),createExpensePayment:z(dvh,2)};var k7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export?${y}`:"/documents/export"},cvh=async(d,u)=>b(k7h(d),{...u,method:"GET"}),j7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export/sales-per-item?${y}`:"/documents/export/sales-per-item"},uvh=async(d,u)=>b(j7h(d),{...u,method:"GET"}),H7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export/inventory?${y}`:"/documents/export/inventory"},pvh=async(d,u)=>b(H7h(d),{...u,method:"GET"}),L7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export/revenue-by-category?${y}`:"/documents/export/revenue-by-category"},mvh=async(d,u)=>b(L7h(d),{...u,method:"GET"}),G7h=()=>"/documents/export/pdf",xvh=async(d,u)=>b(G7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),V7h=d=>`/documents/export/pdf/${d}`,gvh=async(d,u)=>b(V7h(d),{...u,method:"GET"}),K7h=d=>`/documents/export/pdf/${d}/download`,yvh=async(d,u)=>b(K7h(d),{...u,method:"GET"}),Z7h=()=>"/documents/export/eslog",Ovh=async(d,u)=>b(Z7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),q7h=d=>`/documents/export/eslog/${d}`,vvh=async(d,u)=>b(q7h(d),{...u,method:"GET"}),W7h=d=>`/documents/export/eslog/${d}/download`,hvh=async(d,u)=>b(W7h(d),{...u,method:"GET"});var Hn={exportDocuments:z(cvh,1),exportSalesPerItem:z(uvh,1),exportInventory:z(pvh,1),exportRevenueByCategory:z(mvh,1),startPdfExport:z(xvh,1),getPdfStatus:z(gvh,1),downloadPdfExport:z(yvh,1),startEslogExport:z(Ovh,1),getEslogStatus:z(vvh,1),downloadEslogExport:z(hvh,1)};var Y7h=()=>"/files",Svh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&y.append("document_id",d.document_id),d.account_payable_id!==void 0&&y.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&y.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&y.append("expense_id",d.expense_id),b(Y7h(),{...u,method:"POST",body:y})},$7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/files?${y}`:"/files"},bvh=async(d,u)=>b($7h(d),{...u,method:"GET"}),Q7h=d=>`/files/${d}`,zvh=async(d,u)=>b(Q7h(d),{...u,method:"GET"}),J7h=d=>`/files/${d}`,fvh=async(d,u)=>b(J7h(d),{...u,method:"DELETE"});var Ln={uploadFile:z(Svh,1),list:ee(bvh),get:z(zvh,1),delete:z(fvh,1)};var X7h=()=>"/fiscalization/fina/settings/certificate",Bvh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(X7h(),{...u,method:"POST",body:y})},e9h=()=>"/fiscalization/fina/settings/certificate",Ivh=async d=>b(e9h(),{...d,method:"GET"}),t9h=()=>"/fiscalization/fina/settings/certificate",Tvh=async d=>b(t9h(),{...d,method:"DELETE"});var Gn={uploadFinaCertificate:z(Bvh,1),getFinaCertificate:z(Ivh,0),delete:z(Tvh,0)};var n9h=d=>`/fiscalization/fina/premises/${d}/devices`,Evh=async(d,u)=>b(n9h(d),{...u,method:"GET"}),s9h=d=>`/fiscalization/fina/premises/${d}/devices`,Dvh=async(d,u,y)=>b(s9h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),o9h=d=>`/fiscalization/fina/devices/${d}`,Rvh=async(d,u)=>b(o9h(d),{...u,method:"GET"}),i9h=d=>`/fiscalization/fina/devices/${d}`,_vh=async(d,u,y)=>b(i9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),a9h=d=>`/fiscalization/fina/devices/${d}`,Nvh=async(d,u)=>b(a9h(d),{...u,method:"DELETE"});var Vn={listFinaDevices:z(Evh,1),registerFinaDevice:z(Dvh,2),getFinaDevice:z(Rvh,1),update:z(_vh,2),delete:z(Nvh,1)};var r9h=()=>"/fiscalization/fina/premises",Mvh=async d=>b(r9h(),{...d,method:"GET"}),l9h=()=>"/fiscalization/fina/premises",Uvh=async(d,u)=>b(l9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),d9h=d=>`/fiscalization/fina/premises/${d}`,Pvh=async(d,u)=>b(d9h(d),{...u,method:"GET"}),c9h=d=>`/fiscalization/fina/premises/${d}`,Cvh=async(d,u,y)=>b(c9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),u9h=d=>`/fiscalization/fina/premises/${d}`,wvh=async(d,u)=>b(u9h(d),{...u,method:"DELETE"});var Kn={listFinaPremises:z(Mvh,0),create:z(Uvh,1),getFinaPremise:z(Pvh,1),update:z(Cvh,2),delete:z(wvh,1)};var p9h=()=>"/fiscalization/fina/settings",Avh=async d=>b(p9h(),{...d,method:"GET"}),m9h=()=>"/fiscalization/fina/settings",Fvh=async(d,u)=>b(m9h(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zn={list:z(Avh,0),update:z(Fvh,1)};var x9h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/financial-categories?${y}`:"/financial-categories"},kvh=async(d,u)=>b(x9h(d),{...u,method:"GET"}),g9h=()=>"/financial-categories",jvh=async(d,u)=>b(g9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y9h=d=>`/financial-categories/${d}`,Hvh=async(d,u,y)=>b(y9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),O9h=d=>`/financial-categories/${d}`,Lvh=async(d,u)=>b(O9h(d),{...u,method:"DELETE"}),v9h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/financial-categories/revenue-summary?${y}`:"/financial-categories/revenue-summary"},Gvh=async(d,u)=>b(v9h(d),{...u,method:"GET"}),h9h=()=>"/financial-categories/document-items/batch",Vvh=async(d,u)=>b(h9h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),S9h=d=>`/financial-categories/document-items/${d}`,Kvh=async(d,u,y)=>b(S9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var qn={list:ee(kvh),create:z(jvh,1),update:z(Hvh,2),delete:z(Lvh,1),getRevenueByFinancialCategory:z(Gvh,1),updateDocumentItemFinancialCategories:z(Vvh,1),updateDocumentItemFinancialCategory:z(Kvh,2)};var b9h=()=>"/fiscalization/furs/settings/certificate",Zvh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(b9h(),{...u,method:"POST",body:y})},z9h=()=>"/fiscalization/furs/settings/certificate",qvh=async d=>b(z9h(),{...d,method:"GET"}),f9h=()=>"/fiscalization/furs/settings/certificate",Wvh=async d=>b(f9h(),{...d,method:"DELETE"});var Wn={uploadFursCertificate:z(Zvh,1),getFursCertificate:z(qvh,0),delete:z(Wvh,0)};var B9h=d=>`/fiscalization/furs/premises/${d}/devices`,Yvh=async(d,u)=>b(B9h(d),{...u,method:"GET"}),I9h=d=>`/fiscalization/furs/premises/${d}/devices`,$vh=async(d,u,y)=>b(I9h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),T9h=d=>`/fiscalization/furs/devices/${d}`,Qvh=async(d,u)=>b(T9h(d),{...u,method:"GET"}),E9h=d=>`/fiscalization/furs/devices/${d}`,Jvh=async(d,u,y)=>b(E9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var Yn={listFursElectronicDevices:z(Yvh,1),registerFursElectronicDevice:z($vh,2),getFursElectronicDevice:z(Qvh,1),update:z(Jvh,2)};var D9h=()=>"/fiscalization/furs/internal-act/report.pdf",Xvh=async d=>b(D9h(),{...d,method:"GET"}),R9h=()=>"/fiscalization/furs/internal-act/report.docx",ehh=async d=>b(R9h(),{...d,method:"GET"});var $n={generateFursInternalActPdf:z(Xvh,0),generateFursInternalActDocx:z(ehh,0)};var _9h=()=>"/fiscalization/furs/premises",thh=async d=>b(_9h(),{...d,method:"GET"}),N9h=d=>`/fiscalization/furs/premises/${d}`,nhh=async(d,u)=>b(N9h(d),{...u,method:"GET"}),M9h=d=>`/fiscalization/furs/premises/${d}`,shh=async(d,u,y)=>b(M9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),U9h=()=>"/fiscalization/furs/premises/real-estate",ohh=async(d,u)=>b(U9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),P9h=()=>"/fiscalization/furs/premises/movable",ihh=async(d,u)=>b(P9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),C9h=d=>`/fiscalization/furs/premises/${d}/close`,ahh=async(d,u)=>b(C9h(d),{...u,method:"POST"});var Qn={listFursBusinessPremises:z(thh,0),getFursBusinessPremise:z(nhh,1),update:z(shh,2),registerFursRealEstatePremise:z(ohh,1),registerFursMovablePremise:z(ihh,1),closeFursBusinessPremise:z(ahh,1)};var w9h=()=>"/fiscalization/furs/settings",rhh=async d=>b(w9h(),{...d,method:"GET"}),A9h=()=>"/fiscalization/furs/settings",lhh=async(d,u)=>b(A9h(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Jn={list:z(rhh,0),update:z(lhh,1)};var F9h=()=>"/health/live",dhh=async d=>b(F9h(),{...d,method:"GET"}),k9h=()=>"/health/ready",chh=async d=>b(k9h(),{...d,method:"GET"}),j9h=()=>"/health",uhh=async d=>b(j9h(),{...d,method:"GET"});var Xn={livenessCheck:z(dhh,0),readinessCheck:z(chh,0),healthCheck:z(uhh,0)};var H9h=d=>`/invoices/${d}/nav/retry`,phh=async(d,u)=>b(H9h(d),{...u,method:"POST"}),L9h=d=>`/invoices/${d}/nav/reconcile`,mhh=async(d,u)=>b(L9h(d),{...u,method:"POST"}),G9h=d=>`/invoices/${d}/nav/annulment`,xhh=async(d,u,y)=>b(G9h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),V9h=d=>`/invoices/shareable/${d}`,ghh=async(d,u)=>b(V9h(d),{...u,method:"GET"}),K9h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/invoices/shareable/${d}/html?${D}`:`/invoices/shareable/${d}/html`},yhh=async(d,u,y)=>b(K9h(d,u),{...y,method:"GET"}),Z9h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/invoices/shareable/${d}/pdf?${D}`:`/invoices/shareable/${d}/pdf`},Ohh=async(d,u,y)=>b(Z9h(d,u),{...y,method:"GET"}),q9h=d=>`/invoices/shareable/${d}/eslog`,vhh=async(d,u)=>b(q9h(d),{...u,method:"GET"}),W9h=d=>`/invoices/${d}/ksef/recover`,hhh=async(d,u)=>b(W9h(d),{...u,method:"POST"}),Y9h=d=>`/invoices/${d}/ksef`,Shh=async(d,u)=>b(Y9h(d),{...u,method:"GET"}),$9h=d=>`/invoices/${d}/ksef/submit`,bhh=async(d,u)=>b($9h(d),{...u,method:"POST"}),Q9h=d=>`/invoices/${d}/ksef/upo`,zhh=async(d,u)=>b(Q9h(d),{...u,method:"GET"}),J9h=()=>"/invoices",fhh=async(d,u)=>b(J9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X9h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invoices?${y}`:"/invoices"},Bhh=async(d,u)=>b(X9h(d),{...u,method:"GET"}),e8h=()=>"/invoices/custom",Ihh=async(d,u)=>b(e8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),t8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/invoices/${d}?${D}`:`/invoices/${d}`},Thh=async(d,u,y)=>b(t8h(d,u),{...y,method:"GET"}),n8h=d=>`/invoices/${d}`,Ehh=async(d,u,y)=>b(n8h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),s8h=d=>`/invoices/${d}/credit-options`,Dhh=async(d,u)=>b(s8h(d),{...u,method:"GET"}),o8h=d=>`/invoices/${d}/xrechnung`,Rhh=async(d,u)=>b(o8h(d),{...u,method:"GET"}),i8h=d=>`/invoices/${d}/zugferd`,_hh=async(d,u)=>b(i8h(d),{...u,method:"GET"}),a8h=d=>`/invoices/${d}/versions`,Nhh=async(d,u)=>b(a8h(d),{...u,method:"GET"}),r8h=(d,u)=>`/invoices/${d}/versions/${u}`,Mhh=async(d,u,y)=>b(r8h(d,u),{...y,method:"GET"}),l8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invoices/render?${y}`:"/invoices/render"},Uhh=async(d,u,y)=>b(l8h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),d8h=d=>`/invoices/${d}/void`,Phh=async(d,u,y)=>b(d8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),c8h=d=>`/invoices/${d}/fiscalize`,Chh=async(d,u)=>b(c8h(d),{...u,method:"POST"}),u8h=d=>`/invoices/${d}/change-buyer-oib`,whh=async(d,u,y)=>b(u8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),p8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/html?${D}`:`/documents/${d}/html`},Ahh=async(d,u,y)=>b(p8h(d,u),{...y,method:"GET"}),m8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/pdf?${D}`:`/documents/${d}/pdf`},Fhh=async(d,u,y)=>b(m8h(d,u),{...y,method:"GET"});function es(d,u){let y=URL.createObjectURL(d),D=document.createElement("a");D.href=y,D.download=u,document.body.appendChild(D),D.click(),document.body.removeChild(D),URL.revokeObjectURL(y);}var khh=z(Fhh,2),x8h=Object.assign(async(d,u,y,D)=>{let f=await khh(d,y,D);es(f,u);},{__sdkOptionsIndex:3}),ts={retryInvoiceNav:z(phh,1),reconcileInvoiceNav:z(mhh,1),annulInvoiceNav:z(xhh,2),getShareableInvoice:z(ghh,1),getShareableInvoiceHtml:z(yhh,2),getShareableInvoicePdf:z(Ohh,2),getShareableInvoiceEslog:z(vhh,1),recoverInvoiceFromKsef:z(hhh,1),getInvoiceKsefState:z(Shh,1),submitInvoiceToKsef:z(bhh,1),getInvoiceKsefUpo:z(zhh,1),create:z(fhh,1),list:ee(Bhh),createCustom:z(Ihh,1),get:z(Thh,2),update:z(Ehh,2),getCreditOptions:z(Dhh,1),downloadInvoiceXRechnung:z(Rhh,1),downloadInvoiceZugferd:z(_hh,1),getVersions:z(Nhh,1),getVersion:z(Mhh,2),renderInvoicePreview:z(Uhh,2),void:z(Phh,2),fiscalizeInvoice:z(Chh,1),changeInvoiceBuyerOib:z(whh,2),renderHtml:z(Ahh,2),renderPdf:khh,downloadPdf:x8h};var g8h=()=>"/items",jhh=async(d,u)=>b(g8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/items?${y}`:"/items"},Hhh=async(d,u)=>b(y8h(d),{...u,method:"GET"}),O8h=()=>"/items/categories",Lhh=async d=>b(O8h(),{...d,method:"GET"}),v8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/items/import/template?${y}`:"/items/import/template"},Ghh=async(d,u)=>b(v8h(d),{...u,method:"GET"}),h8h=()=>"/items/import/preview",Vhh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(h8h(),{...u,method:"POST",body:y})},S8h=()=>"/items/import",Khh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(S8h(),{...u,method:"POST",body:y})},b8h=d=>`/items/${d}`,Zhh=async(d,u,y)=>b(b8h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),z8h=d=>`/items/${d}`,qhh=async(d,u)=>b(z8h(d),{...u,method:"DELETE"}),f8h=d=>`/items/${d}/restore`,Whh=async(d,u)=>b(f8h(d),{...u,method:"POST"}),B8h=d=>`/items/${d}/permanent`,Yhh=async(d,u)=>b(B8h(d),{...u,method:"DELETE"}),I8h=d=>`/items/${d}/inventory`,$hh=async(d,u)=>b(I8h(d),{...u,method:"GET"}),T8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/items/${d}/inventory/movements?${D}`:`/items/${d}/inventory/movements`},Qhh=async(d,u,y)=>b(T8h(d,u),{...y,method:"GET"}),E8h=d=>`/items/${d}/inventory/movements`,Jhh=async(d,u,y)=>b(E8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),D8h=(d,u)=>`/items/${d}/inventory/movements/${u}`,Xhh=async(d,u,y)=>b(D8h(d,u),{...y,method:"DELETE"});var ns={create:z(jhh,1),list:ee(Hhh),categories:z(Lhh,0),getItemsImportTemplate:z(Ghh,1),preview:z(Vhh,1),importItems:z(Khh,1),update:z(Zhh,2),delete:z(qhh,1),restoreItem:z(Whh,1),permanentDeleteItem:z(Yhh,1),getItemInventory:z($hh,1),getItemInventoryMovements:z(Qhh,2),createItemInventoryMovement:z(Jhh,2),deleteItemInventoryMovement:z(Xhh,2)};var R8h=()=>"/legacy-migration/auth",eSh=async(d,u)=>b(R8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/legacy-migration/organizations/${d}?${D}`:`/legacy-migration/organizations/${d}`},tSh=async(d,u,y)=>b(_8h(d,u),{...y,method:"GET"}),N8h=()=>"/legacy-migration/jobs",nSh=async(d,u)=>b(N8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),M8h=()=>"/legacy-migration/jobs",sSh=async d=>b(M8h(),{...d,method:"GET"}),U8h=d=>`/legacy-migration/jobs/${d}`,oSh=async(d,u)=>b(U8h(d),{...u,method:"GET"});var ss={legacyMigrationAuth:z(eSh,1),getLegacyMigrationOrganization:z(tSh,2),create:z(nSh,1),listMigrationJobs:z(sSh,0),getMigrationJob:z(oSh,1)};var P8h=()=>"/locale/detect",iSh=async d=>b(P8h(),{...d,method:"GET"});var os={detectLocale:z(iSh,0)};var C8h=()=>"/order-integrations/shopify/authorize",aSh=async(d,u)=>b(C8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),w8h=()=>"/order-integrations/woocommerce/authorize",rSh=async(d,u)=>b(w8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),A8h=()=>"/order-integrations/magento/authorize",lSh=async(d,u)=>b(A8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F8h=d=>`/order-integrations/magento/authorizations/${d}`,dSh=async(d,u)=>b(F8h(d),{...u,method:"GET"}),k8h=()=>"/order-integrations/shopify/resume-install",cSh=async(d,u)=>b(k8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),j8h=d=>`/order-integrations/${d}/promote-shopify-billing`,uSh=async(d,u)=>b(j8h(d),{...u,method:"POST"}),H8h=d=>`/order-integrations/${d}/sync-shopify`,pSh=async(d,u,y)=>b(H8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),L8h=d=>`/order-integrations/${d}/sync`,mSh=async(d,u,y)=>b(L8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),G8h=()=>"/order-integrations/custom/connect",xSh=async(d,u)=>b(G8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),V8h=d=>`/order-integrations/${d}/custom/rotate-secret`,gSh=async(d,u)=>b(V8h(d),{...u,method:"POST"}),K8h=d=>`/order-integrations/${d}/orders`,ySh=async(d,u,y)=>b(K8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Z8h=()=>"/order-integrations",OSh=async(d,u)=>b(Z8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),q8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/order-integrations?${y}`:"/order-integrations"},vSh=async(d,u)=>b(q8h(d),{...u,method:"GET"}),W8h=d=>`/order-integrations/${d}`,hSh=async(d,u)=>b(W8h(d),{...u,method:"GET"}),Y8h=d=>`/order-integrations/${d}`,SSh=async(d,u,y)=>b(Y8h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),$8h=d=>`/order-integrations/${d}`,bSh=async(d,u)=>b($8h(d),{...u,method:"DELETE"});var is={authorizeShopify:z(aSh,1),authorizeWooCommerce:z(rSh,1),authorizeMagento:z(lSh,1),getMagentoAuthorization:z(dSh,1),resumeShopifyInstall:z(cSh,1),promoteShopifyBilling:z(uSh,1),syncShopifyOrders:z(pSh,2),syncOrderIntegration:z(mSh,2),connectCustomStore:z(xSh,1),rotateCustomStoreSecret:z(gSh,1),pushCustomStoreOrder:z(ySh,2),create:z(OSh,1),list:ee(vSh),get:z(hSh,1),update:z(SSh,2),delete:z(bSh,1)};var Q8h=()=>"/orders",zSh=async(d,u)=>b(Q8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),J8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/orders?${y}`:"/orders"},fSh=async(d,u)=>b(J8h(d),{...u,method:"GET"}),X8h=d=>`/orders/${d}`,BSh=async(d,u)=>b(X8h(d),{...u,method:"GET"}),eYh=d=>`/orders/${d}`,ISh=async(d,u,y)=>b(eYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),tYh=d=>`/orders/${d}`,TSh=async(d,u)=>b(tYh(d),{...u,method:"DELETE"}),nYh=d=>`/orders/${d}/process`,ESh=async(d,u)=>b(nYh(d),{...u,method:"POST"}),sYh=d=>`/orders/${d}/cancel`,DSh=async(d,u)=>b(sYh(d),{...u,method:"POST"}),oYh=d=>`/orders/${d}/reissue`,RSh=async(d,u)=>b(oYh(d),{...u,method:"POST"});var as={create:z(zSh,1),list:ee(fSh),get:z(BSh,1),update:z(ISh,2),delete:z(TSh,1),processOrder:z(ESh,1),cancelOrder:z(DSh,1),reissueOrder:z(RSh,1)};var iYh=()=>"/payment-reminders/send",_Sh=async(d,u)=>b(iYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),aYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payment-reminders?${y}`:"/payment-reminders"},NSh=async(d,u)=>b(aYh(d),{...u,method:"GET"});var rs={sendPaymentReminder:z(_Sh,1),list:ee(NSh)};var rYh=()=>"/payments",MSh=async(d,u)=>b(rYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payments?${y}`:"/payments"},USh=async(d,u)=>b(lYh(d),{...u,method:"GET"}),dYh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/payments/${d}?${D}`:`/payments/${d}`},PSh=async(d,u,y)=>b(dYh(d,u),{...y,method:"GET"}),cYh=d=>`/payments/${d}`,CSh=async(d,u,y)=>b(cYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),uYh=d=>`/payments/${d}`,wSh=async(d,u)=>b(uYh(d),{...u,method:"DELETE"}),pYh=d=>`/payments/${d}/restore`,ASh=async(d,u)=>b(pYh(d),{...u,method:"POST"}),mYh=d=>`/payments/${d}/permanent`,FSh=async(d,u)=>b(mYh(d),{...u,method:"DELETE"}),xYh=()=>"/bank-imports",kSh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&y.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&y.append("column_mapping",d.column_mapping),d.ledger_account_code!==void 0&&d.ledger_account_code!==null&&y.append("ledger_account_code",d.ledger_account_code),d.account_iban!==void 0&&d.account_iban!==null&&y.append("account_iban",d.account_iban),b(xYh(),{...u,method:"POST",body:y})},gYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/bank-imports?${y}`:"/bank-imports"},jSh=async(d,u)=>b(gYh(d),{...u,method:"GET"}),yYh=d=>`/bank-imports/${d}`,HSh=async(d,u)=>b(yYh(d),{...u,method:"GET"}),OYh=d=>`/bank-imports/${d}/summary`,LSh=async(d,u)=>b(OYh(d),{...u,method:"GET"}),vYh=d=>`/bank-imports/${d}/match`,GSh=async(d,u)=>b(vYh(d),{...u,method:"POST"}),hYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/bank-transactions?${y}`:"/bank-transactions"},VSh=async(d,u)=>b(hYh(d),{...u,method:"GET"}),SYh=d=>`/bank-transactions/${d}`,KSh=async(d,u)=>b(SYh(d),{...u,method:"GET"}),bYh=d=>`/bank-transactions/${d}/link`,ZSh=async(d,u,y)=>b(bYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),zYh=d=>`/bank-transactions/${d}/confirm-fee`,qSh=async(d,u,y)=>b(zYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),fYh=d=>`/bank-transactions/${d}/categorize`,WSh=async(d,u,y)=>b(fYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),BYh=d=>`/bank-transactions/${d}/ignore`,YSh=async(d,u)=>b(BYh(d),{...u,method:"POST"}),IYh=d=>`/bank-transactions/${d}/unlink`,$Sh=async(d,u)=>b(IYh(d),{...u,method:"POST"});var ls={create:z(MSh,1),list:ee(USh),get:z(PSh,2),update:z(CSh,2),delete:z(wSh,1),restorePayment:z(ASh,1),permanentDeletePayment:z(FSh,1),importBankStatement:z(kSh,1),listBankImports:z(jSh,1),getBankImport:z(HSh,1),getBankImportSummary:z(LSh,1),rematchBankImport:z(GSh,1),listBankTransactions:z(VSh,1),getBankTransaction:z(KSh,1),linkBankTransaction:z(ZSh,2),confirmBankTransactionFee:z(qSh,2),categorizeBankTransaction:z(WSh,2),ignoreBankTransaction:z(YSh,1),unlinkBankTransaction:z($Sh,1)};var TYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/tables?${y}`:"/pos/tables"},QSh=async(d,u)=>b(TYh(d),{...u,method:"GET"}),EYh=()=>"/pos/tables",JSh=async(d,u)=>b(EYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),DYh=d=>`/pos/tables/${d}`,XSh=async(d,u,y)=>b(DYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),RYh=d=>`/pos/tables/${d}`,ebh=async(d,u)=>b(RYh(d),{...u,method:"DELETE"}),_Yh=d=>`/pos/tabs/${d}/items`,tbh=async(d,u,y)=>b(_Yh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),NYh=d=>`/pos/tabs/${d}/claim`,nbh=async(d,u,y)=>b(NYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),MYh=d=>`/pos/tabs/${d}/release`,sbh=async(d,u,y)=>b(MYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),UYh=d=>`/pos/tabs/${d}/close`,obh=async(d,u,y)=>b(UYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),PYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/tabs?${y}`:"/pos/tabs"},ibh=async(d,u)=>b(PYh(d),{...u,method:"GET"}),CYh=()=>"/pos/tabs",abh=async(d,u)=>b(CYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wYh=d=>`/pos/tabs/${d}`,rbh=async(d,u)=>b(wYh(d),{...u,method:"GET"}),AYh=d=>`/pos/tabs/${d}`,lbh=async(d,u,y)=>b(AYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),FYh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/pos/tabs/${d}?${D}`:`/pos/tabs/${d}`},dbh=async(d,u,y)=>b(FYh(d,u),{...y,method:"DELETE"}),kYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/daily/export?${y}`:"/pos/reports/daily/export"},cbh=async(d,u)=>b(kYh(d),{...u,method:"GET"}),jYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/monthly/export?${y}`:"/pos/reports/monthly/export"},ubh=async(d,u)=>b(jYh(d),{...u,method:"GET"}),HYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/daily?${y}`:"/pos/reports/daily"},pbh=async(d,u)=>b(HYh(d),{...u,method:"GET"}),LYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/monthly?${y}`:"/pos/reports/monthly"},mbh=async(d,u)=>b(LYh(d),{...u,method:"GET"}),GYh=()=>"/pos/operators",xbh=async d=>b(GYh(),{...d,method:"GET"}),VYh=()=>"/pos/operators/enrol",gbh=async(d,u)=>b(VYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KYh=()=>"/pos/operators/switch",ybh=async(d,u)=>b(KYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),ZYh=d=>`/pos/operators/${d}/pin`,Obh=async(d,u,y)=>b(ZYh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),qYh=d=>`/pos/operators/${d}/pin`,vbh=async(d,u)=>b(qYh(d),{...u,method:"DELETE"});var WYh=z(dbh,2),ds={listTables:ee(QSh),createTable:z(JSh,1),updateTable:z(XSh,2),deleteTable:z(ebh,1),appendTabItems:z(tbh,2),claimTab:z(nbh,2),releaseTab:z(sbh,2),closeTab:z(obh,2),listTabs:ee(ibh),createTab:z(abh,1),getTab:z(rbh,1),updateTab:z(lbh,2),cancelTab:Object.assign((...d)=>WYh(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:z(cbh,1),exportPosMonthlyReport:z(ubh,1),dailyReport:z(pbh,1),getPosMonthlyReport:z(mbh,1),listOperators:z(xbh,0),enrolPosOperator:z(gbh,1),switchOperator:z(ybh,1),setOperatorPin:z(Obh,2),clearOperatorPin:z(vbh,1)};var YYh=()=>"/fiscalization/pt/atcud-series",hbh=async(d,u)=>b(YYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$Yh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/fiscalization/pt/atcud-series?${y}`:"/fiscalization/pt/atcud-series"},Sbh=async(d,u)=>b($Yh(d),{...u,method:"GET"}),QYh=d=>`/fiscalization/pt/atcud-series/${d}`,bbh=async(d,u)=>b(QYh(d),{...u,method:"GET"}),JYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/fiscalization/pt/atcud-series/active?${y}`:"/fiscalization/pt/atcud-series/active"},zbh=async(d,u)=>b(JYh(d),{...u,method:"POST"}),XYh=d=>`/fiscalization/pt/atcud-series/${d}/retire`,fbh=async(d,u)=>b(XYh(d),{...u,method:"POST"});var cs={create:z(hbh,1),list:ee(Sbh),get:z(bbh,1),getActive:z(zbh,1),retirePtAtcudSeries:z(fbh,1)};var e$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/fiscalization/pt/saft/report?${y}`:"/fiscalization/pt/saft/report"},Bbh=async(d,u)=>b(e$h(d),{...u,method:"GET"});var us={generateReport:z(Bbh,1)};var t$h=d=>`/purchase-orders/shareable/${d}`,Ibh=async(d,u)=>b(t$h(d),{...u,method:"GET"}),n$h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/purchase-orders/shareable/${d}/html?${D}`:`/purchase-orders/shareable/${d}/html`},Tbh=async(d,u,y)=>b(n$h(d,u),{...y,method:"GET"}),s$h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/purchase-orders/shareable/${d}/pdf?${D}`:`/purchase-orders/shareable/${d}/pdf`},Ebh=async(d,u,y)=>b(s$h(d,u),{...y,method:"GET"}),o$h=()=>"/purchase-orders",Dbh=async(d,u)=>b(o$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),i$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/purchase-orders?${y}`:"/purchase-orders"},Rbh=async(d,u)=>b(i$h(d),{...u,method:"GET"}),a$h=d=>`/purchase-orders/${d}`,_bh=async(d,u)=>b(a$h(d),{...u,method:"GET"}),r$h=d=>`/purchase-orders/${d}`,Nbh=async(d,u,y)=>b(r$h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),l$h=d=>`/purchase-orders/${d}/versions`,Mbh=async(d,u)=>b(l$h(d),{...u,method:"GET"}),d$h=(d,u)=>`/purchase-orders/${d}/versions/${u}`,Ubh=async(d,u,y)=>b(d$h(d,u),{...y,method:"GET"}),c$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/purchase-orders/render?${y}`:"/purchase-orders/render"},Pbh=async(d,u,y)=>b(c$h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),u$h=d=>`/purchase-orders/${d}/void`,Cbh=async(d,u,y)=>b(u$h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var ps={getShareablePurchaseOrder:z(Ibh,1),getShareablePurchaseOrderHtml:z(Tbh,2),getShareablePurchaseOrderPdf:z(Ebh,2),create:z(Dbh,1),list:ee(Rbh),get:z(_bh,1),update:z(Nbh,2),getVersions:z(Mbh,1),getVersion:z(Ubh,2),renderPurchaseOrderPreview:z(Pbh,2),void:z(Cbh,2)};var p$h=()=>"/recurring-invoices",wbh=async(d,u)=>b(p$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),m$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/recurring-invoices?${y}`:"/recurring-invoices"},Abh=async(d,u)=>b(m$h(d),{...u,method:"GET"}),x$h=d=>`/recurring-invoices/${d}`,Fbh=async(d,u)=>b(x$h(d),{...u,method:"GET"}),g$h=d=>`/recurring-invoices/${d}`,kbh=async(d,u,y)=>b(g$h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),y$h=d=>`/recurring-invoices/${d}`,jbh=async(d,u)=>b(y$h(d),{...u,method:"DELETE"}),O$h=d=>`/recurring-invoices/${d}/restore`,Hbh=async(d,u)=>b(O$h(d),{...u,method:"POST"}),v$h=d=>`/recurring-invoices/${d}/permanent`,Lbh=async(d,u)=>b(v$h(d),{...u,method:"DELETE"}),h$h=d=>`/recurring-invoices/${d}/pause`,Gbh=async(d,u)=>b(h$h(d),{...u,method:"POST"}),S$h=d=>`/recurring-invoices/${d}/resume`,Vbh=async(d,u)=>b(S$h(d),{...u,method:"POST"}),b$h=d=>`/recurring-invoices/${d}/trigger`,Kbh=async(d,u)=>b(b$h(d),{...u,method:"POST"});var ms={create:z(wbh,1),list:ee(Abh),get:z(Fbh,1),update:z(kbh,2),delete:z(jbh,1),restoreRecurringInvoice:z(Hbh,1),permanentDeleteRecurringInvoice:z(Lbh,1),pauseRecurringInvoice:z(Gbh,1),resumeRecurringInvoice:z(Vbh,1),triggerRecurringInvoice:z(Kbh,1)};var z$h=()=>"/revenue-recognition/settings",Zbh=async d=>b(z$h(),{...d,method:"GET"}),f$h=()=>"/revenue-recognition/settings",qbh=async(d,u)=>b(f$h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),B$h=()=>"/revenue-recognition/backfill",Wbh=async(d,u)=>b(B$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/revenue-recognition/report?${y}`:"/revenue-recognition/report"},Ybh=async(d,u)=>b(I$h(d),{...u,method:"GET"}),T$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/revenue-recognition/details?${y}`:"/revenue-recognition/details"},$bh=async(d,u)=>b(T$h(d),{...u,method:"GET"}),E$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/revenue-recognition/lines?${y}`:"/revenue-recognition/lines"},Qbh=async(d,u)=>b(E$h(d),{...u,method:"GET"}),D$h=d=>`/revenue-recognition/documents/${d}`,Jbh=async(d,u)=>b(D$h(d),{...u,method:"GET"});var xs={getSettings:z(Zbh,0),updateSettings:z(qbh,1),backfill:z(Wbh,1),getReport:z(Ybh,1),getDetails:z($bh,1),listLines:z(Qbh,1),getDocumentSchedule:z(Jbh,1)};var R$h=()=>"/stripe-app/marketplace-authorize",Xbh=async(d,u)=>b(R$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_$h=()=>"/stripe-app/connect",ezh=async(d,u)=>b(_$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),N$h=()=>"/stripe-app/entity-connection",tzh=async d=>b(N$h(),{...d,method:"GET"}),M$h=()=>"/stripe-app/entity-connection",nzh=async d=>b(M$h(),{...d,method:"DELETE"}),U$h=()=>"/stripe-app/entity-settings",szh=async d=>b(U$h(),{...d,method:"GET"}),P$h=()=>"/stripe-app/entity-settings",ozh=async(d,u)=>b(P$h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var gs={stripeAppMarketplaceAuthorize:z(Xbh,1),stripeAppConnect:z(ezh,1),stripeAppEntityGetConnection:z(tzh,0),stripeAppEntityDisconnect:z(nzh,0),stripeAppEntityGetSettings:z(szh,0),stripeAppEntityUpdateSettings:z(ozh,1)};var C$h=()=>"/subscriptions",izh=async d=>b(C$h(),{...d,method:"GET"}),w$h=()=>"/subscriptions/spending-limit",azh=async(d,u)=>b(w$h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),A$h=()=>"/subscriptions/check-entity-limit",rzh=async d=>b(A$h(),{...d,method:"GET"});var ys={getCurrent:z(izh,0),update:z(azh,1),checkEntityLimit:z(rzh,0)};var F$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-rate-estimates/us?${y}`:"/tax-rate-estimates/us"},lzh=async(d,u)=>b(F$h(d),{...u,method:"GET"});var Os={listUsTaxRateEstimates:z(lzh,1)};var k$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/liability?${y}`:"/tax-reports/liability"},dzh=async(d,u)=>b(k$h(d),{...u,method:"GET"}),j$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/payments?${y}`:"/tax-reports/payments"},czh=async(d,u)=>b(j$h(d),{...u,method:"GET"}),H$h=()=>"/tax-reports/payments",uzh=async(d,u)=>b(H$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L$h=d=>`/tax-reports/payments/${d}`,pzh=async(d,u,y)=>b(L$h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),G$h=d=>`/tax-reports/payments/${d}`,mzh=async(d,u)=>b(G$h(d),{...u,method:"DELETE"}),V$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/eu/oss?${y}`:"/tax-reports/eu/oss"},xzh=async(d,u)=>b(V$h(d),{...u,method:"GET"}),K$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/kir?${y}`:"/tax-reports/kir"},gzh=async(d,u)=>b(K$h(d),{...u,method:"POST"}),Z$h=()=>"/tax-reports/si/profile",yzh=async d=>b(Z$h(),{...d,method:"GET"}),q$h=()=>"/tax-reports/si/profile",Ozh=async(d,u)=>b(q$h(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),W$h=()=>"/tax-reports/si/yearly/normirani/review",vzh=async(d,u)=>b(W$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y$h=()=>"/tax-reports/si/yearly/normirani/export",hzh=async(d,u)=>b(Y$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$$h=()=>"/tax-reports/si/accounting/vod/export",Szh=async(d,u)=>b($$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Q$h=()=>"/tax-reports/si/accounting/minimax/export",bzh=async(d,u)=>b(Q$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),J$h=()=>"/tax-reports/si/accounting/vasco/export",zzh=async(d,u)=>b(J$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/accounting/quickbooks/export?${y}`:"/tax-reports/accounting/quickbooks/export"},fzh=async(d,u)=>b(X$h(d),{...u,method:"GET"});var vs={getTaxLiabilityReport:z(dzh,1),list:ee(czh),create:z(uzh,1),update:z(pzh,2),delete:z(mzh,1),getEuOssReport:z(xzh,1),generateKirExport:z(gzh,1),getSloveniaTaxProfile:z(yzh,0),updateSloveniaTaxProfile:z(Ozh,1),reviewSloveniaYearlyNormiraniReport:z(vzh,1),exportSloveniaYearlyNormiraniReport:z(hzh,1),exportSloveniaVodXml:z(Szh,1),exportSloveniaMinimaxXml:z(bzh,1),exportSloveniaVascoXml:z(zzh,1),exportQuickbooksCsv:z(fzh,1),listEmployees:z(Me,1),registerEmployee:z(Ue,1),getEmployee:z(Pe,1),modifyEmployee:z(Ce,2),archiveEmployee:z(we,1),getEmployeeAttendance:z(Ae,2),replaceEmployeeAttendance:z(Fe,3),resolvePayrollParameters:z(ke,1),getPayrollParameterHistory:z(je,1),setPayrollParameterOverride:z(He,3),preview:z(Le,1),draftVatReturn:z(Ge,1),listVatReturns:z(Ve,1),getVatReturn:z(Ke,1),recomputeVatReturn:z(Ze,1),approveVatReturn:z(qe,1),submitVatReturn:z(We,2),reopenVatReturn:z(Ye,1),exportVatReturn:z($e,2),listFilings:z(Qe,1),completeFiling:z(Je,2),reopenFiling:z(Xe,1),dismissFiling:z(et,2),listAccountFilingsCalendar:z(tt,1)};var eQh=()=>"/taxes",Bzh=async(d,u)=>b(eQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),tQh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/taxes?${y}`:"/taxes"},Izh=async(d,u)=>b(tQh(d),{...u,method:"GET"}),nQh=d=>`/taxes/${d}`,Tzh=async(d,u,y)=>b(nQh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),sQh=d=>`/taxes/${d}`,Ezh=async(d,u,y)=>b(sQh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),oQh=d=>`/taxes/${d}`,Dzh=async(d,u)=>b(oQh(d),{...u,method:"DELETE"}),iQh=d=>`/taxes/${d}/restore`,Rzh=async(d,u)=>b(iQh(d),{...u,method:"POST"}),aQh=d=>`/taxes/${d}/permanent`,_zh=async(d,u)=>b(aQh(d),{...u,method:"DELETE"});var hs={create:z(Bzh,1),list:ee(Izh),update:z(Tzh,2),replaceTax:z(Ezh,2),delete:z(Dzh,1),restoreTax:z(Rzh,1),permanentDeleteTax:z(_zh,1)};var rQh=()=>"/fiscalization/ticketbai/settings",Nzh=async d=>b(rQh(),{...d,method:"GET"}),lQh=()=>"/fiscalization/ticketbai/settings",Mzh=async(d,u)=>b(lQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),dQh=()=>"/fiscalization/ticketbai/settings/certificate",Uzh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(dQh(),{...u,method:"POST",body:y})},cQh=d=>`/fiscalization/ticketbai/records/${d}`,Pzh=async(d,u)=>b(cQh(d),{...u,method:"GET"}),uQh=d=>`/fiscalization/ticketbai/records/${d}/xml`,Czh=async(d,u)=>b(uQh(d),{...u,method:"GET"}),pQh=d=>`/fiscalization/ticketbai/records/${d}/retry`,wzh=async(d,u)=>b(pQh(d),{...u,method:"POST"}),mQh=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,Azh=async(d,u)=>b(mQh(d),{...u,method:"POST"});var Ss={getSettings:z(Nzh,0),updateSettings:z(Mzh,1),uploadCertificate:z(Uzh,1),getRecord:z(Pzh,1),downloadRecordXml:z(Czh,1),retryRecord:z(wzh,1),reconcileRecord:z(Azh,1)};var xQh=()=>"/transaction-type/check",Fzh=async(d,u)=>b(xQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var bs={checkTransactionType:z(Fzh,1)};var gQh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/travel-orders?${y}`:"/travel-orders"},kzh=async(d,u)=>b(gQh(d),{...u,method:"GET"}),yQh=()=>"/travel-orders",jzh=async(d,u)=>b(yQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),OQh=()=>"/travel-orders/preview",Hzh=async(d,u)=>b(OQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),vQh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/travel-orders/render?${y}`:"/travel-orders/render"},Lzh=async(d,u,y)=>b(vQh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),hQh=()=>"/travel-orders/route-distance",Gzh=async(d,u)=>b(hQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),SQh=d=>`/travel-orders/${d}`,Vzh=async(d,u)=>b(SQh(d),{...u,method:"GET"}),bQh=d=>`/travel-orders/${d}`,Kzh=async(d,u,y)=>b(bQh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),zQh=d=>`/travel-orders/${d}`,Zzh=async(d,u)=>b(zQh(d),{...u,method:"DELETE"}),fQh=d=>`/travel-orders/${d}/approve`,qzh=async(d,u)=>b(fQh(d),{...u,method:"POST"}),BQh=d=>`/travel-orders/${d}/settle`,Wzh=async(d,u)=>b(BQh(d),{...u,method:"POST"}),IQh=d=>`/travel-orders/${d}/reopen`,Yzh=async(d,u,y)=>b(IQh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),TQh=d=>`/travel-orders/${d}/cancel`,$zh=async(d,u)=>b(TQh(d),{...u,method:"POST"}),EQh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/travel-orders/${d}/pdf?${D}`:`/travel-orders/${d}/pdf`},Qzh=async(d,u,y)=>b(EQh(d,u),{...y,method:"GET"}),DQh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/travel-orders/${d}/html?${D}`:`/travel-orders/${d}/html`},Jzh=async(d,u,y)=>b(DQh(d,u),{...y,method:"GET"});var zs={list:ee(kzh),create:z(jzh,1),preview:z(Hzh,1),renderTravelOrderPreview:z(Lzh,2),calculateTravelOrderRouteDistance:z(Gzh,1),get:z(Vzh,1),update:z(Kzh,2),delete:z(Zzh,1),approveTravelOrder:z(qzh,1),settleTravelOrder:z(Wzh,1),reopenTravelOrder:z(Yzh,2),cancelTravelOrder:z($zh,1),renderPdf:z(Qzh,2),renderHtml:z(Jzh,2)};var _e="https://eu.spaceinvoices.com";var RQh=d=>`/documents/${d}/ujp`,Xzh=async(d,u)=>b(RQh(d),{...u,method:"GET"});var fs={download:z(Xzh,1)};var _Qh=()=>"/upload/image",efh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(_Qh(),{...u,method:"POST",body:y})};var Bs={uploadImage:z(efh,1)};var NQh=()=>"/accounts/two-factor-policy",tfh=async d=>b(NQh(),{...d,method:"GET"}),MQh=()=>"/accounts/two-factor-policy",nfh=async(d,u)=>b(MQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),UQh=d=>`/entities/${d}/two-factor-policy`,sfh=async(d,u)=>b(UQh(d),{...u,method:"GET"}),PQh=d=>`/entities/${d}/two-factor-policy`,ofh=async(d,u,y)=>b(PQh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),CQh=()=>"/users/two-factor/setup",ifh=async(d,u)=>b(CQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wQh=()=>"/users/two-factor/enable",afh=async(d,u)=>b(wQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),AQh=()=>"/users/me/two-factor",rfh=async d=>b(AQh(),{...d,method:"GET"}),FQh=()=>"/users/me/two-factor/setup",lfh=async(d,u)=>b(FQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kQh=()=>"/users/me/two-factor/enable",dfh=async(d,u)=>b(kQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jQh=()=>"/users/me/two-factor/disable",cfh=async(d,u)=>b(jQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HQh=()=>"/users/two-factor/verify",ufh=async(d,u)=>b(HQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),LQh=()=>"/users/login",pfh=async(d,u)=>b(LQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),GQh=()=>"/users/signup",mfh=async(d,u)=>b(GQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),VQh=()=>"/users/password-reset",xfh=async(d,u)=>b(VQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KQh=()=>"/users/password-reset/confirm",gfh=async(d,u)=>b(KQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),ZQh=()=>"/users/me/accounts",yfh=async d=>b(ZQh(),{...d,method:"GET"}),qQh=()=>"/users/me",Ofh=async d=>b(qQh(),{...d,method:"GET"}),WQh=()=>"/users/me",vfh=async(d,u)=>b(WQh(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),YQh=()=>"/users/me/account-deletion",hfh=async d=>b(YQh(),{...d,method:"POST"}),$Qh=()=>"/users/me/settings/furs",Sfh=async(d,u)=>b($Qh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),QQh=()=>"/users/me/settings/fina",bfh=async(d,u)=>b(QQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Is={getAccountTwoFactorPolicy:z(tfh,0),updateAccountTwoFactorPolicy:z(nfh,1),getEntityTwoFactorPolicy:z(sfh,1),updateEntityTwoFactorPolicy:z(ofh,2),setupRequiredTwoFactor:z(ifh,1),enableRequiredTwoFactor:z(afh,1),getTwoFactorConfiguration:z(rfh,0),setupTwoFactor:z(lfh,1),enableTwoFactor:z(dfh,1),disableTwoFactor:z(cfh,1),verifyTwoFactor:z(ufh,1),login:z(pfh,1),signup:z(mfh,1),requestPasswordReset:z(xfh,1),confirmPasswordReset:z(gfh,1),listMyAccounts:z(yfh,0),getMe:z(Ofh,0),update:z(vfh,1),requestAccountDeletion:z(hfh,0),updateFursSettings:z(Sfh,1),updateFinaSettings:z(bfh,1)};var JQh=()=>"/fiscalization/verifactu/settings",zfh=async d=>b(JQh(),{...d,method:"GET"}),XQh=()=>"/fiscalization/verifactu/settings",ffh=async(d,u)=>b(XQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eJh=()=>"/fiscalization/verifactu/certificate",Bfh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(eJh(),{...u,method:"POST",body:y})},tJh=d=>`/fiscalization/verifactu/records/${d}`,Ifh=async(d,u)=>b(tJh(d),{...u,method:"GET"}),nJh=d=>`/fiscalization/verifactu/records/${d}/retry`,Tfh=async(d,u)=>b(nJh(d),{...u,method:"POST"}),sJh=d=>`/fiscalization/verifactu/records/${d}/correct`,Efh=async(d,u,y)=>b(sJh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),oJh=d=>`/fiscalization/verifactu/records/${d}/cancel`,Dfh=async(d,u,y)=>b(oJh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var Ts={getSettings:z(zfh,0),updateSettings:z(ffh,1),uploadCertificate:z(Bfh,1),getEvidence:z(Ifh,1),retryRecord:z(Tfh,1),correctRecord:z(Efh,2),cancelRecord:z(Dfh,2)};var iJh=()=>"/vies/check",Rfh=async(d,u)=>b(iJh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Es={checkVies:z(Rfh,1)};var aJh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/warehouses?${y}`:"/warehouses"},_fh=async(d,u)=>b(aJh(d),{...u,method:"GET"}),rJh=()=>"/warehouses",Nfh=async(d,u)=>b(rJh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lJh=d=>`/warehouses/${d}`,Mfh=async(d,u)=>b(lJh(d),{...u,method:"GET"}),dJh=d=>`/warehouses/${d}`,Ufh=async(d,u,y)=>b(dJh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),cJh=d=>`/warehouses/${d}`,Pfh=async(d,u)=>b(cJh(d),{...u,method:"DELETE"});var Ds={list:ee(_fh),create:z(Nfh,1),get:z(Mfh,1),update:z(Ufh,2),delete:z(Pfh,1)};var uJh=()=>"/webhooks",Cfh=async(d,u)=>b(uJh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pJh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/webhooks?${y}`:"/webhooks"},wfh=async(d,u)=>b(pJh(d),{...u,method:"GET"}),mJh=d=>`/webhooks/${d}`,Afh=async(d,u)=>b(mJh(d),{...u,method:"GET"}),xJh=d=>`/webhooks/${d}`,Ffh=async(d,u,y)=>b(xJh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),gJh=d=>`/webhooks/${d}`,kfh=async(d,u)=>b(gJh(d),{...u,method:"DELETE"}),yJh=d=>`/webhooks/${d}/test`,jfh=async(d,u)=>b(yJh(d),{...u,method:"POST"});var OJh=d=>`/webhooks/${d}/rotate-secret`,Hfh=async(d,u)=>b(OJh(d),{...u,method:"POST"});var Rs={create:z(Cfh,1),list:ee(wfh),get:z(Afh,1),update:z(Ffh,2),delete:z(kfh,1),testWebhook:z(jfh,1),rotateWebhookSecret:z(Hfh,1)};var vJh=()=>"/white-label-subscriptions",Lfh=async d=>b(vJh(),{...d,method:"GET"}),hJh=()=>"/white-label-subscriptions/plans",Gfh=async d=>b(hJh(),{...d,method:"GET"}),SJh=d=>`/white-label-subscriptions/check-feature/${d}`,Vfh=async(d,u)=>b(SJh(d),{...u,method:"GET"}),bJh=d=>`/white-label-subscriptions/check-limit/${d}`,Kfh=async(d,u)=>b(bJh(d),{...u,method:"GET"}),zJh=()=>"/white-label-subscriptions/billing-email",Zfh=async(d,u)=>b(zJh(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var _s={getCurrentWLSubscription:z(Lfh,0),list:z(Gfh,0),checkWLFeature:z(Vfh,1),checkWLLimit:z(Kfh,1),update:z(Zfh,1)};var fJh=()=>"/white-labels/current",qfh=async d=>b(fJh(),{...d,method:"GET"}),BJh=()=>"/white-labels/me",Wfh=async d=>b(BJh(),{...d,method:"GET"});var Ns={getCurrentWhiteLabel:z(qfh,0),getMyWhiteLabel:z(Wfh,0)};var Re=class{sdkConfig;accountWebhooks=q(yn,()=>this.sdkConfig);accounting=q(On,()=>this.sdkConfig);activities=q(vn,()=>this.sdkConfig);advanceInvoices=q(hn,()=>this.sdkConfig);businessUnits=q(Sn,()=>this.sdkConfig);companyRegistry=q(bn,()=>this.sdkConfig);creditNotes=q(zn,()=>this.sdkConfig);currency=q(fn,()=>this.sdkConfig);customers=q(Bn,()=>this.sdkConfig);deliveryNotes=q(In,()=>this.sdkConfig);documents=q(Dn,()=>this.sdkConfig);eInvoicing=q(Nn,()=>this.sdkConfig);eSlog=q(Mn,()=>this.sdkConfig);email=q(Un,()=>this.sdkConfig);entities=q(Pn,()=>this.sdkConfig);entityApiKeys=q(Cn,()=>this.sdkConfig);entityInvitations=q(wn,()=>this.sdkConfig);entityStats=q(An,()=>this.sdkConfig);entityUsers=q(Fn,()=>this.sdkConfig);estimates=q(kn,()=>this.sdkConfig);expenses=q(jn,()=>this.sdkConfig);exports=q(Hn,()=>this.sdkConfig);files=q(Ln,()=>this.sdkConfig);finaCertificate=q(Gn,()=>this.sdkConfig);finaDevices=q(Vn,()=>this.sdkConfig);finaPremises=q(Kn,()=>this.sdkConfig);finaSettings=q(Zn,()=>this.sdkConfig);financialCategories=q(qn,()=>this.sdkConfig);fursCertificate=q(Wn,()=>this.sdkConfig);fursDevices=q(Yn,()=>this.sdkConfig);fursInternalAct=q($n,()=>this.sdkConfig);fursPremises=q(Qn,()=>this.sdkConfig);fursSettings=q(Jn,()=>this.sdkConfig);health=q(Xn,()=>this.sdkConfig);invoices=q(ts,()=>this.sdkConfig);items=q(ns,()=>this.sdkConfig);legacyMigration=q(ss,()=>this.sdkConfig);locale=q(os,()=>this.sdkConfig);orderIntegrations=q(is,()=>this.sdkConfig);orders=q(as,()=>this.sdkConfig);paymentReminders=q(rs,()=>this.sdkConfig);payments=q(ls,()=>this.sdkConfig);pointOfSale=q(ds,()=>this.sdkConfig);ptAtcudSeries=q(cs,()=>this.sdkConfig);ptSafT=q(us,()=>this.sdkConfig);purchaseOrders=q(ps,()=>this.sdkConfig);recurringInvoices=q(ms,()=>this.sdkConfig);revenueRecognition=q(xs,()=>this.sdkConfig);stripeApp=q(gs,()=>this.sdkConfig);subscriptions=q(ys,()=>this.sdkConfig);taxRateEstimates=q(Os,()=>this.sdkConfig);taxReports=q(vs,()=>this.sdkConfig);taxes=q(hs,()=>this.sdkConfig);ticketBai=q(Ss,()=>this.sdkConfig);transactionType=q(bs,()=>this.sdkConfig);travelOrders=q(zs,()=>this.sdkConfig);ujp=q(fs,()=>this.sdkConfig);upload=q(Bs,()=>this.sdkConfig);users=q(Is,()=>this.sdkConfig);veriFactu=q(Ts,()=>this.sdkConfig);vies=q(Es,()=>this.sdkConfig);warehouses=q(Ds,()=>this.sdkConfig);webhooks=q(Rs,()=>this.sdkConfig);whiteLabelSubscriptions=q(_s,()=>this.sdkConfig);whiteLabels=q(Ns,()=>this.sdkConfig);constructor(u){let y=typeof u=="string"?{accessToken:u}:u,D=typeof y.accessToken=="function"?y.accessToken:()=>y.accessToken;this.sdkConfig={baseUrl:y.basePath??_e,getAccessToken:D,clientName:y.clientName??"js-sdk",onUnauthorized:y.onUnauthorized,requestTimeoutMs:y.requestTimeoutMs,accountId:y.accountId??null};}};function IJh(d){let u=typeof d=="string"?{accessToken:d}:d,y=typeof u.accessToken=="function"?u.accessToken:()=>u.accessToken;bgh({baseUrl:u.basePath??_e,getAccessToken:y,clientName:u.clientName??"js-sdk",onUnauthorized:u.onUnauthorized,requestTimeoutMs:u.requestTimeoutMs}),gn(u.accountId??null);}
234
+ Searches across number, traveler name, purpose, origin, and destination.`)}),yGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ydh=200,Odh=0,vdh=1e6,hdh=/^\d{4}-\d{2}-\d{2}$/,OGh=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(ydh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Odh).max(vdh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(hdh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Sdh=200,bdh=200,zdh=/^\d{4}-\d{2}-\d{2}$/,fdh=500,Bdh=500,Idh=500,Tdh=/^[A-Za-z]{2}$/,Edh=20,Ddh=0,Rdh=1e5,_dh=0,Ndh=60,Mdh=0,Udh=1e4,Pdh=0,Cdh=1e6,wdh=200,Adh=0,Fdh=1e6,kdh=/^\d{4}-\d{2}-\d{2}$/,jdh=100,Hdh=2e3,hGh=e.object({traveler_name:e.string().min(1).max(Sdh).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(bdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(zdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(fdh).describe("Business purpose of the trip."),origin:e.string().max(Bdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(Idh).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(Tdh).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(Edh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(Ddh).max(Rdh).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(_dh).max(Ndh).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(Mdh).max(Udh).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(Pdh).max(Cdh).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(wdh).describe("Description of the cost line."),amount:e.number().gt(Adh).max(Fdh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(kdh).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(jdh).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Hdh).nullish().describe("Free-text note. Omit or send null to leave unset.")}),SGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ldh=200,Gdh=200,Vdh=/^\d{4}-\d{2}-\d{2}$/,Kdh=500,Zdh=500,qdh=500,Wdh=/^[A-Za-z]{2}$/,Ydh=20,$dh=0,Qdh=1e5,Jdh=0,Xdh=60,ech=0,tch=1e4,nch=0,sch=1e6,och=200,ich=0,ach=1e6,rch=/^\d{4}-\d{2}-\d{2}$/,lch=100,dch=2e3,bGh=e.object({traveler_name:e.string().min(1).max(Ldh).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Gdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Vdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Kdh).describe("Business purpose of the trip."),origin:e.string().max(Zdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(qdh).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(Wdh).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(Ydh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min($dh).max(Qdh).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(Jdh).max(Xdh).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(ech).max(tch).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(nch).max(sch).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(och).describe("Description of the cost line."),amount:e.number().gt(ich).max(ach).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(rch).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(lch).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(dch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),zGh=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),cch=2,uch=5,pch=2,mch=5,fGh=e.object({locale:e.string().min(cch).max(uch).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(pch).max(mch).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),BGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xch=200,gch=200,ych=/^\d{4}-\d{2}-\d{2}$/,Och=500,vch=500,hch=500,Sch=/^[A-Za-z]{2}$/,bch=20,zch=0,fch=1e5,Bch=0,Ich=60,Tch=0,Ech=1e4,Dch=0,Rch=1e6,_ch=200,Nch=0,Mch=1e6,Uch=/^\d{4}-\d{2}-\d{2}$/,Pch=100,Cch=2e3,IGh=e.object({traveler_name:e.string().min(1).max(xch).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(gch).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(ych).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Och).describe("Business purpose of the trip."),origin:e.string().max(vch).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(hch).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(Sch).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(bch).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(zch).max(fch).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(Bch).max(Ich).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(Tch).max(Ech).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(Dch).max(Rch).nullish().describe("Advance payment already given to the traveler, in EUR. Defaults to 0 when omitted or null."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(_ch).describe("Description of the cost line."),amount:e.number().gt(Nch).max(Mch).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(Uch).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Pch).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(Cch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),TGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wch=3,Ach=300,Fch=3,kch=300,EGh=e.object({from:e.string().min(wch).max(Ach).describe("Starting address to geocode."),to:e.string().min(Fch).max(kch).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),DGh=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),jch=/^[a-z]{3,4}_[0-9a-f]{24}$/,RGh=e.object({id:e.stringFormat("resource-id",jch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_Gh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hch=200,Lch=0,Gch=1e6,Vch=/^\d{4}-\d{2}-\d{2}$/,NGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Hch).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Lch).max(Gch).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Vch).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Kch=/^[a-z]{3,4}_[0-9a-f]{24}$/,MGh=e.object({id:e.stringFormat("resource-id",Kch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),UGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zch=200,qch=200,Wch=/^\d{4}-\d{2}-\d{2}$/,Ych=500,$ch=500,Qch=500,Jch=/^[A-Za-z]{2}$/,Xch=20,euh=0,tuh=1e5,nuh=0,suh=60,ouh=0,iuh=1e4,auh=0,ruh=1e6,luh=200,duh=0,cuh=1e6,uuh=/^\d{4}-\d{2}-\d{2}$/,puh=100,muh=2e3,PGh=e.object({traveler_name:e.string().min(1).max(Zch).nullish().describe("Full name of the traveling employee or contractor. Omit or send null to leave unchanged; cannot be cleared."),traveler_position:e.string().max(qch).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(Wch).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(Ych).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max($ch).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(Qch).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(Jch).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(Xch).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(euh).max(tuh).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(nuh).max(suh).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(ouh).max(iuh).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(auh).max(ruh).nullish().describe("Advance payment already given to the traveler. Omit to leave unchanged, send null to reset to 0."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(luh).describe("Description of the cost line."),amount:e.number().gt(duh).max(cuh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(uuh).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(puh).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(muh).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),xuh=200,guh=0,yuh=1e6,Ouh=/^\d{4}-\d{2}-\d{2}$/,CGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(xuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(guh).max(yuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Ouh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),vuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,wGh=e.object({id:e.stringFormat("resource-id",vuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),AGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),huh=/^[a-z]{3,4}_[0-9a-f]{24}$/,FGh=e.object({id:e.stringFormat("resource-id",huh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),kGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Suh=200,buh=0,zuh=1e6,fuh=/^\d{4}-\d{2}-\d{2}$/,jGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Suh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(buh).max(zuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(fuh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Buh=/^[a-z]{3,4}_[0-9a-f]{24}$/,HGh=e.object({id:e.stringFormat("resource-id",Buh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Iuh=200,Tuh=0,Euh=1e6,Duh=/^\d{4}-\d{2}-\d{2}$/,GGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Iuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Tuh).max(Euh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Duh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Ruh=/^[a-z]{3,4}_[0-9a-f]{24}$/,VGh=e.object({id:e.stringFormat("resource-id",Ruh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_uh=3,Nuh=500,ZGh=e.object({reason:e.string().min(_uh).max(Nuh).describe("Why this settled travel order is being reopened for correction. Required.")}),Muh=200,Uuh=0,Puh=1e6,Cuh=/^\d{4}-\d{2}-\d{2}$/,qGh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Muh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Uuh).max(Puh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(Cuh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),wuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,WGh=e.object({id:e.stringFormat("resource-id",wuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Auh=200,Fuh=0,kuh=1e6,juh=/^\d{4}-\d{2}-\d{2}$/,$Gh=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Auh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Fuh).max(kuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(juh).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Huh=/^[a-z]{3,4}_[0-9a-f]{24}$/,QGh=e.object({id:e.stringFormat("resource-id",Huh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Luh=2,Guh=5,Vuh=2,Kuh=5,JGh=e.object({locale:e.string().min(Luh).max(Guh).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(Vuh).max(Kuh).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),XGh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,eVh=e.object({id:e.stringFormat("resource-id",Zuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),quh=2,Wuh=5,Yuh=2,$uh=5,tVh=e.object({locale:e.string().min(quh).max(Wuh).nullish().describe("Locale for number and date formatting. When not specified, uses the entity's configured locale. Dates follow this locale's conventions (for example 'de-DE' renders 09.10.2026). Numbers and amounts use Slovenian formatting for Slovenian ('sl', 'sl-SI') and English formatting for every other value."),language:e.string().min(Yuh).max($uh).nullish().describe("Language for document labels. When not specified, uses the same value as `locale`. Use this to get entity-locale formatting with different-language labels.")}),nVh=e.object({"x-entity-id":e.string().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 sn={};Y(sn,{DownloadUjpPackageHeader:()=>oVh,DownloadUjpPackageParams:()=>sVh});var sVh=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),oVh=e.object({"x-entity-id":e.string().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 on={};Y(on,{UploadImageBody:()=>aVh,UploadImageHeader:()=>iVh,UploadImageResponse:()=>rVh});var iVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aVh=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),rVh=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var an={};Y(an,{ConfirmPasswordResetBody:()=>FVh,ConfirmPasswordResetResponse:()=>kVh,DisableTwoFactorBody:()=>RVh,DisableTwoFactorResponse:()=>_Vh,EnableRequiredTwoFactorBody:()=>zVh,EnableRequiredTwoFactorResponse:()=>fVh,EnableTwoFactorBody:()=>EVh,EnableTwoFactorResponse:()=>DVh,GetAccountTwoFactorPolicyHeader:()=>lVh,GetAccountTwoFactorPolicyResponse:()=>dVh,GetEntityTwoFactorPolicyHeader:()=>xVh,GetEntityTwoFactorPolicyParams:()=>mVh,GetEntityTwoFactorPolicyResponse:()=>gVh,GetMeResponse:()=>HVh,GetTwoFactorConfigurationResponse:()=>BVh,ListMyAccountsResponse:()=>jVh,LoginBody:()=>UVh,LoginResponse:()=>PVh,PatchMeBody:()=>LVh,PatchMeResponse:()=>GVh,RequestPasswordResetBody:()=>wVh,RequestPasswordResetResponse:()=>AVh,SetupRequiredTwoFactorBody:()=>SVh,SetupRequiredTwoFactorResponse:()=>bVh,SetupTwoFactorBody:()=>IVh,SetupTwoFactorResponse:()=>TVh,SignupBody:()=>CVh,UpdateAccountTwoFactorPolicyBody:()=>uVh,UpdateAccountTwoFactorPolicyHeader:()=>cVh,UpdateAccountTwoFactorPolicyResponse:()=>pVh,UpdateEntityTwoFactorPolicyBody:()=>vVh,UpdateEntityTwoFactorPolicyHeader:()=>OVh,UpdateEntityTwoFactorPolicyParams:()=>yVh,UpdateEntityTwoFactorPolicyResponse:()=>hVh,UpdateUserFinaSettingsBody:()=>WVh,UpdateUserFinaSettingsHeader:()=>qVh,UpdateUserFinaSettingsResponse:()=>YVh,UpdateUserFursSettingsBody:()=>KVh,UpdateUserFursSettingsHeader:()=>VVh,UpdateUserFursSettingsResponse:()=>ZVh,VerifyTwoFactorBody:()=>NVh,VerifyTwoFactorResponse:()=>MVh,confirmPasswordResetBodyPasswordMin:()=>rmh,confirmPasswordResetBodyPasswordRegExp:()=>lmh,disableTwoFactorBodyCodeMax:()=>Sph,disableTwoFactorBodyCodeMin:()=>hph,disableTwoFactorBodyPasswordMax:()=>vph,enableRequiredTwoFactorBodyCodeRegExp:()=>iph,enableRequiredTwoFactorBodyTokenRegExp:()=>oph,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>cph,enableRequiredTwoFactorResponseSessionOneIdMax:()=>aph,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>uph,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>dph,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>lph,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>rph,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>gph,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>mph,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>pph,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>xph,enableTwoFactorBodyCodeRegExp:()=>Oph,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>Quh,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>eph,getEntityTwoFactorPolicyPathIdRegExp:()=>Xuh,getMeResponseAccountIdMax:()=>pmh,getMeResponseEmailMax:()=>cmh,getMeResponseIdMax:()=>dmh,getMeResponseNameMax:()=>umh,loginBodyShopifyReturnUrlMax:()=>wph,loginBodyShopifyReturnUrlMin:()=>Cph,loginBodyShopifyReturnUrlRegExp:()=>Aph,loginResponseOneEntityIdMax:()=>Lph,loginResponseOneIdMax:()=>Fph,loginResponseOneImpersonatorUserIdMax:()=>Gph,loginResponseOneScopeMax:()=>Hph,loginResponseOneTtlDefault:()=>jph,loginResponseOneUserIdMax:()=>kph,loginResponseTwoUserAccountIdMax:()=>qph,loginResponseTwoUserEmailMax:()=>Kph,loginResponseTwoUserIdMax:()=>Vph,loginResponseTwoUserNameMax:()=>Zph,patchMeBodyNameMin:()=>mmh,patchMeResponseAccountIdMax:()=>Omh,patchMeResponseEmailMax:()=>gmh,patchMeResponseIdMax:()=>xmh,patchMeResponseNameMax:()=>ymh,requestPasswordResetBodyShopifyReturnUrlMax:()=>imh,requestPasswordResetBodyShopifyReturnUrlMin:()=>omh,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>amh,setupRequiredTwoFactorBodyTokenRegExp:()=>sph,setupTwoFactorBodyPasswordMax:()=>yph,signupBodyNameMin:()=>Wph,signupBodyPasswordMin:()=>Yph,signupBodyPasswordRegExp:()=>$ph,signupBodySignupAttributionFbclidMax:()=>smh,signupBodySignupAttributionGbraidMax:()=>tmh,signupBodySignupAttributionGclidMax:()=>emh,signupBodySignupAttributionUtmCampaignMax:()=>Xph,signupBodySignupAttributionUtmMediumMax:()=>Jph,signupBodySignupAttributionUtmSourceMax:()=>Qph,signupBodySignupAttributionWbraidMax:()=>nmh,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>Juh,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>nph,updateEntityTwoFactorPolicyPathIdRegExp:()=>tph,updateUserFinaSettingsResponseAccountIdMax:()=>Imh,updateUserFinaSettingsResponseEmailMax:()=>fmh,updateUserFinaSettingsResponseIdMax:()=>zmh,updateUserFinaSettingsResponseNameMax:()=>Bmh,updateUserFursSettingsResponseAccountIdMax:()=>bmh,updateUserFursSettingsResponseEmailMax:()=>hmh,updateUserFursSettingsResponseIdMax:()=>vmh,updateUserFursSettingsResponseNameMax:()=>Smh,verifyTwoFactorBodyCodeMax:()=>Bph,verifyTwoFactorBodyCodeMin:()=>fph,verifyTwoFactorBodyTokenMax:()=>bph,verifyTwoFactorBodyTokenRegExp:()=>zph,verifyTwoFactorResponseOneEntityIdMax:()=>Rph,verifyTwoFactorResponseOneIdMax:()=>Iph,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>_ph,verifyTwoFactorResponseOneScopeMax:()=>Dph,verifyTwoFactorResponseOneTtlDefault:()=>Eph,verifyTwoFactorResponseOneUserIdMax:()=>Tph,verifyTwoFactorResponseTwoUserAccountIdMax:()=>Pph,verifyTwoFactorResponseTwoUserEmailMax:()=>Mph,verifyTwoFactorResponseTwoUserIdMax:()=>Nph,verifyTwoFactorResponseTwoUserNameMax:()=>Uph});var Quh=/^acc_[0-9a-fA-F]{24}$/,lVh=e.object({"x-account-id":e.string().regex(Quh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),dVh=e.object({required:e.boolean()}),Juh=/^acc_[0-9a-fA-F]{24}$/,cVh=e.object({"x-account-id":e.string().regex(Juh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uVh=e.object({required:e.boolean()}),pVh=e.object({required:e.boolean()}),Xuh=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,mVh=e.object({id:e.stringFormat("resource-id",Xuh).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),eph=/^acc_[0-9a-fA-F]{24}$/,xVh=e.object({"x-account-id":e.string().regex(eph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),gVh=e.object({required:e.boolean()}),tph=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,yVh=e.object({id:e.stringFormat("resource-id",tph).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),nph=/^acc_[0-9a-fA-F]{24}$/,OVh=e.object({"x-account-id":e.string().regex(nph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),vVh=e.object({required:e.boolean()}),hVh=e.object({required:e.boolean()}),sph=/^session_2fa_setup_[a-f0-9]{64}$/,SVh=e.object({token:e.string().regex(sph)}),bVh=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),oph=/^session_2fa_setup_[a-f0-9]{64}$/,iph=/^\d{6}$/,zVh=e.object({token:e.string().regex(oph),code:e.string().regex(iph)}),aph=100,rph=36,lph=31536e3,dph=50,cph=36,uph=36,pph=36,mph=255,xph=255,gph=36,fVh=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(aph),user_id:e.string().max(rph),ttl:e.number().default(lph).describe("Token time-to-live in seconds"),scope:e.string().max(dph).nullish(),entity_id:e.string().max(cph).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(uph).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(pph),email:e.string().max(mph),name:e.string().max(xph).nullish(),email_verified:e.boolean(),account_id:e.string().max(gph).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),BVh=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),yph=1024,IVh=e.object({password:e.string().max(yph).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),TVh=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),Oph=/^\d{6}$/,EVh=e.object({code:e.string().regex(Oph)}),DVh=e.object({recovery_codes:e.array(e.string())}),vph=1024,hph=6,Sph=32,RVh=e.object({password:e.string().max(vph).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes."),code:e.string().min(hph).max(Sph).describe("Six-digit authenticator code or a single-use recovery code.")}),_Vh=e.object({enabled:e.literal(false)}),bph=100,zph=/^session_2fa_[a-zA-Z0-9]+$/,fph=6,Bph=32,NVh=e.object({token:e.string().max(bph).regex(zph),code:e.string().min(fph).max(Bph).describe("Six-digit authenticator code or a single-use recovery code.")}),Iph=100,Tph=36,Eph=31536e3,Dph=50,Rph=36,_ph=36,Nph=36,Mph=255,Uph=255,Pph=36,MVh=e.object({id:e.string().max(Iph),user_id:e.string().max(Tph),ttl:e.number().default(Eph).describe("Token time-to-live in seconds"),scope:e.string().max(Dph).nullish(),entity_id:e.string().max(Rph).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(_ph).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Nph),email:e.string().max(Mph),name:e.string().max(Uph).nullish(),email_verified:e.boolean(),account_id:e.string().max(Pph).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),Cph=86,wph=86,Aph=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,UVh=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(Cph).max(wph).regex(Aph).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),Fph=100,kph=36,jph=31536e3,Hph=50,Lph=36,Gph=36,Vph=36,Kph=255,Zph=255,qph=36,PVh=e.object({id:e.string().max(Fph),user_id:e.string().max(kph),ttl:e.number().default(jph).describe("Token time-to-live in seconds"),scope:e.string().max(Hph).nullish(),entity_id:e.string().max(Lph).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Gph).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Vph),email:e.string().max(Kph),name:e.string().max(Zph).nullish(),email_verified:e.boolean(),account_id:e.string().max(qph).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),Wph=2,Yph=8,$ph=/[a-z]/,Qph=150,Jph=150,Xph=150,emh=512,tmh=512,nmh=512,smh=512,CVh=e.object({email:e.email(),name:e.string().min(Wph).nullish(),password:e.string().min(Yph).regex($ph),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(Qph).nullish(),utm_medium:e.string().min(1).max(Jph).nullish(),utm_campaign:e.string().min(1).max(Xph).nullish(),gclid:e.string().min(1).max(emh).nullish(),gbraid:e.string().min(1).max(tmh).nullish(),wbraid:e.string().min(1).max(nmh).nullish(),fbclid:e.string().min(1).max(smh).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) and ad click IDs (gclid, gbraid, wbraid, fbclid) from the link the user arrived through. Stored with the new user for first-party sign-up attribution and never returned. Each value is trimmed. A UTM value is kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; a click ID is kept only when it is 1\u2013512 characters of `A-Z a-z 0-9 _ . -`. Invalid values and malformed objects are ignored rather than rejected.")}),omh=86,imh=86,amh=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,wVh=e.object({email:e.email(),shopify_return_url:e.string().min(omh).max(imh).regex(amh).nullish().describe("Optional Shopify-to-Apollo continuation. Only /shopify/apollo#token=<64 lowercase hexadecimal characters> is accepted. Suppresses legacy Apollo fallback; omit or pass null for the ordinary authentication flow. This value grants no access.")}),AVh=e.object({message:e.string()}),rmh=8,lmh=/[a-z]/,FVh=e.object({token:e.string().min(1),password:e.string().min(rmh).regex(lmh)}),kVh=e.object({message:e.string()}),jVh=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),dmh=36,cmh=255,umh=255,pmh=36,HVh=e.object({id:e.string().max(dmh),email:e.string().max(cmh),name:e.string().max(umh).nullish(),email_verified:e.boolean(),account_id:e.string().max(pmh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),mmh=2,LVh=e.object({name:e.string().min(mmh).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),xmh=36,gmh=255,ymh=255,Omh=36,GVh=e.object({id:e.string().max(xmh),email:e.string().max(gmh),name:e.string().max(ymh).nullish(),email_verified:e.boolean(),account_id:e.string().max(Omh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),VVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KVh=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),vmh=36,hmh=255,Smh=255,bmh=36,ZVh=e.object({id:e.string().max(vmh),email:e.string().max(hmh),name:e.string().max(Smh).nullish(),email_verified:e.boolean(),account_id:e.string().max(bmh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),qVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WVh=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),zmh=36,fmh=255,Bmh=255,Imh=36,YVh=e.object({id:e.string().max(zmh),email:e.string().max(fmh),name:e.string().max(Bmh).nullish(),email_verified:e.boolean(),account_id:e.string().max(Imh).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var rn={};Y(rn,{CancelVerifactuRecordBody:()=>yKh,CancelVerifactuRecordHeader:()=>gKh,CancelVerifactuRecordParams:()=>xKh,CancelVerifactuRecordResponse:()=>OKh,CorrectVerifactuRecordBody:()=>pKh,CorrectVerifactuRecordHeader:()=>uKh,CorrectVerifactuRecordParams:()=>cKh,CorrectVerifactuRecordResponse:()=>mKh,GetVerifactuEvidenceHeader:()=>iKh,GetVerifactuEvidenceParams:()=>oKh,GetVerifactuEvidenceResponse:()=>aKh,GetVerifactuSettingsHeader:()=>$Vh,GetVerifactuSettingsResponse:()=>QVh,RetryVerifactuRecordHeader:()=>lKh,RetryVerifactuRecordParams:()=>rKh,RetryVerifactuRecordResponse:()=>dKh,UpdateVerifactuSettingsBody:()=>XVh,UpdateVerifactuSettingsHeader:()=>JVh,UpdateVerifactuSettingsResponse:()=>eKh,UploadVerifactuCertificateBody:()=>nKh,UploadVerifactuCertificateHeader:()=>tKh,UploadVerifactuCertificateResponse:()=>sKh,cancelVerifactuRecordBodyReasonMax:()=>Pmh,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>_mh,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>Mmh,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>Nmh,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>Umh,correctVerifactuRecordBodyReasonMax:()=>Rmh,getVerifactuSettingsResponsePendingRecordsMin:()=>Tmh,updateVerifactuSettingsResponsePendingRecordsMin:()=>Emh,uploadVerifactuCertificateResponsePendingRecordsMin:()=>Dmh});var $Vh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Tmh=0,QVh=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(Tmh).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),JVh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVh=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),Emh=0,eKh=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(Emh).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),tKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nKh=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),Dmh=0,sKh=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(Dmh).describe("Records awaiting AEAT confirmation. Display a persistent submission notice while this count is nonzero, including during outages.")}).describe("Entity-scoped eligibility, certificate, release readiness and pending-submission status."),oKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),iKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),rKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),lKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),cKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),uKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rmh=500,_mh=500,Nmh=0,Mmh=/^\d{2}$/,Umh=12,pKh=e.object({reason:e.string().min(1).max(Rmh).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(_mh).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(Nmh).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex(Mmh).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(Umh).nullish().describe("Explicit classifications for exceptional tax rows. Ordinary domestic positive-rate IVA defaults to 01/01/S1. Zero, exempt, reverse-charge and non-domestic rows require classification.")}).describe("Fiscal classifications supplied before issue, or as an append-only fiscal metadata correction.")}).describe("Append a correction to a confirmed fiscal record without changing invoice financial or party facts."),mKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),xKh=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),gKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pmh=500,yKh=e.object({reason:e.string().min(1).max(Pmh).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),OKh=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var ln={};Y(ln,{CheckViesBody:()=>vKh,CheckViesResponse:()=>hKh,checkViesBodyCustomerCountryCodeMax:()=>kmh,checkViesBodyCustomerCountryCodeMin:()=>Fmh,checkViesBodyIssuerCountryCodeMax:()=>wmh,checkViesBodyIssuerCountryCodeMin:()=>Cmh,checkViesBodyIssuerIsTaxSubjectDefault:()=>Amh,checkViesResponseCustomerCountryCodeMax:()=>Gmh,checkViesResponseCustomerCountryCodeMin:()=>Lmh,checkViesResponseIssuerCountryCodeMax:()=>Hmh,checkViesResponseIssuerCountryCodeMin:()=>jmh,checkViesResponseVatIdCountryCodeMax:()=>Kmh,checkViesResponseVatIdCountryCodeMin:()=>Vmh});var Cmh=2,wmh=2,Amh=true,Fmh=2,kmh=2,vKh=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(Cmh).max(wmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(Amh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(Fmh).max(kmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),jmh=2,Hmh=2,Lmh=2,Gmh=2,Vmh=2,Kmh=2,hKh=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(jmh).max(Hmh).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(Lmh).max(Gmh).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(Vmh).max(Kmh).nullish().describe("Present when the customer's VAT number starts with an EU country prefix that differs from customer_country_code and the issuer is in the EU. transaction_type is determined for this country instead of customer_country_code. Not returned when VIES rejects the VAT number: the address then decides."),supply_scope:e.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var dn={};Y(dn,{CreateWarehouseBody:()=>BKh,CreateWarehouseHeader:()=>fKh,DeleteWarehouseHeader:()=>UKh,DeleteWarehouseParams:()=>MKh,GetWarehouseByIdHeader:()=>TKh,GetWarehouseByIdParams:()=>IKh,GetWarehouseByIdResponse:()=>EKh,GetWarehousesHeader:()=>bKh,GetWarehousesQueryParams:()=>SKh,GetWarehousesResponse:()=>zKh,UpdateWarehouseBody:()=>_Kh,UpdateWarehouseHeader:()=>RKh,UpdateWarehouseParams:()=>DKh,UpdateWarehouseResponse:()=>NKh,createWarehouseBodyNameMax:()=>Qmh,deleteWarehousePathIdRegExp:()=>rxh,getWarehouseByIdPathIdRegExp:()=>Jmh,getWarehouseByIdResponseEntityIdMax:()=>exh,getWarehouseByIdResponseIdMax:()=>Xmh,getWarehouseByIdResponseNameMax:()=>txh,getWarehousesQueryLimitDefault:()=>Zmh,getWarehousesQueryLimitMax:()=>qmh,getWarehousesResponseDataItemEntityIdMax:()=>Ymh,getWarehousesResponseDataItemIdMax:()=>Wmh,getWarehousesResponseDataItemNameMax:()=>$mh,updateWarehouseBodyNameMax:()=>sxh,updateWarehousePathIdRegExp:()=>nxh,updateWarehouseResponseEntityIdMax:()=>ixh,updateWarehouseResponseIdMax:()=>oxh,updateWarehouseResponseNameMax:()=>axh});var Zmh=10,qmh=100,SKh=e.object({limit:e.number().min(1).max(qmh).default(Zmh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),bKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wmh=36,Ymh=36,$mh=200,zKh=e.object({data:e.array(e.object({id:e.string().max(Wmh),entity_id:e.string().max(Ymh),name:e.string().max($mh),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),fKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Qmh=200,BKh=e.object({name:e.string().min(1).max(Qmh).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),Jmh=/^wh_[0-9a-f]{24}$/,IKh=e.object({id:e.stringFormat("resource-id",Jmh).describe("Warehouse identifier (wh_ prefix).")}),TKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Xmh=36,exh=36,txh=200,EKh=e.object({id:e.string().max(Xmh),entity_id:e.string().max(exh),name:e.string().max(txh),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),nxh=/^wh_[0-9a-f]{24}$/,DKh=e.object({id:e.stringFormat("resource-id",nxh).describe("Warehouse identifier (wh_ prefix).")}),RKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sxh=200,_Kh=e.object({name:e.string().min(1).max(sxh).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),oxh=36,ixh=36,axh=200,NKh=e.object({id:e.string().max(oxh),entity_id:e.string().max(ixh),name:e.string().max(axh),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),rxh=/^wh_[0-9a-f]{24}$/,MKh=e.object({id:e.stringFormat("resource-id",rxh).describe("Warehouse identifier (wh_ prefix).")}),UKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var cn={};Y(cn,{CreateWebhookBody:()=>CKh,CreateWebhookHeader:()=>PKh,DeleteWebhookHeader:()=>qKh,DeleteWebhookParams:()=>ZKh,DeleteWebhookResponse:()=>WKh,GetWebhookByIdHeader:()=>jKh,GetWebhookByIdParams:()=>kKh,GetWebhookByIdResponse:()=>HKh,GetWebhookDeliveriesHeader:()=>eZh,GetWebhookDeliveriesParams:()=>JKh,GetWebhookDeliveriesQueryParams:()=>XKh,GetWebhookDeliveriesResponse:()=>tZh,GetWebhooksHeader:()=>AKh,GetWebhooksQueryParams:()=>wKh,GetWebhooksResponse:()=>FKh,RotateWebhookSecretHeader:()=>sZh,RotateWebhookSecretParams:()=>nZh,RotateWebhookSecretResponse:()=>oZh,TestWebhookHeader:()=>$Kh,TestWebhookParams:()=>YKh,TestWebhookResponse:()=>QKh,UpdateWebhookBody:()=>VKh,UpdateWebhookHeader:()=>GKh,UpdateWebhookParams:()=>LKh,UpdateWebhookResponse:()=>KKh,createWebhookBodyActiveDefault:()=>cxh,createWebhookBodyDescriptionMax:()=>dxh,createWebhookBodyUrlMax:()=>lxh,deleteWebhookPathIdRegExp:()=>Mxh,getWebhookByIdPathIdRegExp:()=>vxh,getWebhookByIdResponseDescriptionMax:()=>zxh,getWebhookByIdResponseEntityIdMax:()=>Sxh,getWebhookByIdResponseIdMax:()=>hxh,getWebhookByIdResponseMetadataDefault:()=>fxh,getWebhookByIdResponseUrlMax:()=>bxh,getWebhookDeliveriesPathIdRegExp:()=>Wxh,getWebhookDeliveriesQueryLimitDefault:()=>Yxh,getWebhookDeliveriesQueryLimitMax:()=>$xh,getWebhookDeliveriesResponseDataItemAttemptMax:()=>agh,getWebhookDeliveriesResponseDataItemAttemptMin:()=>igh,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>cgh,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>dgh,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Xxh,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>ogh,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>egh,getWebhookDeliveriesResponseDataItemIdMax:()=>Qxh,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>lgh,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>rgh,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>sgh,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>ngh,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>tgh,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Jxh,getWebhooksQueryLimitDefault:()=>uxh,getWebhooksQueryLimitMax:()=>pxh,getWebhooksResponseDataItemDescriptionMax:()=>yxh,getWebhooksResponseDataItemEntityIdMax:()=>xxh,getWebhooksResponseDataItemIdMax:()=>mxh,getWebhooksResponseDataItemMetadataDefault:()=>Oxh,getWebhooksResponseDataItemUrlMax:()=>gxh,rotateWebhookSecretPathIdRegExp:()=>ugh,rotateWebhookSecretResponseDescriptionMax:()=>ggh,rotateWebhookSecretResponseEntityIdMax:()=>mgh,rotateWebhookSecretResponseIdMax:()=>pgh,rotateWebhookSecretResponseMetadataDefault:()=>Ogh,rotateWebhookSecretResponseSecretMax:()=>ygh,rotateWebhookSecretResponseUrlMax:()=>xgh,testWebhookPathIdRegExp:()=>Uxh,testWebhookResponseAttemptMax:()=>Gxh,testWebhookResponseAttemptMin:()=>Lxh,testWebhookResponseDurationMsMax:()=>qxh,testWebhookResponseDurationMsMin:()=>Zxh,testWebhookResponseEntityIdMax:()=>wxh,testWebhookResponseErrorMessageMax:()=>Hxh,testWebhookResponseEventTypeMax:()=>Axh,testWebhookResponseIdMax:()=>Pxh,testWebhookResponseMaxAttemptsMax:()=>Kxh,testWebhookResponseMaxAttemptsMin:()=>Vxh,testWebhookResponseResponseBodyMax:()=>jxh,testWebhookResponseResponseStatusMax:()=>kxh,testWebhookResponseResponseStatusMin:()=>Fxh,testWebhookResponseWebhookIdMax:()=>Cxh,updateWebhookBodyDescriptionMax:()=>Txh,updateWebhookBodyUrlMax:()=>Ixh,updateWebhookPathIdRegExp:()=>Bxh,updateWebhookResponseDescriptionMax:()=>_xh,updateWebhookResponseEntityIdMax:()=>Dxh,updateWebhookResponseIdMax:()=>Exh,updateWebhookResponseMetadataDefault:()=>Nxh,updateWebhookResponseUrlMax:()=>Rxh});var PKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lxh=2048,dxh=500,cxh=true,CKh=e.object({url:e.url().max(lxh).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(dxh).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).min(1).describe("Events that trigger this webhook. Use an exact event name, `<resource>.*` for every event of one resource, `document.<action>` or `document.*` for every document type, or `*` for every event."),active:e.boolean().default(cxh).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),uxh=10,pxh=100,wKh=e.object({limit:e.number().min(1).max(pxh).default(uxh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),AKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mxh=36,xxh=36,gxh=2048,yxh=500,Oxh={},FKh=e.object({data:e.array(e.object({id:e.string().max(mxh),entity_id:e.string().max(xxh),url:e.string().max(gxh),description:e.string().max(yxh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Oxh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,kKh=e.object({id:e.stringFormat("resource-id",vxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),jKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hxh=36,Sxh=36,bxh=2048,zxh=500,fxh={},HKh=e.object({id:e.string().max(hxh),entity_id:e.string().max(Sxh),url:e.string().max(bxh),description:e.string().max(zxh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(fxh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Bxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,LKh=e.object({id:e.stringFormat("resource-id",Bxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),GKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ixh=2048,Txh=500,VKh=e.object({url:e.url().max(Ixh).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Txh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Exh=36,Dxh=36,Rxh=2048,_xh=500,Nxh={},KKh=e.object({id:e.string().max(Exh),entity_id:e.string().max(Dxh),url:e.string().max(Rxh),description:e.string().max(_xh).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Nxh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Mxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,ZKh=e.object({id:e.stringFormat("resource-id",Mxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),qKh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WKh=e.object({success:e.boolean()}),Uxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,YKh=e.object({id:e.stringFormat("resource-id",Uxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$Kh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pxh=36,Cxh=36,wxh=36,Axh=100,Fxh=-2147483648,kxh=2147483647,jxh=1e4,Hxh=2e3,Lxh=-2147483648,Gxh=2147483647,Vxh=-2147483648,Kxh=2147483647,Zxh=-2147483648,qxh=2147483647,QKh=e.object({id:e.string().max(Pxh),webhook_id:e.string().max(Cxh),entity_id:e.string().max(wxh),event_type:e.string().max(Axh),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(Fxh).max(kxh).nullish(),response_body:e.string().max(jxh).nullish(),error_message:e.string().max(Hxh).nullish(),attempt:e.number().min(Lxh).max(Gxh),max_attempts:e.number().min(Vxh).max(Kxh),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Zxh).max(qxh).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Wxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,JKh=e.object({id:e.stringFormat("resource-id",Wxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Yxh=10,$xh=100,XKh=e.object({limit:e.number().min(1).max($xh).default(Yxh).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),eZh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Qxh=36,Jxh=36,Xxh=36,egh=100,tgh=-2147483648,ngh=2147483647,sgh=1e4,ogh=2e3,igh=-2147483648,agh=2147483647,rgh=-2147483648,lgh=2147483647,dgh=-2147483648,cgh=2147483647,tZh=e.object({data:e.array(e.object({id:e.string().max(Qxh),webhook_id:e.string().max(Jxh),entity_id:e.string().max(Xxh),event_type:e.string().max(egh),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(tgh).max(ngh).nullish(),response_body:e.string().max(sgh).nullish(),error_message:e.string().max(ogh).nullish(),attempt:e.number().min(igh).max(agh),max_attempts:e.number().min(rgh).max(lgh),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(dgh).max(cgh).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ugh=/^[a-z]{3,4}_[0-9a-f]{24}$/,nZh=e.object({id:e.stringFormat("resource-id",ugh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),sZh=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),pgh=36,mgh=36,xgh=2048,ggh=500,ygh=64,Ogh={},oZh=e.object({id:e.string().max(pgh),entity_id:e.string().max(mgh),url:e.string().max(xgh),description:e.string().max(ggh).nullish(),secret:e.string().max(ygh),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected","ksef.submission.accepted","ksef.submission.rejected","ksef.submission.upo_available","email.delivered","email.bounced","email.complained","email.opened","fiscalization.certificate_expiring","fiscalization.certificate_expired","*","document.*","document.created","document.updated","document.sent","document.paid","document.overdue","document.deleted","document.restored","document.voided","document.finalized","document.accepted","document.rejected","document.applied","invoice.*","customer.*","payment.*","estimate.*","credit_note.*","advance_invoice.*","item.*","tax.*","recurring_invoice.*","stripe_app.*","order.*","order_integration.*","delivery_note.*","expense.*","e_invoicing.submission.*","e_invoicing.enrollment.*","e_invoicing.supplier.*","ksef.submission.*","email.*","fiscalization.*"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").default(Ogh).describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Webhook endpoint with full secret visible");var un={};Y(un,{CheckWLFeatureParams:()=>rZh,CheckWLFeatureResponse:()=>lZh,CheckWLLimitParams:()=>dZh,CheckWLLimitResponse:()=>cZh,GetCurrentWLSubscriptionResponse:()=>iZh,GetWLSubscriptionPlansResponse:()=>aZh,UpdateWLSubscriptionBillingEmailBody:()=>uZh,UpdateWLSubscriptionBillingEmailResponse:()=>pZh,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>vgh,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>hgh});var vgh=0,hgh=null,iZh=e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(vgh).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(hgh).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),aZh=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),rZh=e.object({feature:e.string().describe("Feature slug to check")}),lZh=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),dZh=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),cZh=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),uZh=e.object({billing_email:e.email().nullable()}),pZh=e.object({billing_email:e.string().nullable()});var pn={};Y(pn,{GetCurrentWhiteLabelResponse:()=>mZh,GetMyWhiteLabelResponse:()=>xZh});var mZh=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),xZh=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var gZh=125e3,mn=null,Ne=null,xn=false;function bgh(d){mn=d;}function gn(d){Ne=d,d==null&&(xn=false);}function yZh(){xn||(xn=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 OZh(){return Ne}function vZh(){if(!mn)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return mn}function hZh(d){if(!d)return {};if(d instanceof Headers){let u={};return d.forEach((y,D)=>{u[D]=y;}),u}if(Array.isArray(d)){let u={};for(let[y,D]of d)u[y]=D;return u}return d}function SZh(d,u){if(u==null||u<=0)return {signal:d??void 0,cleanup:()=>{}};let y=new AbortController,D=()=>{y.abort(d?.reason);};if(d?.aborted)return D(),{signal:y.signal,cleanup:()=>{}};let f=setTimeout(()=>{y.abort(new Error(`SDK request timed out after ${u}ms`));},u),N=()=>{clearTimeout(f),d?.removeEventListener("abort",D);};return d?.addEventListener("abort",D,{once:true}),y.signal.addEventListener("abort",N,{once:true}),{signal:y.signal,cleanup:N}}async function b(d,u){let{timeoutMs:y,sdkConfig:D,...f}=u??{},N=D??vZh(),ye=await Promise.resolve(N.getAccessToken()),Oe=`${N.baseUrl}${d}`,me={...hZh(f.headers)};N.clientName&&Object.assign(me,nt(N.clientName)),ye&&(me.Authorization=`Bearer ${ye}`);let fe=me["x-account-id"]||me["X-Account-Id"]||N.accountId||null;!fe&&Ne&&(D&&yZh(),fe=Ne),fe&&!me["x-account-id"]&&!me["X-Account-Id"]&&(me["x-account-id"]=fe);let Be=SZh(f.signal,y===void 0?N.requestTimeoutMs??gZh:y);try{let he=await fetch(Oe,{...f,headers:me,signal:Be.signal});he.status===401&&N.onUnauthorized&&N.onUnauthorized(he);let Te,Yfh=he.headers.get("content-length"),Ie=he.headers.get("content-type"),$fh=he.headers.get("content-disposition");if(Yfh==="0"||he.status===204)Te=void 0;else if(Ie?.includes("application/pdf")||Ie?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||Ie?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||Ie?.includes("text/csv")||Ie?.includes("application/octet-stream")||Ie?.includes("application/zip")||Ie?.includes("application/x-zip-compressed")||Ie?.includes("image/"))Te=await he.blob();else if(Ie?.includes("application/xml")||Ie?.includes("text/xml"))Te=$fh?.toLowerCase().includes("attachment")?await he.blob():await he.text();else if(Ie?.includes("text/html"))Te=await he.text();else try{Te=await he.json();}catch{Te=void 0;}return {data:Te,status:he.status,headers:he.headers}}finally{Be.cleanup();}}var bZh=1e3;function zZh(d){if(!d||typeof d!="object"||Array.isArray(d))return false;let u=d;return Array.isArray(u.data)&&!!u.pagination&&typeof u.pagination=="object"&&!Array.isArray(u.pagination)}function fZh(d){return Array.isArray(d)?"a bare array":d==null?String(d):typeof d!="object"?`a ${typeof d}`:Array.isArray(d.data)?"an object with a data array but no pagination object (e.g. { data, has_more } instead of { data, pagination: { next_cursor } })":"an object without a data array"}async function*BZh(d,u,y){let D=y?`listAll(${y})`:"listAll()",f=u?.next_cursor,N=0;for(;;){if(N>=1e3)throw new Error(`${D} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);N++;let ye=f,Oe=await d({...u,next_cursor:ye});if(!zZh(Oe))throw new Error(`${D} cannot paginate this method: its response is ${fZh(Oe)}, not the expected { data: T[], pagination: { next_cursor } } shape. This usually means the endpoint does not support cursor-based pagination at all. Call the method directly (it already returns everything in one response) instead of iterating it with listAll().`);for(let me of Oe.data)yield me;let be=Oe.pagination.next_cursor;if(!be)return;if(be===ye)throw new Error(`${D} received the same cursor it just sent (${ye}) after ${N} page(s). The API's pagination cursor is not advancing, which means the server has a pagination bug, not that the result set ended. Stopping here without this error would silently return an incomplete list as if it were complete.`);f=be;}}var IZh=()=>"/account-webhooks",zgh=async(d,u)=>b(IZh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/account-webhooks?${y}`:"/account-webhooks"},fgh=async(d,u)=>b(TZh(d),{...u,method:"GET"}),EZh=d=>`/account-webhooks/${d}`,Bgh=async(d,u)=>b(EZh(d),{...u,method:"GET"}),DZh=d=>`/account-webhooks/${d}`,Igh=async(d,u,y)=>b(DZh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),RZh=d=>`/account-webhooks/${d}`,Tgh=async(d,u)=>b(RZh(d),{...u,method:"DELETE"}),_Zh=d=>`/account-webhooks/${d}/test`,Egh=async(d,u)=>b(_Zh(d),{...u,method:"POST"});var NZh=d=>`/account-webhooks/${d}/rotate-secret`,Dgh=async(d,u)=>b(NZh(d),{...u,method:"POST"});async function MZh(d,u){return d(...u)}function _gh(d){if(!d?.entity_id&&!d?.account_id&&!d?.request_id&&!d?.signal&&d?.timeoutMs===void 0&&!d?.sdkConfig)return;let u={};return (d.entity_id||d.account_id||d.request_id)&&(u.headers={...d.entity_id?{"x-entity-id":d.entity_id}:{},...d.account_id?{"x-account-id":d.account_id}:{},...d.request_id?{"X-Request-Id":d.request_id}:{}}),d.signal&&(u.signal=d.signal),d.timeoutMs!==void 0&&(u.timeoutMs=d.timeoutMs),d.sdkConfig&&(u.sdkConfig=d.sdkConfig),u}function z(d,u){let y=async(...f)=>{let N=f[f.length-1],ye=N&&typeof N=="object"&&("entity_id"in N||"account_id"in N||"request_id"in N||"signal"in N||"timeoutMs"in N||"sdkConfig"in N||Object.keys(N).length===0),Oe,be;ye?(Oe=f.slice(0,-1),be=_gh(N)):Oe=[...f];let me=Math.max(0,d.length-1);for(;Oe.length<me;)Oe.push(void 0);Oe.push(be);let fe=await MZh(d,Oe);if(fe.status>=200&&fe.status<300)return fe.data;let Be=new Error(`API error: ${fe.status}`);throw Be.status=fe.status,Be.data=fe.data,Be};return u===void 0?y:Object.assign(((...f)=>{let N=[...f];return N[u]??={},y(...N)}),{__sdkOptionsIndex:u})}function ee(d){return Object.assign(async y=>{let{entity_id:D,account_id:f,request_id:N,signal:ye,timeoutMs:Oe,sdkConfig:be,...me}=y||{},fe=_gh({entity_id:D,account_id:f,request_id:N,signal:ye,timeoutMs:Oe,sdkConfig:be}),Be=await d(me,fe);if(Be.status===200)return Be.data;let he=new Error(`API error: ${Be.status}`);throw he.status=Be.status,he.data=Be.data,he},{__sdkListMethod:true})}function Rgh(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}function q(d,u){let y=Object.entries(d).map(([D,f])=>typeof f!="function"?[D,f]:[D,(...N)=>{let ye=u(),Oe=N[N.length-1],be=f;if(be.__sdkListMethod){let me=N[0];N[0]=me&&typeof me=="object"?{...me,sdkConfig:ye}:{sdkConfig:ye};}else if(typeof be.__sdkOptionsIndex=="number"){let me=N[be.__sdkOptionsIndex];N[be.__sdkOptionsIndex]=Rgh(me)?{...me,sdkConfig:ye}:{sdkConfig:ye};}else Rgh(Oe)?N[N.length-1]={...Oe,sdkConfig:ye}:N.push({sdkConfig:ye});return f(...N)}]);return Object.fromEntries(y)}var yn={create:z(zgh,1),list:ee(fgh),get:z(Bgh,1),update:z(Igh,2),delete:z(Tgh,1),testAccountWebhook:z(Egh,1),rotateAccountWebhookSecret:z(Dgh,1)};var UZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/employees?${y}`:"/employees"},Me=async(d,u)=>b(UZh(d),{...u,method:"GET"}),PZh=()=>"/employees",Ue=async(d,u)=>b(PZh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),CZh=d=>`/employees/${d}`,Pe=async(d,u)=>b(CZh(d),{...u,method:"GET"}),wZh=d=>`/employees/${d}`,Ce=async(d,u,y)=>b(wZh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),AZh=d=>`/employees/${d}`,we=async(d,u)=>b(AZh(d),{...u,method:"DELETE"}),FZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/employees/${d}/attendance?${D}`:`/employees/${d}/attendance`},Ae=async(d,u,y)=>b(FZh(d,u),{...y,method:"GET"}),kZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/employees/${d}/attendance?${D}`:`/employees/${d}/attendance`},Fe=async(d,u,y,D)=>b(kZh(d,y),{...D,method:"PUT",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),jZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payroll/parameters?${y}`:"/payroll/parameters"},ke=async(d,u)=>b(jZh(d),{...u,method:"GET"}),HZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payroll/parameters/history?${y}`:"/payroll/parameters/history"},je=async(d,u)=>b(HZh(d),{...u,method:"GET"}),LZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/payroll/parameters/${d}?${D}`:`/payroll/parameters/${d}`},He=async(d,u,y,D)=>b(LZh(d,y),{...D,method:"PUT",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),GZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/vat-returns/preview?${y}`:"/vat-returns/preview"},Le=async(d,u)=>b(GZh(d),{...u,method:"GET"}),VZh=()=>"/vat-returns",Ge=async(d,u)=>b(VZh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/vat-returns?${y}`:"/vat-returns"},Ve=async(d,u)=>b(KZh(d),{...u,method:"GET"}),ZZh=d=>`/vat-returns/${d}`,Ke=async(d,u)=>b(ZZh(d),{...u,method:"GET"}),qZh=d=>`/vat-returns/${d}/recompute`,Ze=async(d,u)=>b(qZh(d),{...u,method:"POST"}),WZh=d=>`/vat-returns/${d}/approve`,qe=async(d,u)=>b(WZh(d),{...u,method:"POST"}),YZh=d=>`/vat-returns/${d}/submit`,We=async(d,u,y)=>b(YZh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),$Zh=d=>`/vat-returns/${d}/reopen`,Ye=async(d,u)=>b($Zh(d),{...u,method:"POST"}),QZh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/vat-returns/${d}/export?${D}`:`/vat-returns/${d}/export`},$e=async(d,u,y)=>b(QZh(d,u),{...y,method:"GET"}),JZh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/filings?${y}`:"/filings"},Qe=async(d,u)=>b(JZh(d),{...u,method:"GET"}),XZh=d=>`/filings/${d}/complete`,Je=async(d,u,y)=>b(XZh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),eqh=d=>`/filings/${d}/reopen`,Xe=async(d,u)=>b(eqh(d),{...u,method:"POST"}),tqh=d=>`/filings/${d}/dismiss`,et=async(d,u,y)=>b(tqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),nqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/accounting/filings-calendar?${y}`:"/accounting/filings-calendar"},tt=async(d,u)=>b(nqh(d),{...u,method:"GET"}),sqh=()=>"/ledger/accounts",Ngh=async d=>b(sqh(),{...d,method:"GET"}),oqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/trial-balance?${y}`:"/ledger/trial-balance"},Mgh=async(d,u)=>b(oqh(d),{...u,method:"GET"}),iqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/profit-and-loss?${y}`:"/ledger/profit-and-loss"},Ugh=async(d,u)=>b(iqh(d),{...u,method:"GET"}),aqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/balance-sheet?${y}`:"/ledger/balance-sheet"},Pgh=async(d,u)=>b(aqh(d),{...u,method:"GET"}),rqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/ledger/entries?${y}`:"/ledger/entries"},Cgh=async(d,u)=>b(rqh(d),{...u,method:"GET"}),lqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/journal-entries?${y}`:"/journal-entries"},wgh=async(d,u)=>b(lqh(d),{...u,method:"GET"}),dqh=()=>"/journal-entries",Agh=async(d,u)=>b(dqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cqh=d=>`/journal-entries/${d}`,Fgh=async(d,u)=>b(cqh(d),{...u,method:"GET"}),uqh=d=>`/journal-entries/${d}`,kgh=async(d,u,y)=>b(uqh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),pqh=d=>`/journal-entries/${d}`,jgh=async(d,u)=>b(pqh(d),{...u,method:"DELETE"}),mqh=()=>"/vendor-tax-profiles",Hgh=async d=>b(mqh(),{...d,method:"GET"}),xqh=d=>`/vendor-tax-profiles/${d}`,Lgh=async(d,u,y)=>b(xqh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),gqh=d=>`/us-tax-years/${d}`,Ggh=async(d,u)=>b(gqh(d),{...u,method:"GET"}),yqh=d=>`/us-tax-years/${d}/export`,Vgh=async(d,u)=>b(yqh(d),{...u,method:"GET"});var On={listEmployees:z(Me,1),registerEmployee:z(Ue,1),getEmployee:z(Pe,1),modifyEmployee:z(Ce,2),archiveEmployee:z(we,1),getEmployeeAttendance:z(Ae,2),replaceEmployeeAttendance:z(Fe,3),resolvePayrollParameters:z(ke,1),getPayrollParameterHistory:z(je,1),setPayrollParameterOverride:z(He,3),preview:z(Le,1),draftVatReturn:z(Ge,1),listVatReturns:z(Ve,1),getVatReturn:z(Ke,1),recomputeVatReturn:z(Ze,1),approveVatReturn:z(qe,1),submitVatReturn:z(We,2),reopenVatReturn:z(Ye,1),exportVatReturn:z($e,2),listFilings:z(Qe,1),completeFiling:z(Je,2),reopenFiling:z(Xe,1),dismissFiling:z(et,2),listAccountFilingsCalendar:z(tt,1),listLedgerAccounts:z(Ngh,0),getTrialBalance:z(Mgh,1),getProfitAndLossReport:z(Ugh,1),getBalanceSheet:z(Pgh,1),listLedgerEntries:z(Cgh,1),listJournalEntries:z(wgh,1),recordJournalEntry:z(Agh,1),getJournalEntry:z(Fgh,1),reviseJournalEntry:z(kgh,2),archiveJournalEntry:z(jgh,1),listVendorTaxProfiles:z(Hgh,0),setVendorTaxProfile:z(Lgh,2),getUsTaxYearWorksheet:z(Ggh,1),exportUsTaxYearWorksheet:z(Vgh,1)};var Oqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/activities?${y}`:"/activities"},Kgh=async(d,u)=>b(Oqh(d),{...u,method:"GET"});var vn={list:ee(Kgh)};var vqh=d=>`/advance-invoices/${d}/nav/retry`,Zgh=async(d,u)=>b(vqh(d),{...u,method:"POST"}),hqh=d=>`/advance-invoices/${d}/nav/reconcile`,qgh=async(d,u)=>b(hqh(d),{...u,method:"POST"}),Sqh=d=>`/advance-invoices/${d}/nav/annulment`,Wgh=async(d,u,y)=>b(Sqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),bqh=d=>`/advance-invoices/shareable/${d}`,Ygh=async(d,u)=>b(bqh(d),{...u,method:"GET"}),zqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/advance-invoices/shareable/${d}/html?${D}`:`/advance-invoices/shareable/${d}/html`},$gh=async(d,u,y)=>b(zqh(d,u),{...y,method:"GET"}),fqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/advance-invoices/shareable/${d}/pdf?${D}`:`/advance-invoices/shareable/${d}/pdf`},Qgh=async(d,u,y)=>b(fqh(d,u),{...y,method:"GET"}),Bqh=d=>`/advance-invoices/shareable/${d}/eslog`,Jgh=async(d,u)=>b(Bqh(d),{...u,method:"GET"}),Iqh=()=>"/advance-invoices",Xgh=async(d,u)=>b(Iqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Tqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/advance-invoices?${y}`:"/advance-invoices"},e0h=async(d,u)=>b(Tqh(d),{...u,method:"GET"}),Eqh=()=>"/advance-invoices/custom",t0h=async(d,u)=>b(Eqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Dqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/advance-invoices/${d}?${D}`:`/advance-invoices/${d}`},n0h=async(d,u,y)=>b(Dqh(d,u),{...y,method:"GET"}),Rqh=d=>`/advance-invoices/${d}`,s0h=async(d,u,y)=>b(Rqh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),_qh=d=>`/advance-invoices/${d}/versions`,o0h=async(d,u)=>b(_qh(d),{...u,method:"GET"}),Nqh=(d,u)=>`/advance-invoices/${d}/versions/${u}`,i0h=async(d,u,y)=>b(Nqh(d,u),{...y,method:"GET"}),Mqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/advance-invoices/render?${y}`:"/advance-invoices/render"},a0h=async(d,u,y)=>b(Mqh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),Uqh=d=>`/advance-invoices/${d}/void`,r0h=async(d,u,y)=>b(Uqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var hn={retryAdvanceInvoiceNav:z(Zgh,1),reconcileAdvanceInvoiceNav:z(qgh,1),annulAdvanceInvoiceNav:z(Wgh,2),getShareableAdvanceInvoice:z(Ygh,1),getShareableAdvanceInvoiceHtml:z($gh,2),getShareableAdvanceInvoicePdf:z(Qgh,2),getShareableAdvanceInvoiceEslog:z(Jgh,1),create:z(Xgh,1),list:ee(e0h),createCustom:z(t0h,1),get:z(n0h,2),update:z(s0h,2),getVersions:z(o0h,1),getVersion:z(i0h,2),renderAdvanceInvoicePreview:z(a0h,2),void:z(r0h,2)};var Pqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/business-units?${y}`:"/business-units"},l0h=async(d,u)=>b(Pqh(d),{...u,method:"GET"}),Cqh=()=>"/business-units",d0h=async(d,u)=>b(Cqh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/business-units/${d}?${D}`:`/business-units/${d}`},c0h=async(d,u,y)=>b(wqh(d,u),{...y,method:"GET"}),Aqh=d=>`/business-units/${d}`,u0h=async(d,u,y)=>b(Aqh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Fqh=d=>`/business-units/${d}`,p0h=async(d,u)=>b(Fqh(d),{...u,method:"DELETE"});var Sn={list:ee(l0h),create:z(d0h,1),get:z(c0h,2),update:z(u0h,2),delete:z(p0h,1)};var kqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/company-registry/search?${y}`:"/company-registry/search"},m0h=async(d,u)=>b(kqh(d),{...u,method:"GET"}),jqh=()=>"/company-registry/countries",x0h=async d=>b(jqh(),{...d,method:"GET"});var bn={searchCompanyRegistry:z(m0h,1),list:z(x0h,0)};var Hqh=d=>`/credit-notes/${d}/nav/retry`,g0h=async(d,u)=>b(Hqh(d),{...u,method:"POST"}),Lqh=d=>`/credit-notes/${d}/nav/reconcile`,y0h=async(d,u)=>b(Lqh(d),{...u,method:"POST"}),Gqh=d=>`/credit-notes/${d}/nav/annulment`,O0h=async(d,u,y)=>b(Gqh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Vqh=d=>`/credit-notes/shareable/${d}`,v0h=async(d,u)=>b(Vqh(d),{...u,method:"GET"}),Kqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/credit-notes/shareable/${d}/html?${D}`:`/credit-notes/shareable/${d}/html`},h0h=async(d,u,y)=>b(Kqh(d,u),{...y,method:"GET"}),Zqh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/credit-notes/shareable/${d}/pdf?${D}`:`/credit-notes/shareable/${d}/pdf`},S0h=async(d,u,y)=>b(Zqh(d,u),{...y,method:"GET"}),qqh=d=>`/credit-notes/shareable/${d}/eslog`,b0h=async(d,u)=>b(qqh(d),{...u,method:"GET"}),Wqh=d=>`/credit-notes/${d}/ksef/recover`,z0h=async(d,u)=>b(Wqh(d),{...u,method:"POST"}),Yqh=d=>`/credit-notes/${d}/ksef`,f0h=async(d,u)=>b(Yqh(d),{...u,method:"GET"}),$qh=d=>`/credit-notes/${d}/ksef/submit`,B0h=async(d,u)=>b($qh(d),{...u,method:"POST"}),Qqh=d=>`/credit-notes/${d}/ksef/upo`,I0h=async(d,u)=>b(Qqh(d),{...u,method:"GET"}),Jqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes?${y}`:"/credit-notes"},T0h=async(d,u,y)=>b(Jqh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),Xqh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes?${y}`:"/credit-notes"},E0h=async(d,u)=>b(Xqh(d),{...u,method:"GET"}),eWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes/custom?${y}`:"/credit-notes/custom"},D0h=async(d,u,y)=>b(eWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),tWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/credit-notes/${d}?${D}`:`/credit-notes/${d}`},R0h=async(d,u,y)=>b(tWh(d,u),{...y,method:"GET"}),nWh=d=>`/credit-notes/${d}`,_0h=async(d,u,y)=>b(nWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),sWh=d=>`/credit-notes/${d}/xrechnung`,N0h=async(d,u)=>b(sWh(d),{...u,method:"GET"}),oWh=d=>`/credit-notes/${d}/zugferd`,M0h=async(d,u)=>b(oWh(d),{...u,method:"GET"}),iWh=d=>`/credit-notes/${d}/versions`,U0h=async(d,u)=>b(iWh(d),{...u,method:"GET"}),aWh=(d,u)=>`/credit-notes/${d}/versions/${u}`,P0h=async(d,u,y)=>b(aWh(d,u),{...y,method:"GET"}),rWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/credit-notes/render?${y}`:"/credit-notes/render"},C0h=async(d,u,y)=>b(rWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),lWh=d=>`/credit-notes/${d}/fiscalize`,w0h=async(d,u)=>b(lWh(d),{...u,method:"POST"}),dWh=d=>`/credit-notes/${d}/void`,A0h=async(d,u,y)=>b(dWh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});function F0h(d){let u=z(d);function y(D,f,N){let ye=f&&typeof f=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(me=>me in f),Oe=ye?void 0:f,be=ye?{...f,...N}:N;return u(D,Oe??{},be??{})}return Object.assign(y,{__sdkOptionsIndex:2})}var zn={retryCreditNoteNav:z(g0h,1),reconcileCreditNoteNav:z(y0h,1),annulCreditNoteNav:z(O0h,2),getShareableCreditNote:z(v0h,1),getShareableCreditNoteHtml:z(h0h,2),getShareableCreditNotePdf:z(S0h,2),getShareableCreditNoteEslog:z(b0h,1),recoverCreditNoteFromKsef:z(z0h,1),getCreditNoteKsefState:z(f0h,1),submitCreditNoteToKsef:z(B0h,1),getCreditNoteKsefUpo:z(I0h,1),create:F0h(T0h),list:ee(E0h),createCustom:F0h(D0h),get:z(R0h,2),update:z(_0h,2),downloadCreditNoteXRechnung:z(N0h,1),downloadCreditNoteZugferd:z(M0h,1),getVersions:z(U0h,1),getVersion:z(P0h,2),renderCreditNotePreview:z(C0h,2),fiscalizeCreditNote:z(w0h,1),void:z(A0h,2)};var cWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/currency/exchange-rate?${y}`:"/currency/exchange-rate"},k0h=async(d,u)=>b(cWh(d),{...u,method:"GET"});var fn={getExchangeRate:z(k0h,1)};var uWh=()=>"/customers",j0h=async(d,u)=>b(uWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/customers?${y}`:"/customers"},H0h=async(d,u)=>b(pWh(d),{...u,method:"GET"}),mWh=d=>`/customers/${d}`,L0h=async(d,u)=>b(mWh(d),{...u,method:"GET"}),xWh=d=>`/customers/${d}`,G0h=async(d,u,y)=>b(xWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),gWh=d=>`/customers/${d}`,V0h=async(d,u)=>b(gWh(d),{...u,method:"DELETE"}),yWh=d=>`/customers/${d}/restore`,K0h=async(d,u)=>b(yWh(d),{...u,method:"POST"}),OWh=d=>`/customers/${d}/permanent`,Z0h=async(d,u)=>b(OWh(d),{...u,method:"DELETE"});var Bn={create:z(j0h,1),list:ee(H0h),get:z(L0h,1),update:z(G0h,2),delete:z(V0h,1),restoreCustomer:z(K0h,1),permanentDeleteCustomer:z(Z0h,1)};var vWh=d=>`/delivery-notes/shareable/${d}`,q0h=async(d,u)=>b(vWh(d),{...u,method:"GET"}),hWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/delivery-notes/shareable/${d}/html?${D}`:`/delivery-notes/shareable/${d}/html`},W0h=async(d,u,y)=>b(hWh(d,u),{...y,method:"GET"}),SWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/delivery-notes/shareable/${d}/pdf?${D}`:`/delivery-notes/shareable/${d}/pdf`},Y0h=async(d,u,y)=>b(SWh(d,u),{...y,method:"GET"}),bWh=()=>"/delivery-notes",$0h=async(d,u)=>b(bWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),zWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/delivery-notes?${y}`:"/delivery-notes"},Q0h=async(d,u)=>b(zWh(d),{...u,method:"GET"}),fWh=()=>"/delivery-notes/custom",J0h=async(d,u)=>b(fWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),BWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/delivery-notes/${d}?${D}`:`/delivery-notes/${d}`},X0h=async(d,u,y)=>b(BWh(d,u),{...y,method:"GET"}),IWh=d=>`/delivery-notes/${d}`,eyh=async(d,u,y)=>b(IWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),TWh=d=>`/delivery-notes/${d}/versions`,tyh=async(d,u)=>b(TWh(d),{...u,method:"GET"}),EWh=(d,u)=>`/delivery-notes/${d}/versions/${u}`,nyh=async(d,u,y)=>b(EWh(d,u),{...y,method:"GET"}),DWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/delivery-notes/render?${y}`:"/delivery-notes/render"},syh=async(d,u,y)=>b(DWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),RWh=d=>`/delivery-notes/${d}/void`,oyh=async(d,u,y)=>b(RWh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),_Wh=d=>`/delivery-notes/${d}/sign`,iyh=async(d,u,y)=>b(_Wh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),NWh=d=>`/delivery-notes/${d}/quantities`,ayh=async(d,u,y)=>b(NWh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var In={getShareableDeliveryNote:z(q0h,1),getShareableDeliveryNoteHtml:z(W0h,2),getShareableDeliveryNotePdf:z(Y0h,2),create:z($0h,1),list:ee(Q0h),createCustom:z(J0h,1),get:z(X0h,2),update:z(eyh,2),getVersions:z(tyh,1),getVersion:z(nyh,2),renderDeliveryNotePreview:z(syh,2),void:z(oyh,2),signDeliveryNote:z(iyh,2),setDeliveryNoteQuantities:z(ayh,2)};var MWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/next-number?${y}`:"/documents/next-number"},ryh=async(d,u)=>b(MWh(d),{...u,method:"GET"}),UWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/calculate?${y}`:"/documents/calculate"},lyh=async(d,u,y)=>b(UWh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),PWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/finalize?${D}`:`/documents/${d}/finalize`},dyh=async(d,u,y,D)=>b(PWh(d,y),{...D,method:"POST",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),CWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/fiscalize?${D}`:`/documents/${d}/fiscalize`},cyh=async(d,u,y,D)=>b(CWh(d,y),{...D,method:"POST",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(u)}),wWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/register-output?${D}`:`/documents/${d}/register-output`},uyh=async(d,u,y)=>b(wWh(d,u),{...y,method:"POST"}),AWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}?${D}`:`/documents/${d}`},pyh=async(d,u,y)=>b(AWh(d,u),{...y,method:"DELETE"}),FWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/restore?${D}`:`/documents/${d}/restore`},myh=async(d,u,y)=>b(FWh(d,u),{...y,method:"POST"}),kWh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/permanent?${D}`:`/documents/${d}/permanent`},xyh=async(d,u,y)=>b(kWh(d,u),{...y,method:"DELETE"}),jWh=d=>`/documents/${d}/send`,gyh=async(d,u,y)=>b(jWh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),HWh=d=>`/documents/${d}/share`,yyh=async(d,u)=>b(HWh(d),{...u,method:"POST"}),LWh=d=>`/documents/${d}/share`,Oyh=async(d,u)=>b(LWh(d),{...u,method:"GET"}),GWh=d=>`/documents/${d}/share`,vyh=async(d,u)=>b(GWh(d),{...u,method:"DELETE"});var Tn=z(cyh,3);function VWh(d){return !!d&&typeof d=="object"&&"type"in d}function En(d){return !!d&&typeof d=="object"&&("entity_id"in d||"account_id"in d||"request_id"in d||"signal"in d||"timeoutMs"in d||"sdkConfig"in d||Object.keys(d).length===0)}var KWh=async(d,u,y,D)=>{if(En(u))return Tn(d,void 0,void 0,u);if(VWh(u))return Tn(d,void 0,u,y);let f=En(y)?void 0:y,N=En(y)?y:D;return Tn(d,u,f,N)},Dn={getNextNumber:z(ryh,1),calculateDocumentPreview:z(lyh,2),finalizeDocument:z(dyh,3),fiscalizeDocument:KWh,registerDocumentOutput:z(uyh,2),delete:z(pyh,2),restoreDocument:z(myh,2),permanentDeleteDocument:z(xyh,2),sendDocument:z(gyh,2),shareDocument:z(yyh,1),getShareableId:z(Oyh,1),unshareDocument:z(vyh,1)};var ZWh=()=>"/e-invoicing/settings",hyh=async d=>b(ZWh(),{...d,method:"GET"}),qWh=()=>"/e-invoicing/settings",Syh=async(d,u)=>b(qWh(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WWh=()=>"/e-invoicing/enrollment/sync",byh=async d=>b(WWh(),{...d,method:"POST"}),YWh=()=>"/e-invoicing/enrollment/verification-link",zyh=async d=>b(YWh(),{...d,method:"POST"}),$Wh=()=>"/e-invoicing/enrollment/authorize",fyh=async(d,u)=>b($Wh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),QWh=()=>"/e-invoicing/enrollment/disconnect",Byh=async d=>b(QWh(),{...d,method:"POST"}),JWh=()=>"/e-invoicing/france/directory/lookup",Iyh=async(d,u)=>b(JWh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),XWh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/e-invoicing/received-documents?${y}`:"/e-invoicing/received-documents"},Tyh=async(d,u)=>b(XWh(d),{...u,method:"GET"}),e6h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/e-invoicing/received-documents/${d}/download?${D}`:`/e-invoicing/received-documents/${d}/download`},Eyh=async(d,u,y)=>b(e6h(d,u),{...y,method:"GET"}),t6h=d=>`/e-invoicing/received-documents/${d}/accept`,Dyh=async(d,u)=>b(t6h(d),{...u,method:"POST"}),n6h=d=>`/e-invoicing/received-documents/${d}/lifecycle`,Ryh=async(d,u,y)=>b(n6h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),s6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/e-invoicing/reporting-records?${y}`:"/e-invoicing/reporting-records"},_yh=async(d,u)=>b(s6h(d),{...u,method:"GET"}),o6h=d=>`/e-invoicing/reporting-records/${d}/retry`,Nyh=async(d,u)=>b(o6h(d),{...u,method:"POST"}),i6h=()=>"/e-invoicing/supplier",Myh=async(d,u)=>b(i6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),a6h=()=>"/e-invoicing/supplier",Uyh=async d=>b(a6h(),{...d,method:"GET"});var r6h=()=>"/e-invoicing/recipients/check",Pyh=async(d,u)=>b(r6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),l6h=()=>"/e-invoicing/customer-search",Cyh=async(d,u)=>b(l6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),d6h=d=>`/e-invoicing/documents/${d}/send`,wyh=async(d,u,y)=>b(d6h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),c6h=(d,u)=>`/e-invoicing/send/${d}/${u}`,Ayh=async(d,u,y,D)=>b(c6h(d,u),{...D,method:"POST",headers:{"Content-Type":"application/json",...D?.headers},body:JSON.stringify(y)}),u6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/e-invoicing/submissions?${y}`:"/e-invoicing/submissions"},Fyh=async(d,u)=>b(u6h(d),{...u,method:"GET"}),p6h=d=>`/e-invoicing/submissions/${d}`,Rn=async(d,u)=>b(p6h(d),{...u,method:"GET"}),m6h=d=>`/e-invoicing/submissions/${d}/retry`,_n=async(d,u)=>b(m6h(d),{...u,method:"POST"});var Nn={getEInvoicingSubmission:z(Rn,1),retryEInvoicingSubmission:z(_n,1),list:z(hyh,0),update:z(Syh,1),syncEInvoicingEnrollment:z(byh,0),create:z(zyh,0),createEInvoicingEnrollmentAuthorization:z(fyh,1),disconnectEInvoicingEnrollment:z(Byh,0),lookupFranceEInvoicingDirectory:z(Iyh,1),listReceivedEInvoices:z(Tyh,1),downloadReceivedEInvoice:z(Eyh,2),acceptReceivedEInvoice:z(Dyh,1),sendReceivedEInvoiceLifecycle:z(Ryh,2),listFrenchEReportingRecords:z(_yh,1),retryFrenchEReportingRecord:z(Nyh,1),registerEInvoicingSupplier:z(Myh,1),getEInvoicingSupplier:z(Uyh,0),checkEInvoicingRecipient:z(Pyh,1),searchEInvoicingCustomer:z(Cyh,1),sendEInvoicingDocument:z(wyh,2),sendEInvoice:z(Ayh,3),listEInvoicingSubmissions:z(Fyh,1),get:z(Rn,1),retryEInvoicingSubmissionById:z(_n,1)};var x6h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/eslog/${d}/validate?${D}`:`/eslog/${d}/validate`},kyh=async(d,u,y)=>b(x6h(d,u),{...y,method:"POST"}),g6h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/eslog/${d}/download?${D}`:`/eslog/${d}/download`},jyh=async(d,u,y)=>b(g6h(d,u),{...y,method:"GET"});var Mn={validate:z(kyh,2),download:z(jyh,2)};var y6h=()=>"/email/send",Hyh=async(d,u)=>b(y6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Un={sendEmail:z(Hyh,1)};var O6h=d=>`/entities/${d}/nav`,Lyh=async(d,u)=>b(O6h(d),{...u,method:"GET"}),v6h=d=>`/entities/${d}/nav`,Gyh=async(d,u,y)=>b(v6h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),h6h=d=>`/entities/${d}/nav/credentials`,Vyh=async(d,u,y)=>b(h6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),S6h=d=>`/entities/${d}/nav/credentials`,Kyh=async(d,u)=>b(S6h(d),{...u,method:"DELETE"}),b6h=d=>`/entities/${d}/nav/credentials/verify`,Zyh=async(d,u)=>b(b6h(d),{...u,method:"POST"}),z6h=d=>`/entities/${d}/ksef`,qyh=async(d,u)=>b(z6h(d),{...u,method:"GET"}),f6h=d=>`/entities/${d}/ksef`,Wyh=async(d,u,y)=>b(f6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),B6h=d=>`/entities/${d}/ksef/credentials`,Yyh=async(d,u,y)=>b(B6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),I6h=d=>`/entities/${d}/ksef/credentials`,$yh=async(d,u)=>b(I6h(d),{...u,method:"DELETE"}),T6h=()=>"/entities",Qyh=async(d,u)=>b(T6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),E6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/entities?${y}`:"/entities"},Jyh=async(d,u)=>b(E6h(d),{...u,method:"GET"}),D6h=d=>`/entities/${d}`,Xyh=async(d,u)=>b(D6h(d),{...u,method:"GET"}),R6h=d=>`/entities/${d}`,eOh=async(d,u,y)=>b(R6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),_6h=d=>`/entities/${d}/enable`,tOh=async(d,u)=>b(_6h(d),{...u,method:"POST"}),N6h=d=>`/entities/${d}/disable`,nOh=async(d,u)=>b(N6h(d),{...u,method:"POST"}),M6h=d=>`/entities/${d}/email-sender`,sOh=async(d,u)=>b(M6h(d),{...u,method:"GET"}),U6h=d=>`/entities/${d}/email-sender`,oOh=async(d,u,y)=>b(U6h(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),P6h=d=>`/entities/${d}/email-sender`,iOh=async(d,u)=>b(P6h(d),{...u,method:"DELETE"}),C6h=d=>`/entities/${d}/email-sender/recheck`,aOh=async(d,u)=>b(C6h(d),{...u,method:"POST"});var Pn={retrieveEntityNavSettings:z(Lyh,1),modifyEntityNavSettings:z(Gyh,2),storeEntityNavCredentials:z(Vyh,2),removeEntityNavCredentials:z(Kyh,1),verifyEntityNavCredentials:z(Zyh,1),getEntityKsefSetup:z(qyh,1),putEntityKsefSettings:z(Wyh,2),putEntityKsefCredential:z(Yyh,2),removeEntityKsefCredential:z($yh,1),create:z(Qyh,1),list:ee(Jyh),get:z(Xyh,1),update:z(eOh,2),enableEntity:z(tOh,1),disableEntity:z(nOh,1),getEntityEmailSender:z(sOh,1),putEntityEmailSender:z(oOh,2),deleteEntityEmailSender:z(iOh),recheckEntityEmailSender:z(aOh,1)};var w6h=()=>"/entities/api-keys",rOh=async d=>b(w6h(),{...d,method:"GET"}),A6h=()=>"/entities/api-keys",lOh=async(d,u)=>b(A6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F6h=d=>`/entities/api-keys/${d}`,dOh=async(d,u)=>b(F6h(d),{...u,method:"DELETE"}),k6h=()=>"/entities/api-keys/revoke-integration",cOh=async d=>b(k6h(),{...d,method:"POST"});var Cn={listEntityApiKeys:z(rOh,0),create:z(lOh,1),delete:z(dOh,1),revokeEntityApiKeyIntegration:z(cOh,0)};var j6h=()=>"/entities/invitations",uOh=async d=>b(j6h(),{...d,method:"GET"}),H6h=d=>`/entities/invitations/${d}`,pOh=async(d,u)=>b(H6h(d),{...u,method:"GET"}),L6h=d=>`/entities/invitations/${d}`,mOh=async(d,u)=>b(L6h(d),{...u,method:"DELETE"}),G6h=d=>`/entities/invitations/${d}/resend`,xOh=async(d,u)=>b(G6h(d),{...u,method:"POST"}),V6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invitations/preview?${y}`:"/invitations/preview"},gOh=async(d,u)=>b(V6h(d),{...u,method:"GET"}),K6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invitations/accept?${y}`:"/invitations/accept"},yOh=async(d,u,y)=>b(K6h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)});var wn={listEntityInvitations:z(uOh,0),getEntityInvitation:z(pOh,1),cancelEntityInvitation:z(mOh,1),resendEntityInvitation:z(xOh,1),preview:z(gOh,1),acceptEntityInvitation:z(yOh,2)};var Z6h=()=>"/stats/query",OOh=async(d,u)=>b(Z6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var An={queryEntityStats:z(OOh,1)};var q6h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/entities/users?${y}`:"/entities/users"},vOh=async(d,u)=>b(q6h(d),{...u,method:"GET"}),W6h=()=>"/entities/users",hOh=async(d,u)=>b(W6h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y6h=()=>"/entities/users/access",SOh=async d=>b(Y6h(),{...d,method:"GET"}),$6h=d=>`/entities/users/${d}`,bOh=async(d,u,y)=>b($6h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Q6h=d=>`/entities/users/${d}`,zOh=async(d,u)=>b(Q6h(d),{...u,method:"DELETE"}),J6h=d=>`/entities/users/${d}/token`,fOh=async(d,u,y)=>b(J6h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var Fn={list:ee(vOh),addEntityUser:z(hOh,1),getAccess:z(SOh,0),update:z(bOh,2),removeEntityUser:z(zOh,1),generateEntityUserToken:z(fOh,2)};var X6h=d=>`/estimates/shareable/${d}`,BOh=async(d,u)=>b(X6h(d),{...u,method:"GET"}),e7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/estimates/shareable/${d}/html?${D}`:`/estimates/shareable/${d}/html`},IOh=async(d,u,y)=>b(e7h(d,u),{...y,method:"GET"}),t7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/estimates/shareable/${d}/pdf?${D}`:`/estimates/shareable/${d}/pdf`},TOh=async(d,u,y)=>b(t7h(d,u),{...y,method:"GET"}),n7h=d=>`/estimates/shareable/${d}/eslog`,EOh=async(d,u)=>b(n7h(d),{...u,method:"GET"}),s7h=()=>"/estimates",DOh=async(d,u)=>b(s7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),o7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/estimates?${y}`:"/estimates"},ROh=async(d,u)=>b(o7h(d),{...u,method:"GET"}),i7h=()=>"/estimates/custom",_Oh=async(d,u)=>b(i7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),a7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/estimates/${d}?${D}`:`/estimates/${d}`},NOh=async(d,u,y)=>b(a7h(d,u),{...y,method:"GET"}),r7h=d=>`/estimates/${d}`,MOh=async(d,u,y)=>b(r7h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),l7h=d=>`/estimates/${d}/versions`,UOh=async(d,u)=>b(l7h(d),{...u,method:"GET"}),d7h=(d,u)=>`/estimates/${d}/versions/${u}`,POh=async(d,u,y)=>b(d7h(d,u),{...y,method:"GET"}),c7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/estimates/render?${y}`:"/estimates/render"},COh=async(d,u,y)=>b(c7h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)});var kn={getShareableEstimate:z(BOh,1),getShareableEstimateHtml:z(IOh,2),getShareableEstimatePdf:z(TOh,2),getShareableEstimateEslog:z(EOh,1),create:z(DOh,1),list:ee(ROh),createCustom:z(_Oh,1),get:z(NOh,2),update:z(MOh,2),getVersions:z(UOh,1),getVersion:z(POh,2),renderEstimatePreview:z(COh,2)};var u7h=()=>"/expenses",wOh=async(d,u)=>b(u7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),p7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses?${y}`:"/expenses"},AOh=async(d,u)=>b(p7h(d),{...u,method:"GET"}),m7h=()=>"/expenses/custom",FOh=async(d,u)=>b(m7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),x7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses/export?${y}`:"/expenses/export"},kOh=async(d,u)=>b(x7h(d),{...u,method:"GET"}),g7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses/report?${y}`:"/expenses/report"},jOh=async(d,u)=>b(g7h(d),{...u,method:"GET"}),y7h=()=>"/expenses/recognition/settings",HOh=async d=>b(y7h(),{...d,method:"GET"}),O7h=()=>"/expenses/recognition/settings",LOh=async(d,u)=>b(O7h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v7h=()=>"/expenses/recognition/backfill",GOh=async(d,u)=>b(v7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),h7h=()=>"/expenses/recognitions",VOh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(h7h(),{...u,method:"POST",body:y})},S7h=d=>`/expenses/recognitions/${d}`,KOh=async(d,u)=>b(S7h(d),{...u,method:"GET"}),b7h=d=>`/expenses/recognitions/${d}/retry`,ZOh=async(d,u)=>b(b7h(d),{...u,method:"POST"}),z7h=()=>"/expenses/inbound-email",qOh=async d=>b(z7h(),{...d,method:"GET"}),f7h=()=>"/expenses/inbound-email",WOh=async d=>b(f7h(),{...d,method:"POST"}),B7h=()=>"/expenses/inbound-email",YOh=async d=>b(B7h(),{...d,method:"DELETE"}),I7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/expenses/inbound-email/messages?${y}`:"/expenses/inbound-email/messages"},$Oh=async(d,u)=>b(I7h(d),{...u,method:"GET"}),T7h=()=>"/expenses/imports/shareable/preview",QOh=async(d,u)=>b(T7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),E7h=()=>"/expenses/imports/shareable",JOh=async(d,u)=>b(E7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),D7h=d=>`/expenses/${d}/recognition`,XOh=async(d,u)=>b(D7h(d),{...u,method:"GET"}),R7h=d=>`/expenses/${d}`,evh=async(d,u)=>b(R7h(d),{...u,method:"GET"}),_7h=d=>`/expenses/${d}`,tvh=async(d,u,y)=>b(_7h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),N7h=d=>`/expenses/${d}`,nvh=async(d,u)=>b(N7h(d),{...u,method:"DELETE"}),M7h=d=>`/expenses/${d}/void`,svh=async(d,u)=>b(M7h(d),{...u,method:"POST"}),U7h=d=>`/expenses/${d}/restore`,ovh=async(d,u)=>b(U7h(d),{...u,method:"POST"}),P7h=d=>`/expenses/${d}/attachments`,ivh=async(d,u,y)=>{let D=new FormData;return D.append("file",u.file),b(P7h(d),{...y,method:"POST",body:D})},C7h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/expenses/${d}/attachments?${D}`:`/expenses/${d}/attachments`},avh=async(d,u,y)=>b(C7h(d,u),{...y,method:"GET"}),w7h=(d,u)=>`/expenses/${d}/attachments/${u}`,rvh=async(d,u,y)=>b(w7h(d,u),{...y,method:"DELETE"}),A7h=d=>`/expenses/${d}/payments`,lvh=async(d,u)=>b(A7h(d),{...u,method:"GET"}),F7h=d=>`/expenses/${d}/payments`,dvh=async(d,u,y)=>b(F7h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var jn={create:z(wOh,1),list:ee(AOh),createCustom:z(FOh,1),exportExpenses:z(kOh,1),getExpenseCategoryReport:z(jOh,1),getRecognitionSettings:z(HOh,0),updateRecognitionSettings:z(LOh,1),backfillExpenseRecognition:z(GOh,1),createRecognition:z(VOh,1),getRecognition:z(KOh,1),retryRecognition:z(ZOh,1),getExpenseInboundEmail:z(qOh,0),rotateExpenseInboundEmail:z(WOh,0),disableExpenseInboundEmail:z(YOh,0),listExpenseInboundEmailMessages:z($Oh,1),previewImportFromShareableLink:z(QOh,1),importFromShareableLink:z(JOh,1),getLatestRecognition:z(XOh,1),get:z(evh,1),update:z(tvh,2),delete:z(nvh,1),void:z(svh,1),restoreExpense:z(ovh,1),uploadExpenseAttachment:z(ivh,2),getExpenseAttachments:z(avh,2),deleteExpenseAttachment:z(rvh,2),getExpensePayments:z(lvh,1),createExpensePayment:z(dvh,2)};var k7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export?${y}`:"/documents/export"},cvh=async(d,u)=>b(k7h(d),{...u,method:"GET"}),j7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export/sales-per-item?${y}`:"/documents/export/sales-per-item"},uvh=async(d,u)=>b(j7h(d),{...u,method:"GET"}),H7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export/inventory?${y}`:"/documents/export/inventory"},pvh=async(d,u)=>b(H7h(d),{...u,method:"GET"}),L7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/documents/export/revenue-by-category?${y}`:"/documents/export/revenue-by-category"},mvh=async(d,u)=>b(L7h(d),{...u,method:"GET"}),G7h=()=>"/documents/export/pdf",xvh=async(d,u)=>b(G7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),V7h=d=>`/documents/export/pdf/${d}`,gvh=async(d,u)=>b(V7h(d),{...u,method:"GET"}),K7h=d=>`/documents/export/pdf/${d}/download`,yvh=async(d,u)=>b(K7h(d),{...u,method:"GET"}),Z7h=()=>"/documents/export/eslog",Ovh=async(d,u)=>b(Z7h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),q7h=d=>`/documents/export/eslog/${d}`,vvh=async(d,u)=>b(q7h(d),{...u,method:"GET"}),W7h=d=>`/documents/export/eslog/${d}/download`,hvh=async(d,u)=>b(W7h(d),{...u,method:"GET"});var Hn={exportDocuments:z(cvh,1),exportSalesPerItem:z(uvh,1),exportInventory:z(pvh,1),exportRevenueByCategory:z(mvh,1),startPdfExport:z(xvh,1),getPdfStatus:z(gvh,1),downloadPdfExport:z(yvh,1),startEslogExport:z(Ovh,1),getEslogStatus:z(vvh,1),downloadEslogExport:z(hvh,1)};var Y7h=()=>"/files",Svh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&y.append("document_id",d.document_id),d.account_payable_id!==void 0&&y.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&y.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&y.append("expense_id",d.expense_id),b(Y7h(),{...u,method:"POST",body:y})},$7h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/files?${y}`:"/files"},bvh=async(d,u)=>b($7h(d),{...u,method:"GET"}),Q7h=d=>`/files/${d}`,zvh=async(d,u)=>b(Q7h(d),{...u,method:"GET"}),J7h=d=>`/files/${d}`,fvh=async(d,u)=>b(J7h(d),{...u,method:"DELETE"});var Ln={uploadFile:z(Svh,1),list:ee(bvh),get:z(zvh,1),delete:z(fvh,1)};var X7h=()=>"/fiscalization/fina/settings/certificate",Bvh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(X7h(),{...u,method:"POST",body:y})},e9h=()=>"/fiscalization/fina/settings/certificate",Ivh=async d=>b(e9h(),{...d,method:"GET"}),t9h=()=>"/fiscalization/fina/settings/certificate",Tvh=async d=>b(t9h(),{...d,method:"DELETE"});var Gn={uploadFinaCertificate:z(Bvh,1),getFinaCertificate:z(Ivh,0),delete:z(Tvh,0)};var n9h=d=>`/fiscalization/fina/premises/${d}/devices`,Evh=async(d,u)=>b(n9h(d),{...u,method:"GET"}),s9h=d=>`/fiscalization/fina/premises/${d}/devices`,Dvh=async(d,u,y)=>b(s9h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),o9h=d=>`/fiscalization/fina/devices/${d}`,Rvh=async(d,u)=>b(o9h(d),{...u,method:"GET"}),i9h=d=>`/fiscalization/fina/devices/${d}`,_vh=async(d,u,y)=>b(i9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),a9h=d=>`/fiscalization/fina/devices/${d}`,Nvh=async(d,u)=>b(a9h(d),{...u,method:"DELETE"});var Vn={listFinaDevices:z(Evh,1),registerFinaDevice:z(Dvh,2),getFinaDevice:z(Rvh,1),update:z(_vh,2),delete:z(Nvh,1)};var r9h=()=>"/fiscalization/fina/premises",Mvh=async d=>b(r9h(),{...d,method:"GET"}),l9h=()=>"/fiscalization/fina/premises",Uvh=async(d,u)=>b(l9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),d9h=d=>`/fiscalization/fina/premises/${d}`,Pvh=async(d,u)=>b(d9h(d),{...u,method:"GET"}),c9h=d=>`/fiscalization/fina/premises/${d}`,Cvh=async(d,u,y)=>b(c9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),u9h=d=>`/fiscalization/fina/premises/${d}`,wvh=async(d,u)=>b(u9h(d),{...u,method:"DELETE"});var Kn={listFinaPremises:z(Mvh,0),create:z(Uvh,1),getFinaPremise:z(Pvh,1),update:z(Cvh,2),delete:z(wvh,1)};var p9h=()=>"/fiscalization/fina/settings",Avh=async d=>b(p9h(),{...d,method:"GET"}),m9h=()=>"/fiscalization/fina/settings",Fvh=async(d,u)=>b(m9h(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zn={list:z(Avh,0),update:z(Fvh,1)};var x9h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/financial-categories?${y}`:"/financial-categories"},kvh=async(d,u)=>b(x9h(d),{...u,method:"GET"}),g9h=()=>"/financial-categories",jvh=async(d,u)=>b(g9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y9h=d=>`/financial-categories/${d}`,Hvh=async(d,u,y)=>b(y9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),O9h=d=>`/financial-categories/${d}`,Lvh=async(d,u)=>b(O9h(d),{...u,method:"DELETE"}),v9h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/financial-categories/revenue-summary?${y}`:"/financial-categories/revenue-summary"},Gvh=async(d,u)=>b(v9h(d),{...u,method:"GET"}),h9h=()=>"/financial-categories/document-items/batch",Vvh=async(d,u)=>b(h9h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),S9h=d=>`/financial-categories/document-items/${d}`,Kvh=async(d,u,y)=>b(S9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var qn={list:ee(kvh),create:z(jvh,1),update:z(Hvh,2),delete:z(Lvh,1),getRevenueByFinancialCategory:z(Gvh,1),updateDocumentItemFinancialCategories:z(Vvh,1),updateDocumentItemFinancialCategory:z(Kvh,2)};var b9h=()=>"/fiscalization/furs/settings/certificate",Zvh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(b9h(),{...u,method:"POST",body:y})},z9h=()=>"/fiscalization/furs/settings/certificate",qvh=async d=>b(z9h(),{...d,method:"GET"}),f9h=()=>"/fiscalization/furs/settings/certificate",Wvh=async d=>b(f9h(),{...d,method:"DELETE"});var Wn={uploadFursCertificate:z(Zvh,1),getFursCertificate:z(qvh,0),delete:z(Wvh,0)};var B9h=d=>`/fiscalization/furs/premises/${d}/devices`,Yvh=async(d,u)=>b(B9h(d),{...u,method:"GET"}),I9h=d=>`/fiscalization/furs/premises/${d}/devices`,$vh=async(d,u,y)=>b(I9h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),T9h=d=>`/fiscalization/furs/devices/${d}`,Qvh=async(d,u)=>b(T9h(d),{...u,method:"GET"}),E9h=d=>`/fiscalization/furs/devices/${d}`,Jvh=async(d,u,y)=>b(E9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var Yn={listFursElectronicDevices:z(Yvh,1),registerFursElectronicDevice:z($vh,2),getFursElectronicDevice:z(Qvh,1),update:z(Jvh,2)};var D9h=()=>"/fiscalization/furs/internal-act/report.pdf",Xvh=async d=>b(D9h(),{...d,method:"GET"}),R9h=()=>"/fiscalization/furs/internal-act/report.docx",ehh=async d=>b(R9h(),{...d,method:"GET"});var $n={generateFursInternalActPdf:z(Xvh,0),generateFursInternalActDocx:z(ehh,0)};var _9h=()=>"/fiscalization/furs/premises",thh=async d=>b(_9h(),{...d,method:"GET"}),N9h=d=>`/fiscalization/furs/premises/${d}`,nhh=async(d,u)=>b(N9h(d),{...u,method:"GET"}),M9h=d=>`/fiscalization/furs/premises/${d}`,shh=async(d,u,y)=>b(M9h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),U9h=()=>"/fiscalization/furs/premises/real-estate",ohh=async(d,u)=>b(U9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),P9h=()=>"/fiscalization/furs/premises/movable",ihh=async(d,u)=>b(P9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),C9h=d=>`/fiscalization/furs/premises/${d}/close`,ahh=async(d,u)=>b(C9h(d),{...u,method:"POST"});var Qn={listFursBusinessPremises:z(thh,0),getFursBusinessPremise:z(nhh,1),update:z(shh,2),registerFursRealEstatePremise:z(ohh,1),registerFursMovablePremise:z(ihh,1),closeFursBusinessPremise:z(ahh,1)};var w9h=()=>"/fiscalization/furs/settings",rhh=async d=>b(w9h(),{...d,method:"GET"}),A9h=()=>"/fiscalization/furs/settings",lhh=async(d,u)=>b(A9h(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Jn={list:z(rhh,0),update:z(lhh,1)};var F9h=()=>"/health/live",dhh=async d=>b(F9h(),{...d,method:"GET"}),k9h=()=>"/health/ready",chh=async d=>b(k9h(),{...d,method:"GET"}),j9h=()=>"/health",uhh=async d=>b(j9h(),{...d,method:"GET"});var Xn={livenessCheck:z(dhh,0),readinessCheck:z(chh,0),healthCheck:z(uhh,0)};var H9h=d=>`/invoices/${d}/nav/retry`,phh=async(d,u)=>b(H9h(d),{...u,method:"POST"}),L9h=d=>`/invoices/${d}/nav/reconcile`,mhh=async(d,u)=>b(L9h(d),{...u,method:"POST"}),G9h=d=>`/invoices/${d}/nav/annulment`,xhh=async(d,u,y)=>b(G9h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),V9h=d=>`/invoices/shareable/${d}`,ghh=async(d,u)=>b(V9h(d),{...u,method:"GET"}),K9h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/invoices/shareable/${d}/html?${D}`:`/invoices/shareable/${d}/html`},yhh=async(d,u,y)=>b(K9h(d,u),{...y,method:"GET"}),Z9h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/invoices/shareable/${d}/pdf?${D}`:`/invoices/shareable/${d}/pdf`},Ohh=async(d,u,y)=>b(Z9h(d,u),{...y,method:"GET"}),q9h=d=>`/invoices/shareable/${d}/eslog`,vhh=async(d,u)=>b(q9h(d),{...u,method:"GET"}),W9h=d=>`/invoices/${d}/ksef/recover`,hhh=async(d,u)=>b(W9h(d),{...u,method:"POST"}),Y9h=d=>`/invoices/${d}/ksef`,Shh=async(d,u)=>b(Y9h(d),{...u,method:"GET"}),$9h=d=>`/invoices/${d}/ksef/submit`,bhh=async(d,u)=>b($9h(d),{...u,method:"POST"}),Q9h=d=>`/invoices/${d}/ksef/upo`,zhh=async(d,u)=>b(Q9h(d),{...u,method:"GET"}),J9h=()=>"/invoices",fhh=async(d,u)=>b(J9h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X9h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invoices?${y}`:"/invoices"},Bhh=async(d,u)=>b(X9h(d),{...u,method:"GET"}),e8h=()=>"/invoices/custom",Ihh=async(d,u)=>b(e8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),t8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/invoices/${d}?${D}`:`/invoices/${d}`},Thh=async(d,u,y)=>b(t8h(d,u),{...y,method:"GET"}),n8h=d=>`/invoices/${d}`,Ehh=async(d,u,y)=>b(n8h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),s8h=d=>`/invoices/${d}/credit-options`,Dhh=async(d,u)=>b(s8h(d),{...u,method:"GET"}),o8h=d=>`/invoices/${d}/xrechnung`,Rhh=async(d,u)=>b(o8h(d),{...u,method:"GET"}),i8h=d=>`/invoices/${d}/zugferd`,_hh=async(d,u)=>b(i8h(d),{...u,method:"GET"}),a8h=d=>`/invoices/${d}/versions`,Nhh=async(d,u)=>b(a8h(d),{...u,method:"GET"}),r8h=(d,u)=>`/invoices/${d}/versions/${u}`,Mhh=async(d,u,y)=>b(r8h(d,u),{...y,method:"GET"}),l8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/invoices/render?${y}`:"/invoices/render"},Uhh=async(d,u,y)=>b(l8h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),d8h=d=>`/invoices/${d}/void`,Phh=async(d,u,y)=>b(d8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),c8h=d=>`/invoices/${d}/fiscalize`,Chh=async(d,u)=>b(c8h(d),{...u,method:"POST"}),u8h=d=>`/invoices/${d}/change-buyer-oib`,whh=async(d,u,y)=>b(u8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),p8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/html?${D}`:`/documents/${d}/html`},Ahh=async(d,u,y)=>b(p8h(d,u),{...y,method:"GET"}),m8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/documents/${d}/pdf?${D}`:`/documents/${d}/pdf`},Fhh=async(d,u,y)=>b(m8h(d,u),{...y,method:"GET"});function es(d,u){let y=URL.createObjectURL(d),D=document.createElement("a");D.href=y,D.download=u,document.body.appendChild(D),D.click(),document.body.removeChild(D),URL.revokeObjectURL(y);}var khh=z(Fhh,2),x8h=Object.assign(async(d,u,y,D)=>{let f=await khh(d,y,D);es(f,u);},{__sdkOptionsIndex:3}),ts={retryInvoiceNav:z(phh,1),reconcileInvoiceNav:z(mhh,1),annulInvoiceNav:z(xhh,2),getShareableInvoice:z(ghh,1),getShareableInvoiceHtml:z(yhh,2),getShareableInvoicePdf:z(Ohh,2),getShareableInvoiceEslog:z(vhh,1),recoverInvoiceFromKsef:z(hhh,1),getInvoiceKsefState:z(Shh,1),submitInvoiceToKsef:z(bhh,1),getInvoiceKsefUpo:z(zhh,1),create:z(fhh,1),list:ee(Bhh),createCustom:z(Ihh,1),get:z(Thh,2),update:z(Ehh,2),getCreditOptions:z(Dhh,1),downloadInvoiceXRechnung:z(Rhh,1),downloadInvoiceZugferd:z(_hh,1),getVersions:z(Nhh,1),getVersion:z(Mhh,2),renderInvoicePreview:z(Uhh,2),void:z(Phh,2),fiscalizeInvoice:z(Chh,1),changeInvoiceBuyerOib:z(whh,2),renderHtml:z(Ahh,2),renderPdf:khh,downloadPdf:x8h};var g8h=()=>"/items",jhh=async(d,u)=>b(g8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/items?${y}`:"/items"},Hhh=async(d,u)=>b(y8h(d),{...u,method:"GET"}),O8h=()=>"/items/categories",Lhh=async d=>b(O8h(),{...d,method:"GET"}),v8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/items/import/template?${y}`:"/items/import/template"},Ghh=async(d,u)=>b(v8h(d),{...u,method:"GET"}),h8h=()=>"/items/import/preview",Vhh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(h8h(),{...u,method:"POST",body:y})},S8h=()=>"/items/import",Khh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(S8h(),{...u,method:"POST",body:y})},b8h=d=>`/items/${d}`,Zhh=async(d,u,y)=>b(b8h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),z8h=d=>`/items/${d}`,qhh=async(d,u)=>b(z8h(d),{...u,method:"DELETE"}),f8h=d=>`/items/${d}/restore`,Whh=async(d,u)=>b(f8h(d),{...u,method:"POST"}),B8h=d=>`/items/${d}/permanent`,Yhh=async(d,u)=>b(B8h(d),{...u,method:"DELETE"}),I8h=d=>`/items/${d}/inventory`,$hh=async(d,u)=>b(I8h(d),{...u,method:"GET"}),T8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/items/${d}/inventory/movements?${D}`:`/items/${d}/inventory/movements`},Qhh=async(d,u,y)=>b(T8h(d,u),{...y,method:"GET"}),E8h=d=>`/items/${d}/inventory/movements`,Jhh=async(d,u,y)=>b(E8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),D8h=(d,u)=>`/items/${d}/inventory/movements/${u}`,Xhh=async(d,u,y)=>b(D8h(d,u),{...y,method:"DELETE"});var ns={create:z(jhh,1),list:ee(Hhh),categories:z(Lhh,0),getItemsImportTemplate:z(Ghh,1),preview:z(Vhh,1),importItems:z(Khh,1),update:z(Zhh,2),delete:z(qhh,1),restoreItem:z(Whh,1),permanentDeleteItem:z(Yhh,1),getItemInventory:z($hh,1),getItemInventoryMovements:z(Qhh,2),createItemInventoryMovement:z(Jhh,2),deleteItemInventoryMovement:z(Xhh,2)};var R8h=()=>"/legacy-migration/auth",eSh=async(d,u)=>b(R8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_8h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/legacy-migration/organizations/${d}?${D}`:`/legacy-migration/organizations/${d}`},tSh=async(d,u,y)=>b(_8h(d,u),{...y,method:"GET"}),N8h=()=>"/legacy-migration/jobs",nSh=async(d,u)=>b(N8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),M8h=()=>"/legacy-migration/jobs",sSh=async d=>b(M8h(),{...d,method:"GET"}),U8h=d=>`/legacy-migration/jobs/${d}`,oSh=async(d,u)=>b(U8h(d),{...u,method:"GET"});var ss={legacyMigrationAuth:z(eSh,1),getLegacyMigrationOrganization:z(tSh,2),create:z(nSh,1),listMigrationJobs:z(sSh,0),getMigrationJob:z(oSh,1)};var P8h=()=>"/locale/detect",iSh=async d=>b(P8h(),{...d,method:"GET"});var os={detectLocale:z(iSh,0)};var C8h=()=>"/order-integrations/shopify/authorize",aSh=async(d,u)=>b(C8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),w8h=()=>"/order-integrations/woocommerce/authorize",rSh=async(d,u)=>b(w8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),A8h=()=>"/order-integrations/magento/authorize",lSh=async(d,u)=>b(A8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F8h=d=>`/order-integrations/magento/authorizations/${d}`,dSh=async(d,u)=>b(F8h(d),{...u,method:"GET"}),k8h=()=>"/order-integrations/shopify/resume-install",cSh=async(d,u)=>b(k8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),j8h=d=>`/order-integrations/${d}/promote-shopify-billing`,uSh=async(d,u)=>b(j8h(d),{...u,method:"POST"}),H8h=d=>`/order-integrations/${d}/sync-shopify`,pSh=async(d,u,y)=>b(H8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),L8h=d=>`/order-integrations/${d}/sync`,mSh=async(d,u,y)=>b(L8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),G8h=()=>"/order-integrations/custom/connect",xSh=async(d,u)=>b(G8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),V8h=d=>`/order-integrations/${d}/custom/rotate-secret`,gSh=async(d,u)=>b(V8h(d),{...u,method:"POST"}),K8h=d=>`/order-integrations/${d}/orders`,ySh=async(d,u,y)=>b(K8h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),Z8h=()=>"/order-integrations",OSh=async(d,u)=>b(Z8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),q8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/order-integrations?${y}`:"/order-integrations"},vSh=async(d,u)=>b(q8h(d),{...u,method:"GET"}),W8h=d=>`/order-integrations/${d}`,hSh=async(d,u)=>b(W8h(d),{...u,method:"GET"}),Y8h=d=>`/order-integrations/${d}`,SSh=async(d,u,y)=>b(Y8h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),$8h=d=>`/order-integrations/${d}`,bSh=async(d,u)=>b($8h(d),{...u,method:"DELETE"});var is={authorizeShopify:z(aSh,1),authorizeWooCommerce:z(rSh,1),authorizeMagento:z(lSh,1),getMagentoAuthorization:z(dSh,1),resumeShopifyInstall:z(cSh,1),promoteShopifyBilling:z(uSh,1),syncShopifyOrders:z(pSh,2),syncOrderIntegration:z(mSh,2),connectCustomStore:z(xSh,1),rotateCustomStoreSecret:z(gSh,1),pushCustomStoreOrder:z(ySh,2),create:z(OSh,1),list:ee(vSh),get:z(hSh,1),update:z(SSh,2),delete:z(bSh,1)};var Q8h=()=>"/orders",zSh=async(d,u)=>b(Q8h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),J8h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/orders?${y}`:"/orders"},fSh=async(d,u)=>b(J8h(d),{...u,method:"GET"}),X8h=d=>`/orders/${d}`,BSh=async(d,u)=>b(X8h(d),{...u,method:"GET"}),eYh=d=>`/orders/${d}`,ISh=async(d,u,y)=>b(eYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),tYh=d=>`/orders/${d}`,TSh=async(d,u)=>b(tYh(d),{...u,method:"DELETE"}),nYh=d=>`/orders/${d}/process`,ESh=async(d,u)=>b(nYh(d),{...u,method:"POST"}),sYh=d=>`/orders/${d}/cancel`,DSh=async(d,u)=>b(sYh(d),{...u,method:"POST"}),oYh=d=>`/orders/${d}/reissue`,RSh=async(d,u)=>b(oYh(d),{...u,method:"POST"});var as={create:z(zSh,1),list:ee(fSh),get:z(BSh,1),update:z(ISh,2),delete:z(TSh,1),processOrder:z(ESh,1),cancelOrder:z(DSh,1),reissueOrder:z(RSh,1)};var iYh=()=>"/payment-reminders/send",_Sh=async(d,u)=>b(iYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),aYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payment-reminders?${y}`:"/payment-reminders"},NSh=async(d,u)=>b(aYh(d),{...u,method:"GET"});var rs={sendPaymentReminder:z(_Sh,1),list:ee(NSh)};var rYh=()=>"/payments",MSh=async(d,u)=>b(rYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/payments?${y}`:"/payments"},USh=async(d,u)=>b(lYh(d),{...u,method:"GET"}),dYh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/payments/${d}?${D}`:`/payments/${d}`},PSh=async(d,u,y)=>b(dYh(d,u),{...y,method:"GET"}),cYh=d=>`/payments/${d}`,CSh=async(d,u,y)=>b(cYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),uYh=d=>`/payments/${d}`,wSh=async(d,u)=>b(uYh(d),{...u,method:"DELETE"}),pYh=d=>`/payments/${d}/restore`,ASh=async(d,u)=>b(pYh(d),{...u,method:"POST"}),mYh=d=>`/payments/${d}/permanent`,FSh=async(d,u)=>b(mYh(d),{...u,method:"DELETE"}),xYh=()=>"/bank-imports",kSh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&y.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&y.append("column_mapping",d.column_mapping),d.ledger_account_code!==void 0&&d.ledger_account_code!==null&&y.append("ledger_account_code",d.ledger_account_code),d.account_iban!==void 0&&d.account_iban!==null&&y.append("account_iban",d.account_iban),b(xYh(),{...u,method:"POST",body:y})},gYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/bank-imports?${y}`:"/bank-imports"},jSh=async(d,u)=>b(gYh(d),{...u,method:"GET"}),yYh=d=>`/bank-imports/${d}`,HSh=async(d,u)=>b(yYh(d),{...u,method:"GET"}),OYh=d=>`/bank-imports/${d}/summary`,LSh=async(d,u)=>b(OYh(d),{...u,method:"GET"}),vYh=d=>`/bank-imports/${d}/match`,GSh=async(d,u)=>b(vYh(d),{...u,method:"POST"}),hYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/bank-transactions?${y}`:"/bank-transactions"},VSh=async(d,u)=>b(hYh(d),{...u,method:"GET"}),SYh=d=>`/bank-transactions/${d}`,KSh=async(d,u)=>b(SYh(d),{...u,method:"GET"}),bYh=d=>`/bank-transactions/${d}/link`,ZSh=async(d,u,y)=>b(bYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),zYh=d=>`/bank-transactions/${d}/confirm-fee`,qSh=async(d,u,y)=>b(zYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),fYh=d=>`/bank-transactions/${d}/categorize`,WSh=async(d,u,y)=>b(fYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),BYh=d=>`/bank-transactions/${d}/ignore`,YSh=async(d,u)=>b(BYh(d),{...u,method:"POST"}),IYh=d=>`/bank-transactions/${d}/unlink`,$Sh=async(d,u)=>b(IYh(d),{...u,method:"POST"});var ls={create:z(MSh,1),list:ee(USh),get:z(PSh,2),update:z(CSh,2),delete:z(wSh,1),restorePayment:z(ASh,1),permanentDeletePayment:z(FSh,1),importBankStatement:z(kSh,1),listBankImports:z(jSh,1),getBankImport:z(HSh,1),getBankImportSummary:z(LSh,1),rematchBankImport:z(GSh,1),listBankTransactions:z(VSh,1),getBankTransaction:z(KSh,1),linkBankTransaction:z(ZSh,2),confirmBankTransactionFee:z(qSh,2),categorizeBankTransaction:z(WSh,2),ignoreBankTransaction:z(YSh,1),unlinkBankTransaction:z($Sh,1)};var TYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/tables?${y}`:"/pos/tables"},QSh=async(d,u)=>b(TYh(d),{...u,method:"GET"}),EYh=()=>"/pos/tables",JSh=async(d,u)=>b(EYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),DYh=d=>`/pos/tables/${d}`,XSh=async(d,u,y)=>b(DYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),RYh=d=>`/pos/tables/${d}`,ebh=async(d,u)=>b(RYh(d),{...u,method:"DELETE"}),_Yh=d=>`/pos/tabs/${d}/items`,tbh=async(d,u,y)=>b(_Yh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),NYh=d=>`/pos/tabs/${d}/claim`,nbh=async(d,u,y)=>b(NYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),MYh=d=>`/pos/tabs/${d}/release`,sbh=async(d,u,y)=>b(MYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),UYh=d=>`/pos/tabs/${d}/close`,obh=async(d,u,y)=>b(UYh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),PYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/tabs?${y}`:"/pos/tabs"},ibh=async(d,u)=>b(PYh(d),{...u,method:"GET"}),CYh=()=>"/pos/tabs",abh=async(d,u)=>b(CYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wYh=d=>`/pos/tabs/${d}`,rbh=async(d,u)=>b(wYh(d),{...u,method:"GET"}),AYh=d=>`/pos/tabs/${d}`,lbh=async(d,u,y)=>b(AYh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),FYh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/pos/tabs/${d}?${D}`:`/pos/tabs/${d}`},dbh=async(d,u,y)=>b(FYh(d,u),{...y,method:"DELETE"}),kYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/daily/export?${y}`:"/pos/reports/daily/export"},cbh=async(d,u)=>b(kYh(d),{...u,method:"GET"}),jYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/monthly/export?${y}`:"/pos/reports/monthly/export"},ubh=async(d,u)=>b(jYh(d),{...u,method:"GET"}),HYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/daily?${y}`:"/pos/reports/daily"},pbh=async(d,u)=>b(HYh(d),{...u,method:"GET"}),LYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/pos/reports/monthly?${y}`:"/pos/reports/monthly"},mbh=async(d,u)=>b(LYh(d),{...u,method:"GET"}),GYh=()=>"/pos/operators",xbh=async d=>b(GYh(),{...d,method:"GET"}),VYh=()=>"/pos/operators/enrol",gbh=async(d,u)=>b(VYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KYh=()=>"/pos/operators/switch",ybh=async(d,u)=>b(KYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),ZYh=d=>`/pos/operators/${d}/pin`,Obh=async(d,u,y)=>b(ZYh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),qYh=d=>`/pos/operators/${d}/pin`,vbh=async(d,u)=>b(qYh(d),{...u,method:"DELETE"});var WYh=z(dbh,2),ds={listTables:ee(QSh),createTable:z(JSh,1),updateTable:z(XSh,2),deleteTable:z(ebh,1),appendTabItems:z(tbh,2),claimTab:z(nbh,2),releaseTab:z(sbh,2),closeTab:z(obh,2),listTabs:ee(ibh),createTab:z(abh,1),getTab:z(rbh,1),updateTab:z(lbh,2),cancelTab:Object.assign((...d)=>WYh(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:z(cbh,1),exportPosMonthlyReport:z(ubh,1),dailyReport:z(pbh,1),getPosMonthlyReport:z(mbh,1),listOperators:z(xbh,0),enrolPosOperator:z(gbh,1),switchOperator:z(ybh,1),setOperatorPin:z(Obh,2),clearOperatorPin:z(vbh,1)};var YYh=()=>"/fiscalization/pt/atcud-series",hbh=async(d,u)=>b(YYh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$Yh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/fiscalization/pt/atcud-series?${y}`:"/fiscalization/pt/atcud-series"},Sbh=async(d,u)=>b($Yh(d),{...u,method:"GET"}),QYh=d=>`/fiscalization/pt/atcud-series/${d}`,bbh=async(d,u)=>b(QYh(d),{...u,method:"GET"}),JYh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/fiscalization/pt/atcud-series/active?${y}`:"/fiscalization/pt/atcud-series/active"},zbh=async(d,u)=>b(JYh(d),{...u,method:"POST"}),XYh=d=>`/fiscalization/pt/atcud-series/${d}/retire`,fbh=async(d,u)=>b(XYh(d),{...u,method:"POST"});var cs={create:z(hbh,1),list:ee(Sbh),get:z(bbh,1),getActive:z(zbh,1),retirePtAtcudSeries:z(fbh,1)};var e$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/fiscalization/pt/saft/report?${y}`:"/fiscalization/pt/saft/report"},Bbh=async(d,u)=>b(e$h(d),{...u,method:"GET"});var us={generateReport:z(Bbh,1)};var t$h=d=>`/purchase-orders/shareable/${d}`,Ibh=async(d,u)=>b(t$h(d),{...u,method:"GET"}),n$h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/purchase-orders/shareable/${d}/html?${D}`:`/purchase-orders/shareable/${d}/html`},Tbh=async(d,u,y)=>b(n$h(d,u),{...y,method:"GET"}),s$h=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/purchase-orders/shareable/${d}/pdf?${D}`:`/purchase-orders/shareable/${d}/pdf`},Ebh=async(d,u,y)=>b(s$h(d,u),{...y,method:"GET"}),o$h=()=>"/purchase-orders",Dbh=async(d,u)=>b(o$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),i$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/purchase-orders?${y}`:"/purchase-orders"},Rbh=async(d,u)=>b(i$h(d),{...u,method:"GET"}),a$h=d=>`/purchase-orders/${d}`,_bh=async(d,u)=>b(a$h(d),{...u,method:"GET"}),r$h=d=>`/purchase-orders/${d}`,Nbh=async(d,u,y)=>b(r$h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),l$h=d=>`/purchase-orders/${d}/versions`,Mbh=async(d,u)=>b(l$h(d),{...u,method:"GET"}),d$h=(d,u)=>`/purchase-orders/${d}/versions/${u}`,Ubh=async(d,u,y)=>b(d$h(d,u),{...y,method:"GET"}),c$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/purchase-orders/render?${y}`:"/purchase-orders/render"},Pbh=async(d,u,y)=>b(c$h(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),u$h=d=>`/purchase-orders/${d}/void`,Cbh=async(d,u,y)=>b(u$h(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var ps={getShareablePurchaseOrder:z(Ibh,1),getShareablePurchaseOrderHtml:z(Tbh,2),getShareablePurchaseOrderPdf:z(Ebh,2),create:z(Dbh,1),list:ee(Rbh),get:z(_bh,1),update:z(Nbh,2),getVersions:z(Mbh,1),getVersion:z(Ubh,2),renderPurchaseOrderPreview:z(Pbh,2),void:z(Cbh,2)};var p$h=()=>"/recurring-invoices",wbh=async(d,u)=>b(p$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),m$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/recurring-invoices?${y}`:"/recurring-invoices"},Abh=async(d,u)=>b(m$h(d),{...u,method:"GET"}),x$h=d=>`/recurring-invoices/${d}`,Fbh=async(d,u)=>b(x$h(d),{...u,method:"GET"}),g$h=d=>`/recurring-invoices/${d}`,kbh=async(d,u,y)=>b(g$h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),y$h=d=>`/recurring-invoices/${d}`,jbh=async(d,u)=>b(y$h(d),{...u,method:"DELETE"}),O$h=d=>`/recurring-invoices/${d}/restore`,Hbh=async(d,u)=>b(O$h(d),{...u,method:"POST"}),v$h=d=>`/recurring-invoices/${d}/permanent`,Lbh=async(d,u)=>b(v$h(d),{...u,method:"DELETE"}),h$h=d=>`/recurring-invoices/${d}/pause`,Gbh=async(d,u)=>b(h$h(d),{...u,method:"POST"}),S$h=d=>`/recurring-invoices/${d}/resume`,Vbh=async(d,u)=>b(S$h(d),{...u,method:"POST"}),b$h=d=>`/recurring-invoices/${d}/trigger`,Kbh=async(d,u)=>b(b$h(d),{...u,method:"POST"});var ms={create:z(wbh,1),list:ee(Abh),get:z(Fbh,1),update:z(kbh,2),delete:z(jbh,1),restoreRecurringInvoice:z(Hbh,1),permanentDeleteRecurringInvoice:z(Lbh,1),pauseRecurringInvoice:z(Gbh,1),resumeRecurringInvoice:z(Vbh,1),triggerRecurringInvoice:z(Kbh,1)};var z$h=()=>"/revenue-recognition/settings",Zbh=async d=>b(z$h(),{...d,method:"GET"}),f$h=()=>"/revenue-recognition/settings",qbh=async(d,u)=>b(f$h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),B$h=()=>"/revenue-recognition/backfill",Wbh=async(d,u)=>b(B$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/revenue-recognition/report?${y}`:"/revenue-recognition/report"},Ybh=async(d,u)=>b(I$h(d),{...u,method:"GET"}),T$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/revenue-recognition/details?${y}`:"/revenue-recognition/details"},$bh=async(d,u)=>b(T$h(d),{...u,method:"GET"}),E$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/revenue-recognition/lines?${y}`:"/revenue-recognition/lines"},Qbh=async(d,u)=>b(E$h(d),{...u,method:"GET"}),D$h=d=>`/revenue-recognition/documents/${d}`,Jbh=async(d,u)=>b(D$h(d),{...u,method:"GET"});var xs={getSettings:z(Zbh,0),updateSettings:z(qbh,1),backfill:z(Wbh,1),getReport:z(Ybh,1),getDetails:z($bh,1),listLines:z(Qbh,1),getDocumentSchedule:z(Jbh,1)};var R$h=()=>"/stripe-app/marketplace-authorize",Xbh=async(d,u)=>b(R$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_$h=()=>"/stripe-app/connect",ezh=async(d,u)=>b(_$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),N$h=()=>"/stripe-app/entity-connection",tzh=async d=>b(N$h(),{...d,method:"GET"}),M$h=()=>"/stripe-app/entity-connection",nzh=async d=>b(M$h(),{...d,method:"DELETE"}),U$h=()=>"/stripe-app/entity-settings",szh=async d=>b(U$h(),{...d,method:"GET"}),P$h=()=>"/stripe-app/entity-settings",ozh=async(d,u)=>b(P$h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var gs={stripeAppMarketplaceAuthorize:z(Xbh,1),stripeAppConnect:z(ezh,1),stripeAppEntityGetConnection:z(tzh,0),stripeAppEntityDisconnect:z(nzh,0),stripeAppEntityGetSettings:z(szh,0),stripeAppEntityUpdateSettings:z(ozh,1)};var C$h=()=>"/subscriptions",izh=async d=>b(C$h(),{...d,method:"GET"}),w$h=()=>"/subscriptions/spending-limit",azh=async(d,u)=>b(w$h(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),A$h=()=>"/subscriptions/check-entity-limit",rzh=async d=>b(A$h(),{...d,method:"GET"});var ys={getCurrent:z(izh,0),update:z(azh,1),checkEntityLimit:z(rzh,0)};var F$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-rate-estimates/us?${y}`:"/tax-rate-estimates/us"},lzh=async(d,u)=>b(F$h(d),{...u,method:"GET"});var Os={listUsTaxRateEstimates:z(lzh,1)};var k$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/liability?${y}`:"/tax-reports/liability"},dzh=async(d,u)=>b(k$h(d),{...u,method:"GET"}),j$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/payments?${y}`:"/tax-reports/payments"},czh=async(d,u)=>b(j$h(d),{...u,method:"GET"}),H$h=()=>"/tax-reports/payments",uzh=async(d,u)=>b(H$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L$h=d=>`/tax-reports/payments/${d}`,pzh=async(d,u,y)=>b(L$h(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),G$h=d=>`/tax-reports/payments/${d}`,mzh=async(d,u)=>b(G$h(d),{...u,method:"DELETE"}),V$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/eu/oss?${y}`:"/tax-reports/eu/oss"},xzh=async(d,u)=>b(V$h(d),{...u,method:"GET"}),K$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/kir?${y}`:"/tax-reports/kir"},gzh=async(d,u)=>b(K$h(d),{...u,method:"POST"}),Z$h=()=>"/tax-reports/si/profile",yzh=async d=>b(Z$h(),{...d,method:"GET"}),q$h=()=>"/tax-reports/si/profile",Ozh=async(d,u)=>b(q$h(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),W$h=()=>"/tax-reports/si/yearly/normirani/review",vzh=async(d,u)=>b(W$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y$h=()=>"/tax-reports/si/yearly/normirani/export",hzh=async(d,u)=>b(Y$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$$h=()=>"/tax-reports/si/accounting/vod/export",Szh=async(d,u)=>b($$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Q$h=()=>"/tax-reports/si/accounting/minimax/export",bzh=async(d,u)=>b(Q$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),J$h=()=>"/tax-reports/si/accounting/vasco/export",zzh=async(d,u)=>b(J$h(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X$h=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/tax-reports/accounting/quickbooks/export?${y}`:"/tax-reports/accounting/quickbooks/export"},fzh=async(d,u)=>b(X$h(d),{...u,method:"GET"});var vs={getTaxLiabilityReport:z(dzh,1),list:ee(czh),create:z(uzh,1),update:z(pzh,2),delete:z(mzh,1),getEuOssReport:z(xzh,1),generateKirExport:z(gzh,1),getSloveniaTaxProfile:z(yzh,0),updateSloveniaTaxProfile:z(Ozh,1),reviewSloveniaYearlyNormiraniReport:z(vzh,1),exportSloveniaYearlyNormiraniReport:z(hzh,1),exportSloveniaVodXml:z(Szh,1),exportSloveniaMinimaxXml:z(bzh,1),exportSloveniaVascoXml:z(zzh,1),exportQuickbooksCsv:z(fzh,1),listEmployees:z(Me,1),registerEmployee:z(Ue,1),getEmployee:z(Pe,1),modifyEmployee:z(Ce,2),archiveEmployee:z(we,1),getEmployeeAttendance:z(Ae,2),replaceEmployeeAttendance:z(Fe,3),resolvePayrollParameters:z(ke,1),getPayrollParameterHistory:z(je,1),setPayrollParameterOverride:z(He,3),preview:z(Le,1),draftVatReturn:z(Ge,1),listVatReturns:z(Ve,1),getVatReturn:z(Ke,1),recomputeVatReturn:z(Ze,1),approveVatReturn:z(qe,1),submitVatReturn:z(We,2),reopenVatReturn:z(Ye,1),exportVatReturn:z($e,2),listFilings:z(Qe,1),completeFiling:z(Je,2),reopenFiling:z(Xe,1),dismissFiling:z(et,2),listAccountFilingsCalendar:z(tt,1)};var eQh=()=>"/taxes",Bzh=async(d,u)=>b(eQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),tQh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/taxes?${y}`:"/taxes"},Izh=async(d,u)=>b(tQh(d),{...u,method:"GET"}),nQh=d=>`/taxes/${d}`,Tzh=async(d,u,y)=>b(nQh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),sQh=d=>`/taxes/${d}`,Ezh=async(d,u,y)=>b(sQh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),oQh=d=>`/taxes/${d}`,Dzh=async(d,u)=>b(oQh(d),{...u,method:"DELETE"}),iQh=d=>`/taxes/${d}/restore`,Rzh=async(d,u)=>b(iQh(d),{...u,method:"POST"}),aQh=d=>`/taxes/${d}/permanent`,_zh=async(d,u)=>b(aQh(d),{...u,method:"DELETE"});var hs={create:z(Bzh,1),list:ee(Izh),update:z(Tzh,2),replaceTax:z(Ezh,2),delete:z(Dzh,1),restoreTax:z(Rzh,1),permanentDeleteTax:z(_zh,1)};var rQh=()=>"/fiscalization/ticketbai/settings",Nzh=async d=>b(rQh(),{...d,method:"GET"}),lQh=()=>"/fiscalization/ticketbai/settings",Mzh=async(d,u)=>b(lQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),dQh=()=>"/fiscalization/ticketbai/settings/certificate",Uzh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(dQh(),{...u,method:"POST",body:y})},cQh=d=>`/fiscalization/ticketbai/records/${d}`,Pzh=async(d,u)=>b(cQh(d),{...u,method:"GET"}),uQh=d=>`/fiscalization/ticketbai/records/${d}/xml`,Czh=async(d,u)=>b(uQh(d),{...u,method:"GET"}),pQh=d=>`/fiscalization/ticketbai/records/${d}/retry`,wzh=async(d,u)=>b(pQh(d),{...u,method:"POST"}),mQh=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,Azh=async(d,u)=>b(mQh(d),{...u,method:"POST"});var Ss={getSettings:z(Nzh,0),updateSettings:z(Mzh,1),uploadCertificate:z(Uzh,1),getRecord:z(Pzh,1),downloadRecordXml:z(Czh,1),retryRecord:z(wzh,1),reconcileRecord:z(Azh,1)};var xQh=()=>"/transaction-type/check",Fzh=async(d,u)=>b(xQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var bs={checkTransactionType:z(Fzh,1)};var gQh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/travel-orders?${y}`:"/travel-orders"},kzh=async(d,u)=>b(gQh(d),{...u,method:"GET"}),yQh=()=>"/travel-orders",jzh=async(d,u)=>b(yQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),OQh=()=>"/travel-orders/preview",Hzh=async(d,u)=>b(OQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),vQh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/travel-orders/render?${y}`:"/travel-orders/render"},Lzh=async(d,u,y)=>b(vQh(u),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(d)}),hQh=()=>"/travel-orders/route-distance",Gzh=async(d,u)=>b(hQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),SQh=d=>`/travel-orders/${d}`,Vzh=async(d,u)=>b(SQh(d),{...u,method:"GET"}),bQh=d=>`/travel-orders/${d}`,Kzh=async(d,u,y)=>b(bQh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),zQh=d=>`/travel-orders/${d}`,Zzh=async(d,u)=>b(zQh(d),{...u,method:"DELETE"}),fQh=d=>`/travel-orders/${d}/approve`,qzh=async(d,u)=>b(fQh(d),{...u,method:"POST"}),BQh=d=>`/travel-orders/${d}/settle`,Wzh=async(d,u)=>b(BQh(d),{...u,method:"POST"}),IQh=d=>`/travel-orders/${d}/reopen`,Yzh=async(d,u,y)=>b(IQh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),TQh=d=>`/travel-orders/${d}/cancel`,$zh=async(d,u)=>b(TQh(d),{...u,method:"POST"}),EQh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/travel-orders/${d}/pdf?${D}`:`/travel-orders/${d}/pdf`},Qzh=async(d,u,y)=>b(EQh(d,u),{...y,method:"GET"}),DQh=(d,u)=>{let y=new URLSearchParams;Object.entries(u||{}).forEach(([f,N])=>{N!==void 0&&y.append(f,N===null?"null":N.toString());});let D=y.toString();return D.length>0?`/travel-orders/${d}/html?${D}`:`/travel-orders/${d}/html`},Jzh=async(d,u,y)=>b(DQh(d,u),{...y,method:"GET"});var zs={list:ee(kzh),create:z(jzh,1),preview:z(Hzh,1),renderTravelOrderPreview:z(Lzh,2),calculateTravelOrderRouteDistance:z(Gzh,1),get:z(Vzh,1),update:z(Kzh,2),delete:z(Zzh,1),approveTravelOrder:z(qzh,1),settleTravelOrder:z(Wzh,1),reopenTravelOrder:z(Yzh,2),cancelTravelOrder:z($zh,1),renderPdf:z(Qzh,2),renderHtml:z(Jzh,2)};var _e="https://eu.spaceinvoices.com";var RQh=d=>`/documents/${d}/ujp`,Xzh=async(d,u)=>b(RQh(d),{...u,method:"GET"});var fs={download:z(Xzh,1)};var _Qh=()=>"/upload/image",efh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),b(_Qh(),{...u,method:"POST",body:y})};var Bs={uploadImage:z(efh,1)};var NQh=()=>"/accounts/two-factor-policy",tfh=async d=>b(NQh(),{...d,method:"GET"}),MQh=()=>"/accounts/two-factor-policy",nfh=async(d,u)=>b(MQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),UQh=d=>`/entities/${d}/two-factor-policy`,sfh=async(d,u)=>b(UQh(d),{...u,method:"GET"}),PQh=d=>`/entities/${d}/two-factor-policy`,ofh=async(d,u,y)=>b(PQh(d),{...y,method:"PUT",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),CQh=()=>"/users/two-factor/setup",ifh=async(d,u)=>b(CQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wQh=()=>"/users/two-factor/enable",afh=async(d,u)=>b(wQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),AQh=()=>"/users/me/two-factor",rfh=async d=>b(AQh(),{...d,method:"GET"}),FQh=()=>"/users/me/two-factor/setup",lfh=async(d,u)=>b(FQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kQh=()=>"/users/me/two-factor/enable",dfh=async(d,u)=>b(kQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jQh=()=>"/users/me/two-factor/disable",cfh=async(d,u)=>b(jQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HQh=()=>"/users/two-factor/verify",ufh=async(d,u)=>b(HQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),LQh=()=>"/users/login",pfh=async(d,u)=>b(LQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),GQh=()=>"/users/signup",mfh=async(d,u)=>b(GQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),VQh=()=>"/users/password-reset",xfh=async(d,u)=>b(VQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KQh=()=>"/users/password-reset/confirm",gfh=async(d,u)=>b(KQh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),ZQh=()=>"/users/me/accounts",yfh=async d=>b(ZQh(),{...d,method:"GET"}),qQh=()=>"/users/me",Ofh=async d=>b(qQh(),{...d,method:"GET"}),WQh=()=>"/users/me",vfh=async(d,u)=>b(WQh(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),YQh=()=>"/users/me/account-deletion",hfh=async d=>b(YQh(),{...d,method:"POST"}),$Qh=()=>"/users/me/settings/furs",Sfh=async(d,u)=>b($Qh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),QQh=()=>"/users/me/settings/fina",bfh=async(d,u)=>b(QQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Is={getAccountTwoFactorPolicy:z(tfh,0),updateAccountTwoFactorPolicy:z(nfh,1),getEntityTwoFactorPolicy:z(sfh,1),updateEntityTwoFactorPolicy:z(ofh,2),setupRequiredTwoFactor:z(ifh,1),enableRequiredTwoFactor:z(afh,1),getTwoFactorConfiguration:z(rfh,0),setupTwoFactor:z(lfh,1),enableTwoFactor:z(dfh,1),disableTwoFactor:z(cfh,1),verifyTwoFactor:z(ufh,1),login:z(pfh,1),signup:z(mfh,1),requestPasswordReset:z(xfh,1),confirmPasswordReset:z(gfh,1),listMyAccounts:z(yfh,0),getMe:z(Ofh,0),update:z(vfh,1),requestAccountDeletion:z(hfh,0),updateFursSettings:z(Sfh,1),updateFinaSettings:z(bfh,1)};var JQh=()=>"/fiscalization/verifactu/settings",zfh=async d=>b(JQh(),{...d,method:"GET"}),XQh=()=>"/fiscalization/verifactu/settings",ffh=async(d,u)=>b(XQh(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eJh=()=>"/fiscalization/verifactu/certificate",Bfh=async(d,u)=>{let y=new FormData;return y.append("file",d.file),y.append("passphrase",d.passphrase),b(eJh(),{...u,method:"POST",body:y})},tJh=d=>`/fiscalization/verifactu/records/${d}`,Ifh=async(d,u)=>b(tJh(d),{...u,method:"GET"}),nJh=d=>`/fiscalization/verifactu/records/${d}/retry`,Tfh=async(d,u)=>b(nJh(d),{...u,method:"POST"}),sJh=d=>`/fiscalization/verifactu/records/${d}/correct`,Efh=async(d,u,y)=>b(sJh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),oJh=d=>`/fiscalization/verifactu/records/${d}/cancel`,Dfh=async(d,u,y)=>b(oJh(d),{...y,method:"POST",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)});var Ts={getSettings:z(zfh,0),updateSettings:z(ffh,1),uploadCertificate:z(Bfh,1),getEvidence:z(Ifh,1),retryRecord:z(Tfh,1),correctRecord:z(Efh,2),cancelRecord:z(Dfh,2)};var iJh=()=>"/vies/check",Rfh=async(d,u)=>b(iJh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Es={checkVies:z(Rfh,1)};var aJh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/warehouses?${y}`:"/warehouses"},_fh=async(d,u)=>b(aJh(d),{...u,method:"GET"}),rJh=()=>"/warehouses",Nfh=async(d,u)=>b(rJh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lJh=d=>`/warehouses/${d}`,Mfh=async(d,u)=>b(lJh(d),{...u,method:"GET"}),dJh=d=>`/warehouses/${d}`,Ufh=async(d,u,y)=>b(dJh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),cJh=d=>`/warehouses/${d}`,Pfh=async(d,u)=>b(cJh(d),{...u,method:"DELETE"});var Ds={list:ee(_fh),create:z(Nfh,1),get:z(Mfh,1),update:z(Ufh,2),delete:z(Pfh,1)};var uJh=()=>"/webhooks",Cfh=async(d,u)=>b(uJh(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pJh=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([D,f])=>{f!==void 0&&u.append(D,f===null?"null":f.toString());});let y=u.toString();return y.length>0?`/webhooks?${y}`:"/webhooks"},wfh=async(d,u)=>b(pJh(d),{...u,method:"GET"}),mJh=d=>`/webhooks/${d}`,Afh=async(d,u)=>b(mJh(d),{...u,method:"GET"}),xJh=d=>`/webhooks/${d}`,Ffh=async(d,u,y)=>b(xJh(d),{...y,method:"PATCH",headers:{"Content-Type":"application/json",...y?.headers},body:JSON.stringify(u)}),gJh=d=>`/webhooks/${d}`,kfh=async(d,u)=>b(gJh(d),{...u,method:"DELETE"}),yJh=d=>`/webhooks/${d}/test`,jfh=async(d,u)=>b(yJh(d),{...u,method:"POST"});var OJh=d=>`/webhooks/${d}/rotate-secret`,Hfh=async(d,u)=>b(OJh(d),{...u,method:"POST"});var Rs={create:z(Cfh,1),list:ee(wfh),get:z(Afh,1),update:z(Ffh,2),delete:z(kfh,1),testWebhook:z(jfh,1),rotateWebhookSecret:z(Hfh,1)};var vJh=()=>"/white-label-subscriptions",Lfh=async d=>b(vJh(),{...d,method:"GET"}),hJh=()=>"/white-label-subscriptions/plans",Gfh=async d=>b(hJh(),{...d,method:"GET"}),SJh=d=>`/white-label-subscriptions/check-feature/${d}`,Vfh=async(d,u)=>b(SJh(d),{...u,method:"GET"}),bJh=d=>`/white-label-subscriptions/check-limit/${d}`,Kfh=async(d,u)=>b(bJh(d),{...u,method:"GET"}),zJh=()=>"/white-label-subscriptions/billing-email",Zfh=async(d,u)=>b(zJh(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var _s={getCurrentWLSubscription:z(Lfh,0),list:z(Gfh,0),checkWLFeature:z(Vfh,1),checkWLLimit:z(Kfh,1),update:z(Zfh,1)};var fJh=()=>"/white-labels/current",qfh=async d=>b(fJh(),{...d,method:"GET"}),BJh=()=>"/white-labels/me",Wfh=async d=>b(BJh(),{...d,method:"GET"});var Ns={getCurrentWhiteLabel:z(qfh,0),getMyWhiteLabel:z(Wfh,0)};var Re=class{sdkConfig;accountWebhooks=q(yn,()=>this.sdkConfig);accounting=q(On,()=>this.sdkConfig);activities=q(vn,()=>this.sdkConfig);advanceInvoices=q(hn,()=>this.sdkConfig);businessUnits=q(Sn,()=>this.sdkConfig);companyRegistry=q(bn,()=>this.sdkConfig);creditNotes=q(zn,()=>this.sdkConfig);currency=q(fn,()=>this.sdkConfig);customers=q(Bn,()=>this.sdkConfig);deliveryNotes=q(In,()=>this.sdkConfig);documents=q(Dn,()=>this.sdkConfig);eInvoicing=q(Nn,()=>this.sdkConfig);eSlog=q(Mn,()=>this.sdkConfig);email=q(Un,()=>this.sdkConfig);entities=q(Pn,()=>this.sdkConfig);entityApiKeys=q(Cn,()=>this.sdkConfig);entityInvitations=q(wn,()=>this.sdkConfig);entityStats=q(An,()=>this.sdkConfig);entityUsers=q(Fn,()=>this.sdkConfig);estimates=q(kn,()=>this.sdkConfig);expenses=q(jn,()=>this.sdkConfig);exports=q(Hn,()=>this.sdkConfig);files=q(Ln,()=>this.sdkConfig);finaCertificate=q(Gn,()=>this.sdkConfig);finaDevices=q(Vn,()=>this.sdkConfig);finaPremises=q(Kn,()=>this.sdkConfig);finaSettings=q(Zn,()=>this.sdkConfig);financialCategories=q(qn,()=>this.sdkConfig);fursCertificate=q(Wn,()=>this.sdkConfig);fursDevices=q(Yn,()=>this.sdkConfig);fursInternalAct=q($n,()=>this.sdkConfig);fursPremises=q(Qn,()=>this.sdkConfig);fursSettings=q(Jn,()=>this.sdkConfig);health=q(Xn,()=>this.sdkConfig);invoices=q(ts,()=>this.sdkConfig);items=q(ns,()=>this.sdkConfig);legacyMigration=q(ss,()=>this.sdkConfig);locale=q(os,()=>this.sdkConfig);orderIntegrations=q(is,()=>this.sdkConfig);orders=q(as,()=>this.sdkConfig);paymentReminders=q(rs,()=>this.sdkConfig);payments=q(ls,()=>this.sdkConfig);pointOfSale=q(ds,()=>this.sdkConfig);ptAtcudSeries=q(cs,()=>this.sdkConfig);ptSafT=q(us,()=>this.sdkConfig);purchaseOrders=q(ps,()=>this.sdkConfig);recurringInvoices=q(ms,()=>this.sdkConfig);revenueRecognition=q(xs,()=>this.sdkConfig);stripeApp=q(gs,()=>this.sdkConfig);subscriptions=q(ys,()=>this.sdkConfig);taxRateEstimates=q(Os,()=>this.sdkConfig);taxReports=q(vs,()=>this.sdkConfig);taxes=q(hs,()=>this.sdkConfig);ticketBai=q(Ss,()=>this.sdkConfig);transactionType=q(bs,()=>this.sdkConfig);travelOrders=q(zs,()=>this.sdkConfig);ujp=q(fs,()=>this.sdkConfig);upload=q(Bs,()=>this.sdkConfig);users=q(Is,()=>this.sdkConfig);veriFactu=q(Ts,()=>this.sdkConfig);vies=q(Es,()=>this.sdkConfig);warehouses=q(Ds,()=>this.sdkConfig);webhooks=q(Rs,()=>this.sdkConfig);whiteLabelSubscriptions=q(_s,()=>this.sdkConfig);whiteLabels=q(Ns,()=>this.sdkConfig);constructor(u){let y=typeof u=="string"?{accessToken:u}:u,D=typeof y.accessToken=="function"?y.accessToken:()=>y.accessToken;this.sdkConfig={baseUrl:y.basePath??_e,getAccessToken:D,clientName:y.clientName??"js-sdk",onUnauthorized:y.onUnauthorized,requestTimeoutMs:y.requestTimeoutMs,accountId:y.accountId??null};}};function IJh(d){let u=typeof d=="string"?{accessToken:d}:d,y=typeof u.accessToken=="function"?u.accessToken:()=>u.accessToken;bgh({baseUrl:u.basePath??_e,getAccessToken:y,clientName:u.clientName??"js-sdk",onUnauthorized:u.onUnauthorized,requestTimeoutMs:u.requestTimeoutMs}),gn(u.accountId??null);}
235
235
  export{DJh as AccountInfoRole,MJh as AccountWebhookDeliveryStatus,PJh as AccountWebhookResponseEventsItem,wJh as AccountWebhookWithSecretEventsItem,_Jh as AccountingSettingsVatPeriod,FJh as AddEntityUserBodyRole,jJh as AdvanceInvoiceCalculationMode,LJh as AdvanceInvoiceItemClassification,VJh as AdvanceInvoiceItemType,ZJh as AdvanceInvoiceTransactionType,WJh as AttendanceDayKind,$Jh as AttendanceDaySickReason,JJh as AuthorizeShopifyBodyAutoProcessOn,eXh as AvailablePlansAllowedPaymentProvidersItem,nXh as AvailablePlansBillingProfile,oXh as AvailablePlansCurrencyCode,aXh as AvailablePlansStripePublishableKeyKind,lXh as BankImportParseErrorCauseCode,cXh as BankStatementImportSourceFormat,pXh as BankStatementImportStatus,xXh as BankTransactionConflictErrorCauseCode,yXh as BankTransactionDetailMatchStatus,vXh as BankTransactionDetailSourceFormat,SXh as BankTransactionMatchInfoDocumentType,zXh as BankTransactionMatchStatus,BXh as BankTransactionSourceFormat,TXh as BankTransactionSuggestedDocumentDocumentType,DXh as BusinessUnitSettingsInputPdfTemplate,_Xh as BusinessUnitSettingsPdfTemplate,Ms as CLIENT_HEADER_NAME,PXh as CalculateDocumentPreviewCalculationMode,wXh as CalculateDocumentPreviewType,FXh as CalculateTravelOrderRouteDistance422Field,MXh as CalculatedItemType,jXh as CalculationSettingsDefaultMode,LXh as CheckEInvoicingRecipientRequestDocumentType,VXh as CompanyRegistryResultSettingsSloveniaVatProfile,ZXh as CompleteAdvanceInvoicePreviewCalculationMode,WXh as CompleteAdvanceInvoicePreviewCreationSource,$Xh as CompleteCreditNotePreviewCalculationMode,JXh as CompleteCreditNotePreviewCreationSource,eeS as CompleteDeliveryNotePreviewCalculationMode,neS as CompleteDeliveryNotePreviewCreationSource,oeS as CompleteEstimatePreviewCalculationMode,aeS as CompleteEstimatePreviewCreationSource,leS as CompleteEstimatePreviewTitleType,ceS as CompleteInvoicePreviewCalculationMode,peS as CompleteInvoicePreviewCreationSource,xeS as CompletePurchaseOrderPreviewCalculationMode,yeS as CompletePurchaseOrderPreviewCreationSource,veS as CreateAccountWebhookBodyEventsItem,SeS as CreateAdvanceInvoiceCalculationMode,zeS as CreateCheckoutRequestBillingInterval,BeS as CreateCreditNoteCalculationMode,TeS as CreateCustomerBodyContactType,DeS as CreateDeliveryNoteCalculationMode,_eS as CreateDocumentItemClassification,MeS as CreateDocumentItemType,PeS as CreateDocumentPaymentType,weS as CreateEntityApiKeyBodyPurpose,FeS as CreateEntityBodyEnvironment,jeS as CreateEntityBodySettingsPdfTemplate,LeS as CreateEstimateCalculationMode,VeS as CreateEstimateTitleType,ZeS as CreateExpenseBodyCalculationMode,WeS as CreateExpenseBodyPaymentsItemType,$eS as CreateExpenseBodyTransactionType,JeS as CreateExpenseBodyType,etS as CreateExpenseItemClassification,ntS as CreateExpenseItemType,otS as CreateExpensePaymentBodyType,atS as CreateFinaInvoiceDataPaymentType,ltS as CreateInvoiceCalculationMode,ctS as CreateItemBodyClassification,ptS as CreateItemBodyUsage,xtS as CreateItemInventoryMovementBodyType,ytS as CreateMigrationJobRequestEnvironment,vtS as CreateMigrationJobResponseStatus,StS as CreateOrderBodyPaymentStatus,ztS as CreateOrderBodySource,BtS as CreateOrderIntegrationBodySource,TtS as CreatePaymentBodyType,DtS as CreatePtAtcudSeriesBodyDocumentType,_tS as CreatePurchaseOrderCalculationMode,MtS as CreatePurchaseOrderItemClassification,PtS as CreatePurchaseOrderItemType,wtS as CreateRecurringInvoiceBodyFrequency,FtS as CreateTaxPaymentType,jtS as CreateTravelOrderBodyTripType,LtS as CreateWebhookBodyEventsItem,VtS as CreationSource,ZtS as CreditNoteCalculationMode,WtS as CreditNoteItemClassification,$tS as CreditNoteItemType,JtS as CreditNoteTransactionType,enS as CryptoEquivalentCode,nnS as CryptoEquivalentsSettingsCodesItem,onS as CryptoWalletCode,anS as CurrentSubscriptionAllowedPaymentProvidersItem,lnS as CurrentSubscriptionBillingProfile,cnS as CurrentSubscriptionCurrencyCode,pnS as CurrentSubscriptionPaymentProvider,xnS as CurrentSubscriptionStripePublishableKeyKind,ynS as CustomCreateAdvanceInvoiceCalculationMode,vnS as CustomCreateCreditNoteCalculationMode,SnS as CustomCreateDeliveryNoteCalculationMode,znS as CustomCreateEstimateCalculationMode,BnS as CustomCreateEstimateTitleType,TnS as CustomCreateExpenseTransactionType,DnS as CustomCreateExpenseType,_nS as CustomCreateInvoiceCalculationMode,MnS as CustomDocumentItemClassification,PnS as CustomDocumentItemType,wnS as CustomExpenseItemClassification,FnS as CustomExpenseItemType,jnS as CustomExpenseWriteCalculationMode,LnS as CustomExpenseWritePaymentsItemType,VnS as CustomExpenseWriteTransactionType,ZnS as CustomExpenseWriteType,WnS as CustomStoreConnectRequestAutoProcessOn,$nS as CustomStoreOrderItemsItemKind,JnS as CustomStoreOrderResultAction,_e as DEFAULT_BASE_URL,esS as DeleteDocumentType,nsS as DeliveryNoteCalculationMode,osS as DeliveryNoteItemClassification,asS as DeliveryNoteItemType,lsS as DeliveryNoteTransactionType,csS as DocumentCalculationCalculationMode,psS as DocumentCalculationTransactionType,xsS as DocumentItemEInvoicingVatCategoryCode,ysS as DocumentItemRevenueRecognitionMethod,vsS as DocumentRelationRelatedDocumentTitleType,SsS as DocumentRelationRelatedDocumentType,zsS as DocumentRelationSourceType,BsS as DocumentRelationTargetType,TsS as DocumentVersionDocumentType,DsS as DownloadDocumentEslogType,_sS as DownloadReceivedEInvoiceFormat,MsS as EInvoicingEnrollmentChannel,PsS as EInvoicingEnrollmentEnvironment,wsS as EInvoicingEnrollmentState,FsS as EInvoicingRecipientCheckResponseDocumentType,jsS as EmailSenderDomainVerificationStatus,LsS as EmailSenderEffectiveSource,VsS as EmailSenderEmailVerificationStatus,ZsS as EmailSenderVerificationStatus,WsS as EntityApiKeyEnvironment,$sS as EntityApiKeyListItemEnvironment,JsS as EntityApiKeyListItemPurpose,eoS as EntityApiKeyPurpose,noS as EntityBankAccountInputType,ooS as EntityBankAccountType,aoS as EntityEnvironment,loS as EntityInvitationPreviewRole,coS as EntityInvitationPreviewStatus,poS as EntityInvitationRole,xoS as EntityInvitationStatus,yoS as EntitySettingsPdfTemplate,voS as EntitySettingsUpdatePdfTemplate,SoS as EntityUserRole,zoS as EntityUsersAccessAccountRole,BoS as EntityUsersAccessEntityRole,ToS as EslogDataValidationStatus,DoS as EslogExportByDateRangeTypesItem,_oS as EstimateCalculationMode,MoS as EstimateItemClassification,PoS as EstimateItemType,woS as EstimateTitleType,FoS as EstimateTransactionType,joS as EuOssReportResponseEligibilityReason,LoS as EuOssReportResponseNoticesItem,VoS as EuOssThresholdAmount,ZoS as EuOssThresholdCurrencyCode,WoS as EuOssThresholdStatus,$oS as ExpenseCategoryReportResponseBasis,JoS as ExpenseCategoryReportResponseCalculationMode,eiS as ExpenseCategoryReportResponseGroupBy,niS as ExpenseImportDraftItemClassification,oiS as ExpenseImportDraftItemType,aiS as ExpenseImportResultAttachmentStatus,liS as ExpenseImportSourceDocumentType,ciS as ExpenseImportWarningCode,piS as ExpenseInboundEmailAttachmentMode,xiS as ExpenseInboundEmailMessageStatus,yiS as ExpenseItemClassification,viS as ExpenseItemRecognitionMethod,SiS as ExpenseItemType,ziS as ExpensePaymentOpenBalanceErrorCauseCode,BiS as ExpenseRecognitionJobSimulationMode,TiS as ExpenseRecognitionJobStatus,DiS as ExpenseRecognitionJobWarningsItemCode,_iS as ExpenseRecognitionSettingsDefaultMethod,MiS as ExpenseRecognitionSettingsResponseDefaultMethod,PiS as ExpenseSummaryClassification,wiS as ExpenseType,FiS as ExportDocumentsFormat,jiS as ExportDocumentsLanguage,LiS as ExportDocumentsType,ViS as ExportExpensesDateBasis,ZiS as ExportExpensesFormat,WiS as ExportExpensesLanguage,$iS as ExportInventoryFormat,JiS as ExportInventoryLanguage,eaS as ExportPosDailyReportFormat,naS as ExportPosDailyReportLanguage,oaS as ExportPosMonthlyReportFormat,aaS as ExportPosMonthlyReportLanguage,laS as ExportRevenueByCategoryFormat,caS as ExportRevenueByCategoryLanguage,paS as ExportSalesPerItemFormat,xaS as ExportSalesPerItemLanguage,yaS as ExportVatReturnFormat,vaS as FilingKind,SaS as FilingObligationType,zaS as FilingState,BaS as FilingStatus,TaS as FilingVerification,DaS as FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason,_aS as FinaFiscalizationResponseStatus,MaS as FinalizeDocumentType,VaS as FiscalRecoveryErrorCauseCode,PaS as FiscalizationProviderErrorCauseProvider,waS as FiscalizationProviderErrorCauseType,FaS as FiscalizationProviderErrorCode,jaS as FiscalizeDocumentType,LaS as FiscalizedOutputRegistrationFiscalizationProvider,ZaS as FrenchEReportingRecordKind,WaS as FrenchEReportingRecordStatus,$aS as FursFiscalizationResponseStatus,JaS as FursPremiseSuccessResponseEnvironment,erS as GeneratePtSaftReportMode,nrS as GermanEInvoicingDataValidationStatus,orS as GetActivePtAtcudSeriesDocumentType,arS as GetActivities200DataItemActorType,lrS as GetEntitiesEnvironment,crS as GetEslogExportStatus200Status,prS as GetExpenseCategoryReportBasis,xrS as GetExpenseCategoryReportGroupBy,yrS as GetFilesCategory,vrS as GetFinaSettings200CertificateStatus,SrS as GetFinaSettings200NumberingSequence,zrS as GetFursSettings200CertificateStatus,BrS as GetFursSettings200NumberingStrategy,TrS as GetItemsImportTemplateFormat,DrS as GetItemsImportTemplateLanguage,_rS as GetItemsUsage,MrS as GetLegacyMigrationOrganization200UnsupportedItemCode,PrS as GetNextDocumentNumberType,wrS as GetPaymentRemindersStatus,FrS as GetPaymentRemindersTrigger,jrS as GetPdfExportStatus200Status,LrS as GetRevenueRecognitionDetailsBasis,VrS as GetRevenueRecognitionDetailsGroupBy,ZrS as GetRevenueRecognitionReportBasis,WrS as GetRevenueRecognitionReportGroupBy,$rS as GetShareableAdvanceInvoiceHtmlLanguage,JrS as GetShareableAdvanceInvoiceHtmlLocale,elS as GetShareableAdvanceInvoicePdfLanguage,nlS as GetShareableAdvanceInvoicePdfLocale,olS as GetShareableCreditNoteHtmlLanguage,alS as GetShareableCreditNoteHtmlLocale,llS as GetShareableCreditNotePdfLanguage,clS as GetShareableCreditNotePdfLocale,plS as GetShareableDeliveryNoteHtmlLanguage,xlS as GetShareableDeliveryNoteHtmlLocale,ylS as GetShareableDeliveryNotePdfLanguage,vlS as GetShareableDeliveryNotePdfLocale,SlS as GetShareableEstimateHtmlLanguage,zlS as GetShareableEstimateHtmlLocale,BlS as GetShareableEstimatePdfLanguage,TlS as GetShareableEstimatePdfLocale,DlS as GetShareableInvoiceHtmlLanguage,_lS as GetShareableInvoiceHtmlLocale,MlS as GetShareableInvoicePdfLanguage,PlS as GetShareableInvoicePdfLocale,wlS as GetShareablePurchaseOrderHtmlLanguage,FlS as GetShareablePurchaseOrderHtmlLocale,jlS as GetShareablePurchaseOrderPdfLanguage,LlS as GetShareablePurchaseOrderPdfLocale,VlS as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,ZlS as GetSloveniaTaxProfile200BusinessForm,WlS as GetSloveniaTaxProfile200BusinessFormSource,$lS as GetSloveniaTaxProfile200IncomeTaxRegime,JlS as GetSloveniaTaxProfile200InferredBusinessForm,edS as GetSloveniaTaxProfile200TaxResidency,ndS as GetSloveniaTaxProfile200VatProfile,odS as GetSloveniaTaxProfile200YearlyReportingAccountingType,adS as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,ldS as ImportBankStatementBodyLedgerAccountCode,cdS as ImportBankStatementBodySourceFormat,pdS as InventoryMovementResponseType,xdS as InvoiceCalculationMode,ydS as InvoiceItemClassification,vdS as InvoiceItemType,SdS as InvoiceTransactionType,zdS as ItalyLineTaxDataNature,BdS as ItemClassification,_dS as ItemUsage,TdS as ItemsImportReportRowsItemAction,DdS as ItemsImportReportRowsItemStock,MdS as JournalEntryKind,PdS as KsefDocumentDataStatus,wdS as KsefEntitySettingsObligation,FdS as KsefSettingsResponseCredentialStatus,jdS as KsefSettingsResponseEnvironment,LdS as KsefSettingsResponseObligation,VdS as LedgerAccountCode,ZdS as LedgerAccountDeductibility,WdS as LedgerAccountType,$dS as LedgerPaymentAccountDirection,JdS as LedgerPaymentAccountPaymentType,ecS as LedgerPostingSourceType,ncS as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,ocS as LegalDetailsLegalForm,acS as LineDiscountInputType,lcS as LineDiscountType,ccS as LinkBankTransactionBodyDocumentType,pcS as ListAccountFilingsCalendarEnvironment,xcS as ListEmployeesStatus,ycS as ListPtAtcudSeriesDocumentType,vcS as ListReceivedEInvoicesState,ScS as ListRevenueRecognitionLinesBasis,zcS as ListRevenueRecognitionLinesGroupBy,bZh as MAX_LIST_ALL_PAGES,BcS as MagentoAuthorizationStatusFailureReason,TcS as MagentoAuthorizationStatusStatus,DcS as MagentoAuthorizeRequestAutoProcessOn,_cS as MigrationJobResponseStatus,McS as ModifyEmployeeBodyCommuteMode,PcS as ModifyEmployeeBodyEmploymentType,wcS as ModifyEmployeeBodyGeneralAllowanceMode,FcS as ModifyEmployeeBodyStatus,jcS as ModifyEmployeeBodyTaxResidency,LcS as MovablePremisePremiseType,VcS as NavAnnulmentRequestAnnulmentCode,ZcS as NavDocumentDataOperation,WcS as NavDocumentMessageSeverity,$cS as NavDocumentStatus,JcS as NavEnvironment,euS as NavErrorBodyConflictsItemSource,nuS as NavErrorBodyConflictsItemTypesItem0,ouS as NavErrorBodyConflictsItemTypesItem1,auS as NavInvoiceAppearance,luS as NavObligation,cuS as NavVatTreatmentDomesticReverseChargeType,puS as NavVatTreatmentExemptionCase,xuS as NavVatTreatmentExemptionType,yuS as NavVatTreatmentNoVatChargeType,vuS as NavVatTreatmentOutOfScopeCase,SuS as NavVatTreatmentOutOfScopeType,zuS as OrderBasePaymentStatus,BuS as OrderBaseSource,TuS as OrderBaseStatus,DuS as OrderIntegrationBaseAutoProcessOn,_uS as OrderIntegrationBaseDocumentCurrency,MuS as OrderIntegrationBaseSource,PuS as OrderItemKind,wuS as OrderItemResponseKind,FuS as PartialAdvanceInvoicePreviewCalculationMode,juS as PartialAdvanceInvoicePreviewCreationSource,LuS as PartialAdvanceInvoicePreviewItemsItemClassification,VuS as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,ZuS as PartialAdvanceInvoicePreviewItemsItemType,WuS as PartialCreditNotePreviewCalculationMode,$uS as PartialCreditNotePreviewCreationSource,JuS as PartialCreditNotePreviewItemsItemClassification,epS as PartialCreditNotePreviewItemsItemDiscountsItemType,npS as PartialCreditNotePreviewItemsItemType,opS as PartialDeliveryNotePreviewCalculationMode,apS as PartialDeliveryNotePreviewCreationSource,lpS as PartialDeliveryNotePreviewItemsItemClassification,cpS as PartialDeliveryNotePreviewItemsItemDiscountsItemType,ppS as PartialDeliveryNotePreviewItemsItemType,xpS as PartialEstimatePreviewCalculationMode,ypS as PartialEstimatePreviewCreationSource,vpS as PartialEstimatePreviewItemsItemClassification,SpS as PartialEstimatePreviewItemsItemDiscountsItemType,zpS as PartialEstimatePreviewItemsItemType,BpS as PartialEstimatePreviewTitleType,TpS as PartialInvoicePreviewCalculationMode,DpS as PartialInvoicePreviewCreationSource,_pS as PartialInvoicePreviewItemsItemClassification,MpS as PartialInvoicePreviewItemsItemDiscountsItemType,PpS as PartialInvoicePreviewItemsItemType,wpS as PartialPurchaseOrderPreviewCalculationMode,FpS as PartialPurchaseOrderPreviewCreationSource,jpS as PartialPurchaseOrderPreviewItemsItemClassification,LpS as PartialPurchaseOrderPreviewItemsItemDiscountsItemType,VpS as PartialPurchaseOrderPreviewItemsItemType,ZpS as PatchEntityBodySettingsPdfTemplate,WpS as PatchMeBodyLocale,$pS as PaymentReminderStatus,JpS as PaymentReminderTrigger,emS as PaymentType,nmS as PdfExportByDateRangeLanguage,omS as PdfExportByDateRangeLocale,amS as PdfExportByDateRangeTypesItem,lmS as PdfExportByDocumentIdsLanguage,cmS as PdfExportByDocumentIdsLocale,pmS as PermanentDeleteDocumentType,xmS as PosTabConflictCode,ymS as PosTabResponseStatus,vmS as PreviewTravelOrderBodyTripType,SmS as PtAtcudSeriesDocumentType,zmS as PurchaseOrderBusinessUnitSettingsInputPdfTemplate,BmS as PurchaseOrderCalculationMode,TmS as PurchaseOrderItemClassification,DmS as PurchaseOrderItemType,_mS as PurchaseOrderTransactionType,MmS as PurchaseOrderVersionDocumentType,PmS as PutKsefCredentialEnvironment,wmS as ReceivedEInvoiceAttachmentStatus,FmS as ReceivedEInvoiceLifecycleRequestAction,jmS as ReceivedEInvoiceLifecycleRequestReasonCode,LmS as ReceivedEInvoiceState,VmS as RecurringInvoiceBaseFrequency,ZmS as RecurringInvoiceBaseStatus,WmS as RegisterDocumentOutputType,$mS as RegisterEmployeeBodyCommuteMode,JmS as RegisterEmployeeBodyEmploymentType,exS as RegisterEmployeeBodyGeneralAllowanceMode,nxS as RegisterEmployeeBodyStatus,oxS as RegisterEmployeeBodyTaxResidency,axS as RegisterFursMovablePremiseBodyMovablePremisePremiseType,lxS as RenderAdvanceInvoicePreviewEpcQrEnabled,cxS as RenderAdvanceInvoicePreviewHub3QrEnabled,pxS as RenderAdvanceInvoicePreviewPartial,xxS as RenderAdvanceInvoicePreviewSwissQrBillEnabled,yxS as RenderAdvanceInvoicePreviewTemplate,vxS as RenderAdvanceInvoicePreviewUpnQrDisplayMode,SxS as RenderAdvanceInvoicePreviewUpnQrEnabled,zxS as RenderCreditNotePreviewEpcQrEnabled,BxS as RenderCreditNotePreviewHub3QrEnabled,TxS as RenderCreditNotePreviewPartial,DxS as RenderCreditNotePreviewSwissQrBillEnabled,_xS as RenderCreditNotePreviewTemplate,MxS as RenderCreditNotePreviewUpnQrDisplayMode,PxS as RenderCreditNotePreviewUpnQrEnabled,wxS as RenderDeliveryNotePreviewEpcQrEnabled,FxS as RenderDeliveryNotePreviewHub3QrEnabled,jxS as RenderDeliveryNotePreviewPartial,LxS as RenderDeliveryNotePreviewSwissQrBillEnabled,VxS as RenderDeliveryNotePreviewTemplate,ZxS as RenderDeliveryNotePreviewUpnQrDisplayMode,WxS as RenderDeliveryNotePreviewUpnQrEnabled,$xS as RenderDocumentHtmlTemplate,JxS as RenderDocumentPdfTemplate,egS as RenderEstimatePreviewEpcQrEnabled,ngS as RenderEstimatePreviewHub3QrEnabled,ogS as RenderEstimatePreviewPartial,agS as RenderEstimatePreviewSwissQrBillEnabled,lgS as RenderEstimatePreviewTemplate,cgS as RenderEstimatePreviewUpnQrDisplayMode,pgS as RenderEstimatePreviewUpnQrEnabled,xgS as RenderInvoicePreviewEpcQrEnabled,ygS as RenderInvoicePreviewHub3QrEnabled,vgS as RenderInvoicePreviewPartial,SgS as RenderInvoicePreviewSwissQrBillEnabled,zgS as RenderInvoicePreviewTemplate,BgS as RenderInvoicePreviewUpnQrDisplayMode,TgS as RenderInvoicePreviewUpnQrEnabled,DgS as RenderPurchaseOrderPreviewEpcQrEnabled,_gS as RenderPurchaseOrderPreviewHub3QrEnabled,MgS as RenderPurchaseOrderPreviewPartial,PgS as RenderPurchaseOrderPreviewSwissQrBillEnabled,wgS as RenderPurchaseOrderPreviewTemplate,FgS as RenderPurchaseOrderPreviewUpnQrDisplayMode,jgS as RenderPurchaseOrderPreviewUpnQrEnabled,LgS as RenderTravelOrderPreviewBodyTripType,VgS as ReplaceEmployeeAttendanceBodyDaysItemKind,ZgS as ReplaceEmployeeAttendanceBodyDaysItemSickReason,WgS as RestoreDocumentType,$gS as RevenueRecognitionDetailsResponseCalculationMode,JgS as RevenueRecognitionLinesResponseCalculationMode,e0S as RevenueRecognitionReportResponseBasis,n0S as RevenueRecognitionReportResponseCalculationMode,o0S as RevenueRecognitionReportResponseGroupBy,a0S as RevenueRecognitionSettingsDefaultMethod,l0S as RevenueRecognitionSettingsResponseDefaultMethod,c0S as ReviewSloveniaYearlyNormiraniReport200FilingKind,p0S as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,x0S as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,y0S as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,v0S as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,S0S as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,z0S as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,B0S as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,T0S as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,D0S as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,_0S as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,M0S as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,P0S as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,w0S as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,F0S as SdiLifecycleDataCountryCode,j0S as SdiLifecycleDataStatus,L0S as SendDocument200Status,V0S as SendEmail200Status,Z0S as SendEmailBodyLanguage,W0S as SendEmailBodyLocale,$0S as SendPaymentReminderBodyLocale,J0S as SendPaymentReminderResponseStatus,eyS as SetVendorTaxProfileClassification,nyS as SloveniaAccountingExportsSettingsPreferredFormat,oyS as SloveniaEntitySettingsBusinessForm,ayS as SloveniaEntitySettingsIncomeTaxRegime,lyS as SloveniaEntitySettingsTaxResidency,cyS as SloveniaEntitySettingsVatProfile,pyS as SloveniaYearlyReportingSettingsAccountingType,xyS as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,Re as SpaceInvoices,yyS as StartEslogExport202Status,vyS as StartPdfExport202Status,SyS as StatsQueryRequestMetricsItemType,zyS as StatsQueryRequestOrderByItemDirection,ByS as StatsQueryRequestTable,TyS as StripeAppConnectionEntityEnvironment,DyS as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,_yS as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,MyS as SubscriptionTier,PyS as SyncOrderIntegrationResponseCompletionState,wyS as SyncShopifyOrdersResponseCompletionState,FyS as TaxPaymentType,jyS as TaxWorksheetForm5472ReportingCorporationCountryOfIncorporation,LyS as TicketBaiDocumentDataExemptionCause,VyS as TicketBaiDocumentDataNonSubjectCause,ZyS as TicketBaiDocumentDataOperationType,WyS as TicketBaiDocumentDataRecipientIdType,$yS as TicketBaiDocumentDataRectificationCode,JyS as TicketBaiDocumentDataStatus,eOS as TicketBaiDocumentDataTaxTreatment,nOS as TicketBaiDocumentDataVatRegime,oOS as TicketBaiDocumentInputExemptionCause,aOS as TicketBaiDocumentInputNonSubjectCause,lOS as TicketBaiDocumentInputOperationType,cOS as TicketBaiDocumentInputRecipientIdType,pOS as TicketBaiDocumentInputRectificationCode,xOS as TicketBaiDocumentInputTaxTreatment,yOS as TicketBaiDocumentInputVatRegime,vOS as TicketBaiRecordDocumentType,SOS as TicketBaiRecordEnvironment,zOS as TicketBaiRecordOperation,BOS as TicketBaiRecordRecentAttemptsItemKind,TOS as TicketBaiRecordRecentAttemptsItemStatus,DOS as TicketBaiRecordStatus,_OS as TicketBaiRecordTerritory,MOS as TicketBaiSettingsBlockersItem,POS as TicketBaiSettingsEnvironment,wOS as TicketBaiSettingsLroeModel,FOS as TicketBaiSettingsTerritory,jOS as TransactionTypeCheckRequestItemsItemClassification,LOS as TransactionTypeCheckRequestItemsItemType,VOS as TransactionTypeCheckRequestSupplyType,ZOS as TransactionTypeCheckResponseSupplyScope,WOS as TransactionTypeCheckResponseTransactionType,$OS as TransactionTypeCheckResponseWarningCode,JOS as TravelOrderCostType,evS as TravelOrderCurrencyCode,nvS as TravelOrderPerDiemBand,ovS as TravelOrderRouteDistanceProvider,avS as TravelOrderStatus,lvS as TravelOrderTransport,cvS as TravelOrderTripType,pvS as TrialBalanceRowType,xvS as UjpDataValidationStatus,yvS as UpdateAccountWebhookBodyEventsItem,vvS as UpdateCustomerBodyContactType,SvS as UpdateEntityUserRoleBodyRole,zvS as UpdateEstimateTitleType,BvS as UpdateExpenseBodyCalculationMode,TvS as UpdateExpenseBodyTransactionType,DvS as UpdateExpenseBodyType,_vS as UpdateExpenseRecognitionSettingsDefaultMethod,MvS as UpdateFinaSettings200CertificateStatus,PvS as UpdateFinaSettings200NumberingSequence,wvS as UpdateFinaSettingsBodyNumberingSequence,FvS as UpdateFursSettings200CertificateStatus,jvS as UpdateFursSettings200NumberingStrategy,LvS as UpdateFursSettingsBodyNumberingStrategy,VvS as UpdateItemBodyClassification,ZvS as UpdateItemBodyUsage,WvS as UpdateKsefSettingsObligation,$vS as UpdateNavSettingsInvoiceAppearance,JvS as UpdateNavSettingsObligation,ehS as UpdateOrderBodyPaymentStatus,nhS as UpdateOrderIntegrationBodyAutoProcessOn,ohS as UpdateOrderIntegrationBodyDocumentCurrency,ahS as UpdatePaymentBodyType,lhS as UpdateRecurringInvoiceBodyFrequency,chS as UpdateRevenueRecognitionSettingsDefaultMethod,phS as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,xhS as UpdateSloveniaTaxProfile200BusinessForm,yhS as UpdateSloveniaTaxProfile200BusinessFormSource,vhS as UpdateSloveniaTaxProfile200IncomeTaxRegime,ShS as UpdateSloveniaTaxProfile200InferredBusinessForm,zhS as UpdateSloveniaTaxProfile200TaxResidency,BhS as UpdateSloveniaTaxProfile200VatProfile,ThS as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,DhS as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,_hS as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,MhS as UpdateSloveniaTaxProfileBodyBusinessForm,PhS as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,whS as UpdateSloveniaTaxProfileBodyTaxResidency,FhS as UpdateSloveniaTaxProfileBodyVatProfile,jhS as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,LhS as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,VhS as UpdateTaxPaymentType,ZhS as UpdateTicketBaiSettingsLroeModel,WhS as UpdateTicketBaiSettingsTerritory,$hS as UpdateTravelOrderBodyTransport,JhS as UpdateTravelOrderBodyTripType,eSS as UpdateVerifactuSettingsTerritory,nSS as UpdateWebhookBodyEventsItem,oSS as UploadFileBodyCategory,aSS as UpnQrSettingsDisplayMode,lSS as UsTaxYearWorksheetCompanyStateOfIncorporation,cSS as ValidateDocumentEslogType,pSS as ValidationErrorConflictsItemSource,xSS as ValidationErrorConflictsItemTypesItem0,ySS as ValidationErrorConflictsItemTypesItem1,vSS as VatReturnPreviewVatPeriodSetting,SSS as VatReturnStatus,zSS as VatReturnVatPeriodSetting,BSS as VendorTaxClassification,TSS as VerifactuDocumentInputCustomerIdType,DSS as VerifactuDocumentInputInvoiceType,_SS as VerifactuDocumentInputTaxTreatmentsItemQualification,MSS as VerifactuDocumentInputTaxTreatmentsItemTax,PSS as VerifactuDocumentStatus,wSS as VerifactuEvidenceKind,FSS as VerifactuSettingsEligibility,jSS as VerifactuSettingsEnvironment,LSS as VerifactuSettingsTerritory,VSS as WebhookDeliveryStatus,ZSS as WebhookResponseEventsItem,WSS as WebhookWithSecretEventsItem,$SS as WhiteLabelConfigEnvironment,JSS as WhiteLabelPlanCurrencyCode,ebS as WooCommerceAuthorizeRequestAutoProcessOn,yn as accountWebhooks,On as accounting,vn as activities,hn as advanceInvoices,Sn as businessUnits,bn as companyRegistry,zn as creditNotes,fn as currency,Bn as customers,Re as default,In as deliveryNotes,Dn as documents,es as downloadBlob,Nn as eInvoicing,Mn as eSlog,Un as email,Pn as entities,Cn as entityApiKeys,wn as entityInvitations,An as entityStats,Fn as entityUsers,kn as estimates,jn as expenses,Hn as exports,Ln as files,Gn as finaCertificate,Vn as finaDevices,Kn as finaPremises,Zn as finaSettings,qn as financialCategories,Wn as fursCertificate,Yn as fursDevices,$n as fursInternalAct,Qn as fursPremises,Jn as fursSettings,OZh as getAccountId,nt as getClientHeaders,Xn as health,IJh as initSDK,ts as invoices,ns as items,ss as legacyMigration,BZh as listAll,os as locale,is as orderIntegrations,as as orders,rs as paymentReminders,ls as payments,ds as pointOfSale,cs as ptAtcudSeries,us as ptSafT,ps as purchaseOrders,ms as recurringInvoices,xs as revenueRecognition,gn as setAccountId,gs as stripeApp,ys as subscriptions,Os as taxRateEstimates,vs as taxReports,hs as taxes,Ss as ticketBai,bs as transactionType,zs as travelOrders,fs as ujp,Bs as upload,Is as users,Ts as veriFactu,Es as vies,Ds as warehouses,Rs as webhooks,_s as whiteLabelSubscriptions,Ns as whiteLabels,Sgh as zod};