@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/generated/credit-notes/credit-notes.d.cts +1 -1
- package/dist/generated/credit-notes/credit-notes.d.ts +1 -1
- package/dist/generated/invoices/invoices.d.cts +1 -1
- package/dist/generated/invoices/invoices.d.ts +1 -1
- package/dist/generated/model/transactionTypeCheckResponse.d.cts +1 -1
- package/dist/generated/model/transactionTypeCheckResponse.d.ts +1 -1
- package/dist/generated/transaction-type/transaction-type.d.cts +1 -1
- package/dist/generated/transaction-type/transaction-type.d.ts +1 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.cts +1 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.ts +1 -1
- package/dist/generated-zod/invoices/invoices.d.cts +1 -1
- package/dist/generated-zod/invoices/invoices.d.ts +1 -1
- package/dist/generated-zod/transaction-type/transaction-type.d.cts +1 -1
- package/dist/generated-zod/transaction-type/transaction-type.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
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__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),F1h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Aeh),entity_id:e__namespace.string().max(Feh),document_id:e__namespace.string().max(keh),name:e__namespace.string().max(jeh),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(Heh).max(Leh),day_of_week:e__namespace.number().min(Geh).max(Veh).nullish(),day_of_month:e__namespace.number().min(Keh).max(Zeh).nullish(),month_of_year:e__namespace.number().min(qeh).max(Weh).nullish(),start_date:e__namespace.string().max(Yeh),end_date:e__namespace.string().max($eh).nullish(),next_run_date:e__namespace.string().max(Qeh).nullish(),last_run_date:e__namespace.string().max(Jeh).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(Xeh).nullish(),payment_terms_days:e__namespace.number().min(eth).max(tth).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(nth).max(sth),last_generated_invoice_id:e__namespace.string().max(oth).nullish(),last_error:e__namespace.string().max(ith).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ath=/^[a-z]{3,4}_[0-9a-f]{24}$/,j1h=e__namespace.object({id:e__namespace.stringFormat("resource-id",ath).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H1h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({id:e__namespace.string().max(rth),entity_id:e__namespace.string().max(lth),document_id:e__namespace.string().max(dth),name:e__namespace.string().max(cth),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(uth).max(pth),day_of_week:e__namespace.number().min(mth).max(xth).nullish(),day_of_month:e__namespace.number().min(gth).max(yth).nullish(),month_of_year:e__namespace.number().min(Oth).max(vth).nullish(),start_date:e__namespace.string().max(hth),end_date:e__namespace.string().max(Sth).nullish(),next_run_date:e__namespace.string().max(bth).nullish(),last_run_date:e__namespace.string().max(zth).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(fth).nullish(),payment_terms_days:e__namespace.number().min(Bth).max(Ith).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(Tth).max(Eth),last_generated_invoice_id:e__namespace.string().max(Dth).nullish(),last_error:e__namespace.string().max(Rth).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),_th=/^[a-z]{3,4}_[0-9a-f]{24}$/,G1h=e__namespace.object({id:e__namespace.stringFormat("resource-id",_th).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V1h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({name:e__namespace.string().max(Nth).optional(),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).optional(),interval:e__namespace.number().min(Mth).max(Uth).optional(),day_of_week:e__namespace.number().min(Pth).max(Cth).nullish(),day_of_month:e__namespace.number().min(wth).max(Ath).nullish(),month_of_year:e__namespace.number().min(Fth).max(kth).nullish(),start_date:e__namespace.string().regex(jth).optional(),end_date:e__namespace.string().regex(Hth).nullish(),auto_send:e__namespace.boolean().optional(),create_as_draft:e__namespace.boolean().optional(),send_to:e__namespace.string().max(Lth).nullish(),payment_terms_days:e__namespace.number().min(Gth).max(Vth).nullish(),notify_owner:e__namespace.boolean().optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Kth),entity_id:e__namespace.string().max(Zth),document_id:e__namespace.string().max(qth),name:e__namespace.string().max(Wth),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(Yth).max($th),day_of_week:e__namespace.number().min(Qth).max(Jth).nullish(),day_of_month:e__namespace.number().min(Xth).max(enh).nullish(),month_of_year:e__namespace.number().min(tnh).max(nnh).nullish(),start_date:e__namespace.string().max(snh),end_date:e__namespace.string().max(onh).nullish(),next_run_date:e__namespace.string().max(inh).nullish(),last_run_date:e__namespace.string().max(anh).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(rnh).nullish(),payment_terms_days:e__namespace.number().min(lnh).max(dnh).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(cnh).max(unh),last_generated_invoice_id:e__namespace.string().max(pnh).nullish(),last_error:e__namespace.string().max(mnh).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),xnh=/^[a-z]{3,4}_[0-9a-f]{24}$/,q1h=e__namespace.object({id:e__namespace.stringFormat("resource-id",xnh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),W1h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),gnh=/^[a-z]{3,4}_[0-9a-f]{24}$/,Y1h=e__namespace.object({id:e__namespace.stringFormat("resource-id",gnh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$1h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({id:e__namespace.string().max(ynh),entity_id:e__namespace.string().max(Onh),document_id:e__namespace.string().max(vnh),name:e__namespace.string().max(hnh),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(Snh).max(bnh),day_of_week:e__namespace.number().min(znh).max(fnh).nullish(),day_of_month:e__namespace.number().min(Bnh).max(Inh).nullish(),month_of_year:e__namespace.number().min(Tnh).max(Enh).nullish(),start_date:e__namespace.string().max(Dnh),end_date:e__namespace.string().max(Rnh).nullish(),next_run_date:e__namespace.string().max(_nh).nullish(),last_run_date:e__namespace.string().max(Nnh).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(Mnh).nullish(),payment_terms_days:e__namespace.number().min(Unh).max(Pnh).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(Cnh).max(wnh),last_generated_invoice_id:e__namespace.string().max(Anh).nullish(),last_error:e__namespace.string().max(Fnh).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),knh=/^[a-z]{3,4}_[0-9a-f]{24}$/,J1h=e__namespace.object({id:e__namespace.stringFormat("resource-id",knh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),X1h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),jnh=/^[a-z]{3,4}_[0-9a-f]{24}$/,e4h=e__namespace.object({id:e__namespace.stringFormat("resource-id",jnh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),t4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({id:e__namespace.string().max(Hnh),entity_id:e__namespace.string().max(Lnh),document_id:e__namespace.string().max(Gnh),name:e__namespace.string().max(Vnh),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(Knh).max(Znh),day_of_week:e__namespace.number().min(qnh).max(Wnh).nullish(),day_of_month:e__namespace.number().min(Ynh).max($nh).nullish(),month_of_year:e__namespace.number().min(Qnh).max(Jnh).nullish(),start_date:e__namespace.string().max(Xnh),end_date:e__namespace.string().max(esh).nullish(),next_run_date:e__namespace.string().max(tsh).nullish(),last_run_date:e__namespace.string().max(nsh).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(ssh).nullish(),payment_terms_days:e__namespace.number().min(osh).max(ish).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(ash).max(rsh),last_generated_invoice_id:e__namespace.string().max(lsh).nullish(),last_error:e__namespace.string().max(dsh).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),csh=/^[a-z]{3,4}_[0-9a-f]{24}$/,s4h=e__namespace.object({id:e__namespace.stringFormat("resource-id",csh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),o4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({id:e__namespace.string().max(ush),entity_id:e__namespace.string().max(psh),document_id:e__namespace.string().max(msh),name:e__namespace.string().max(xsh),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(gsh).max(ysh),day_of_week:e__namespace.number().min(Osh).max(vsh).nullish(),day_of_month:e__namespace.number().min(hsh).max(Ssh).nullish(),month_of_year:e__namespace.number().min(bsh).max(zsh).nullish(),start_date:e__namespace.string().max(fsh),end_date:e__namespace.string().max(Bsh).nullish(),next_run_date:e__namespace.string().max(Ish).nullish(),last_run_date:e__namespace.string().max(Tsh).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(Esh).nullish(),payment_terms_days:e__namespace.number().min(Dsh).max(Rsh).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(_sh).max(Nsh),last_generated_invoice_id:e__namespace.string().max(Msh).nullish(),last_error:e__namespace.string().max(Ush).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule"),Psh=/^[a-z]{3,4}_[0-9a-f]{24}$/,a4h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Psh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Csh=100,r4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist."),"X-Request-Id":e__namespace.string().max(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__namespace.object({id:e__namespace.string().max(wsh),entity_id:e__namespace.string().max(Ash),document_id:e__namespace.string().max(Fsh),name:e__namespace.string().max(ksh),frequency:e__namespace.enum(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:e__namespace.number().min(jsh).max(Hsh),day_of_week:e__namespace.number().min(Lsh).max(Gsh).nullish(),day_of_month:e__namespace.number().min(Vsh).max(Ksh).nullish(),month_of_year:e__namespace.number().min(Zsh).max(qsh).nullish(),start_date:e__namespace.string().max(Wsh),end_date:e__namespace.string().max(Ysh).nullish(),next_run_date:e__namespace.string().max($sh).nullish(),last_run_date:e__namespace.string().max(Qsh).nullish(),status:e__namespace.enum(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:e__namespace.boolean(),create_as_draft:e__namespace.boolean(),send_to:e__namespace.string().max(Jsh).nullish(),payment_terms_days:e__namespace.number().min(Xsh).max(eoh).nullish(),notify_owner:e__namespace.boolean(),invoices_generated:e__namespace.number().min(toh).max(noh),last_generated_invoice_id:e__namespace.string().max(soh).nullish(),last_error:e__namespace.string().max(ooh).nullish(),last_error_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Recurring invoice schedule configuration").and(e__namespace.looseObject({})).describe("Recurring invoice schedule");var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ioh="off",c4h=e__namespace.object({default_method:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aoh="off",p4h=e__namespace.object({default_method:e__namespace.union([e__namespace.literal("off"),e__namespace.literal("service_period_daily"),e__namespace.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__namespace.object({default_method:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),loh=false,g4h=e__namespace.object({date_from:e__namespace.string().nullish().describe("Optional document issue date lower bound in YYYY-MM-DD format."),date_to:e__namespace.string().nullish().describe("Optional document issue date upper bound in YYYY-MM-DD format."),dry_run:e__namespace.boolean().default(loh).describe("When true, counts eligible documents without writing entries.")}),y4h=e__namespace.object({processed_documents:e__namespace.number(),generated_entries:e__namespace.number(),dry_run:e__namespace.boolean()}),doh="recognized",coh="financial_category",O4h=e__namespace.object({date_from:e__namespace.string().describe("Report start date in YYYY-MM-DD format."),date_to:e__namespace.string().describe("Report end date in YYYY-MM-DD format."),basis:e__namespace.enum(["recognized","deferred"]).default(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__namespace.enum(["financial_category"]).default(coh).describe("Report grouping dimension.")}),v4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),h4h=e__namespace.object({basis:e__namespace.enum(["recognized","deferred"]),group_by:e__namespace.enum(["financial_category"]),calculation_mode:e__namespace.enum(["recognition_entries","document_date_fallback","mixed"]).describe("How report values were calculated. recognition_entries uses generated service-period schedules; document_date_fallback uses finalized document-item totals by issue date while automation is off; mixed combines document-date fallback with explicit line-level recognition entries."),periods:e__namespace.array(e__namespace.object({period:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string()})),series:e__namespace.array(e__namespace.object({key:e__namespace.string(),financial_category_id:e__namespace.string().nullable(),name:e__namespace.string(),color:e__namespace.string().nullable(),values:e__namespace.array(e__namespace.number()),total:e__namespace.number()})),totals:e__namespace.array(e__namespace.number()),total:e__namespace.number(),currency_code:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string()}),uoh="recognized",poh="financial_category",moh=200,S4h=e__namespace.object({date_from:e__namespace.string().describe("Report start date in YYYY-MM-DD format."),date_to:e__namespace.string().describe("Report end date in YYYY-MM-DD format."),basis:e__namespace.enum(["recognized","deferred"]).default(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__namespace.enum(["financial_category"]).default(poh).describe("Report grouping dimension."),financial_category_id:e__namespace.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),z4h=e__namespace.object({calculation_mode:e__namespace.enum(["recognition_entries","document_date_fallback","mixed"]),data:e__namespace.array(e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.string(),document_number:e__namespace.string(),document_date:e__namespace.string(),document_item_id:e__namespace.string(),document_item_name:e__namespace.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e__namespace.string().nullable(),customer_name:e__namespace.string().nullable(),financial_category_id:e__namespace.string().nullable(),financial_category_name:e__namespace.string(),currency_code:e__namespace.string(),source_amount:e__namespace.number(),recognized_amount:e__namespace.number(),period_start:e__namespace.string(),period_end:e__namespace.string(),service_period_start:e__namespace.string(),service_period_end:e__namespace.string(),method:e__namespace.string()})),total:e__namespace.number(),currency_code:e__namespace.string()}),xoh="recognized",goh="financial_category",yoh=200,Ooh=100,f4h=e__namespace.object({date_from:e__namespace.string().describe("Report start date in YYYY-MM-DD format."),date_to:e__namespace.string().describe("Report end date in YYYY-MM-DD format."),basis:e__namespace.enum(["recognized","deferred"]).default(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__namespace.enum(["financial_category"]).default(goh).describe("Report grouping dimension."),financial_category_id:e__namespace.string().nullish().describe("Optional category ID. Use null/omit for all categories."),financial_category_key:e__namespace.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__namespace.boolean().nullish().describe("When true, only lines without a financial category. Cannot be combined with financial_category_id or financial_category_key."),limit:e__namespace.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__namespace.string().nullish().describe("Opaque cursor from pagination.next_cursor of the previous response. Null or omitted starts at the first page."),prev_cursor:e__namespace.string().nullish().describe("Opaque cursor from pagination.prev_cursor of the previous response. Null or omitted starts at the first page.")}),B4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),I4h=e__namespace.object({calculation_mode:e__namespace.enum(["recognition_entries","document_date_fallback","mixed"]),data:e__namespace.array(e__namespace.object({document_item_id:e__namespace.string(),document_item_name:e__namespace.string().nullable(),document_id:e__namespace.string(),document_type:e__namespace.string(),document_number:e__namespace.string(),document_date:e__namespace.string(),customer_id:e__namespace.string().nullable(),customer_name:e__namespace.string().nullable(),financial_category_id:e__namespace.string().nullable(),financial_category_name:e__namespace.string(),currency_code:e__namespace.string(),source_amount:e__namespace.number().describe("Net amount of the whole document line."),amount:e__namespace.number().describe("Sum of the line's entries in the selection: recognized inside the range, or still deferred after date_to."),entry_count:e__namespace.number(),first_period_start:e__namespace.string(),last_period_start:e__namespace.string(),service_period_start:e__namespace.string(),service_period_end:e__namespace.string()})),total:e__namespace.number().describe("Sum of amount across every line in the selection, not only this page."),currency_code:e__namespace.string(),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),voh=/^[a-z]{3,4}_[0-9a-f]{24}$/,T4h=e__namespace.object({id:e__namespace.stringFormat("resource-id",voh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),E4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),D4h=e__namespace.object({calculation_mode:e__namespace.enum(["recognition_entries","document_date_fallback","mixed"]),data:e__namespace.array(e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.string(),document_number:e__namespace.string(),document_date:e__namespace.string(),document_item_id:e__namespace.string(),document_item_name:e__namespace.string().nullish().describe("Name of the document line the entry was generated from."),customer_id:e__namespace.string().nullable(),customer_name:e__namespace.string().nullable(),financial_category_id:e__namespace.string().nullable(),financial_category_name:e__namespace.string(),currency_code:e__namespace.string(),source_amount:e__namespace.number(),recognized_amount:e__namespace.number(),period_start:e__namespace.string(),period_end:e__namespace.string(),service_period_start:e__namespace.string(),service_period_end:e__namespace.string(),method:e__namespace.string()})),total:e__namespace.number(),currency_code:e__namespace.string()}).and(e__namespace.object({document_id:e__namespace.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__namespace.object({entity_id:e__namespace.string().min(1).describe("Entity ID to connect to the Stripe account")}),_4h=e__namespace.object({redirect_url:e__namespace.url().describe("URL to redirect the user to for authentication")}),N4h=e__namespace.object({state:e__namespace.string().min(1).describe("State token from the authorize step"),entity_id:e__namespace.string().min(1).describe("Entity ID to connect to the Stripe account"),force:e__namespace.boolean().nullish().describe("If true, disconnects any existing connection for this Stripe account before connecting. Null is treated as false.")}),M4h=e__namespace.object({id:e__namespace.string().describe("Connection ID"),stripe_account_id:e__namespace.string().describe("Connected Stripe account ID"),entity_id:e__namespace.string().describe("Connected Space Invoices entity ID"),entity_name:e__namespace.string().optional().describe("Connected Space Invoices entity name"),entity_environment:e__namespace.enum(["live","sandbox"]).optional().describe("Connected Space Invoices entity environment"),entity_is_tax_subject:e__namespace.boolean().optional().describe("Whether the connected entity is configured to charge tax"),white_label_id:e__namespace.string().describe("White-label context for this connection"),auto_invoice_config:e__namespace.object({enabled:e__namespace.boolean(),events:e__namespace.array(e__namespace.string()),default_note:e__namespace.string().optional()}).describe("Auto-invoice configuration"),created_at:e__namespace.iso.datetime({}).describe("When the connection was created")}),U4h=e__namespace.object({message:e__namespace.string()}),P4h=e__namespace.object({auto_invoice_enabled:e__namespace.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e__namespace.array(e__namespace.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e__namespace.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),hoh=500,Soh=0,boh=100,C4h=e__namespace.object({auto_invoice_enabled:e__namespace.boolean().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:e__namespace.array(e__namespace.enum(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().max(hoh).nullish().describe("Default note to include on auto-created invoices. Set to null to clear the note."),default_tax_rate:e__namespace.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__namespace.object({auto_invoice_enabled:e__namespace.boolean().describe("Whether auto-invoicing is enabled"),auto_invoice_events:e__namespace.array(e__namespace.string()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e__namespace.string().nullable().describe("Default note for auto-created invoices"),default_tax_rate:e__namespace.number().nullable().describe("Default tax rate applied when Stripe data has no tax info")});var $t={};Y($t,{CheckEntityLimitResponse:()=>j4h,GetCurrentSubscriptionResponse:()=>A4h,UpdateSpendingLimitBody:()=>F4h,UpdateSpendingLimitResponse:()=>k4h,getCurrentSubscriptionResponseUsageEInvoicingSendCountDefault:()=>zoh,updateSpendingLimitBodySpendingLimitCentsMin:()=>foh});var zoh=0,A4h=e__namespace.object({subscription:e__namespace.object({id:e__namespace.string(),account_id:e__namespace.string(),tier:e__namespace.enum(["free","metered"]),spending_limit_cents:e__namespace.number().nullable(),is_internal:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string()}),usage:e__namespace.object({documents_count:e__namespace.number(),e_invoicing_send_count:e__namespace.number().default(zoh),entities_active:e__namespace.number(),period_start:e__namespace.string(),period_end:e__namespace.string()}),limits:e__namespace.object({entities:e__namespace.number().nullable().describe("Max entities for free tier (null for metered)"),documents_per_month:e__namespace.number().nullable().describe("Max docs per month for free tier (null for metered)")}),is_over_limit:e__namespace.boolean()}).describe("Current subscription and usage for Space Invoices account"),foh=0,F4h=e__namespace.object({spending_limit_cents:e__namespace.number().min(foh).nullable()}).describe("Request to update spending limit for metered tier"),k4h=e__namespace.object({spending_limit_cents:e__namespace.number().nullable()}).describe("Updated spending limit"),j4h=e__namespace.object({can_create:e__namespace.boolean(),current_count:e__namespace.number(),limit:e__namespace.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__namespace.object({zip_code:e__namespace.string().regex(Boh).describe("US ZIP code to look up."),state:e__namespace.string().min(Ioh).max(Toh).optional().describe("Optional two-letter US state filter.")}),L4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Eoh),country_code:e__namespace.string().max(Doh),state:e__namespace.string().max(Roh),zip_code:e__namespace.string().max(_oh),tax_region_name:e__namespace.string().max(Noh),estimated_combined_rate:e__namespace.number().min(Moh).max(Uoh),state_rate:e__namespace.number().min(Poh).max(Coh),county_rate:e__namespace.number().min(woh).max(Aoh),city_rate:e__namespace.number().min(Foh).max(koh),special_rate:e__namespace.number().min(joh).max(Hoh),risk_level:e__namespace.number().min(Loh).max(Goh),source:e__namespace.string().max(Voh),source_month:e__namespace.string().max(Koh),imported_at:e__namespace.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__namespace.object({date_from:e__namespace.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e__namespace.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),K4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Z4h=e__namespace.object({date_from:e__namespace.string(),date_to:e__namespace.string(),currency_code:e__namespace.string(),totals:e__namespace.object({output_tax:e__namespace.number(),output_tax_adjustments:e__namespace.number(),input_tax:e__namespace.number(),input_tax_adjustments:e__namespace.number(),reverse_charge_tax:e__namespace.number(),non_deductible_input_tax:e__namespace.number(),net_tax_due:e__namespace.number(),paid:e__namespace.number(),remaining:e__namespace.number()}),by_rate:e__namespace.array(e__namespace.object({rate:e__namespace.number().nullable(),output_tax:e__namespace.number(),output_tax_adjustments:e__namespace.number(),input_tax:e__namespace.number(),input_tax_adjustments:e__namespace.number(),reverse_charge_tax:e__namespace.number(),non_deductible_input_tax:e__namespace.number(),net_tax_due:e__namespace.number()})),payments:e__namespace.array(e__namespace.object({id:e__namespace.string(),entity_id:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string(),amount:e__namespace.number(),currency_code:e__namespace.string(),payment_date:e__namespace.string(),type:e__namespace.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e__namespace.string().nullable(),note:e__namespace.string().nullable(),liability_snapshot:e__namespace.union([e__namespace.object({date_from:e__namespace.string(),date_to:e__namespace.string(),output_tax:e__namespace.number(),input_tax:e__namespace.number(),net_tax_due:e__namespace.number(),paid:e__namespace.number(),remaining:e__namespace.number(),currency_code:e__namespace.string()}),e__namespace.null()]),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}).nullable(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})})),remaining:e__namespace.number(),warnings:e__namespace.array(e__namespace.object({code:e__namespace.string(),message:e__namespace.string(),document_id:e__namespace.string().nullable(),document_type:e__namespace.string().nullable()}))}),q4h=e__namespace.object({date_from:e__namespace.iso.date().describe("Report period start date in YYYY-MM-DD format."),date_to:e__namespace.iso.date().describe("Report period end date in YYYY-MM-DD format.")}),W4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Y4h=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),entity_id:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string(),amount:e__namespace.number(),currency_code:e__namespace.string(),payment_date:e__namespace.string(),type:e__namespace.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e__namespace.string().nullable(),note:e__namespace.string().nullable(),liability_snapshot:e__namespace.union([e__namespace.object({date_from:e__namespace.string(),date_to:e__namespace.string(),output_tax:e__namespace.number(),input_tax:e__namespace.number(),net_tax_due:e__namespace.number(),paid:e__namespace.number(),remaining:e__namespace.number(),currency_code:e__namespace.string()}),e__namespace.null()]),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}).nullable(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}))}),$4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zoh=0,qoh=3,Woh=3,Yoh=100,$oh=500,Q4h=e__namespace.object({date_from:e__namespace.iso.date().describe("Tax period start date in YYYY-MM-DD format."),date_to:e__namespace.iso.date().describe("Tax period end date in YYYY-MM-DD format."),amount:e__namespace.number().gt(Zoh).describe("Amount paid to the tax authority."),currency_code:e__namespace.string().min(qoh).max(Woh).nullish().describe("Payment currency. Defaults to and must match the entity currency."),payment_date:e__namespace.iso.date().nullish().describe("Payment date in YYYY-MM-DD format. Defaults to today."),type:e__namespace.union([e__namespace.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),e__namespace.null()]).optional().describe("How the tax authority payment was made. Defaults to bank_transfer when omitted or null."),reference:e__namespace.string().max(Yoh).nullish().describe("Bank, tax authority, or filing reference."),note:e__namespace.string().max($oh).nullish().describe("Internal note for this tax payment."),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().regex(Qoh).describe("Tax payment identifier")}),X4h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Joh=0,Xoh=100,eih=500,e3h=e__namespace.object({amount:e__namespace.number().gt(Joh).optional().describe("Amount paid to the tax authority."),payment_date:e__namespace.iso.date().optional().describe("Replacement payment date in YYYY-MM-DD format. Omit to leave it unchanged."),type:e__namespace.enum(["bank_transfer","card","cash","check","other"]).optional().describe("Replacement payment type. Omit to leave it unchanged; null is not accepted."),reference:e__namespace.string().max(Xoh).nullish().describe("Bank, tax authority, or filing reference."),note:e__namespace.string().max(eih).nullish().describe("Internal note for this tax payment."),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string(),entity_id:e__namespace.string(),date_from:e__namespace.string(),date_to:e__namespace.string(),amount:e__namespace.number(),currency_code:e__namespace.string(),payment_date:e__namespace.string(),type:e__namespace.enum(["bank_transfer","card","cash","check","other"]).describe("How the tax authority payment was made."),reference:e__namespace.string().nullable(),note:e__namespace.string().nullable(),liability_snapshot:e__namespace.union([e__namespace.object({date_from:e__namespace.string(),date_to:e__namespace.string(),output_tax:e__namespace.number(),input_tax:e__namespace.number(),net_tax_due:e__namespace.number(),paid:e__namespace.number(),remaining:e__namespace.number(),currency_code:e__namespace.string()}),e__namespace.null()]),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}).nullable(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),tih=/^txpay_[0-9a-f]{24}$/,n3h=e__namespace.object({id:e__namespace.string().regex(tih).describe("Tax payment identifier")}),s3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nih=2021,sih=2100,o3h=e__namespace.object({year:e__namespace.number().min(nih).max(sih).optional().describe("Calendar year to review together with its preceding year.")}),i3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oih=2,iih=2,aih=3,rih=3,lih=0,dih=0,cih=2,uih=2,pih=0,mih=0,a3h=e__namespace.object({entity_id:e__namespace.string(),eligible:e__namespace.boolean(),eligibility_reason:e__namespace.enum(["eligible","issuer_not_in_eu","issuer_country_not_supported","entity_not_tax_subject"]),issuer_country_code:e__namespace.string().min(oih).max(iih).nullable(),reporting_currency_code:e__namespace.string().min(aih).max(rih).nullable(),selected_year:e__namespace.number(),auto_apply_destination_vat:e__namespace.boolean(),threshold:e__namespace.object({amount:e__namespace.literal(1e4),currency_code:e__namespace.enum(["EUR"]),comparison_available:e__namespace.boolean(),status:e__namespace.enum(["below_threshold","exceeds_threshold","comparison_unavailable"]),selected_year_net_sales:e__namespace.number(),preceding_year_net_sales:e__namespace.number()}).describe("Comparison with the EU-wide EUR 10,000 threshold. Status is unavailable when the entity reporting currency is not EUR."),periods:e__namespace.array(e__namespace.object({year:e__namespace.number(),invoice_count:e__namespace.number().min(lih),credit_note_count:e__namespace.number().min(dih),net_sales:e__namespace.number(),vat_collected:e__namespace.number(),gross_sales:e__namespace.number(),countries:e__namespace.array(e__namespace.object({country_code:e__namespace.string().min(cih).max(uih),country_name:e__namespace.string(),invoice_count:e__namespace.number().min(pih),credit_note_count:e__namespace.number().min(mih),net_sales:e__namespace.number(),vat_collected:e__namespace.number(),gross_sales:e__namespace.number(),standard_vat_rate:e__namespace.number().nullable(),reduced_vat_rates:e__namespace.array(e__namespace.number())}).describe("Operational intra-EU B2C sales totals for one destination country."))}).describe("EU OSS tracking totals for one calendar year.")),guidance_url:e__namespace.url(),vat_rates_verified_through:e__namespace.iso.date(),notices:e__namespace.array(e__namespace.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__namespace.object({year:e__namespace.string().regex(xih).describe("Year for the combined KIR/KPR export (e.g., 2025)"),month:e__namespace.string().regex(gih).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e__namespace.string().regex(yih).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),l3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),d3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e__namespace.boolean().optional(),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(Oih).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e__namespace.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e__namespace.number().min(vih).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e__namespace.number().min(hih).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(Sih).nullish(),payables:e__namespace.string().max(bih).nullish(),advances_received:e__namespace.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__namespace.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__namespace.string().max(Bih).nullish(),sales_vat_95:e__namespace.string().max(Iih).nullish(),sales_vat_5:e__namespace.string().max(Tih).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(Eih).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(Dih).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(Rih).nullish(),sales_revenue_22:e__namespace.string().max(_ih).nullish(),sales_revenue_95:e__namespace.string().max(Nih).nullish(),sales_revenue_5:e__namespace.string().max(Mih).nullish(),sales_revenue_exempt:e__namespace.string().max(Uih).nullish(),sales_revenue_eu_goods:e__namespace.string().max(Pih).nullish(),sales_revenue_eu_services:e__namespace.string().max(Cih).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(wih).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(Aih).nullish(),sales_revenue_third_country_services:e__namespace.string().max(Fih).nullish(),purchase_expense_22:e__namespace.string().max(kih).nullish(),purchase_expense_95:e__namespace.string().max(jih).nullish(),purchase_expense_5:e__namespace.string().max(Hih).nullish(),purchase_expense_exempt:e__namespace.string().max(Lih).nullish(),purchase_expense_eu_goods:e__namespace.string().max(Gih).nullish(),purchase_expense_eu_services:e__namespace.string().max(Vih).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(Kih).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(Zih).nullish(),purchase_expense_third_country_services:e__namespace.string().max(qih).nullish()}).and(e__namespace.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e__namespace.enum(["stored","registry","unknown"]),inferred_business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e__namespace.object({yearly_normirani:e__namespace.boolean(),vod_xml:e__namespace.boolean(),vasco_xml:e__namespace.boolean(),minimax_xml:e__namespace.boolean()}),unsupported_reason:e__namespace.string().nullable()}),u3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullish().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullish().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullish().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e__namespace.boolean().nullish(),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullish().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(Wih).describe("Slovenian SKD activity code used for yearly reporting.")).nullish(),registration_number:e__namespace.string().nullish(),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullish().describe("Accounting or records mode used for the yearly filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullish().describe("Insurance basis used to determine the applicable normirani rules."),default_withholding_tax_amount:e__namespace.number().min(Yih).nullish().describe("Monetary amount in EUR."),default_foreign_tax_credit_amount:e__namespace.number().min($ih).nullish().describe("Monetary amount in EUR.")}).nullish(),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullish().describe("Stored preferred export format for Slovenian accounting handoff."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(Qih).nullish(),payables:e__namespace.string().max(Jih).nullish(),advances_received:e__namespace.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__namespace.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__namespace.string().max(tah).nullish(),sales_vat_95:e__namespace.string().max(nah).nullish(),sales_vat_5:e__namespace.string().max(sah).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(oah).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(iah).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(aah).nullish(),sales_revenue_22:e__namespace.string().max(rah).nullish(),sales_revenue_95:e__namespace.string().max(lah).nullish(),sales_revenue_5:e__namespace.string().max(dah).nullish(),sales_revenue_exempt:e__namespace.string().max(cah).nullish(),sales_revenue_eu_goods:e__namespace.string().max(uah).nullish(),sales_revenue_eu_services:e__namespace.string().max(pah).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(mah).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(xah).nullish(),sales_revenue_third_country_services:e__namespace.string().max(gah).nullish(),purchase_expense_22:e__namespace.string().max(yah).nullish(),purchase_expense_95:e__namespace.string().max(Oah).nullish(),purchase_expense_5:e__namespace.string().max(vah).nullish(),purchase_expense_exempt:e__namespace.string().max(hah).nullish(),purchase_expense_eu_goods:e__namespace.string().max(Sah).nullish(),purchase_expense_eu_services:e__namespace.string().max(bah).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(zah).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(fah).nullish(),purchase_expense_third_country_services:e__namespace.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__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e__namespace.boolean().optional(),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(Iah).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e__namespace.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e__namespace.number().min(Tah).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e__namespace.number().min(Eah).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(Dah).nullish(),payables:e__namespace.string().max(Rah).nullish(),advances_received:e__namespace.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__namespace.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__namespace.string().max(Mah).nullish(),sales_vat_95:e__namespace.string().max(Uah).nullish(),sales_vat_5:e__namespace.string().max(Pah).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(Cah).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(wah).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(Aah).nullish(),sales_revenue_22:e__namespace.string().max(Fah).nullish(),sales_revenue_95:e__namespace.string().max(kah).nullish(),sales_revenue_5:e__namespace.string().max(jah).nullish(),sales_revenue_exempt:e__namespace.string().max(Hah).nullish(),sales_revenue_eu_goods:e__namespace.string().max(Lah).nullish(),sales_revenue_eu_services:e__namespace.string().max(Gah).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(Vah).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(Kah).nullish(),sales_revenue_third_country_services:e__namespace.string().max(Zah).nullish(),purchase_expense_22:e__namespace.string().max(qah).nullish(),purchase_expense_95:e__namespace.string().max(Wah).nullish(),purchase_expense_5:e__namespace.string().max(Yah).nullish(),purchase_expense_exempt:e__namespace.string().max($ah).nullish(),purchase_expense_eu_goods:e__namespace.string().max(Qah).nullish(),purchase_expense_eu_services:e__namespace.string().max(Jah).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(Xah).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(erh).nullish(),purchase_expense_third_country_services:e__namespace.string().max(trh).nullish()}).and(e__namespace.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e__namespace.enum(["stored","registry","unknown"]),inferred_business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e__namespace.object({yearly_normirani:e__namespace.boolean(),vod_xml:e__namespace.boolean(),vasco_xml:e__namespace.boolean(),minimax_xml:e__namespace.boolean()}),unsupported_reason:e__namespace.string().nullable()}),x3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nrh=2025,srh=2100,g3h=e__namespace.object({year:e__namespace.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__namespace.object({entity_id:e__namespace.string(),year:e__namespace.number().min(orh).max(irh).describe("Tax year for the yearly Slovenia eDavki filing."),filing_kind:e__namespace.enum(["regular_annual"]),profile:e__namespace.object({business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),income_tax_regime:e__namespace.union([e__namespace.literal("normirani"),e__namespace.literal("dejanski"),e__namespace.literal(null)]).nullable().describe("Income tax regime used by the Slovenian entity."),vat_profile:e__namespace.union([e__namespace.literal("standard"),e__namespace.literal("special_vat_identified"),e__namespace.literal("non_vat_subject"),e__namespace.literal(null)]).nullable().describe("Slovenia-specific VAT subject subtype."),calculates_deduction_ratio:e__namespace.boolean().optional(),tax_residency:e__namespace.union([e__namespace.literal("resident"),e__namespace.literal("non_resident"),e__namespace.literal(null)]).nullable().describe("Tax residency status for Slovenian yearly reporting."),yearly_reporting:e__namespace.object({activity_codes:e__namespace.array(e__namespace.string().regex(arh).describe("Slovenian SKD activity code used for yearly reporting.")).describe("Ordered SKD activity codes."),registration_number:e__namespace.string().nullable().describe("Optional registration number used in the filing."),accounting_type:e__namespace.union([e__namespace.literal("records"),e__namespace.literal("single_entry"),e__namespace.literal("double_entry"),e__namespace.literal(null)]).nullable().describe("Accounting / records mode used in the filing."),normiranec_insurance_basis:e__namespace.union([e__namespace.literal("full_time_self_employed"),e__namespace.literal("other"),e__namespace.literal(null)]).nullable().describe("Insurance basis used by normirani rules."),default_withholding_tax_amount:e__namespace.number().min(rrh).nullable().describe("Persisted default withholding tax amount for yearly reviews."),default_foreign_tax_credit_amount:e__namespace.number().min(lrh).nullable().describe("Persisted default foreign tax credit amount for yearly reviews.")}),accounting_exports:e__namespace.object({preferred_format:e__namespace.union([e__namespace.literal("vod_xml"),e__namespace.literal("vasco_xml"),e__namespace.literal("minimax_xml"),e__namespace.literal(null)]).nullable().describe("Preferred Slovenian accounting export format."),konto_mappings:e__namespace.object({receivables:e__namespace.string().max(drh).nullish(),payables:e__namespace.string().max(crh).nullish(),advances_received:e__namespace.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__namespace.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__namespace.string().max(mrh).nullish(),sales_vat_95:e__namespace.string().max(xrh).nullish(),sales_vat_5:e__namespace.string().max(grh).nullish(),purchase_vat_recoverable_22:e__namespace.string().max(yrh).nullish(),purchase_vat_recoverable_95:e__namespace.string().max(Orh).nullish(),purchase_vat_recoverable_5:e__namespace.string().max(vrh).nullish(),sales_revenue_22:e__namespace.string().max(hrh).nullish(),sales_revenue_95:e__namespace.string().max(Srh).nullish(),sales_revenue_5:e__namespace.string().max(brh).nullish(),sales_revenue_exempt:e__namespace.string().max(zrh).nullish(),sales_revenue_eu_goods:e__namespace.string().max(frh).nullish(),sales_revenue_eu_services:e__namespace.string().max(Brh).nullish(),sales_revenue_reverse_charge:e__namespace.string().max(Irh).nullish(),sales_revenue_third_country_goods:e__namespace.string().max(Trh).nullish(),sales_revenue_third_country_services:e__namespace.string().max(Erh).nullish(),purchase_expense_22:e__namespace.string().max(Drh).nullish(),purchase_expense_95:e__namespace.string().max(Rrh).nullish(),purchase_expense_5:e__namespace.string().max(_rh).nullish(),purchase_expense_exempt:e__namespace.string().max(Nrh).nullish(),purchase_expense_eu_goods:e__namespace.string().max(Mrh).nullish(),purchase_expense_eu_services:e__namespace.string().max(Urh).nullish(),purchase_expense_reverse_charge:e__namespace.string().max(Prh).nullish(),purchase_expense_third_country_goods:e__namespace.string().max(Crh).nullish(),purchase_expense_third_country_services:e__namespace.string().max(wrh).nullish()}).and(e__namespace.unknown().describe("Normalized semantic konto mappings shared by Slovenian accounting exports."))}),business_form_source:e__namespace.enum(["stored","registry","unknown"]),inferred_business_form:e__namespace.union([e__namespace.literal("sp"),e__namespace.literal("doo"),e__namespace.literal("dno"),e__namespace.literal("club"),e__namespace.literal(null)]).nullable().describe("Canonical Slovenian legal form for the entity."),supported_exports:e__namespace.object({yearly_normirani:e__namespace.boolean(),vod_xml:e__namespace.boolean(),vasco_xml:e__namespace.boolean(),minimax_xml:e__namespace.boolean()}),unsupported_reason:e__namespace.string().nullable()}),auto_values:e__namespace.object({total_invoice_revenue:e__namespace.number(),total_credit_note_reduction:e__namespace.number(),computed_revenue:e__namespace.number(),adjusted_revenue:e__namespace.number(),normative_expense_rate:e__namespace.number(),normative_expenses:e__namespace.number(),tax_base:e__namespace.number(),income_tax_rate:e__namespace.number(),income_tax_amount:e__namespace.number(),advance_tax_amount:e__namespace.number(),monthly_installment_amount:e__namespace.number(),quarterly_installment_amount:e__namespace.number()}),manual_values:e__namespace.object({withholding_tax_amount:e__namespace.number().min(Arh).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e__namespace.number().min(Frh).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e__namespace.number().min(krh).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e__namespace.number().min(jrh).describe("Monetary amount in EUR."),revenue_adjustment_increase:e__namespace.number().min(Hrh).describe("Monetary amount in EUR.")}),derived_flags:e__namespace.object({has_foreign_customers:e__namespace.boolean(),has_foreign_tax_numbers:e__namespace.boolean(),has_non_eur_documents:e__namespace.boolean()}),warnings:e__namespace.array(e__namespace.object({code:e__namespace.string(),message:e__namespace.string(),severity:e__namespace.enum(["info","warning"])})),issue_details:e__namespace.array(e__namespace.object({code:e__namespace.string(),title:e__namespace.string(),summary:e__namespace.string(),explanation:e__namespace.string(),action:e__namespace.string().nullable(),severity:e__namespace.enum(["info","warning"]),official_sources:e__namespace.array(e__namespace.object({label:e__namespace.string(),url:e__namespace.url(),issuer:e__namespace.enum(["FURS","PISRS"])})),affected_documents:e__namespace.array(e__namespace.object({id:e__namespace.string(),type:e__namespace.enum(["invoice","credit_note"]),number:e__namespace.string(),date:e__namespace.string(),customer_name:e__namespace.string().nullable(),customer_country_code:e__namespace.string().nullable(),customer_tax_number:e__namespace.string().nullable(),currency_code:e__namespace.string(),total:e__namespace.number(),total_converted:e__namespace.number().nullable(),reason:e__namespace.string(),document_path:e__namespace.string()}))})),rule_summary:e__namespace.object({normative_expense_rule:e__namespace.string(),income_tax_rule:e__namespace.string(),advance_rule:e__namespace.string()})}),O3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Lrh=2025,Grh=2100,Vrh=0,Krh=0,Zrh=0,qrh=0,Wrh=0,v3h=e__namespace.object({year:e__namespace.number().min(Lrh).max(Grh).describe("Tax year for the yearly Slovenia eDavki filing."),manual_values:e__namespace.object({withholding_tax_amount:e__namespace.number().min(Vrh).describe("Monetary amount in EUR."),foreign_tax_credit_amount:e__namespace.number().min(Krh).describe("Monetary amount in EUR."),prior_advance_income_tax_amount:e__namespace.number().min(Zrh).describe("Monetary amount in EUR."),revenue_adjustment_decrease:e__namespace.number().min(qrh).describe("Monetary amount in EUR."),revenue_adjustment_increase:e__namespace.number().min(Wrh).describe("Monetary amount in EUR.")})}),h3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),S3h=e__namespace.object({date_from:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),b3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),z3h=e__namespace.object({date_from:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),f3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),B3h=e__namespace.object({date_from:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format."),date_to:e__namespace.iso.date().describe("Inclusive document date in YYYY-MM-DD format.")}),I3h=e__namespace.object({date_from:e__namespace.iso.date().describe("Inclusive lower bound of the issued or supplier document date, in YYYY-MM-DD format."),date_to:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Yrh=100,$rh=0,Qrh=100,Jrh=2,Xrh=2,elh=60,D3h=e__namespace.object({name:e__namespace.string().max(Yrh).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min($rh).max(Qrh),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(nlh).default(tlh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e__namespace.union([e__namespace.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),e__namespace.array(e__namespace.enum(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e__namespace.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**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__namespace.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__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),_3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),slh=36,olh=100,ilh=0,alh=100,rlh=2,llh=2,dlh=36,N3h=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(slh),name:e__namespace.string().max(olh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(ilh).max(alh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(dlh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,M3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),U3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ulh=0,plh=100,P3h=e__namespace.object({tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(ulh).max(plh),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),mlh=36,xlh=100,glh=0,ylh=100,Olh=2,vlh=2,hlh=36,C3h=e__namespace.object({id:e__namespace.string().max(mlh),name:e__namespace.string().max(xlh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(glh).max(ylh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(hlh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Slh=/^[a-z]{3,4}_[0-9a-f]{24}$/,w3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Slh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),A3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),blh=100,zlh=0,flh=100,Blh=2,Ilh=2,Tlh=60,F3h=e__namespace.object({name:e__namespace.string().max(blh).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(zlh).max(flh),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Elh),name:e__namespace.string().max(Dlh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Rlh).max(_lh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(Ulh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Plh=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Plh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,L3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),G3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wlh=36,Alh=100,Flh=0,klh=100,jlh=2,Hlh=2,Llh=36,V3h=e__namespace.object({id:e__namespace.string().max(wlh),name:e__namespace.string().max(Alh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Flh).max(klh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(Llh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Glh=/^[a-z]{3,4}_[0-9a-f]{24}$/,K3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Glh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Z3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vlh=120,Klh=120,Zlh=120,W3h=e__namespace.object({enabled:e__namespace.boolean(),territory:e__namespace.union([e__namespace.literal("alava"),e__namespace.literal("bizkaia"),e__namespace.literal("gipuzkoa"),e__namespace.literal(null)]).nullable(),environment:e__namespace.enum(["sandbox","live"]),lroe_model:e__namespace.union([e__namespace.literal("140"),e__namespace.literal("240"),e__namespace.literal(null)]).nullable(),lroe_individual:e__namespace.union([e__namespace.object({given_name:e__namespace.string().min(1).max(Vlh),surname1:e__namespace.string().min(1).max(Klh),surname2:e__namespace.string().min(1).max(Zlh)}),e__namespace.null()]),authorization_confirmed:e__namespace.boolean(),ready:e__namespace.boolean(),blockers:e__namespace.array(e__namespace.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__namespace.string().nullable(),has_issued_records:e__namespace.boolean()}),Y3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qlh=120,Wlh=120,Ylh=120,$3h=e__namespace.object({enabled:e__namespace.boolean().nullish(),territory:e__namespace.union([e__namespace.literal("alava"),e__namespace.literal("bizkaia"),e__namespace.literal("gipuzkoa"),e__namespace.literal(null)]).nullish(),lroe_model:e__namespace.union([e__namespace.literal("140"),e__namespace.literal("240"),e__namespace.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e__namespace.union([e__namespace.object({given_name:e__namespace.string().min(1).max(qlh),surname1:e__namespace.string().min(1).max(Wlh),surname2:e__namespace.string().min(1).max(Ylh)}),e__namespace.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__namespace.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__namespace.object({enabled:e__namespace.boolean(),territory:e__namespace.union([e__namespace.literal("alava"),e__namespace.literal("bizkaia"),e__namespace.literal("gipuzkoa"),e__namespace.literal(null)]).nullable(),environment:e__namespace.enum(["sandbox","live"]),lroe_model:e__namespace.union([e__namespace.literal("140"),e__namespace.literal("240"),e__namespace.literal(null)]).nullable(),lroe_individual:e__namespace.union([e__namespace.object({given_name:e__namespace.string().min(1).max($lh),surname1:e__namespace.string().min(1).max(Qlh),surname2:e__namespace.string().min(1).max(Jlh)}),e__namespace.null()]),authorization_confirmed:e__namespace.boolean(),ready:e__namespace.boolean(),blockers:e__namespace.array(e__namespace.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__namespace.string().nullable(),has_issued_records:e__namespace.boolean()}),J3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),X3h=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e__namespace.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),eGh=e__namespace.object({certificate_expiry:e__namespace.string()}),Xlh=36,tGh=e__namespace.object({id:e__namespace.string().min(1).max(Xlh)}),nGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sGh=e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.enum(["invoice","credit_note","advance_invoice"]),operation:e__namespace.enum(["issue","cancel"]),territory:e__namespace.enum(["alava","bizkaia","gipuzkoa"]),environment:e__namespace.enum(["sandbox","live"]),sequence:e__namespace.number(),previous_record_id:e__namespace.string().nullable(),source_record_id:e__namespace.string().nullable(),identifier:e__namespace.string(),qr_url:e__namespace.string().nullable(),cancellation_reason:e__namespace.string().nullable(),xml_sha256:e__namespace.string(),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e__namespace.array(e__namespace.string()),authority_receipt:e__namespace.string().nullable(),authority_record_state:e__namespace.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e__namespace.object({outcome:e__namespace.enum(["accepted","rejected"]),evidence_sha256:e__namespace.string(),resolved_at:e__namespace.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e__namespace.object({result:e__namespace.enum(["found","not_found","unknown"]),record_state:e__namespace.string().nullable(),codes:e__namespace.array(e__namespace.string()),queried_at:e__namespace.string()}).nullable(),attempt_count:e__namespace.number().describe("Number of submission attempts, excluding authority queries."),retryable:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string(),recent_attempts:e__namespace.array(e__namespace.object({id:e__namespace.string(),kind:e__namespace.enum(["submission","query","manual"]),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e__namespace.number().nullable(),codes:e__namespace.array(e__namespace.string()),started_at:e__namespace.string(),finished_at:e__namespace.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),edh=36,oGh=e__namespace.object({id:e__namespace.string().min(1).max(edh)}),iGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tdh=36,aGh=e__namespace.object({id:e__namespace.string().min(1).max(tdh)}),rGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lGh=e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.enum(["invoice","credit_note","advance_invoice"]),operation:e__namespace.enum(["issue","cancel"]),territory:e__namespace.enum(["alava","bizkaia","gipuzkoa"]),environment:e__namespace.enum(["sandbox","live"]),sequence:e__namespace.number(),previous_record_id:e__namespace.string().nullable(),source_record_id:e__namespace.string().nullable(),identifier:e__namespace.string(),qr_url:e__namespace.string().nullable(),cancellation_reason:e__namespace.string().nullable(),xml_sha256:e__namespace.string(),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e__namespace.array(e__namespace.string()),authority_receipt:e__namespace.string().nullable(),authority_record_state:e__namespace.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e__namespace.object({outcome:e__namespace.enum(["accepted","rejected"]),evidence_sha256:e__namespace.string(),resolved_at:e__namespace.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e__namespace.object({result:e__namespace.enum(["found","not_found","unknown"]),record_state:e__namespace.string().nullable(),codes:e__namespace.array(e__namespace.string()),queried_at:e__namespace.string()}).nullable(),attempt_count:e__namespace.number().describe("Number of submission attempts, excluding authority queries."),retryable:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string(),recent_attempts:e__namespace.array(e__namespace.object({id:e__namespace.string(),kind:e__namespace.enum(["submission","query","manual"]),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e__namespace.number().nullable(),codes:e__namespace.array(e__namespace.string()),started_at:e__namespace.string(),finished_at:e__namespace.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),ndh=36,dGh=e__namespace.object({id:e__namespace.string().min(1).max(ndh)}),cGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uGh=e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.enum(["invoice","credit_note","advance_invoice"]),operation:e__namespace.enum(["issue","cancel"]),territory:e__namespace.enum(["alava","bizkaia","gipuzkoa"]),environment:e__namespace.enum(["sandbox","live"]),sequence:e__namespace.number(),previous_record_id:e__namespace.string().nullable(),source_record_id:e__namespace.string().nullable(),identifier:e__namespace.string(),qr_url:e__namespace.string().nullable(),cancellation_reason:e__namespace.string().nullable(),xml_sha256:e__namespace.string(),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e__namespace.array(e__namespace.string()),authority_receipt:e__namespace.string().nullable(),authority_record_state:e__namespace.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e__namespace.object({outcome:e__namespace.enum(["accepted","rejected"]),evidence_sha256:e__namespace.string(),resolved_at:e__namespace.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e__namespace.object({result:e__namespace.enum(["found","not_found","unknown"]),record_state:e__namespace.string().nullable(),codes:e__namespace.array(e__namespace.string()),queried_at:e__namespace.string()}).nullable(),attempt_count:e__namespace.number().describe("Number of submission attempts, excluding authority queries."),retryable:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string(),recent_attempts:e__namespace.array(e__namespace.object({id:e__namespace.string(),kind:e__namespace.enum(["submission","query","manual"]),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e__namespace.number().nullable(),codes:e__namespace.array(e__namespace.string()),started_at:e__namespace.string(),finished_at:e__namespace.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__namespace.object({"x-entity-id":e__namespace.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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.string().min(sdh).max(odh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(idh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(adh).max(rdh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.union([e__namespace.literal("separator"),e__namespace.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.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__namespace.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__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(ldh).max(ddh).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(cdh).max(udh).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.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__namespace.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__namespace.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__namespace.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e__namespace.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e__namespace.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__namespace.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__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.literal("mixed"),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(gdh).default(xdh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e__namespace.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__namespace.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e__namespace.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__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),_3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),slh=36,olh=100,ilh=0,alh=100,rlh=2,llh=2,dlh=36,N3h=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(slh),name:e__namespace.string().max(olh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(ilh).max(alh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(dlh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,M3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),U3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ulh=0,plh=100,P3h=e__namespace.object({tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(ulh).max(plh),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),mlh=36,xlh=100,glh=0,ylh=100,Olh=2,vlh=2,hlh=36,C3h=e__namespace.object({id:e__namespace.string().max(mlh),name:e__namespace.string().max(xlh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(glh).max(ylh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(hlh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Slh=/^[a-z]{3,4}_[0-9a-f]{24}$/,w3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Slh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),A3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),blh=100,zlh=0,flh=100,Blh=2,Ilh=2,Tlh=60,F3h=e__namespace.object({name:e__namespace.string().max(blh).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(zlh).max(flh),valid_from:e__namespace.iso.datetime({}).nullish()})).min(1),is_default:e__namespace.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Elh),name:e__namespace.string().max(Dlh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Rlh).max(_lh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(Ulh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Plh=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Plh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Clh=/^[a-z]{3,4}_[0-9a-f]{24}$/,L3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Clh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),G3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wlh=36,Alh=100,Flh=0,klh=100,jlh=2,Hlh=2,Llh=36,V3h=e__namespace.object({id:e__namespace.string().max(wlh),name:e__namespace.string().max(Alh),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Flh).max(klh),valid_from:e__namespace.iso.datetime({})})).describe("Tax rate history"),is_default:e__namespace.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e__namespace.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e__namespace.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__namespace.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e__namespace.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__namespace.string().max(Llh),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Tax definition with rate history").and(e__namespace.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Glh=/^[a-z]{3,4}_[0-9a-f]{24}$/,K3h=e__namespace.object({id:e__namespace.stringFormat("resource-id",Glh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Z3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vlh=120,Klh=120,Zlh=120,W3h=e__namespace.object({enabled:e__namespace.boolean(),territory:e__namespace.union([e__namespace.literal("alava"),e__namespace.literal("bizkaia"),e__namespace.literal("gipuzkoa"),e__namespace.literal(null)]).nullable(),environment:e__namespace.enum(["sandbox","live"]),lroe_model:e__namespace.union([e__namespace.literal("140"),e__namespace.literal("240"),e__namespace.literal(null)]).nullable(),lroe_individual:e__namespace.union([e__namespace.object({given_name:e__namespace.string().min(1).max(Vlh),surname1:e__namespace.string().min(1).max(Klh),surname2:e__namespace.string().min(1).max(Zlh)}),e__namespace.null()]),authorization_confirmed:e__namespace.boolean(),ready:e__namespace.boolean(),blockers:e__namespace.array(e__namespace.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__namespace.string().nullable(),has_issued_records:e__namespace.boolean()}),Y3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qlh=120,Wlh=120,Ylh=120,$3h=e__namespace.object({enabled:e__namespace.boolean().nullish(),territory:e__namespace.union([e__namespace.literal("alava"),e__namespace.literal("bizkaia"),e__namespace.literal("gipuzkoa"),e__namespace.literal(null)]).nullish(),lroe_model:e__namespace.union([e__namespace.literal("140"),e__namespace.literal("240"),e__namespace.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e__namespace.union([e__namespace.object({given_name:e__namespace.string().min(1).max(qlh),surname1:e__namespace.string().min(1).max(Wlh),surname2:e__namespace.string().min(1).max(Ylh)}),e__namespace.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__namespace.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__namespace.object({enabled:e__namespace.boolean(),territory:e__namespace.union([e__namespace.literal("alava"),e__namespace.literal("bizkaia"),e__namespace.literal("gipuzkoa"),e__namespace.literal(null)]).nullable(),environment:e__namespace.enum(["sandbox","live"]),lroe_model:e__namespace.union([e__namespace.literal("140"),e__namespace.literal("240"),e__namespace.literal(null)]).nullable(),lroe_individual:e__namespace.union([e__namespace.object({given_name:e__namespace.string().min(1).max($lh),surname1:e__namespace.string().min(1).max(Qlh),surname2:e__namespace.string().min(1).max(Jlh)}),e__namespace.null()]),authorization_confirmed:e__namespace.boolean(),ready:e__namespace.boolean(),blockers:e__namespace.array(e__namespace.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__namespace.string().nullable(),has_issued_records:e__namespace.boolean()}),J3h=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),X3h=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e__namespace.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),eGh=e__namespace.object({certificate_expiry:e__namespace.string()}),Xlh=36,tGh=e__namespace.object({id:e__namespace.string().min(1).max(Xlh)}),nGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sGh=e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.enum(["invoice","credit_note","advance_invoice"]),operation:e__namespace.enum(["issue","cancel"]),territory:e__namespace.enum(["alava","bizkaia","gipuzkoa"]),environment:e__namespace.enum(["sandbox","live"]),sequence:e__namespace.number(),previous_record_id:e__namespace.string().nullable(),source_record_id:e__namespace.string().nullable(),identifier:e__namespace.string(),qr_url:e__namespace.string().nullable(),cancellation_reason:e__namespace.string().nullable(),xml_sha256:e__namespace.string(),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e__namespace.array(e__namespace.string()),authority_receipt:e__namespace.string().nullable(),authority_record_state:e__namespace.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e__namespace.object({outcome:e__namespace.enum(["accepted","rejected"]),evidence_sha256:e__namespace.string(),resolved_at:e__namespace.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e__namespace.object({result:e__namespace.enum(["found","not_found","unknown"]),record_state:e__namespace.string().nullable(),codes:e__namespace.array(e__namespace.string()),queried_at:e__namespace.string()}).nullable(),attempt_count:e__namespace.number().describe("Number of submission attempts, excluding authority queries."),retryable:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string(),recent_attempts:e__namespace.array(e__namespace.object({id:e__namespace.string(),kind:e__namespace.enum(["submission","query","manual"]),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e__namespace.number().nullable(),codes:e__namespace.array(e__namespace.string()),started_at:e__namespace.string(),finished_at:e__namespace.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),edh=36,oGh=e__namespace.object({id:e__namespace.string().min(1).max(edh)}),iGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tdh=36,aGh=e__namespace.object({id:e__namespace.string().min(1).max(tdh)}),rGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lGh=e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.enum(["invoice","credit_note","advance_invoice"]),operation:e__namespace.enum(["issue","cancel"]),territory:e__namespace.enum(["alava","bizkaia","gipuzkoa"]),environment:e__namespace.enum(["sandbox","live"]),sequence:e__namespace.number(),previous_record_id:e__namespace.string().nullable(),source_record_id:e__namespace.string().nullable(),identifier:e__namespace.string(),qr_url:e__namespace.string().nullable(),cancellation_reason:e__namespace.string().nullable(),xml_sha256:e__namespace.string(),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e__namespace.array(e__namespace.string()),authority_receipt:e__namespace.string().nullable(),authority_record_state:e__namespace.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e__namespace.object({outcome:e__namespace.enum(["accepted","rejected"]),evidence_sha256:e__namespace.string(),resolved_at:e__namespace.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e__namespace.object({result:e__namespace.enum(["found","not_found","unknown"]),record_state:e__namespace.string().nullable(),codes:e__namespace.array(e__namespace.string()),queried_at:e__namespace.string()}).nullable(),attempt_count:e__namespace.number().describe("Number of submission attempts, excluding authority queries."),retryable:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string(),recent_attempts:e__namespace.array(e__namespace.object({id:e__namespace.string(),kind:e__namespace.enum(["submission","query","manual"]),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e__namespace.number().nullable(),codes:e__namespace.array(e__namespace.string()),started_at:e__namespace.string(),finished_at:e__namespace.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),ndh=36,dGh=e__namespace.object({id:e__namespace.string().min(1).max(ndh)}),cGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uGh=e__namespace.object({id:e__namespace.string(),document_id:e__namespace.string(),document_type:e__namespace.enum(["invoice","credit_note","advance_invoice"]),operation:e__namespace.enum(["issue","cancel"]),territory:e__namespace.enum(["alava","bizkaia","gipuzkoa"]),environment:e__namespace.enum(["sandbox","live"]),sequence:e__namespace.number(),previous_record_id:e__namespace.string().nullable(),source_record_id:e__namespace.string().nullable(),identifier:e__namespace.string(),qr_url:e__namespace.string().nullable(),cancellation_reason:e__namespace.string().nullable(),xml_sha256:e__namespace.string(),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e__namespace.array(e__namespace.string()),authority_receipt:e__namespace.string().nullable(),authority_record_state:e__namespace.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e__namespace.object({outcome:e__namespace.enum(["accepted","rejected"]),evidence_sha256:e__namespace.string(),resolved_at:e__namespace.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e__namespace.object({result:e__namespace.enum(["found","not_found","unknown"]),record_state:e__namespace.string().nullable(),codes:e__namespace.array(e__namespace.string()),queried_at:e__namespace.string()}).nullable(),attempt_count:e__namespace.number().describe("Number of submission attempts, excluding authority queries."),retryable:e__namespace.boolean(),created_at:e__namespace.string(),updated_at:e__namespace.string(),recent_attempts:e__namespace.array(e__namespace.object({id:e__namespace.string(),kind:e__namespace.enum(["submission","query","manual"]),status:e__namespace.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e__namespace.number().nullable(),codes:e__namespace.array(e__namespace.string()),started_at:e__namespace.string(),finished_at:e__namespace.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__namespace.object({"x-entity-id":e__namespace.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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.string().min(sdh).max(odh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(idh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(adh).max(rdh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.union([e__namespace.literal("separator"),e__namespace.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.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__namespace.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__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(ldh).max(ddh).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(cdh).max(udh).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.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__namespace.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__namespace.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__namespace.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e__namespace.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__namespace.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__namespace.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__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.literal("mixed"),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(gdh).default(xdh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e__namespace.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__namespace.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ydh=200,Odh=0,vdh=1e6,hdh=/^\d{4}-\d{2}-\d{2}$/,OGh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(ydh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Odh).max(vdh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.string().min(1).max(Sdh).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(bdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(zdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(fdh).describe("Business purpose of the trip."),origin:e__namespace.string().max(Bdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(Idh).describe("Trip destination location."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e__namespace.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__namespace.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e__namespace.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__namespace.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__namespace.string().max(Edh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.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__namespace.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e__namespace.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__namespace.number().gt(Mdh).max(Udh).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(wdh).describe("Description of the cost line."),amount:e__namespace.number().gt(Adh).max(Fdh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.string().max(Hdh).nullish().describe("Free-text note. Omit or send null to leave unset.")}),SGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.string().min(1).max(Ldh).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(Gdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(Vdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(Kdh).describe("Business purpose of the trip."),origin:e__namespace.string().max(Zdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(qdh).describe("Trip destination location."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e__namespace.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__namespace.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e__namespace.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__namespace.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__namespace.string().max(Ydh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.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__namespace.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e__namespace.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__namespace.number().gt(ech).max(tch).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(och).describe("Description of the cost line."),amount:e__namespace.number().gt(ich).max(ach).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.string().max(dch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),zGh=e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),cch=2,uch=5,pch=2,mch=5,fGh=e__namespace.object({locale:e__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.string().min(1).max(xch).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(gch).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(ych).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(Och).describe("Business purpose of the trip."),origin:e__namespace.string().max(vch).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(hch).describe("Trip destination location."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e__namespace.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__namespace.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e__namespace.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__namespace.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__namespace.string().max(bch).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.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__namespace.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e__namespace.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__namespace.number().gt(Tch).max(Ech).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(_ch).describe("Description of the cost line."),amount:e__namespace.number().gt(Nch).max(Mch).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.string().max(Cch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),TGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wch=3,Ach=300,Fch=3,kch=300,EGh=e__namespace.object({from:e__namespace.string().min(wch).max(Ach).describe("Starting address to geocode."),to:e__namespace.string().min(Fch).max(kch).describe("Destination address to geocode."),round_trip:e__namespace.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),DGh=e__namespace.object({distance_km:e__namespace.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e__namespace.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e__namespace.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e__namespace.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e__namespace.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),jch=/^[a-z]{3,4}_[0-9a-f]{24}$/,RGh=e__namespace.object({id:e__namespace.stringFormat("resource-id",jch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_Gh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hch=200,Lch=0,Gch=1e6,Vch=/^\d{4}-\d{2}-\d{2}$/,NGh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Hch).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Lch).max(Gch).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Kch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),UGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.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__namespace.string().max(qch).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e__namespace.string().regex(Wch).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e__namespace.string().min(1).max(Ych).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e__namespace.string().max($ch).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e__namespace.string().min(1).max(Qch).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e__namespace.string().regex(Jch).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e__namespace.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__namespace.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__namespace.union([e__namespace.literal("own_vehicle"),e__namespace.literal("company_vehicle"),e__namespace.literal("public_transport"),e__namespace.literal("other"),e__namespace.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e__namespace.string().max(Xch).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e__namespace.number().min(euh).max(tuh).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e__namespace.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e__namespace.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__namespace.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__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(luh).describe("Description of the cost line."),amount:e__namespace.number().gt(duh).max(cuh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.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__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(xuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(guh).max(yuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",vuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),AGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),huh=/^[a-z]{3,4}_[0-9a-f]{24}$/,FGh=e__namespace.object({id:e__namespace.stringFormat("resource-id",huh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),kGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Suh=200,buh=0,zuh=1e6,fuh=/^\d{4}-\d{2}-\d{2}$/,jGh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Suh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(buh).max(zuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Buh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Iuh=200,Tuh=0,Euh=1e6,Duh=/^\d{4}-\d{2}-\d{2}$/,GGh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Iuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Tuh).max(Euh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Ruh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_uh=3,Nuh=500,ZGh=e__namespace.object({reason:e__namespace.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__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Muh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Uuh).max(Puh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",wuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Auh=200,Fuh=0,kuh=1e6,juh=/^\d{4}-\d{2}-\d{2}$/,$Gh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Auh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Fuh).max(kuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.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__namespace.object({locale:e__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,eVh=e__namespace.object({id:e__namespace.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__namespace.object({locale:e__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var sn={};Y(sn,{DownloadUjpPackageHeader:()=>oVh,DownloadUjpPackageParams:()=>sVh});var sVh=e__namespace.object({id:e__namespace.string().describe("Document ID. The document type is detected from the ID prefix.")}),oVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var on={};Y(on,{UploadImageBody:()=>aVh,UploadImageHeader:()=>iVh,UploadImageResponse:()=>rVh});var iVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aVh=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),rVh=e__namespace.object({url:e__namespace.url().describe("Public URL of the uploaded image"),secure_url:e__namespace.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e__namespace.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e__namespace.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e__namespace.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e__namespace.string().describe("Image format (jpg, png, webp, etc.)"),width:e__namespace.number().describe("Image width in pixels"),height:e__namespace.number().describe("Image height in pixels"),bytes:e__namespace.number().describe("File size in bytes"),entity_id:e__namespace.string().describe("Entity ID that the image belongs to")});var 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__namespace.object({"x-account-id":e__namespace.string().regex(Quh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),dVh=e__namespace.object({required:e__namespace.boolean()}),Juh=/^acc_[0-9a-fA-F]{24}$/,cVh=e__namespace.object({"x-account-id":e__namespace.string().regex(Juh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uVh=e__namespace.object({required:e__namespace.boolean()}),pVh=e__namespace.object({required:e__namespace.boolean()}),Xuh=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,mVh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Xuh).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),eph=/^acc_[0-9a-fA-F]{24}$/,xVh=e__namespace.object({"x-account-id":e__namespace.string().regex(eph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),gVh=e__namespace.object({required:e__namespace.boolean()}),tph=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,yVh=e__namespace.object({id:e__namespace.stringFormat("resource-id",tph).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),nph=/^acc_[0-9a-fA-F]{24}$/,OVh=e__namespace.object({"x-account-id":e__namespace.string().regex(nph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),vVh=e__namespace.object({required:e__namespace.boolean()}),hVh=e__namespace.object({required:e__namespace.boolean()}),sph=/^session_2fa_setup_[a-f0-9]{64}$/,SVh=e__namespace.object({token:e__namespace.string().regex(sph)}),bVh=e__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),oph=/^session_2fa_setup_[a-f0-9]{64}$/,iph=/^\d{6}$/,zVh=e__namespace.object({token:e__namespace.string().regex(oph),code:e__namespace.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__namespace.object({recovery_codes:e__namespace.array(e__namespace.string()),session:e__namespace.object({id:e__namespace.string().max(aph),user_id:e__namespace.string().max(rph),ttl:e__namespace.number().default(lph).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(dph).nullish(),entity_id:e__namespace.string().max(cph).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(uph).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(pph),email:e__namespace.string().max(mph),name:e__namespace.string().max(xph).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(gph).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.string().nullish()})).describe("Access token for authentication")}),BVh=e__namespace.object({enabled:e__namespace.boolean(),has_password:e__namespace.boolean(),required:e__namespace.boolean(),recovery_codes_remaining:e__namespace.number()}),yph=1024,IVh=e__namespace.object({password:e__namespace.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__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),Oph=/^\d{6}$/,EVh=e__namespace.object({code:e__namespace.string().regex(Oph)}),DVh=e__namespace.object({recovery_codes:e__namespace.array(e__namespace.string())}),vph=1024,hph=6,Sph=32,RVh=e__namespace.object({password:e__namespace.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__namespace.string().min(hph).max(Sph).describe("Six-digit authenticator code or a single-use recovery code.")}),_Vh=e__namespace.object({enabled:e__namespace.literal(false)}),bph=100,zph=/^session_2fa_[a-zA-Z0-9]+$/,fph=6,Bph=32,NVh=e__namespace.object({token:e__namespace.string().max(bph).regex(zph),code:e__namespace.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__namespace.object({id:e__namespace.string().max(Iph),user_id:e__namespace.string().max(Tph),ttl:e__namespace.number().default(Eph).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Dph).nullish(),entity_id:e__namespace.string().max(Rph).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(_ph).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(Nph),email:e__namespace.string().max(Mph),name:e__namespace.string().max(Uph).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Pph).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.string().nullish()})).describe("Access token for authentication"),Cph=86,wph=86,Aph=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,UVh=e__namespace.object({email:e__namespace.email(),password:e__namespace.string(),shopify_return_url:e__namespace.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__namespace.object({id:e__namespace.string().max(Fph),user_id:e__namespace.string().max(kph),ttl:e__namespace.number().default(jph).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Hph).nullish(),entity_id:e__namespace.string().max(Lph).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(Gph).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(Vph),email:e__namespace.string().max(Kph),name:e__namespace.string().max(Zph).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(qph).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.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__namespace.object({email:e__namespace.email(),name:e__namespace.string().min(Wph).nullish(),password:e__namespace.string().min(Yph).regex($ph),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]).optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).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__namespace.string().min(1).optional(),account_invitation_token:e__namespace.string().min(1).optional(),signup_attribution:e__namespace.object({utm_source:e__namespace.string().min(1).max(Qph).nullish(),utm_medium:e__namespace.string().min(1).max(Jph).nullish(),utm_campaign:e__namespace.string().min(1).max(Xph).nullish(),gclid:e__namespace.string().min(1).max(emh).nullish(),gbraid:e__namespace.string().min(1).max(tmh).nullish(),wbraid:e__namespace.string().min(1).max(nmh).nullish(),fbclid:e__namespace.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__namespace.object({email:e__namespace.email(),shopify_return_url:e__namespace.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__namespace.object({message:e__namespace.string()}),rmh=8,lmh=/[a-z]/,FVh=e__namespace.object({token:e__namespace.string().min(1),password:e__namespace.string().min(rmh).regex(lmh)}),kVh=e__namespace.object({message:e__namespace.string()}),jVh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),name:e__namespace.string(),role:e__namespace.enum(["owner","admin","member"]),external_analytics:e__namespace.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),dmh=36,cmh=255,umh=255,pmh=36,HVh=e__namespace.object({id:e__namespace.string().max(dmh),email:e__namespace.string().max(cmh),name:e__namespace.string().max(umh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(pmh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),mmh=2,LVh=e__namespace.object({name:e__namespace.string().min(mmh).nullish().describe("User display name"),locale:e__namespace.union([e__namespace.literal("en"),e__namespace.literal("de"),e__namespace.literal("sl"),e__namespace.literal("it"),e__namespace.literal("fr"),e__namespace.literal("es"),e__namespace.literal("pt"),e__namespace.literal("nl"),e__namespace.literal("pl"),e__namespace.literal("hr"),e__namespace.literal("sv"),e__namespace.literal("fi"),e__namespace.literal("et"),e__namespace.literal("bg"),e__namespace.literal("cs"),e__namespace.literal("sk"),e__namespace.literal("nb"),e__namespace.literal("is"),e__namespace.literal("hu"),e__namespace.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__namespace.object({id:e__namespace.string().max(xmh),email:e__namespace.string().max(gmh),name:e__namespace.string().max(ymh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Omh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),VVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KVh=e__namespace.object({operator_tax_number:e__namespace.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e__namespace.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),vmh=36,hmh=255,Smh=255,bmh=36,ZVh=e__namespace.object({id:e__namespace.string().max(vmh),email:e__namespace.string().max(hmh),name:e__namespace.string().max(Smh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(bmh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),qVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WVh=e__namespace.object({operator_oib:e__namespace.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e__namespace.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),zmh=36,fmh=255,Bmh=255,Imh=36,YVh=e__namespace.object({id:e__namespace.string().max(zmh),email:e__namespace.string().max(fmh),name:e__namespace.string().max(Bmh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Imh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Tmh=0,QVh=e__namespace.object({enabled:e__namespace.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e__namespace.union([e__namespace.literal("ordinary"),e__namespace.literal("basque_country"),e__namespace.literal("navarra"),e__namespace.literal(null)]).nullable(),sii:e__namespace.boolean().nullable(),eligibility:e__namespace.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e__namespace.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e__namespace.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e__namespace.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e__namespace.string().describe("Fiscal software version captured by newly generated records."),production_ready:e__namespace.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVh=e__namespace.object({territory:e__namespace.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e__namespace.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e__namespace.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__namespace.object({enabled:e__namespace.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e__namespace.union([e__namespace.literal("ordinary"),e__namespace.literal("basque_country"),e__namespace.literal("navarra"),e__namespace.literal(null)]).nullable(),sii:e__namespace.boolean().nullable(),eligibility:e__namespace.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e__namespace.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e__namespace.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e__namespace.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e__namespace.string().describe("Fiscal software version captured by newly generated records."),production_ready:e__namespace.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nKh=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e__namespace.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),Dmh=0,sKh=e__namespace.object({enabled:e__namespace.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e__namespace.union([e__namespace.literal("ordinary"),e__namespace.literal("basque_country"),e__namespace.literal("navarra"),e__namespace.literal(null)]).nullable(),sii:e__namespace.boolean().nullable(),eligibility:e__namespace.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e__namespace.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e__namespace.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e__namespace.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e__namespace.string().describe("Fiscal software version captured by newly generated records."),production_ready:e__namespace.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e__namespace.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__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),iKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aKh=e__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e__namespace.object({document_id:e__namespace.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e__namespace.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e__namespace.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e__namespace.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e__namespace.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e__namespace.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e__namespace.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique attempt identifier."),request_xml:e__namespace.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e__namespace.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e__namespace.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e__namespace.string().describe("Attempt start timestamp."),finished_at:e__namespace.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e__namespace.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__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),lKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dKh=e__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),cKh=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),uKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rmh=500,_mh=500,Nmh=0,Mmh=/^\d{2}$/,Umh=12,pKh=e__namespace.object({reason:e__namespace.string().min(1).max(Rmh).describe("Operator explanation retained with this fiscal operation."),correction:e__namespace.object({invoice_type:e__namespace.union([e__namespace.literal("F1"),e__namespace.literal("F2"),e__namespace.literal("R1"),e__namespace.literal("R2"),e__namespace.literal("R3"),e__namespace.literal("R4"),e__namespace.literal("R5"),e__namespace.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e__namespace.string().min(1).max(_mh).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e__namespace.union([e__namespace.literal("02"),e__namespace.literal("03"),e__namespace.literal("04"),e__namespace.literal("05"),e__namespace.literal("06"),e__namespace.literal("07"),e__namespace.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__namespace.array(e__namespace.object({tax_index:e__namespace.number().min(Nmh).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e__namespace.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e__namespace.string().regex(Mmh).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e__namespace.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__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),xKh=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),gKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pmh=500,yKh=e__namespace.object({reason:e__namespace.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__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.string().min(Cmh).max(wmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(Amh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(Fmh).max(kmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.union([e__namespace.literal("separator"),e__namespace.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.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__namespace.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__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(jmh).max(Hmh).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(Lmh).max(Gmh).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.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__namespace.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__namespace.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__namespace.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e__namespace.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)"),hmrc_valid:e__namespace.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__namespace.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__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.literal("mixed"),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(qmh).default(Zmh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),bKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wmh=36,Ymh=36,$mh=200,zKh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Wmh),entity_id:e__namespace.string().max(Ymh),name:e__namespace.string().max($mh),is_default:e__namespace.boolean(),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),fKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Qmh=200,BKh=e__namespace.object({name:e__namespace.string().min(1).max(Qmh).describe("Warehouse display name."),is_default:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Jmh).describe("Warehouse identifier (wh_ prefix).")}),TKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Xmh=36,exh=36,txh=200,EKh=e__namespace.object({id:e__namespace.string().max(Xmh),entity_id:e__namespace.string().max(exh),name:e__namespace.string().max(txh),is_default:e__namespace.boolean(),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),nxh=/^wh_[0-9a-f]{24}$/,DKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",nxh).describe("Warehouse identifier (wh_ prefix).")}),RKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sxh=200,_Kh=e__namespace.object({name:e__namespace.string().min(1).max(sxh).nullish().describe("Warehouse display name."),is_default:e__namespace.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__namespace.object({id:e__namespace.string().max(oxh),entity_id:e__namespace.string().max(ixh),name:e__namespace.string().max(axh),is_default:e__namespace.boolean(),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),rxh=/^wh_[0-9a-f]{24}$/,MKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",rxh).describe("Warehouse identifier (wh_ prefix).")}),UKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lxh=2048,dxh=500,cxh=true,CKh=e__namespace.object({url:e__namespace.url().max(lxh).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(dxh).optional().describe("Optional description for this webhook"),events:e__namespace.array(e__namespace.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.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__namespace.boolean().default(cxh).describe("Whether webhook is active"),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(pxh).default(uxh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),AKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mxh=36,xxh=36,gxh=2048,yxh=500,Oxh={},FKh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(mxh),entity_id:e__namespace.string().max(xxh),url:e__namespace.string().max(gxh),description:e__namespace.string().max(yxh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,kKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",vxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),jKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hxh=36,Sxh=36,bxh=2048,zxh=500,fxh={},HKh=e__namespace.object({id:e__namespace.string().max(hxh),entity_id:e__namespace.string().max(Sxh),url:e__namespace.string().max(bxh),description:e__namespace.string().max(zxh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Bxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,LKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Bxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),GKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ixh=2048,Txh=500,VKh=e__namespace.object({url:e__namespace.url().max(Ixh).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Txh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean().optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Exh),entity_id:e__namespace.string().max(Dxh),url:e__namespace.string().max(Rxh),description:e__namespace.string().max(_xh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Mxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,ZKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Mxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),qKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WKh=e__namespace.object({success:e__namespace.boolean()}),Uxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,YKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Uxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$Kh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({id:e__namespace.string().max(Pxh),webhook_id:e__namespace.string().max(Cxh),entity_id:e__namespace.string().max(wxh),event_type:e__namespace.string().max(Axh),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(Fxh).max(kxh).nullish(),response_body:e__namespace.string().max(jxh).nullish(),error_message:e__namespace.string().max(Hxh).nullish(),attempt:e__namespace.number().min(Lxh).max(Gxh),max_attempts:e__namespace.number().min(Vxh).max(Kxh),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(Zxh).max(qxh).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Wxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,JKh=e__namespace.object({id:e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max($xh).default(Yxh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),eZh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Qxh),webhook_id:e__namespace.string().max(Jxh),entity_id:e__namespace.string().max(Xxh),event_type:e__namespace.string().max(egh),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(tgh).max(ngh).nullish(),response_body:e__namespace.string().max(sgh).nullish(),error_message:e__namespace.string().max(ogh).nullish(),attempt:e__namespace.number().min(igh).max(agh),max_attempts:e__namespace.number().min(rgh).max(lgh),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(dgh).max(cgh).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ugh=/^[a-z]{3,4}_[0-9a-f]{24}$/,nZh=e__namespace.object({id:e__namespace.stringFormat("resource-id",ugh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),sZh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),pgh=36,mgh=36,xgh=2048,ggh=500,ygh=64,Ogh={},oZh=e__namespace.object({id:e__namespace.string().max(pgh),entity_id:e__namespace.string().max(mgh),url:e__namespace.string().max(xgh),description:e__namespace.string().max(ggh).nullish(),secret:e__namespace.string().max(ygh),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e__namespace.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__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e__namespace.string().describe("Subscription status"),billing_interval:e__namespace.string().nullable().describe("Current billing interval"),current_period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),current_period_end:e__namespace.string().describe("Current period end date (ISO 8601)"),payment_provider:e__namespace.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e__namespace.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__namespace.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e__namespace.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e__namespace.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e__namespace.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e__namespace.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e__namespace.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e__namespace.boolean().describe("True only when this request created the trial subscription."),cancel_at:e__namespace.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e__namespace.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__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e__namespace.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e__namespace.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e__namespace.object({last4:e__namespace.string().nullable(),brand:e__namespace.string().nullable(),has_card:e__namespace.boolean()}).nullable(),store_billing:e__namespace.union([e__namespace.object({connected_stores:e__namespace.number(),included_stores:e__namespace.number(),billable_extra_stores:e__namespace.number(),invoices_included_from_extra_stores:e__namespace.number(),extra_store_price_cents_monthly:e__namespace.number().nullable(),extra_store_price_cents_yearly:e__namespace.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e__namespace.null()]),usage:e__namespace.object({documents_count:e__namespace.number().describe("Documents created this period"),documents_limit:e__namespace.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e__namespace.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e__namespace.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e__namespace.number().default(vgh).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e__namespace.number().nullish().default(hgh).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),period_end:e__namespace.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),aZh=e__namespace.object({plans:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e__namespace.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__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e__namespace.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),rZh=e__namespace.object({feature:e__namespace.string().describe("Feature slug to check")}),lZh=e__namespace.object({feature:e__namespace.string().describe("Feature being checked"),allowed:e__namespace.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e__namespace.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e__namespace.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),dZh=e__namespace.object({resource:e__namespace.string().describe("Resource type to check (e.g., 'documents')")}),cZh=e__namespace.object({resource:e__namespace.string().describe("Resource being checked"),allowed:e__namespace.boolean().describe("Whether creating more of this resource is allowed"),usage:e__namespace.number().describe("Current usage count"),limit:e__namespace.number().nullable().describe("Current limit. Null means unlimited."),percentage:e__namespace.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),uZh=e__namespace.object({billing_email:e__namespace.email().nullable()}),pZh=e__namespace.object({billing_email:e__namespace.string().nullable()});var pn={};Y(pn,{GetCurrentWhiteLabelResponse:()=>mZh,GetMyWhiteLabelResponse:()=>xZh});var mZh=e__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e__namespace.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__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),xZh=e__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e__namespace.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__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ydh=200,Odh=0,vdh=1e6,hdh=/^\d{4}-\d{2}-\d{2}$/,OGh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(ydh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Odh).max(vdh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.string().min(1).max(Sdh).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(bdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(zdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(fdh).describe("Business purpose of the trip."),origin:e__namespace.string().max(Bdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(Idh).describe("Trip destination location."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e__namespace.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__namespace.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e__namespace.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__namespace.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__namespace.string().max(Edh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.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__namespace.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e__namespace.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__namespace.number().gt(Mdh).max(Udh).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(wdh).describe("Description of the cost line."),amount:e__namespace.number().gt(Adh).max(Fdh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.string().max(Hdh).nullish().describe("Free-text note. Omit or send null to leave unset.")}),SGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.string().min(1).max(Ldh).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(Gdh).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(Vdh).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(Kdh).describe("Business purpose of the trip."),origin:e__namespace.string().max(Zdh).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(qdh).describe("Trip destination location."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e__namespace.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__namespace.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e__namespace.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__namespace.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__namespace.string().max(Ydh).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.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__namespace.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e__namespace.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__namespace.number().gt(ech).max(tch).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(och).describe("Description of the cost line."),amount:e__namespace.number().gt(ich).max(ach).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.string().max(dch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),zGh=e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),cch=2,uch=5,pch=2,mch=5,fGh=e__namespace.object({locale:e__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.string().min(1).max(xch).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(gch).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(ych).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(Och).describe("Business purpose of the trip."),origin:e__namespace.string().max(vch).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(hch).describe("Trip destination location."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e__namespace.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__namespace.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e__namespace.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__namespace.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__namespace.string().max(bch).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.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__namespace.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e__namespace.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__namespace.number().gt(Tch).max(Ech).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(_ch).describe("Description of the cost line."),amount:e__namespace.number().gt(Nch).max(Mch).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.string().max(Cch).nullish().describe("Free-text note. Omit or send null to leave unset.")}),TGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),wch=3,Ach=300,Fch=3,kch=300,EGh=e__namespace.object({from:e__namespace.string().min(wch).max(Ach).describe("Starting address to geocode."),to:e__namespace.string().min(Fch).max(kch).describe("Destination address to geocode."),round_trip:e__namespace.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),DGh=e__namespace.object({distance_km:e__namespace.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e__namespace.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e__namespace.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e__namespace.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e__namespace.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),jch=/^[a-z]{3,4}_[0-9a-f]{24}$/,RGh=e__namespace.object({id:e__namespace.stringFormat("resource-id",jch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_Gh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hch=200,Lch=0,Gch=1e6,Vch=/^\d{4}-\d{2}-\d{2}$/,NGh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Hch).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Lch).max(Gch).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Kch).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),UGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({traveler_name:e__namespace.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__namespace.string().max(qch).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e__namespace.string().regex(Wch).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e__namespace.string().min(1).max(Ych).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e__namespace.string().max($ch).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e__namespace.string().min(1).max(Qch).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("foreign"),e__namespace.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e__namespace.string().regex(Jch).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e__namespace.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__namespace.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__namespace.union([e__namespace.literal("own_vehicle"),e__namespace.literal("company_vehicle"),e__namespace.literal("public_transport"),e__namespace.literal("other"),e__namespace.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e__namespace.string().max(Xch).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e__namespace.number().min(euh).max(tuh).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e__namespace.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e__namespace.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__namespace.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__namespace.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__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(luh).describe("Description of the cost line."),amount:e__namespace.number().gt(duh).max(cuh).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.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__namespace.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__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(xuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(guh).max(yuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",vuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),AGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),huh=/^[a-z]{3,4}_[0-9a-f]{24}$/,FGh=e__namespace.object({id:e__namespace.stringFormat("resource-id",huh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),kGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Suh=200,buh=0,zuh=1e6,fuh=/^\d{4}-\d{2}-\d{2}$/,jGh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Suh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(buh).max(zuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Buh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Iuh=200,Tuh=0,Euh=1e6,Duh=/^\d{4}-\d{2}-\d{2}$/,GGh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Iuh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Tuh).max(Euh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Ruh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_uh=3,Nuh=500,ZGh=e__namespace.object({reason:e__namespace.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__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Muh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Uuh).max(Puh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",wuh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YGh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Auh=200,Fuh=0,kuh=1e6,juh=/^\d{4}-\d{2}-\d{2}$/,$Gh=e__namespace.object({id:e__namespace.string().describe("Unique travel order identifier."),entity_id:e__namespace.string().describe("Owning entity ID."),number:e__namespace.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e__namespace.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__namespace.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e__namespace.string().describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e__namespace.string().describe("Business purpose of the trip."),origin:e__namespace.string().nullable().describe("Trip starting location, if provided."),destination:e__namespace.string().describe("Trip destination location."),trip_type:e__namespace.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e__namespace.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__namespace.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC)."),transport:e__namespace.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__namespace.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e__namespace.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e__namespace.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e__namespace.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__namespace.number().describe("Advance payment already given to the traveler, in EUR."),costs:e__namespace.array(e__namespace.object({type:e__namespace.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e__namespace.string().min(1).max(Auh).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Fuh).max(kuh).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.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__namespace.string().nullable().describe("Free-text note, if provided."),currency_code:e__namespace.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__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e__namespace.array(e__namespace.object({settled_at:e__namespace.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e__namespace.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e__namespace.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e__namespace.string().describe("Reason given for reopening this settlement."),calculation:e__namespace.object({duration_hours:e__namespace.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e__namespace.object({enabled:e__namespace.boolean().describe("Whether per diem was requested for this trip."),full_days:e__namespace.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e__namespace.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e__namespace.object({amount:e__namespace.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e__namespace.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__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based sequence number of this per diem period."),hours:e__namespace.number().describe("Exact duration in hours covered by this period."),band:e__namespace.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__namespace.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e__namespace.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e__namespace.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e__namespace.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__namespace.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e__namespace.object({applicable:e__namespace.boolean().describe("True only when transport is own_vehicle."),distance_km:e__namespace.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e__namespace.number().describe("Statutory mileage rate in EUR per kilometer."),total:e__namespace.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e__namespace.number().describe("Sum of all documented cost line amounts in EUR."),total:e__namespace.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e__namespace.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e__namespace.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__namespace.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e__namespace.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e__namespace.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__namespace.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e__namespace.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e__namespace.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e__namespace.string().describe("When the order was created (ISO 8601)."),updated_at:e__namespace.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__namespace.object({id:e__namespace.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__namespace.object({locale:e__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Zuh=/^[a-z]{3,4}_[0-9a-f]{24}$/,eVh=e__namespace.object({id:e__namespace.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__namespace.object({locale:e__namespace.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__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var sn={};Y(sn,{DownloadUjpPackageHeader:()=>oVh,DownloadUjpPackageParams:()=>sVh});var sVh=e__namespace.object({id:e__namespace.string().describe("Document ID. The document type is detected from the ID prefix.")}),oVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var on={};Y(on,{UploadImageBody:()=>aVh,UploadImageHeader:()=>iVh,UploadImageResponse:()=>rVh});var iVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aVh=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),rVh=e__namespace.object({url:e__namespace.url().describe("Public URL of the uploaded image"),secure_url:e__namespace.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e__namespace.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e__namespace.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e__namespace.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e__namespace.string().describe("Image format (jpg, png, webp, etc.)"),width:e__namespace.number().describe("Image width in pixels"),height:e__namespace.number().describe("Image height in pixels"),bytes:e__namespace.number().describe("File size in bytes"),entity_id:e__namespace.string().describe("Entity ID that the image belongs to")});var 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__namespace.object({"x-account-id":e__namespace.string().regex(Quh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),dVh=e__namespace.object({required:e__namespace.boolean()}),Juh=/^acc_[0-9a-fA-F]{24}$/,cVh=e__namespace.object({"x-account-id":e__namespace.string().regex(Juh).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uVh=e__namespace.object({required:e__namespace.boolean()}),pVh=e__namespace.object({required:e__namespace.boolean()}),Xuh=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,mVh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Xuh).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),eph=/^acc_[0-9a-fA-F]{24}$/,xVh=e__namespace.object({"x-account-id":e__namespace.string().regex(eph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),gVh=e__namespace.object({required:e__namespace.boolean()}),tph=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,yVh=e__namespace.object({id:e__namespace.stringFormat("resource-id",tph).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),nph=/^acc_[0-9a-fA-F]{24}$/,OVh=e__namespace.object({"x-account-id":e__namespace.string().regex(nph).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),vVh=e__namespace.object({required:e__namespace.boolean()}),hVh=e__namespace.object({required:e__namespace.boolean()}),sph=/^session_2fa_setup_[a-f0-9]{64}$/,SVh=e__namespace.object({token:e__namespace.string().regex(sph)}),bVh=e__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),oph=/^session_2fa_setup_[a-f0-9]{64}$/,iph=/^\d{6}$/,zVh=e__namespace.object({token:e__namespace.string().regex(oph),code:e__namespace.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__namespace.object({recovery_codes:e__namespace.array(e__namespace.string()),session:e__namespace.object({id:e__namespace.string().max(aph),user_id:e__namespace.string().max(rph),ttl:e__namespace.number().default(lph).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(dph).nullish(),entity_id:e__namespace.string().max(cph).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(uph).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(pph),email:e__namespace.string().max(mph),name:e__namespace.string().max(xph).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(gph).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.string().nullish()})).describe("Access token for authentication")}),BVh=e__namespace.object({enabled:e__namespace.boolean(),has_password:e__namespace.boolean(),required:e__namespace.boolean(),recovery_codes_remaining:e__namespace.number()}),yph=1024,IVh=e__namespace.object({password:e__namespace.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__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),Oph=/^\d{6}$/,EVh=e__namespace.object({code:e__namespace.string().regex(Oph)}),DVh=e__namespace.object({recovery_codes:e__namespace.array(e__namespace.string())}),vph=1024,hph=6,Sph=32,RVh=e__namespace.object({password:e__namespace.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__namespace.string().min(hph).max(Sph).describe("Six-digit authenticator code or a single-use recovery code.")}),_Vh=e__namespace.object({enabled:e__namespace.literal(false)}),bph=100,zph=/^session_2fa_[a-zA-Z0-9]+$/,fph=6,Bph=32,NVh=e__namespace.object({token:e__namespace.string().max(bph).regex(zph),code:e__namespace.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__namespace.object({id:e__namespace.string().max(Iph),user_id:e__namespace.string().max(Tph),ttl:e__namespace.number().default(Eph).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Dph).nullish(),entity_id:e__namespace.string().max(Rph).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(_ph).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(Nph),email:e__namespace.string().max(Mph),name:e__namespace.string().max(Uph).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Pph).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.string().nullish()})).describe("Access token for authentication"),Cph=86,wph=86,Aph=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,UVh=e__namespace.object({email:e__namespace.email(),password:e__namespace.string(),shopify_return_url:e__namespace.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__namespace.object({id:e__namespace.string().max(Fph),user_id:e__namespace.string().max(kph),ttl:e__namespace.number().default(jph).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Hph).nullish(),entity_id:e__namespace.string().max(Lph).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(Gph).nullish(),updated_at:e__namespace.iso.datetime({})}).describe("Access token for authentication").and(e__namespace.object({user:e__namespace.object({id:e__namespace.string().max(Vph),email:e__namespace.string().max(Kph),name:e__namespace.string().max(Zph).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(qph).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),redirect_origin:e__namespace.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__namespace.object({email:e__namespace.email(),name:e__namespace.string().min(Wph).nullish(),password:e__namespace.string().min(Yph).regex($ph),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]).optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).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__namespace.string().min(1).optional(),account_invitation_token:e__namespace.string().min(1).optional(),signup_attribution:e__namespace.object({utm_source:e__namespace.string().min(1).max(Qph).nullish(),utm_medium:e__namespace.string().min(1).max(Jph).nullish(),utm_campaign:e__namespace.string().min(1).max(Xph).nullish(),gclid:e__namespace.string().min(1).max(emh).nullish(),gbraid:e__namespace.string().min(1).max(tmh).nullish(),wbraid:e__namespace.string().min(1).max(nmh).nullish(),fbclid:e__namespace.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__namespace.object({email:e__namespace.email(),shopify_return_url:e__namespace.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__namespace.object({message:e__namespace.string()}),rmh=8,lmh=/[a-z]/,FVh=e__namespace.object({token:e__namespace.string().min(1),password:e__namespace.string().min(rmh).regex(lmh)}),kVh=e__namespace.object({message:e__namespace.string()}),jVh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),name:e__namespace.string(),role:e__namespace.enum(["owner","admin","member"]),external_analytics:e__namespace.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),dmh=36,cmh=255,umh=255,pmh=36,HVh=e__namespace.object({id:e__namespace.string().max(dmh),email:e__namespace.string().max(cmh),name:e__namespace.string().max(umh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(pmh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),mmh=2,LVh=e__namespace.object({name:e__namespace.string().min(mmh).nullish().describe("User display name"),locale:e__namespace.union([e__namespace.literal("en"),e__namespace.literal("de"),e__namespace.literal("sl"),e__namespace.literal("it"),e__namespace.literal("fr"),e__namespace.literal("es"),e__namespace.literal("pt"),e__namespace.literal("nl"),e__namespace.literal("pl"),e__namespace.literal("hr"),e__namespace.literal("sv"),e__namespace.literal("fi"),e__namespace.literal("et"),e__namespace.literal("bg"),e__namespace.literal("cs"),e__namespace.literal("sk"),e__namespace.literal("nb"),e__namespace.literal("is"),e__namespace.literal("hu"),e__namespace.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__namespace.object({id:e__namespace.string().max(xmh),email:e__namespace.string().max(gmh),name:e__namespace.string().max(ymh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Omh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),VVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KVh=e__namespace.object({operator_tax_number:e__namespace.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e__namespace.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),vmh=36,hmh=255,Smh=255,bmh=36,ZVh=e__namespace.object({id:e__namespace.string().max(vmh),email:e__namespace.string().max(hmh),name:e__namespace.string().max(Smh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(bmh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}),qVh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WVh=e__namespace.object({operator_oib:e__namespace.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e__namespace.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),zmh=36,fmh=255,Bmh=255,Imh=36,YVh=e__namespace.object({id:e__namespace.string().max(zmh),email:e__namespace.string().max(fmh),name:e__namespace.string().max(Bmh).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Imh).nullish(),settings:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),is_accountant:e__namespace.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Tmh=0,QVh=e__namespace.object({enabled:e__namespace.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e__namespace.union([e__namespace.literal("ordinary"),e__namespace.literal("basque_country"),e__namespace.literal("navarra"),e__namespace.literal(null)]).nullable(),sii:e__namespace.boolean().nullable(),eligibility:e__namespace.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e__namespace.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e__namespace.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e__namespace.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e__namespace.string().describe("Fiscal software version captured by newly generated records."),production_ready:e__namespace.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XVh=e__namespace.object({territory:e__namespace.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e__namespace.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e__namespace.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__namespace.object({enabled:e__namespace.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e__namespace.union([e__namespace.literal("ordinary"),e__namespace.literal("basque_country"),e__namespace.literal("navarra"),e__namespace.literal(null)]).nullable(),sii:e__namespace.boolean().nullable(),eligibility:e__namespace.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e__namespace.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e__namespace.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e__namespace.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e__namespace.string().describe("Fiscal software version captured by newly generated records."),production_ready:e__namespace.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e__namespace.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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),nKh=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e__namespace.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),Dmh=0,sKh=e__namespace.object({enabled:e__namespace.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e__namespace.union([e__namespace.literal("ordinary"),e__namespace.literal("basque_country"),e__namespace.literal("navarra"),e__namespace.literal(null)]).nullable(),sii:e__namespace.boolean().nullable(),eligibility:e__namespace.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e__namespace.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e__namespace.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e__namespace.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e__namespace.string().describe("Fiscal software version captured by newly generated records."),production_ready:e__namespace.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e__namespace.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__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),iKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),aKh=e__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e__namespace.object({document_id:e__namespace.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e__namespace.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e__namespace.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e__namespace.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e__namespace.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e__namespace.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e__namespace.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique attempt identifier."),request_xml:e__namespace.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e__namespace.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e__namespace.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e__namespace.string().describe("Attempt start timestamp."),finished_at:e__namespace.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e__namespace.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__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),lKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dKh=e__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),cKh=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),uKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rmh=500,_mh=500,Nmh=0,Mmh=/^\d{2}$/,Umh=12,pKh=e__namespace.object({reason:e__namespace.string().min(1).max(Rmh).describe("Operator explanation retained with this fiscal operation."),correction:e__namespace.object({invoice_type:e__namespace.union([e__namespace.literal("F1"),e__namespace.literal("F2"),e__namespace.literal("R1"),e__namespace.literal("R2"),e__namespace.literal("R3"),e__namespace.literal("R4"),e__namespace.literal("R5"),e__namespace.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e__namespace.string().min(1).max(_mh).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e__namespace.union([e__namespace.literal("02"),e__namespace.literal("03"),e__namespace.literal("04"),e__namespace.literal("05"),e__namespace.literal("06"),e__namespace.literal("07"),e__namespace.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__namespace.array(e__namespace.object({tax_index:e__namespace.number().min(Nmh).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e__namespace.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e__namespace.string().regex(Mmh).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e__namespace.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__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),xKh=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),gKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Pmh=500,yKh=e__namespace.object({reason:e__namespace.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__namespace.object({record_id:e__namespace.string().describe("Immutable fiscal record identifier."),status:e__namespace.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__namespace.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e__namespace.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e__namespace.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e__namespace.string().describe("Fiscal software version that generated this record."),csv:e__namespace.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e__namespace.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e__namespace.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__namespace.object({issuer:e__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e__namespace.string().min(Cmh).max(wmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(Amh).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e__namespace.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__namespace.object({country:e__namespace.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e__namespace.string().min(Fmh).max(kmh).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e__namespace.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e__namespace.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.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__namespace.array(e__namespace.object({type:e__namespace.union([e__namespace.literal("separator"),e__namespace.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.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__namespace.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__namespace.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__namespace.object({transaction_type:e__namespace.union([e__namespace.literal("domestic"),e__namespace.literal("intra_eu_b2b"),e__namespace.literal("intra_eu_b2c"),e__namespace.literal("3w_b2b"),e__namespace.literal("3w_b2c"),e__namespace.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e__namespace.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e__namespace.string().min(jmh).max(Hmh).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(Lmh).max(Gmh).nullable().describe("Resolved customer country code"),vies_valid:e__namespace.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__namespace.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__namespace.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__namespace.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e__namespace.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__namespace.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__namespace.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__namespace.union([e__namespace.literal("goods"),e__namespace.literal("services"),e__namespace.literal("mixed"),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(qmh).default(Zmh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),bKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wmh=36,Ymh=36,$mh=200,zKh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Wmh),entity_id:e__namespace.string().max(Ymh),name:e__namespace.string().max($mh),is_default:e__namespace.boolean(),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),fKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Qmh=200,BKh=e__namespace.object({name:e__namespace.string().min(1).max(Qmh).describe("Warehouse display name."),is_default:e__namespace.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__namespace.object({id:e__namespace.stringFormat("resource-id",Jmh).describe("Warehouse identifier (wh_ prefix).")}),TKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Xmh=36,exh=36,txh=200,EKh=e__namespace.object({id:e__namespace.string().max(Xmh),entity_id:e__namespace.string().max(exh),name:e__namespace.string().max(txh),is_default:e__namespace.boolean(),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),nxh=/^wh_[0-9a-f]{24}$/,DKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",nxh).describe("Warehouse identifier (wh_ prefix).")}),RKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),sxh=200,_Kh=e__namespace.object({name:e__namespace.string().min(1).max(sxh).nullish().describe("Warehouse display name."),is_default:e__namespace.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__namespace.object({id:e__namespace.string().max(oxh),entity_id:e__namespace.string().max(ixh),name:e__namespace.string().max(axh),is_default:e__namespace.boolean(),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),rxh=/^wh_[0-9a-f]{24}$/,MKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",rxh).describe("Warehouse identifier (wh_ prefix).")}),UKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lxh=2048,dxh=500,cxh=true,CKh=e__namespace.object({url:e__namespace.url().max(lxh).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(dxh).optional().describe("Optional description for this webhook"),events:e__namespace.array(e__namespace.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.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__namespace.boolean().default(cxh).describe("Whether webhook is active"),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max(pxh).default(uxh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),AKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mxh=36,xxh=36,gxh=2048,yxh=500,Oxh={},FKh=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(mxh),entity_id:e__namespace.string().max(xxh),url:e__namespace.string().max(gxh),description:e__namespace.string().max(yxh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,kKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",vxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),jKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hxh=36,Sxh=36,bxh=2048,zxh=500,fxh={},HKh=e__namespace.object({id:e__namespace.string().max(hxh),entity_id:e__namespace.string().max(Sxh),url:e__namespace.string().max(bxh),description:e__namespace.string().max(zxh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Bxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,LKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Bxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),GKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ixh=2048,Txh=500,VKh=e__namespace.object({url:e__namespace.url().max(Ixh).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Txh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean().optional(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.object({id:e__namespace.string().max(Exh),entity_id:e__namespace.string().max(Dxh),url:e__namespace.string().max(Rxh),description:e__namespace.string().max(_xh).nullish(),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({}),secret:e__namespace.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Mxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,ZKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Mxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),qKh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WKh=e__namespace.object({success:e__namespace.boolean()}),Uxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,YKh=e__namespace.object({id:e__namespace.stringFormat("resource-id",Uxh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),$Kh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({id:e__namespace.string().max(Pxh),webhook_id:e__namespace.string().max(Cxh),entity_id:e__namespace.string().max(wxh),event_type:e__namespace.string().max(Axh),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(Fxh).max(kxh).nullish(),response_body:e__namespace.string().max(jxh).nullish(),error_message:e__namespace.string().max(Hxh).nullish(),attempt:e__namespace.number().min(Lxh).max(Gxh),max_attempts:e__namespace.number().min(Vxh).max(Kxh),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(Zxh).max(qxh).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),Wxh=/^[a-z]{3,4}_[0-9a-f]{24}$/,JKh=e__namespace.object({id:e__namespace.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__namespace.object({limit:e__namespace.number().min(1).max($xh).default(Yxh).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),eZh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Qxh),webhook_id:e__namespace.string().max(Jxh),entity_id:e__namespace.string().max(Xxh),event_type:e__namespace.string().max(egh),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(tgh).max(ngh).nullish(),response_body:e__namespace.string().max(sgh).nullish(),error_message:e__namespace.string().max(ogh).nullish(),attempt:e__namespace.number().min(igh).max(agh),max_attempts:e__namespace.number().min(rgh).max(lgh),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(dgh).max(cgh).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ugh=/^[a-z]{3,4}_[0-9a-f]{24}$/,nZh=e__namespace.object({id:e__namespace.stringFormat("resource-id",ugh).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),sZh=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),pgh=36,mgh=36,xgh=2048,ggh=500,ygh=64,Ogh={},oZh=e__namespace.object({id:e__namespace.string().max(pgh),entity_id:e__namespace.string().max(mgh),url:e__namespace.string().max(xgh),description:e__namespace.string().max(ggh).nullish(),secret:e__namespace.string().max(ygh),events:e__namespace.array(e__namespace.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__namespace.boolean(),metadata:e__namespace.record(e__namespace.string(),e__namespace.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__namespace.iso.datetime({}),updated_at:e__namespace.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__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e__namespace.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__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e__namespace.string().describe("Subscription status"),billing_interval:e__namespace.string().nullable().describe("Current billing interval"),current_period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),current_period_end:e__namespace.string().describe("Current period end date (ISO 8601)"),payment_provider:e__namespace.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e__namespace.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__namespace.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e__namespace.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e__namespace.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e__namespace.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e__namespace.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e__namespace.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e__namespace.boolean().describe("True only when this request created the trial subscription."),cancel_at:e__namespace.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e__namespace.object({plan:e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e__namespace.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__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e__namespace.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e__namespace.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e__namespace.object({last4:e__namespace.string().nullable(),brand:e__namespace.string().nullable(),has_card:e__namespace.boolean()}).nullable(),store_billing:e__namespace.union([e__namespace.object({connected_stores:e__namespace.number(),included_stores:e__namespace.number(),billable_extra_stores:e__namespace.number(),invoices_included_from_extra_stores:e__namespace.number(),extra_store_price_cents_monthly:e__namespace.number().nullable(),extra_store_price_cents_yearly:e__namespace.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e__namespace.null()]),usage:e__namespace.object({documents_count:e__namespace.number().describe("Documents created this period"),documents_limit:e__namespace.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e__namespace.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e__namespace.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e__namespace.number().default(vgh).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e__namespace.number().nullish().default(hgh).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e__namespace.string().describe("Current period start date (ISO 8601)"),period_end:e__namespace.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),aZh=e__namespace.object({plans:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Unique plan ID"),slug:e__namespace.string().describe("Plan slug"),name:e__namespace.string().describe("Display name"),billing_interval:e__namespace.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e__namespace.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e__namespace.union([e__namespace.object({documents_per_month:e__namespace.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e__namespace.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e__namespace.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e__namespace.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e__namespace.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e__namespace.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e__namespace.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e__namespace.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__namespace.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e__namespace.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e__namespace.null()]),features:e__namespace.array(e__namespace.string()).describe("List of features included. Empty array means all features."),is_free:e__namespace.boolean().describe("Whether this is a free plan"),display_order:e__namespace.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e__namespace.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e__namespace.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e__namespace.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e__namespace.array(e__namespace.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e__namespace.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),rZh=e__namespace.object({feature:e__namespace.string().describe("Feature slug to check")}),lZh=e__namespace.object({feature:e__namespace.string().describe("Feature being checked"),allowed:e__namespace.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e__namespace.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e__namespace.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),dZh=e__namespace.object({resource:e__namespace.string().describe("Resource type to check (e.g., 'documents')")}),cZh=e__namespace.object({resource:e__namespace.string().describe("Resource being checked"),allowed:e__namespace.boolean().describe("Whether creating more of this resource is allowed"),usage:e__namespace.number().describe("Current usage count"),limit:e__namespace.number().nullable().describe("Current limit. Null means unlimited."),percentage:e__namespace.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),uZh=e__namespace.object({billing_email:e__namespace.email().nullable()}),pZh=e__namespace.object({billing_email:e__namespace.string().nullable()});var pn={};Y(pn,{GetCurrentWhiteLabelResponse:()=>mZh,GetMyWhiteLabelResponse:()=>xZh});var mZh=e__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e__namespace.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__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),xZh=e__namespace.object({slug:e__namespace.string().describe("Unique identifier for the white-label"),name:e__namespace.string().describe("Display name of the white-label"),environment:e__namespace.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e__namespace.array(e__namespace.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e__namespace.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e__namespace.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e__namespace.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e__namespace.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__namespace.array(e__namespace.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e__namespace.object({primary:e__namespace.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e__namespace.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e__namespace.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e__namespace.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e__namespace.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e__namespace.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e__namespace.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e__namespace.object({posthog_key:e__namespace.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e__namespace.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e__namespace.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e__namespace.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e__namespace.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e__namespace.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var 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
|
exports.AccountInfoRole=DJh;exports.AccountWebhookDeliveryStatus=MJh;exports.AccountWebhookResponseEventsItem=PJh;exports.AccountWebhookWithSecretEventsItem=wJh;exports.AccountingSettingsVatPeriod=_Jh;exports.AddEntityUserBodyRole=FJh;exports.AdvanceInvoiceCalculationMode=jJh;exports.AdvanceInvoiceItemClassification=LJh;exports.AdvanceInvoiceItemType=VJh;exports.AdvanceInvoiceTransactionType=ZJh;exports.AttendanceDayKind=WJh;exports.AttendanceDaySickReason=$Jh;exports.AuthorizeShopifyBodyAutoProcessOn=JJh;exports.AvailablePlansAllowedPaymentProvidersItem=eXh;exports.AvailablePlansBillingProfile=nXh;exports.AvailablePlansCurrencyCode=oXh;exports.AvailablePlansStripePublishableKeyKind=aXh;exports.BankImportParseErrorCauseCode=lXh;exports.BankStatementImportSourceFormat=cXh;exports.BankStatementImportStatus=pXh;exports.BankTransactionConflictErrorCauseCode=xXh;exports.BankTransactionDetailMatchStatus=yXh;exports.BankTransactionDetailSourceFormat=vXh;exports.BankTransactionMatchInfoDocumentType=SXh;exports.BankTransactionMatchStatus=zXh;exports.BankTransactionSourceFormat=BXh;exports.BankTransactionSuggestedDocumentDocumentType=TXh;exports.BusinessUnitSettingsInputPdfTemplate=DXh;exports.BusinessUnitSettingsPdfTemplate=_Xh;exports.CLIENT_HEADER_NAME=Ms;exports.CalculateDocumentPreviewCalculationMode=PXh;exports.CalculateDocumentPreviewType=wXh;exports.CalculateTravelOrderRouteDistance422Field=FXh;exports.CalculatedItemType=MXh;exports.CalculationSettingsDefaultMode=jXh;exports.CheckEInvoicingRecipientRequestDocumentType=LXh;exports.CompanyRegistryResultSettingsSloveniaVatProfile=VXh;exports.CompleteAdvanceInvoicePreviewCalculationMode=ZXh;exports.CompleteAdvanceInvoicePreviewCreationSource=WXh;exports.CompleteCreditNotePreviewCalculationMode=$Xh;exports.CompleteCreditNotePreviewCreationSource=JXh;exports.CompleteDeliveryNotePreviewCalculationMode=eeS;exports.CompleteDeliveryNotePreviewCreationSource=neS;exports.CompleteEstimatePreviewCalculationMode=oeS;exports.CompleteEstimatePreviewCreationSource=aeS;exports.CompleteEstimatePreviewTitleType=leS;exports.CompleteInvoicePreviewCalculationMode=ceS;exports.CompleteInvoicePreviewCreationSource=peS;exports.CompletePurchaseOrderPreviewCalculationMode=xeS;exports.CompletePurchaseOrderPreviewCreationSource=yeS;exports.CreateAccountWebhookBodyEventsItem=veS;exports.CreateAdvanceInvoiceCalculationMode=SeS;exports.CreateCheckoutRequestBillingInterval=zeS;exports.CreateCreditNoteCalculationMode=BeS;exports.CreateCustomerBodyContactType=TeS;exports.CreateDeliveryNoteCalculationMode=DeS;exports.CreateDocumentItemClassification=_eS;exports.CreateDocumentItemType=MeS;exports.CreateDocumentPaymentType=PeS;exports.CreateEntityApiKeyBodyPurpose=weS;exports.CreateEntityBodyEnvironment=FeS;exports.CreateEntityBodySettingsPdfTemplate=jeS;exports.CreateEstimateCalculationMode=LeS;exports.CreateEstimateTitleType=VeS;exports.CreateExpenseBodyCalculationMode=ZeS;exports.CreateExpenseBodyPaymentsItemType=WeS;exports.CreateExpenseBodyTransactionType=$eS;exports.CreateExpenseBodyType=JeS;exports.CreateExpenseItemClassification=etS;exports.CreateExpenseItemType=ntS;exports.CreateExpensePaymentBodyType=otS;exports.CreateFinaInvoiceDataPaymentType=atS;exports.CreateInvoiceCalculationMode=ltS;exports.CreateItemBodyClassification=ctS;exports.CreateItemBodyUsage=ptS;exports.CreateItemInventoryMovementBodyType=xtS;exports.CreateMigrationJobRequestEnvironment=ytS;exports.CreateMigrationJobResponseStatus=vtS;exports.CreateOrderBodyPaymentStatus=StS;exports.CreateOrderBodySource=ztS;exports.CreateOrderIntegrationBodySource=BtS;exports.CreatePaymentBodyType=TtS;exports.CreatePtAtcudSeriesBodyDocumentType=DtS;exports.CreatePurchaseOrderCalculationMode=_tS;exports.CreatePurchaseOrderItemClassification=MtS;exports.CreatePurchaseOrderItemType=PtS;exports.CreateRecurringInvoiceBodyFrequency=wtS;exports.CreateTaxPaymentType=FtS;exports.CreateTravelOrderBodyTripType=jtS;exports.CreateWebhookBodyEventsItem=LtS;exports.CreationSource=VtS;exports.CreditNoteCalculationMode=ZtS;exports.CreditNoteItemClassification=WtS;exports.CreditNoteItemType=$tS;exports.CreditNoteTransactionType=JtS;exports.CryptoEquivalentCode=enS;exports.CryptoEquivalentsSettingsCodesItem=nnS;exports.CryptoWalletCode=onS;exports.CurrentSubscriptionAllowedPaymentProvidersItem=anS;exports.CurrentSubscriptionBillingProfile=lnS;exports.CurrentSubscriptionCurrencyCode=cnS;exports.CurrentSubscriptionPaymentProvider=pnS;exports.CurrentSubscriptionStripePublishableKeyKind=xnS;exports.CustomCreateAdvanceInvoiceCalculationMode=ynS;exports.CustomCreateCreditNoteCalculationMode=vnS;exports.CustomCreateDeliveryNoteCalculationMode=SnS;exports.CustomCreateEstimateCalculationMode=znS;exports.CustomCreateEstimateTitleType=BnS;exports.CustomCreateExpenseTransactionType=TnS;exports.CustomCreateExpenseType=DnS;exports.CustomCreateInvoiceCalculationMode=_nS;exports.CustomDocumentItemClassification=MnS;exports.CustomDocumentItemType=PnS;exports.CustomExpenseItemClassification=wnS;exports.CustomExpenseItemType=FnS;exports.CustomExpenseWriteCalculationMode=jnS;exports.CustomExpenseWritePaymentsItemType=LnS;exports.CustomExpenseWriteTransactionType=VnS;exports.CustomExpenseWriteType=ZnS;exports.CustomStoreConnectRequestAutoProcessOn=WnS;exports.CustomStoreOrderItemsItemKind=$nS;exports.CustomStoreOrderResultAction=JnS;exports.DEFAULT_BASE_URL=_e;exports.DeleteDocumentType=esS;exports.DeliveryNoteCalculationMode=nsS;exports.DeliveryNoteItemClassification=osS;exports.DeliveryNoteItemType=asS;exports.DeliveryNoteTransactionType=lsS;exports.DocumentCalculationCalculationMode=csS;exports.DocumentCalculationTransactionType=psS;exports.DocumentItemEInvoicingVatCategoryCode=xsS;exports.DocumentItemRevenueRecognitionMethod=ysS;exports.DocumentRelationRelatedDocumentTitleType=vsS;exports.DocumentRelationRelatedDocumentType=SsS;exports.DocumentRelationSourceType=zsS;exports.DocumentRelationTargetType=BsS;exports.DocumentVersionDocumentType=TsS;exports.DownloadDocumentEslogType=DsS;exports.DownloadReceivedEInvoiceFormat=_sS;exports.EInvoicingEnrollmentChannel=MsS;exports.EInvoicingEnrollmentEnvironment=PsS;exports.EInvoicingEnrollmentState=wsS;exports.EInvoicingRecipientCheckResponseDocumentType=FsS;exports.EmailSenderDomainVerificationStatus=jsS;exports.EmailSenderEffectiveSource=LsS;exports.EmailSenderEmailVerificationStatus=VsS;exports.EmailSenderVerificationStatus=ZsS;exports.EntityApiKeyEnvironment=WsS;exports.EntityApiKeyListItemEnvironment=$sS;exports.EntityApiKeyListItemPurpose=JsS;exports.EntityApiKeyPurpose=eoS;exports.EntityBankAccountInputType=noS;exports.EntityBankAccountType=ooS;exports.EntityEnvironment=aoS;exports.EntityInvitationPreviewRole=loS;exports.EntityInvitationPreviewStatus=coS;exports.EntityInvitationRole=poS;exports.EntityInvitationStatus=xoS;exports.EntitySettingsPdfTemplate=yoS;exports.EntitySettingsUpdatePdfTemplate=voS;exports.EntityUserRole=SoS;exports.EntityUsersAccessAccountRole=zoS;exports.EntityUsersAccessEntityRole=BoS;exports.EslogDataValidationStatus=ToS;exports.EslogExportByDateRangeTypesItem=DoS;exports.EstimateCalculationMode=_oS;exports.EstimateItemClassification=MoS;exports.EstimateItemType=PoS;exports.EstimateTitleType=woS;exports.EstimateTransactionType=FoS;exports.EuOssReportResponseEligibilityReason=joS;exports.EuOssReportResponseNoticesItem=LoS;exports.EuOssThresholdAmount=VoS;exports.EuOssThresholdCurrencyCode=ZoS;exports.EuOssThresholdStatus=WoS;exports.ExpenseCategoryReportResponseBasis=$oS;exports.ExpenseCategoryReportResponseCalculationMode=JoS;exports.ExpenseCategoryReportResponseGroupBy=eiS;exports.ExpenseImportDraftItemClassification=niS;exports.ExpenseImportDraftItemType=oiS;exports.ExpenseImportResultAttachmentStatus=aiS;exports.ExpenseImportSourceDocumentType=liS;exports.ExpenseImportWarningCode=ciS;exports.ExpenseInboundEmailAttachmentMode=piS;exports.ExpenseInboundEmailMessageStatus=xiS;exports.ExpenseItemClassification=yiS;exports.ExpenseItemRecognitionMethod=viS;exports.ExpenseItemType=SiS;exports.ExpensePaymentOpenBalanceErrorCauseCode=ziS;exports.ExpenseRecognitionJobSimulationMode=BiS;exports.ExpenseRecognitionJobStatus=TiS;exports.ExpenseRecognitionJobWarningsItemCode=DiS;exports.ExpenseRecognitionSettingsDefaultMethod=_iS;exports.ExpenseRecognitionSettingsResponseDefaultMethod=MiS;exports.ExpenseSummaryClassification=PiS;exports.ExpenseType=wiS;exports.ExportDocumentsFormat=FiS;exports.ExportDocumentsLanguage=jiS;exports.ExportDocumentsType=LiS;exports.ExportExpensesDateBasis=ViS;exports.ExportExpensesFormat=ZiS;exports.ExportExpensesLanguage=WiS;exports.ExportInventoryFormat=$iS;exports.ExportInventoryLanguage=JiS;exports.ExportPosDailyReportFormat=eaS;exports.ExportPosDailyReportLanguage=naS;exports.ExportPosMonthlyReportFormat=oaS;exports.ExportPosMonthlyReportLanguage=aaS;exports.ExportRevenueByCategoryFormat=laS;exports.ExportRevenueByCategoryLanguage=caS;exports.ExportSalesPerItemFormat=paS;exports.ExportSalesPerItemLanguage=xaS;exports.ExportVatReturnFormat=yaS;exports.FilingKind=vaS;exports.FilingObligationType=SaS;exports.FilingState=zaS;exports.FilingStatus=BaS;exports.FilingVerification=TaS;exports.FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason=DaS;exports.FinaFiscalizationResponseStatus=_aS;exports.FinalizeDocumentType=MaS;exports.FiscalRecoveryErrorCauseCode=VaS;exports.FiscalizationProviderErrorCauseProvider=PaS;exports.FiscalizationProviderErrorCauseType=waS;exports.FiscalizationProviderErrorCode=FaS;exports.FiscalizeDocumentType=jaS;exports.FiscalizedOutputRegistrationFiscalizationProvider=LaS;exports.FrenchEReportingRecordKind=ZaS;exports.FrenchEReportingRecordStatus=WaS;exports.FursFiscalizationResponseStatus=$aS;exports.FursPremiseSuccessResponseEnvironment=JaS;exports.GeneratePtSaftReportMode=erS;exports.GermanEInvoicingDataValidationStatus=nrS;exports.GetActivePtAtcudSeriesDocumentType=orS;exports.GetActivities200DataItemActorType=arS;exports.GetEntitiesEnvironment=lrS;exports.GetEslogExportStatus200Status=crS;exports.GetExpenseCategoryReportBasis=prS;exports.GetExpenseCategoryReportGroupBy=xrS;exports.GetFilesCategory=yrS;exports.GetFinaSettings200CertificateStatus=vrS;exports.GetFinaSettings200NumberingSequence=SrS;exports.GetFursSettings200CertificateStatus=zrS;exports.GetFursSettings200NumberingStrategy=BrS;exports.GetItemsImportTemplateFormat=TrS;exports.GetItemsImportTemplateLanguage=DrS;exports.GetItemsUsage=_rS;exports.GetLegacyMigrationOrganization200UnsupportedItemCode=MrS;exports.GetNextDocumentNumberType=PrS;exports.GetPaymentRemindersStatus=wrS;exports.GetPaymentRemindersTrigger=FrS;exports.GetPdfExportStatus200Status=jrS;exports.GetRevenueRecognitionDetailsBasis=LrS;exports.GetRevenueRecognitionDetailsGroupBy=VrS;exports.GetRevenueRecognitionReportBasis=ZrS;exports.GetRevenueRecognitionReportGroupBy=WrS;exports.GetShareableAdvanceInvoiceHtmlLanguage=$rS;exports.GetShareableAdvanceInvoiceHtmlLocale=JrS;exports.GetShareableAdvanceInvoicePdfLanguage=elS;exports.GetShareableAdvanceInvoicePdfLocale=nlS;exports.GetShareableCreditNoteHtmlLanguage=olS;exports.GetShareableCreditNoteHtmlLocale=alS;exports.GetShareableCreditNotePdfLanguage=llS;exports.GetShareableCreditNotePdfLocale=clS;exports.GetShareableDeliveryNoteHtmlLanguage=plS;exports.GetShareableDeliveryNoteHtmlLocale=xlS;exports.GetShareableDeliveryNotePdfLanguage=ylS;exports.GetShareableDeliveryNotePdfLocale=vlS;exports.GetShareableEstimateHtmlLanguage=SlS;exports.GetShareableEstimateHtmlLocale=zlS;exports.GetShareableEstimatePdfLanguage=BlS;exports.GetShareableEstimatePdfLocale=TlS;exports.GetShareableInvoiceHtmlLanguage=DlS;exports.GetShareableInvoiceHtmlLocale=_lS;exports.GetShareableInvoicePdfLanguage=MlS;exports.GetShareableInvoicePdfLocale=PlS;exports.GetShareablePurchaseOrderHtmlLanguage=wlS;exports.GetShareablePurchaseOrderHtmlLocale=FlS;exports.GetShareablePurchaseOrderPdfLanguage=jlS;exports.GetShareablePurchaseOrderPdfLocale=LlS;exports.GetSloveniaTaxProfile200AccountingExportsPreferredFormat=VlS;exports.GetSloveniaTaxProfile200BusinessForm=ZlS;exports.GetSloveniaTaxProfile200BusinessFormSource=WlS;exports.GetSloveniaTaxProfile200IncomeTaxRegime=$lS;exports.GetSloveniaTaxProfile200InferredBusinessForm=JlS;exports.GetSloveniaTaxProfile200TaxResidency=edS;exports.GetSloveniaTaxProfile200VatProfile=ndS;exports.GetSloveniaTaxProfile200YearlyReportingAccountingType=odS;exports.GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis=adS;exports.ImportBankStatementBodyLedgerAccountCode=ldS;exports.ImportBankStatementBodySourceFormat=cdS;exports.InventoryMovementResponseType=pdS;exports.InvoiceCalculationMode=xdS;exports.InvoiceItemClassification=ydS;exports.InvoiceItemType=vdS;exports.InvoiceTransactionType=SdS;exports.ItalyLineTaxDataNature=zdS;exports.ItemClassification=BdS;exports.ItemUsage=_dS;exports.ItemsImportReportRowsItemAction=TdS;exports.ItemsImportReportRowsItemStock=DdS;exports.JournalEntryKind=MdS;exports.KsefDocumentDataStatus=PdS;exports.KsefEntitySettingsObligation=wdS;exports.KsefSettingsResponseCredentialStatus=FdS;exports.KsefSettingsResponseEnvironment=jdS;exports.KsefSettingsResponseObligation=LdS;exports.LedgerAccountCode=VdS;exports.LedgerAccountDeductibility=ZdS;exports.LedgerAccountType=WdS;exports.LedgerPaymentAccountDirection=$dS;exports.LedgerPaymentAccountPaymentType=JdS;exports.LedgerPostingSourceType=ecS;exports.LegacyAuthResponseOrganizationsItemUnsupportedItemCode=ncS;exports.LegalDetailsLegalForm=ocS;exports.LineDiscountInputType=acS;exports.LineDiscountType=lcS;exports.LinkBankTransactionBodyDocumentType=ccS;exports.ListAccountFilingsCalendarEnvironment=pcS;exports.ListEmployeesStatus=xcS;exports.ListPtAtcudSeriesDocumentType=ycS;exports.ListReceivedEInvoicesState=vcS;exports.ListRevenueRecognitionLinesBasis=ScS;exports.ListRevenueRecognitionLinesGroupBy=zcS;exports.MAX_LIST_ALL_PAGES=bZh;exports.MagentoAuthorizationStatusFailureReason=BcS;exports.MagentoAuthorizationStatusStatus=TcS;exports.MagentoAuthorizeRequestAutoProcessOn=DcS;exports.MigrationJobResponseStatus=_cS;exports.ModifyEmployeeBodyCommuteMode=McS;exports.ModifyEmployeeBodyEmploymentType=PcS;exports.ModifyEmployeeBodyGeneralAllowanceMode=wcS;exports.ModifyEmployeeBodyStatus=FcS;exports.ModifyEmployeeBodyTaxResidency=jcS;exports.MovablePremisePremiseType=LcS;exports.NavAnnulmentRequestAnnulmentCode=VcS;exports.NavDocumentDataOperation=ZcS;exports.NavDocumentMessageSeverity=WcS;exports.NavDocumentStatus=$cS;exports.NavEnvironment=JcS;exports.NavErrorBodyConflictsItemSource=euS;exports.NavErrorBodyConflictsItemTypesItem0=nuS;exports.NavErrorBodyConflictsItemTypesItem1=ouS;exports.NavInvoiceAppearance=auS;exports.NavObligation=luS;exports.NavVatTreatmentDomesticReverseChargeType=cuS;exports.NavVatTreatmentExemptionCase=puS;exports.NavVatTreatmentExemptionType=xuS;exports.NavVatTreatmentNoVatChargeType=yuS;exports.NavVatTreatmentOutOfScopeCase=vuS;exports.NavVatTreatmentOutOfScopeType=SuS;exports.OrderBasePaymentStatus=zuS;exports.OrderBaseSource=BuS;exports.OrderBaseStatus=TuS;exports.OrderIntegrationBaseAutoProcessOn=DuS;exports.OrderIntegrationBaseDocumentCurrency=_uS;exports.OrderIntegrationBaseSource=MuS;exports.OrderItemKind=PuS;exports.OrderItemResponseKind=wuS;exports.PartialAdvanceInvoicePreviewCalculationMode=FuS;exports.PartialAdvanceInvoicePreviewCreationSource=juS;exports.PartialAdvanceInvoicePreviewItemsItemClassification=LuS;exports.PartialAdvanceInvoicePreviewItemsItemDiscountsItemType=VuS;exports.PartialAdvanceInvoicePreviewItemsItemType=ZuS;exports.PartialCreditNotePreviewCalculationMode=WuS;exports.PartialCreditNotePreviewCreationSource=$uS;exports.PartialCreditNotePreviewItemsItemClassification=JuS;exports.PartialCreditNotePreviewItemsItemDiscountsItemType=epS;exports.PartialCreditNotePreviewItemsItemType=npS;exports.PartialDeliveryNotePreviewCalculationMode=opS;exports.PartialDeliveryNotePreviewCreationSource=apS;exports.PartialDeliveryNotePreviewItemsItemClassification=lpS;exports.PartialDeliveryNotePreviewItemsItemDiscountsItemType=cpS;exports.PartialDeliveryNotePreviewItemsItemType=ppS;exports.PartialEstimatePreviewCalculationMode=xpS;exports.PartialEstimatePreviewCreationSource=ypS;exports.PartialEstimatePreviewItemsItemClassification=vpS;exports.PartialEstimatePreviewItemsItemDiscountsItemType=SpS;exports.PartialEstimatePreviewItemsItemType=zpS;exports.PartialEstimatePreviewTitleType=BpS;exports.PartialInvoicePreviewCalculationMode=TpS;exports.PartialInvoicePreviewCreationSource=DpS;exports.PartialInvoicePreviewItemsItemClassification=_pS;exports.PartialInvoicePreviewItemsItemDiscountsItemType=MpS;exports.PartialInvoicePreviewItemsItemType=PpS;exports.PartialPurchaseOrderPreviewCalculationMode=wpS;exports.PartialPurchaseOrderPreviewCreationSource=FpS;exports.PartialPurchaseOrderPreviewItemsItemClassification=jpS;exports.PartialPurchaseOrderPreviewItemsItemDiscountsItemType=LpS;exports.PartialPurchaseOrderPreviewItemsItemType=VpS;exports.PatchEntityBodySettingsPdfTemplate=ZpS;exports.PatchMeBodyLocale=WpS;exports.PaymentReminderStatus=$pS;exports.PaymentReminderTrigger=JpS;exports.PaymentType=emS;exports.PdfExportByDateRangeLanguage=nmS;exports.PdfExportByDateRangeLocale=omS;exports.PdfExportByDateRangeTypesItem=amS;exports.PdfExportByDocumentIdsLanguage=lmS;exports.PdfExportByDocumentIdsLocale=cmS;exports.PermanentDeleteDocumentType=pmS;exports.PosTabConflictCode=xmS;exports.PosTabResponseStatus=ymS;exports.PreviewTravelOrderBodyTripType=vmS;exports.PtAtcudSeriesDocumentType=SmS;exports.PurchaseOrderBusinessUnitSettingsInputPdfTemplate=zmS;exports.PurchaseOrderCalculationMode=BmS;exports.PurchaseOrderItemClassification=TmS;exports.PurchaseOrderItemType=DmS;exports.PurchaseOrderTransactionType=_mS;exports.PurchaseOrderVersionDocumentType=MmS;exports.PutKsefCredentialEnvironment=PmS;exports.ReceivedEInvoiceAttachmentStatus=wmS;exports.ReceivedEInvoiceLifecycleRequestAction=FmS;exports.ReceivedEInvoiceLifecycleRequestReasonCode=jmS;exports.ReceivedEInvoiceState=LmS;exports.RecurringInvoiceBaseFrequency=VmS;exports.RecurringInvoiceBaseStatus=ZmS;exports.RegisterDocumentOutputType=WmS;exports.RegisterEmployeeBodyCommuteMode=$mS;exports.RegisterEmployeeBodyEmploymentType=JmS;exports.RegisterEmployeeBodyGeneralAllowanceMode=exS;exports.RegisterEmployeeBodyStatus=nxS;exports.RegisterEmployeeBodyTaxResidency=oxS;exports.RegisterFursMovablePremiseBodyMovablePremisePremiseType=axS;exports.RenderAdvanceInvoicePreviewEpcQrEnabled=lxS;exports.RenderAdvanceInvoicePreviewHub3QrEnabled=cxS;exports.RenderAdvanceInvoicePreviewPartial=pxS;exports.RenderAdvanceInvoicePreviewSwissQrBillEnabled=xxS;exports.RenderAdvanceInvoicePreviewTemplate=yxS;exports.RenderAdvanceInvoicePreviewUpnQrDisplayMode=vxS;exports.RenderAdvanceInvoicePreviewUpnQrEnabled=SxS;exports.RenderCreditNotePreviewEpcQrEnabled=zxS;exports.RenderCreditNotePreviewHub3QrEnabled=BxS;exports.RenderCreditNotePreviewPartial=TxS;exports.RenderCreditNotePreviewSwissQrBillEnabled=DxS;exports.RenderCreditNotePreviewTemplate=_xS;exports.RenderCreditNotePreviewUpnQrDisplayMode=MxS;exports.RenderCreditNotePreviewUpnQrEnabled=PxS;exports.RenderDeliveryNotePreviewEpcQrEnabled=wxS;exports.RenderDeliveryNotePreviewHub3QrEnabled=FxS;exports.RenderDeliveryNotePreviewPartial=jxS;exports.RenderDeliveryNotePreviewSwissQrBillEnabled=LxS;exports.RenderDeliveryNotePreviewTemplate=VxS;exports.RenderDeliveryNotePreviewUpnQrDisplayMode=ZxS;exports.RenderDeliveryNotePreviewUpnQrEnabled=WxS;exports.RenderDocumentHtmlTemplate=$xS;exports.RenderDocumentPdfTemplate=JxS;exports.RenderEstimatePreviewEpcQrEnabled=egS;exports.RenderEstimatePreviewHub3QrEnabled=ngS;exports.RenderEstimatePreviewPartial=ogS;exports.RenderEstimatePreviewSwissQrBillEnabled=agS;exports.RenderEstimatePreviewTemplate=lgS;exports.RenderEstimatePreviewUpnQrDisplayMode=cgS;exports.RenderEstimatePreviewUpnQrEnabled=pgS;exports.RenderInvoicePreviewEpcQrEnabled=xgS;exports.RenderInvoicePreviewHub3QrEnabled=ygS;exports.RenderInvoicePreviewPartial=vgS;exports.RenderInvoicePreviewSwissQrBillEnabled=SgS;exports.RenderInvoicePreviewTemplate=zgS;exports.RenderInvoicePreviewUpnQrDisplayMode=BgS;exports.RenderInvoicePreviewUpnQrEnabled=TgS;exports.RenderPurchaseOrderPreviewEpcQrEnabled=DgS;exports.RenderPurchaseOrderPreviewHub3QrEnabled=_gS;exports.RenderPurchaseOrderPreviewPartial=MgS;exports.RenderPurchaseOrderPreviewSwissQrBillEnabled=PgS;exports.RenderPurchaseOrderPreviewTemplate=wgS;exports.RenderPurchaseOrderPreviewUpnQrDisplayMode=FgS;exports.RenderPurchaseOrderPreviewUpnQrEnabled=jgS;exports.RenderTravelOrderPreviewBodyTripType=LgS;exports.ReplaceEmployeeAttendanceBodyDaysItemKind=VgS;exports.ReplaceEmployeeAttendanceBodyDaysItemSickReason=ZgS;exports.RestoreDocumentType=WgS;exports.RevenueRecognitionDetailsResponseCalculationMode=$gS;exports.RevenueRecognitionLinesResponseCalculationMode=JgS;exports.RevenueRecognitionReportResponseBasis=e0S;exports.RevenueRecognitionReportResponseCalculationMode=n0S;exports.RevenueRecognitionReportResponseGroupBy=o0S;exports.RevenueRecognitionSettingsDefaultMethod=a0S;exports.RevenueRecognitionSettingsResponseDefaultMethod=l0S;exports.ReviewSloveniaYearlyNormiraniReport200FilingKind=c0S;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType=p0S;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer=x0S;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity=y0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat=v0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm=S0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource=z0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime=B0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm=T0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency=D0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile=_0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType=M0S;exports.ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis=P0S;exports.ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity=w0S;exports.SdiLifecycleDataCountryCode=F0S;exports.SdiLifecycleDataStatus=j0S;exports.SendDocument200Status=L0S;exports.SendEmail200Status=V0S;exports.SendEmailBodyLanguage=Z0S;exports.SendEmailBodyLocale=W0S;exports.SendPaymentReminderBodyLocale=$0S;exports.SendPaymentReminderResponseStatus=J0S;exports.SetVendorTaxProfileClassification=eyS;exports.SloveniaAccountingExportsSettingsPreferredFormat=nyS;exports.SloveniaEntitySettingsBusinessForm=oyS;exports.SloveniaEntitySettingsIncomeTaxRegime=ayS;exports.SloveniaEntitySettingsTaxResidency=lyS;exports.SloveniaEntitySettingsVatProfile=cyS;exports.SloveniaYearlyReportingSettingsAccountingType=pyS;exports.SloveniaYearlyReportingSettingsNormiranecInsuranceBasis=xyS;exports.SpaceInvoices=Re;exports.StartEslogExport202Status=yyS;exports.StartPdfExport202Status=vyS;exports.StatsQueryRequestMetricsItemType=SyS;exports.StatsQueryRequestOrderByItemDirection=zyS;exports.StatsQueryRequestTable=ByS;exports.StripeAppConnectionEntityEnvironment=TyS;exports.StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem=DyS;exports.StripeAppUpdateSettingsBodyAutoInvoiceEventsItem=_yS;exports.SubscriptionTier=MyS;exports.SyncOrderIntegrationResponseCompletionState=PyS;exports.SyncShopifyOrdersResponseCompletionState=wyS;exports.TaxPaymentType=FyS;exports.TaxWorksheetForm5472ReportingCorporationCountryOfIncorporation=jyS;exports.TicketBaiDocumentDataExemptionCause=LyS;exports.TicketBaiDocumentDataNonSubjectCause=VyS;exports.TicketBaiDocumentDataOperationType=ZyS;exports.TicketBaiDocumentDataRecipientIdType=WyS;exports.TicketBaiDocumentDataRectificationCode=$yS;exports.TicketBaiDocumentDataStatus=JyS;exports.TicketBaiDocumentDataTaxTreatment=eOS;exports.TicketBaiDocumentDataVatRegime=nOS;exports.TicketBaiDocumentInputExemptionCause=oOS;exports.TicketBaiDocumentInputNonSubjectCause=aOS;exports.TicketBaiDocumentInputOperationType=lOS;exports.TicketBaiDocumentInputRecipientIdType=cOS;exports.TicketBaiDocumentInputRectificationCode=pOS;exports.TicketBaiDocumentInputTaxTreatment=xOS;exports.TicketBaiDocumentInputVatRegime=yOS;exports.TicketBaiRecordDocumentType=vOS;exports.TicketBaiRecordEnvironment=SOS;exports.TicketBaiRecordOperation=zOS;exports.TicketBaiRecordRecentAttemptsItemKind=BOS;exports.TicketBaiRecordRecentAttemptsItemStatus=TOS;exports.TicketBaiRecordStatus=DOS;exports.TicketBaiRecordTerritory=_OS;exports.TicketBaiSettingsBlockersItem=MOS;exports.TicketBaiSettingsEnvironment=POS;exports.TicketBaiSettingsLroeModel=wOS;exports.TicketBaiSettingsTerritory=FOS;exports.TransactionTypeCheckRequestItemsItemClassification=jOS;exports.TransactionTypeCheckRequestItemsItemType=LOS;exports.TransactionTypeCheckRequestSupplyType=VOS;exports.TransactionTypeCheckResponseSupplyScope=ZOS;exports.TransactionTypeCheckResponseTransactionType=WOS;exports.TransactionTypeCheckResponseWarningCode=$OS;exports.TravelOrderCostType=JOS;exports.TravelOrderCurrencyCode=evS;exports.TravelOrderPerDiemBand=nvS;exports.TravelOrderRouteDistanceProvider=ovS;exports.TravelOrderStatus=avS;exports.TravelOrderTransport=lvS;exports.TravelOrderTripType=cvS;exports.TrialBalanceRowType=pvS;exports.UjpDataValidationStatus=xvS;exports.UpdateAccountWebhookBodyEventsItem=yvS;exports.UpdateCustomerBodyContactType=vvS;exports.UpdateEntityUserRoleBodyRole=SvS;exports.UpdateEstimateTitleType=zvS;exports.UpdateExpenseBodyCalculationMode=BvS;exports.UpdateExpenseBodyTransactionType=TvS;exports.UpdateExpenseBodyType=DvS;exports.UpdateExpenseRecognitionSettingsDefaultMethod=_vS;exports.UpdateFinaSettings200CertificateStatus=MvS;exports.UpdateFinaSettings200NumberingSequence=PvS;exports.UpdateFinaSettingsBodyNumberingSequence=wvS;exports.UpdateFursSettings200CertificateStatus=FvS;exports.UpdateFursSettings200NumberingStrategy=jvS;exports.UpdateFursSettingsBodyNumberingStrategy=LvS;exports.UpdateItemBodyClassification=VvS;exports.UpdateItemBodyUsage=ZvS;exports.UpdateKsefSettingsObligation=WvS;exports.UpdateNavSettingsInvoiceAppearance=$vS;exports.UpdateNavSettingsObligation=JvS;exports.UpdateOrderBodyPaymentStatus=ehS;exports.UpdateOrderIntegrationBodyAutoProcessOn=nhS;exports.UpdateOrderIntegrationBodyDocumentCurrency=ohS;exports.UpdatePaymentBodyType=ahS;exports.UpdateRecurringInvoiceBodyFrequency=lhS;exports.UpdateRevenueRecognitionSettingsDefaultMethod=chS;exports.UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat=phS;exports.UpdateSloveniaTaxProfile200BusinessForm=xhS;exports.UpdateSloveniaTaxProfile200BusinessFormSource=yhS;exports.UpdateSloveniaTaxProfile200IncomeTaxRegime=vhS;exports.UpdateSloveniaTaxProfile200InferredBusinessForm=ShS;exports.UpdateSloveniaTaxProfile200TaxResidency=zhS;exports.UpdateSloveniaTaxProfile200VatProfile=BhS;exports.UpdateSloveniaTaxProfile200YearlyReportingAccountingType=ThS;exports.UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis=DhS;exports.UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat=_hS;exports.UpdateSloveniaTaxProfileBodyBusinessForm=MhS;exports.UpdateSloveniaTaxProfileBodyIncomeTaxRegime=PhS;exports.UpdateSloveniaTaxProfileBodyTaxResidency=whS;exports.UpdateSloveniaTaxProfileBodyVatProfile=FhS;exports.UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType=jhS;exports.UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis=LhS;exports.UpdateTaxPaymentType=VhS;exports.UpdateTicketBaiSettingsLroeModel=ZhS;exports.UpdateTicketBaiSettingsTerritory=WhS;exports.UpdateTravelOrderBodyTransport=$hS;exports.UpdateTravelOrderBodyTripType=JhS;exports.UpdateVerifactuSettingsTerritory=eSS;exports.UpdateWebhookBodyEventsItem=nSS;exports.UploadFileBodyCategory=oSS;exports.UpnQrSettingsDisplayMode=aSS;exports.UsTaxYearWorksheetCompanyStateOfIncorporation=lSS;exports.ValidateDocumentEslogType=cSS;exports.ValidationErrorConflictsItemSource=pSS;exports.ValidationErrorConflictsItemTypesItem0=xSS;exports.ValidationErrorConflictsItemTypesItem1=ySS;exports.VatReturnPreviewVatPeriodSetting=vSS;exports.VatReturnStatus=SSS;exports.VatReturnVatPeriodSetting=zSS;exports.VendorTaxClassification=BSS;exports.VerifactuDocumentInputCustomerIdType=TSS;exports.VerifactuDocumentInputInvoiceType=DSS;exports.VerifactuDocumentInputTaxTreatmentsItemQualification=_SS;exports.VerifactuDocumentInputTaxTreatmentsItemTax=MSS;exports.VerifactuDocumentStatus=PSS;exports.VerifactuEvidenceKind=wSS;exports.VerifactuSettingsEligibility=FSS;exports.VerifactuSettingsEnvironment=jSS;exports.VerifactuSettingsTerritory=LSS;exports.WebhookDeliveryStatus=VSS;exports.WebhookResponseEventsItem=ZSS;exports.WebhookWithSecretEventsItem=WSS;exports.WhiteLabelConfigEnvironment=$SS;exports.WhiteLabelPlanCurrencyCode=JSS;exports.WooCommerceAuthorizeRequestAutoProcessOn=ebS;exports.accountWebhooks=yn;exports.accounting=On;exports.activities=vn;exports.advanceInvoices=hn;exports.businessUnits=Sn;exports.companyRegistry=bn;exports.creditNotes=zn;exports.currency=fn;exports.customers=Bn;exports.default=Re;exports.deliveryNotes=In;exports.documents=Dn;exports.downloadBlob=es;exports.eInvoicing=Nn;exports.eSlog=Mn;exports.email=Un;exports.entities=Pn;exports.entityApiKeys=Cn;exports.entityInvitations=wn;exports.entityStats=An;exports.entityUsers=Fn;exports.estimates=kn;exports.expenses=jn;exports.exports=Hn;exports.files=Ln;exports.finaCertificate=Gn;exports.finaDevices=Vn;exports.finaPremises=Kn;exports.finaSettings=Zn;exports.financialCategories=qn;exports.fursCertificate=Wn;exports.fursDevices=Yn;exports.fursInternalAct=$n;exports.fursPremises=Qn;exports.fursSettings=Jn;exports.getAccountId=OZh;exports.getClientHeaders=nt;exports.health=Xn;exports.initSDK=IJh;exports.invoices=ts;exports.items=ns;exports.legacyMigration=ss;exports.listAll=BZh;exports.locale=os;exports.orderIntegrations=is;exports.orders=as;exports.paymentReminders=rs;exports.payments=ls;exports.pointOfSale=ds;exports.ptAtcudSeries=cs;exports.ptSafT=us;exports.purchaseOrders=ps;exports.recurringInvoices=ms;exports.revenueRecognition=xs;exports.setAccountId=gn;exports.stripeApp=gs;exports.subscriptions=ys;exports.taxRateEstimates=Os;exports.taxReports=vs;exports.taxes=hs;exports.ticketBai=Ss;exports.transactionType=bs;exports.travelOrders=zs;exports.ujp=fs;exports.upload=Bs;exports.users=Is;exports.veriFactu=Ts;exports.vies=Es;exports.warehouses=Ds;exports.webhooks=Rs;exports.whiteLabelSubscriptions=_s;exports.whiteLabels=Ns;exports.zod=Sgh;
|