@spaceinvoices/js-sdk 18.26.0 → 18.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -141,5 +141,5 @@ Searches across all text fields including names, descriptions, addresses, and me
141
141
  Searches are case-insensitive and match partial strings.
142
142
  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.")}),M4b=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.")}),Ntb=36,Mtb=100,Utb=0,Ptb=100,Ctb=2,wtb=2,Atb=36,U4b=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Ntb),name:e__namespace.string().max(Mtb),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Utb).max(Ptb),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(Ctb).max(wtb).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(Atb),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")}),Ftb=/^[a-z]{3,4}_[0-9a-f]{24}$/,P4b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Ftb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C4b=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.")}),ktb=0,jtb=100,w4b=e__namespace.object({tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(ktb).max(jtb),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)")}),Htb=36,Ltb=100,Gtb=0,Vtb=100,Ktb=2,Ztb=2,qtb=36,A4b=e__namespace.object({id:e__namespace.string().max(Htb),name:e__namespace.string().max(Ltb),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(Gtb).max(Vtb),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(Ktb).max(Ztb).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(qtb),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"),Wtb=/^[a-z]{3,4}_[0-9a-f]{24}$/,F4b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Wtb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),k4b=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.")}),Ytb=100,$tb=0,Qtb=100,Jtb=2,Xtb=2,enb=60,j4b=e__namespace.object({name:e__namespace.string().max(Ytb).optional(),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min($tb).max(Qtb),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(Jtb).max(Xtb).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(enb).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.")}),tnb=36,nnb=100,snb=0,onb=100,inb=2,anb=2,rnb=36,H4b=e__namespace.object({id:e__namespace.string().max(tnb),name:e__namespace.string().max(nnb),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(snb).max(onb),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(inb).max(anb).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(rnb),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"),lnb=/^[a-z]{3,4}_[0-9a-f]{24}$/,L4b=e__namespace.object({id:e__namespace.stringFormat("resource-id",lnb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),G4b=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.")}),dnb=/^[a-z]{3,4}_[0-9a-f]{24}$/,V4b=e__namespace.object({id:e__namespace.stringFormat("resource-id",dnb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),K4b=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.")}),cnb=36,unb=100,pnb=0,mnb=100,xnb=2,gnb=2,ynb=36,Z4b=e__namespace.object({id:e__namespace.string().max(cnb),name:e__namespace.string().max(unb),tax_rates:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(pnb).max(mnb),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(xnb).max(gnb).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(ynb),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"),Onb=/^[a-z]{3,4}_[0-9a-f]{24}$/,q4b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Onb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),W4b=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 un={};$(un,{DownloadTicketBaiRecordXmlHeader:()=>r3b,DownloadTicketBaiRecordXmlParams:()=>a3b,GetTicketBaiRecordHeader:()=>o3b,GetTicketBaiRecordParams:()=>s3b,GetTicketBaiRecordResponse:()=>i3b,GetTicketBaiSettingsHeader:()=>Y4b,GetTicketBaiSettingsResponse:()=>$4b,ReconcileTicketBaiRecordHeader:()=>p3b,ReconcileTicketBaiRecordParams:()=>u3b,ReconcileTicketBaiRecordResponse:()=>m3b,RetryTicketBaiRecordHeader:()=>d3b,RetryTicketBaiRecordParams:()=>l3b,RetryTicketBaiRecordResponse:()=>c3b,UpdateTicketBaiSettingsBody:()=>J4b,UpdateTicketBaiSettingsHeader:()=>Q4b,UpdateTicketBaiSettingsResponse:()=>X4b,UploadTicketBaiCertificateBody:()=>t3b,UploadTicketBaiCertificateHeader:()=>e3b,UploadTicketBaiCertificateResponse:()=>n3b,downloadTicketBaiRecordXmlPathIdMax:()=>Dnb,getTicketBaiRecordPathIdMax:()=>Enb,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>vnb,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>hnb,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>bnb,reconcileTicketBaiRecordPathIdMax:()=>_nb,retryTicketBaiRecordPathIdMax:()=>Rnb,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>Snb,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>znb,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>fnb,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>Inb,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>Bnb,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>Tnb});var Y4b=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.")}),vnb=120,hnb=120,bnb=120,$4b=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(vnb),surname1:e__namespace.string().min(1).max(hnb),surname2:e__namespace.string().min(1).max(bnb)}),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()}),Q4b=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.")}),Snb=120,znb=120,fnb=120,J4b=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(Snb),surname1:e__namespace.string().min(1).max(znb),surname2:e__namespace.string().min(1).max(fnb)}),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.")}),Inb=120,Bnb=120,Tnb=120,X4b=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(Inb),surname1:e__namespace.string().min(1).max(Bnb),surname2:e__namespace.string().min(1).max(Tnb)}),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()}),e3b=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.")}),t3b=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.")}),n3b=e__namespace.object({certificate_expiry:e__namespace.string()}),Enb=36,s3b=e__namespace.object({id:e__namespace.string().min(1).max(Enb)}),o3b=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.")}),i3b=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.")}),Dnb=36,a3b=e__namespace.object({id:e__namespace.string().min(1).max(Dnb)}),r3b=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.")}),Rnb=36,l3b=e__namespace.object({id:e__namespace.string().min(1).max(Rnb)}),d3b=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.")}),c3b=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.")}),_nb=36,u3b=e__namespace.object({id:e__namespace.string().min(1).max(_nb)}),p3b=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.")}),m3b=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 pn={};$(pn,{CheckTransactionTypeBody:()=>g3b,CheckTransactionTypeHeader:()=>x3b,CheckTransactionTypeResponse:()=>y3b,checkTransactionTypeBodyCustomerCountryCodeMax:()=>Cnb,checkTransactionTypeBodyCustomerCountryCodeMin:()=>Pnb,checkTransactionTypeBodyIssuerCountryCodeMax:()=>Mnb,checkTransactionTypeBodyIssuerCountryCodeMin:()=>Nnb,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>Unb,checkTransactionTypeResponseCustomerCountryCodeMax:()=>knb,checkTransactionTypeResponseCustomerCountryCodeMin:()=>Fnb,checkTransactionTypeResponseIssuerCountryCodeMax:()=>Anb,checkTransactionTypeResponseIssuerCountryCodeMin:()=>wnb,checkTransactionTypeResponseVatIdCountryCodeMax:()=>Hnb,checkTransactionTypeResponseVatIdCountryCodeMin:()=>jnb});var x3b=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.")}),Nnb=2,Mnb=2,Unb=true,Pnb=2,Cnb=2,g3b=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(Nnb).max(Mnb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(Unb).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(Pnb).max(Cnb).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.")}),wnb=2,Anb=2,Fnb=2,knb=2,jnb=2,Hnb=2,y3b=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(wnb).max(Anb).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(Fnb).max(knb).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(jnb).max(Hnb).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 mn={};$(mn,{ApproveTravelOrderHeader:()=>H3b,ApproveTravelOrderParams:()=>j3b,ApproveTravelOrderResponse:()=>L3b,CalculateTravelOrderRouteDistanceBody:()=>R3b,CalculateTravelOrderRouteDistanceHeader:()=>D3b,CalculateTravelOrderRouteDistanceResponse:()=>_3b,CancelTravelOrderHeader:()=>Q3b,CancelTravelOrderParams:()=>$3b,CancelTravelOrderResponse:()=>J3b,CreateTravelOrderBody:()=>S3b,CreateTravelOrderHeader:()=>b3b,DeleteTravelOrderHeader:()=>k3b,DeleteTravelOrderParams:()=>F3b,GetTravelOrderByIdHeader:()=>M3b,GetTravelOrderByIdParams:()=>N3b,GetTravelOrderByIdResponse:()=>U3b,GetTravelOrdersHeader:()=>v3b,GetTravelOrdersQueryParams:()=>O3b,GetTravelOrdersResponse:()=>h3b,PreviewTravelOrderBody:()=>f3b,PreviewTravelOrderHeader:()=>z3b,PreviewTravelOrderResponse:()=>I3b,RenderTravelOrderHtmlHeader:()=>oGb,RenderTravelOrderHtmlParams:()=>nGb,RenderTravelOrderHtmlQueryParams:()=>sGb,RenderTravelOrderPdfHeader:()=>tGb,RenderTravelOrderPdfParams:()=>X3b,RenderTravelOrderPdfQueryParams:()=>eGb,RenderTravelOrderPreviewBody:()=>E3b,RenderTravelOrderPreviewHeader:()=>T3b,RenderTravelOrderPreviewQueryParams:()=>B3b,ReopenTravelOrderBody:()=>W3b,ReopenTravelOrderHeader:()=>q3b,ReopenTravelOrderParams:()=>Z3b,ReopenTravelOrderResponse:()=>Y3b,SettleTravelOrderHeader:()=>V3b,SettleTravelOrderParams:()=>G3b,SettleTravelOrderResponse:()=>K3b,UpdateTravelOrderBody:()=>w3b,UpdateTravelOrderHeader:()=>C3b,UpdateTravelOrderParams:()=>P3b,UpdateTravelOrderResponse:()=>A3b,approveTravelOrderPathIdRegExp:()=>Aib,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>kib,approveTravelOrderResponseCostsItemAmountMax:()=>jib,approveTravelOrderResponseCostsItemDateRegExp:()=>Hib,approveTravelOrderResponseCostsItemDescriptionMax:()=>Fib,calculateTravelOrderRouteDistanceBodyFromMax:()=>Vob,calculateTravelOrderRouteDistanceBodyFromMin:()=>Gob,calculateTravelOrderRouteDistanceBodyToMax:()=>Zob,calculateTravelOrderRouteDistanceBodyToMin:()=>Kob,cancelTravelOrderPathIdRegExp:()=>eab,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>nab,cancelTravelOrderResponseCostsItemAmountMax:()=>sab,cancelTravelOrderResponseCostsItemDateRegExp:()=>oab,cancelTravelOrderResponseCostsItemDescriptionMax:()=>tab,createTravelOrderBodyAdvanceAmountMax:()=>bsb,createTravelOrderBodyAdvanceAmountMin:()=>hsb,createTravelOrderBodyBreakfastsProvidedMax:()=>rsb,createTravelOrderBodyBreakfastsProvidedMin:()=>asb,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>zsb,createTravelOrderBodyCostsItemAmountMax:()=>fsb,createTravelOrderBodyCostsItemDateRegExp:()=>Isb,createTravelOrderBodyCostsItemDescriptionMax:()=>Ssb,createTravelOrderBodyCostsMax:()=>Bsb,createTravelOrderBodyDateRegExp:()=>$nb,createTravelOrderBodyDepartureAtRegExp:()=>tsb,createTravelOrderBodyDestinationCountryCodeRegExp:()=>esb,createTravelOrderBodyDestinationMax:()=>Xnb,createTravelOrderBodyDistanceKmMax:()=>isb,createTravelOrderBodyDistanceKmMin:()=>osb,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>lsb,createTravelOrderBodyForeignDailyRateMax:()=>dsb,createTravelOrderBodyNoteMax:()=>Tsb,createTravelOrderBodyOriginMax:()=>Jnb,createTravelOrderBodyPurposeMax:()=>Qnb,createTravelOrderBodyReturnAtRegExp:()=>nsb,createTravelOrderBodyTravelerNameMax:()=>Wnb,createTravelOrderBodyTravelerPositionMax:()=>Ynb,createTravelOrderBodyTripsItemBreakfastsProvidedMax:()=>Osb,createTravelOrderBodyTripsItemBreakfastsProvidedMin:()=>ysb,createTravelOrderBodyTripsItemDepartureAtRegExp:()=>csb,createTravelOrderBodyTripsItemDestinationMax:()=>psb,createTravelOrderBodyTripsItemDistanceKmMax:()=>gsb,createTravelOrderBodyTripsItemDistanceKmMin:()=>xsb,createTravelOrderBodyTripsItemPurposeMax:()=>msb,createTravelOrderBodyTripsItemReturnAtRegExp:()=>usb,createTravelOrderBodyTripsMax:()=>vsb,createTravelOrderBodyVehicleRegistrationMax:()=>ssb,deleteTravelOrderPathIdRegExp:()=>wib,getTravelOrderByIdPathIdRegExp:()=>qob,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>Yob,getTravelOrderByIdResponseCostsItemAmountMax:()=>$ob,getTravelOrderByIdResponseCostsItemDateRegExp:()=>Qob,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>Wob,getTravelOrdersQueryLimitDefault:()=>Lnb,getTravelOrdersQueryLimitMax:()=>Gnb,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>Knb,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>Znb,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>qnb,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>Vnb,previewTravelOrderBodyAdvanceAmountMax:()=>Xsb,previewTravelOrderBodyAdvanceAmountMin:()=>Jsb,previewTravelOrderBodyBreakfastsProvidedMax:()=>jsb,previewTravelOrderBodyBreakfastsProvidedMin:()=>ksb,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>tob,previewTravelOrderBodyCostsItemAmountMax:()=>nob,previewTravelOrderBodyCostsItemDateRegExp:()=>sob,previewTravelOrderBodyCostsItemDescriptionMax:()=>eob,previewTravelOrderBodyCostsMax:()=>oob,previewTravelOrderBodyDateRegExp:()=>Rsb,previewTravelOrderBodyDepartureAtRegExp:()=>Psb,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>Usb,previewTravelOrderBodyDestinationMax:()=>Msb,previewTravelOrderBodyDistanceKmMax:()=>Fsb,previewTravelOrderBodyDistanceKmMin:()=>Asb,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>Hsb,previewTravelOrderBodyForeignDailyRateMax:()=>Lsb,previewTravelOrderBodyNoteMax:()=>iob,previewTravelOrderBodyOriginMax:()=>Nsb,previewTravelOrderBodyPurposeMax:()=>_sb,previewTravelOrderBodyReturnAtRegExp:()=>Csb,previewTravelOrderBodyTravelerNameMax:()=>Esb,previewTravelOrderBodyTravelerPositionMax:()=>Dsb,previewTravelOrderBodyTripsItemBreakfastsProvidedMax:()=>$sb,previewTravelOrderBodyTripsItemBreakfastsProvidedMin:()=>Ysb,previewTravelOrderBodyTripsItemDepartureAtRegExp:()=>Gsb,previewTravelOrderBodyTripsItemDestinationMax:()=>Ksb,previewTravelOrderBodyTripsItemDistanceKmMax:()=>Wsb,previewTravelOrderBodyTripsItemDistanceKmMin:()=>qsb,previewTravelOrderBodyTripsItemPurposeMax:()=>Zsb,previewTravelOrderBodyTripsItemReturnAtRegExp:()=>Vsb,previewTravelOrderBodyTripsMax:()=>Qsb,previewTravelOrderBodyVehicleRegistrationMax:()=>wsb,renderTravelOrderHtmlPathIdRegExp:()=>cab,renderTravelOrderHtmlQueryLanguageMax:()=>xab,renderTravelOrderHtmlQueryLanguageMin:()=>mab,renderTravelOrderHtmlQueryLocaleMax:()=>pab,renderTravelOrderHtmlQueryLocaleMin:()=>uab,renderTravelOrderPdfPathIdRegExp:()=>iab,renderTravelOrderPdfQueryLanguageMax:()=>dab,renderTravelOrderPdfQueryLanguageMin:()=>lab,renderTravelOrderPdfQueryLocaleMax:()=>rab,renderTravelOrderPdfQueryLocaleMin:()=>aab,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>wob,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>Cob,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>fob,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>zob,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>Fob,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>kob,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>job,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>Aob,renderTravelOrderPreviewBodyCostsMax:()=>Hob,renderTravelOrderPreviewBodyDateRegExp:()=>pob,renderTravelOrderPreviewBodyDepartureAtRegExp:()=>Oob,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>yob,renderTravelOrderPreviewBodyDestinationMax:()=>gob,renderTravelOrderPreviewBodyDistanceKmMax:()=>Sob,renderTravelOrderPreviewBodyDistanceKmMin:()=>bob,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>Iob,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>Bob,renderTravelOrderPreviewBodyNoteMax:()=>Lob,renderTravelOrderPreviewBodyOriginMax:()=>xob,renderTravelOrderPreviewBodyPurposeMax:()=>mob,renderTravelOrderPreviewBodyReturnAtRegExp:()=>vob,renderTravelOrderPreviewBodyTravelerNameMax:()=>cob,renderTravelOrderPreviewBodyTravelerPositionMax:()=>uob,renderTravelOrderPreviewBodyTripsItemBreakfastsProvidedMax:()=>Uob,renderTravelOrderPreviewBodyTripsItemBreakfastsProvidedMin:()=>Mob,renderTravelOrderPreviewBodyTripsItemDepartureAtRegExp:()=>Tob,renderTravelOrderPreviewBodyTripsItemDestinationMax:()=>Dob,renderTravelOrderPreviewBodyTripsItemDistanceKmMax:()=>Nob,renderTravelOrderPreviewBodyTripsItemDistanceKmMin:()=>_ob,renderTravelOrderPreviewBodyTripsItemPurposeMax:()=>Rob,renderTravelOrderPreviewBodyTripsItemReturnAtRegExp:()=>Eob,renderTravelOrderPreviewBodyTripsMax:()=>Pob,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>hob,renderTravelOrderPreviewQueryLanguageMax:()=>dob,renderTravelOrderPreviewQueryLanguageMin:()=>lob,renderTravelOrderPreviewQueryLocaleMax:()=>rob,renderTravelOrderPreviewQueryLocaleMin:()=>aob,reopenTravelOrderBodyReasonMax:()=>Yib,reopenTravelOrderBodyReasonMin:()=>Wib,reopenTravelOrderPathIdRegExp:()=>qib,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>Qib,reopenTravelOrderResponseCostsItemAmountMax:()=>Jib,reopenTravelOrderResponseCostsItemDateRegExp:()=>Xib,reopenTravelOrderResponseCostsItemDescriptionMax:()=>$ib,settleTravelOrderPathIdRegExp:()=>Lib,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>Vib,settleTravelOrderResponseCostsItemAmountMax:()=>Kib,settleTravelOrderResponseCostsItemDateRegExp:()=>Zib,settleTravelOrderResponseCostsItemDescriptionMax:()=>Gib,updateTravelOrderBodyAdvanceAmountMax:()=>Bib,updateTravelOrderBodyAdvanceAmountMin:()=>Iib,updateTravelOrderBodyBreakfastsProvidedMax:()=>pib,updateTravelOrderBodyBreakfastsProvidedMin:()=>uib,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>Eib,updateTravelOrderBodyCostsItemAmountMax:()=>Dib,updateTravelOrderBodyCostsItemDateRegExp:()=>Rib,updateTravelOrderBodyCostsItemDescriptionMax:()=>Tib,updateTravelOrderBodyCostsMax:()=>_ib,updateTravelOrderBodyDateRegExp:()=>tib,updateTravelOrderBodyDepartureAtRegExp:()=>aib,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>iib,updateTravelOrderBodyDestinationMax:()=>oib,updateTravelOrderBodyDistanceKmMax:()=>cib,updateTravelOrderBodyDistanceKmMin:()=>dib,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>mib,updateTravelOrderBodyForeignDailyRateMax:()=>xib,updateTravelOrderBodyNoteMax:()=>Nib,updateTravelOrderBodyOriginMax:()=>sib,updateTravelOrderBodyPurposeMax:()=>nib,updateTravelOrderBodyReturnAtRegExp:()=>rib,updateTravelOrderBodyTravelerNameMax:()=>Xob,updateTravelOrderBodyTravelerPositionMax:()=>eib,updateTravelOrderBodyTripsItemBreakfastsProvidedMax:()=>zib,updateTravelOrderBodyTripsItemBreakfastsProvidedMin:()=>Sib,updateTravelOrderBodyTripsItemDepartureAtRegExp:()=>gib,updateTravelOrderBodyTripsItemDestinationMax:()=>Oib,updateTravelOrderBodyTripsItemDistanceKmMax:()=>bib,updateTravelOrderBodyTripsItemDistanceKmMin:()=>hib,updateTravelOrderBodyTripsItemPurposeMax:()=>vib,updateTravelOrderBodyTripsItemReturnAtRegExp:()=>yib,updateTravelOrderBodyTripsMax:()=>fib,updateTravelOrderBodyVehicleRegistrationMax:()=>lib,updateTravelOrderPathIdRegExp:()=>Job,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>Uib,updateTravelOrderResponseCostsItemAmountMax:()=>Pib,updateTravelOrderResponseCostsItemDateRegExp:()=>Cib,updateTravelOrderResponseCostsItemDescriptionMax:()=>Mib});var Lnb=10,Gnb=100,O3b=e__namespace.object({limit:e__namespace.number().min(1).max(Gnb).default(Lnb).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.
143
143
  Searches are case-insensitive and match partial strings.
144
- Searches across number, traveler name, purpose, origin, and destination.`)}),v3b=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.")}),Vnb=200,Knb=0,Znb=1e6,qnb=/^\d{4}-\d{2}-\d{2}$/,h3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Vnb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Knb).max(Znb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(qnb).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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")}),b3b=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.")}),Wnb=200,Ynb=200,$nb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Qnb=500,Jnb=500,Xnb=500,esb=/^[A-Za-z]{2}$/,tsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,nsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,ssb=20,osb=0,isb=1e5,asb=0,rsb=60,lsb=0,dsb=1e4,csb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,usb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,psb=500,msb=500,xsb=0,gsb=1e5,ysb=0,Osb=60,vsb=62,hsb=0,bsb=1e6,Ssb=200,zsb=0,fsb=1e6,Isb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Bsb=100,Tsb=2e3,S3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(Wnb).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(Ynb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex($nb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(Qnb).describe("Business purpose of the trip."),origin:e__namespace.string().max(Jnb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(Xnb).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(esb).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.string().regex(tsb).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e__namespace.string().regex(nsb).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(ssb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.number().min(osb).max(isb).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(asb).max(rsb).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e__namespace.number().gt(lsb).max(dsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(csb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(usb).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(psb).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(msb).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(xsb).max(gsb).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(ysb).max(Osb).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(vsb).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e__namespace.number().min(hsb).max(bsb).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(Ssb).describe("Description of the cost line."),amount:e__namespace.number().gt(zsb).max(fsb).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(Isb).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Bsb).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e__namespace.string().max(Tsb).nullish().describe("Free-text note. Omit or send null to leave unset.")}),z3b=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.")}),Esb=200,Dsb=200,Rsb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_sb=500,Nsb=500,Msb=500,Usb=/^[A-Za-z]{2}$/,Psb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Csb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,wsb=20,Asb=0,Fsb=1e5,ksb=0,jsb=60,Hsb=0,Lsb=1e4,Gsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Vsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Ksb=500,Zsb=500,qsb=0,Wsb=1e5,Ysb=0,$sb=60,Qsb=62,Jsb=0,Xsb=1e6,eob=200,tob=0,nob=1e6,sob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,oob=100,iob=2e3,f3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(Esb).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(Dsb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(Rsb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(_sb).describe("Business purpose of the trip."),origin:e__namespace.string().max(Nsb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(Msb).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(Usb).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.string().regex(Psb).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e__namespace.string().regex(Csb).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(wsb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.number().min(Asb).max(Fsb).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(ksb).max(jsb).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e__namespace.number().gt(Hsb).max(Lsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(Gsb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(Vsb).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(Ksb).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(Zsb).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(qsb).max(Wsb).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(Ysb).max($sb).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Qsb).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e__namespace.number().min(Jsb).max(Xsb).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(eob).describe("Description of the cost line."),amount:e__namespace.number().gt(tob).max(nob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(sob).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(oob).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e__namespace.string().max(iob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),I3b=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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),aob=2,rob=5,lob=2,dob=5,B3b=e__namespace.object({locale:e__namespace.string().min(aob).max(rob).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(lob).max(dob).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.")}),T3b=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.")}),cob=200,uob=200,pob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,mob=500,xob=500,gob=500,yob=/^[A-Za-z]{2}$/,Oob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,vob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,hob=20,bob=0,Sob=1e5,zob=0,fob=60,Iob=0,Bob=1e4,Tob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Eob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Dob=500,Rob=500,_ob=0,Nob=1e5,Mob=0,Uob=60,Pob=62,Cob=0,wob=1e6,Aob=200,Fob=0,kob=1e6,job=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Hob=100,Lob=2e3,E3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(cob).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(uob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(pob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(mob).describe("Business purpose of the trip."),origin:e__namespace.string().max(xob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(gob).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(yob).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.string().regex(Oob).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e__namespace.string().regex(vob).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(hob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.number().min(bob).max(Sob).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(zob).max(fob).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e__namespace.number().gt(Iob).max(Bob).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(Tob).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(Eob).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(Dob).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(Rob).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(_ob).max(Nob).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(Mob).max(Uob).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Pob).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e__namespace.number().min(Cob).max(wob).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(Aob).describe("Description of the cost line."),amount:e__namespace.number().gt(Fob).max(kob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(job).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Hob).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e__namespace.string().max(Lob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),D3b=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.")}),Gob=3,Vob=300,Kob=3,Zob=300,R3b=e__namespace.object({from:e__namespace.string().min(Gob).max(Vob).describe("Starting address to geocode."),to:e__namespace.string().min(Kob).max(Zob).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.")}),_3b=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.")}),qob=/^[a-z]{3,4}_[0-9a-f]{24}$/,N3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",qob).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),M3b=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.")}),Wob=200,Yob=0,$ob=1e6,Qob=/^\d{4}-\d{2}-\d{2}$/,U3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Wob).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Yob).max($ob).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Qob).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),Job=/^[a-z]{3,4}_[0-9a-f]{24}$/,P3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Job).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C3b=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.")}),Xob=200,eib=200,tib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nib=500,sib=500,oib=500,iib=/^[A-Za-z]{2}$/,aib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,rib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,lib=20,dib=0,cib=1e5,uib=0,pib=60,mib=0,xib=1e4,gib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,yib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Oib=500,vib=500,hib=0,bib=1e5,Sib=0,zib=60,fib=62,Iib=0,Bib=1e6,Tib=200,Eib=0,Dib=1e6,Rib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_ib=100,Nib=2e3,w3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(Xob).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(eib).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e__namespace.string().regex(tib).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(nib).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e__namespace.string().max(sib).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e__namespace.string().min(1).max(oib).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(iib).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e__namespace.string().regex(aib).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with return_at when converting it back to a single trip with `trips: []`."),return_at:e__namespace.string().regex(rib).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with departure_at when converting it back to a single trip with `trips: []`."),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(lib).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e__namespace.number().min(dib).max(cib).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear. Not accepted as a non-null value for a collective order, where it is derived from the trips."),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(uib).max(pib).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0. Not accepted as a non-null value for a collective order, where it is derived from the trips."),foreign_daily_rate:e__namespace.number().gt(mib).max(xib).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(gib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(yib).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(Oib).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(vib).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(hib).max(bib).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(Sib).max(zib).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).max(fib).nullish().describe("Replaces the whole list of trips (the order becomes, or stays, a collective order). Omit (or send null) to leave the trips unchanged. To convert a collective order back to a single trip, send an empty array (`trips: []`) together with both departure_at and return_at (a request with only one of them is rejected); distance_km and breakfasts_provided then take the request values or reset to null and 0. An empty array on a single-trip order is a no-op."),advance_amount:e__namespace.number().min(Iib).max(Bib).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(Tib).describe("Description of the cost line."),amount:e__namespace.number().gt(Eib).max(Dib).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(Rib).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(_ib).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e__namespace.string().max(Nib).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),Mib=200,Uib=0,Pib=1e6,Cib=/^\d{4}-\d{2}-\d{2}$/,A3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Mib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Uib).max(Pib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Cib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),wib=/^[a-z]{3,4}_[0-9a-f]{24}$/,F3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",wib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),k3b=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.")}),Aib=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Aib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3b=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.")}),Fib=200,kib=0,jib=1e6,Hib=/^\d{4}-\d{2}-\d{2}$/,L3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Fib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(kib).max(jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Hib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),Lib=/^[a-z]{3,4}_[0-9a-f]{24}$/,G3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Lib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V3b=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.")}),Gib=200,Vib=0,Kib=1e6,Zib=/^\d{4}-\d{2}-\d{2}$/,K3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Gib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Vib).max(Kib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Zib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),qib=/^[a-z]{3,4}_[0-9a-f]{24}$/,Z3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",qib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),q3b=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.")}),Wib=3,Yib=500,W3b=e__namespace.object({reason:e__namespace.string().min(Wib).max(Yib).describe("Why this settled travel order is being reopened for correction. Required.")}),$ib=200,Qib=0,Jib=1e6,Xib=/^\d{4}-\d{2}-\d{2}$/,Y3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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($ib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Qib).max(Jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Xib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),eab=/^[a-z]{3,4}_[0-9a-f]{24}$/,$3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",eab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q3b=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.")}),tab=200,nab=0,sab=1e6,oab=/^\d{4}-\d{2}-\d{2}$/,J3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(tab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(nab).max(sab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(oab).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),iab=/^[a-z]{3,4}_[0-9a-f]{24}$/,X3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",iab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aab=2,rab=5,lab=2,dab=5,eGb=e__namespace.object({locale:e__namespace.string().min(aab).max(rab).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(lab).max(dab).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.")}),tGb=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.")}),cab=/^[a-z]{3,4}_[0-9a-f]{24}$/,nGb=e__namespace.object({id:e__namespace.stringFormat("resource-id",cab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uab=2,pab=5,mab=2,xab=5,sGb=e__namespace.object({locale:e__namespace.string().min(uab).max(pab).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(mab).max(xab).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.")}),oGb=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 xn={};$(xn,{DownloadUjpPackageHeader:()=>aGb,DownloadUjpPackageParams:()=>iGb});var iGb=e__namespace.object({id:e__namespace.string().describe("Document ID. The document type is detected from the ID prefix.")}),aGb=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 gn={};$(gn,{UploadImageBody:()=>lGb,UploadImageHeader:()=>rGb,UploadImageResponse:()=>dGb});var rGb=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.")}),lGb=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)")}),dGb=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 yn={};$(yn,{ConfirmPasswordResetBody:()=>jGb,ConfirmPasswordResetResponse:()=>HGb,DisableTwoFactorBody:()=>NGb,DisableTwoFactorResponse:()=>MGb,EnableRequiredTwoFactorBody:()=>IGb,EnableRequiredTwoFactorResponse:()=>BGb,EnableTwoFactorBody:()=>RGb,EnableTwoFactorResponse:()=>_Gb,GetAccountTwoFactorPolicyHeader:()=>cGb,GetAccountTwoFactorPolicyResponse:()=>uGb,GetEntityTwoFactorPolicyHeader:()=>yGb,GetEntityTwoFactorPolicyParams:()=>gGb,GetEntityTwoFactorPolicyResponse:()=>OGb,GetMeResponse:()=>GGb,GetTwoFactorConfigurationResponse:()=>TGb,ListMyAccountsResponse:()=>LGb,LoginBody:()=>CGb,LoginResponse:()=>wGb,PatchMeBody:()=>VGb,PatchMeResponse:()=>KGb,RequestPasswordResetBody:()=>FGb,RequestPasswordResetResponse:()=>kGb,SetupRequiredTwoFactorBody:()=>zGb,SetupRequiredTwoFactorResponse:()=>fGb,SetupTwoFactorBody:()=>EGb,SetupTwoFactorResponse:()=>DGb,SignupBody:()=>AGb,UpdateAccountTwoFactorPolicyBody:()=>mGb,UpdateAccountTwoFactorPolicyHeader:()=>pGb,UpdateAccountTwoFactorPolicyResponse:()=>xGb,UpdateEntityTwoFactorPolicyBody:()=>bGb,UpdateEntityTwoFactorPolicyHeader:()=>hGb,UpdateEntityTwoFactorPolicyParams:()=>vGb,UpdateEntityTwoFactorPolicyResponse:()=>SGb,UpdateUserFinaSettingsBody:()=>$Gb,UpdateUserFinaSettingsHeader:()=>YGb,UpdateUserFinaSettingsResponse:()=>QGb,UpdateUserFursSettingsBody:()=>qGb,UpdateUserFursSettingsHeader:()=>ZGb,UpdateUserFursSettingsResponse:()=>WGb,VerifyTwoFactorBody:()=>UGb,VerifyTwoFactorResponse:()=>PGb,confirmPasswordResetBodyPasswordMin:()=>Brb,confirmPasswordResetBodyPasswordRegExp:()=>Trb,disableTwoFactorBodyCodeMax:()=>Fab,disableTwoFactorBodyCodeMin:()=>Aab,disableTwoFactorBodyPasswordMax:()=>wab,enableRequiredTwoFactorBodyCodeRegExp:()=>fab,enableRequiredTwoFactorBodyTokenRegExp:()=>zab,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>Dab,enableRequiredTwoFactorResponseSessionOneIdMax:()=>Iab,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>Rab,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>Eab,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>Tab,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>Bab,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>Uab,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>Nab,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>_ab,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>Mab,enableTwoFactorBodyCodeRegExp:()=>Cab,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>gab,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>vab,getEntityTwoFactorPolicyPathIdRegExp:()=>Oab,getMeResponseAccountIdMax:()=>_rb,getMeResponseEmailMax:()=>Drb,getMeResponseIdMax:()=>Erb,getMeResponseNameMax:()=>Rrb,loginBodyShopifyReturnUrlMax:()=>erb,loginBodyShopifyReturnUrlMin:()=>Xab,loginBodyShopifyReturnUrlRegExp:()=>trb,loginResponseOneEntityIdMax:()=>arb,loginResponseOneIdMax:()=>nrb,loginResponseOneImpersonatorUserIdMax:()=>rrb,loginResponseOneScopeMax:()=>irb,loginResponseOneTtlDefault:()=>orb,loginResponseOneUserIdMax:()=>srb,loginResponseTwoUserAccountIdMax:()=>urb,loginResponseTwoUserEmailMax:()=>drb,loginResponseTwoUserIdMax:()=>lrb,loginResponseTwoUserNameMax:()=>crb,patchMeBodyNameMin:()=>Nrb,patchMeResponseAccountIdMax:()=>Crb,patchMeResponseEmailMax:()=>Urb,patchMeResponseIdMax:()=>Mrb,patchMeResponseNameMax:()=>Prb,requestPasswordResetBodyShopifyReturnUrlMax:()=>frb,requestPasswordResetBodyShopifyReturnUrlMin:()=>zrb,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>Irb,setupRequiredTwoFactorBodyTokenRegExp:()=>Sab,setupTwoFactorBodyPasswordMax:()=>Pab,signupBodyNameMin:()=>prb,signupBodyPasswordMin:()=>mrb,signupBodyPasswordRegExp:()=>xrb,signupBodySignupAttributionFbclidMax:()=>Srb,signupBodySignupAttributionGbraidMax:()=>hrb,signupBodySignupAttributionGclidMax:()=>vrb,signupBodySignupAttributionUtmCampaignMax:()=>Orb,signupBodySignupAttributionUtmMediumMax:()=>yrb,signupBodySignupAttributionUtmSourceMax:()=>grb,signupBodySignupAttributionWbraidMax:()=>brb,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>yab,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>bab,updateEntityTwoFactorPolicyPathIdRegExp:()=>hab,updateUserFinaSettingsResponseAccountIdMax:()=>Grb,updateUserFinaSettingsResponseEmailMax:()=>Hrb,updateUserFinaSettingsResponseIdMax:()=>jrb,updateUserFinaSettingsResponseNameMax:()=>Lrb,updateUserFursSettingsResponseAccountIdMax:()=>krb,updateUserFursSettingsResponseEmailMax:()=>Arb,updateUserFursSettingsResponseIdMax:()=>wrb,updateUserFursSettingsResponseNameMax:()=>Frb,verifyTwoFactorBodyCodeMax:()=>Lab,verifyTwoFactorBodyCodeMin:()=>Hab,verifyTwoFactorBodyTokenMax:()=>kab,verifyTwoFactorBodyTokenRegExp:()=>jab,verifyTwoFactorResponseOneEntityIdMax:()=>qab,verifyTwoFactorResponseOneIdMax:()=>Gab,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>Wab,verifyTwoFactorResponseOneScopeMax:()=>Zab,verifyTwoFactorResponseOneTtlDefault:()=>Kab,verifyTwoFactorResponseOneUserIdMax:()=>Vab,verifyTwoFactorResponseTwoUserAccountIdMax:()=>Jab,verifyTwoFactorResponseTwoUserEmailMax:()=>$ab,verifyTwoFactorResponseTwoUserIdMax:()=>Yab,verifyTwoFactorResponseTwoUserNameMax:()=>Qab});var gab=/^acc_[0-9a-fA-F]{24}$/,cGb=e__namespace.object({"x-account-id":e__namespace.string().regex(gab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uGb=e__namespace.object({required:e__namespace.boolean()}),yab=/^acc_[0-9a-fA-F]{24}$/,pGb=e__namespace.object({"x-account-id":e__namespace.string().regex(yab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mGb=e__namespace.object({required:e__namespace.boolean()}),xGb=e__namespace.object({required:e__namespace.boolean()}),Oab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,gGb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Oab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vab=/^acc_[0-9a-fA-F]{24}$/,yGb=e__namespace.object({"x-account-id":e__namespace.string().regex(vab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),OGb=e__namespace.object({required:e__namespace.boolean()}),hab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,vGb=e__namespace.object({id:e__namespace.stringFormat("resource-id",hab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),bab=/^acc_[0-9a-fA-F]{24}$/,hGb=e__namespace.object({"x-account-id":e__namespace.string().regex(bab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),bGb=e__namespace.object({required:e__namespace.boolean()}),SGb=e__namespace.object({required:e__namespace.boolean()}),Sab=/^session_2fa_setup_[a-f0-9]{64}$/,zGb=e__namespace.object({token:e__namespace.string().regex(Sab)}),fGb=e__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),zab=/^session_2fa_setup_[a-f0-9]{64}$/,fab=/^\d{6}$/,IGb=e__namespace.object({token:e__namespace.string().regex(zab),code:e__namespace.string().regex(fab)}),Iab=100,Bab=36,Tab=31536e3,Eab=50,Dab=36,Rab=36,_ab=36,Nab=255,Mab=255,Uab=36,BGb=e__namespace.object({recovery_codes:e__namespace.array(e__namespace.string()),session:e__namespace.object({id:e__namespace.string().max(Iab),user_id:e__namespace.string().max(Bab),ttl:e__namespace.number().default(Tab).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Eab).nullish(),entity_id:e__namespace.string().max(Dab).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(Rab).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(_ab),email:e__namespace.string().max(Nab),name:e__namespace.string().max(Mab).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Uab).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")}),TGb=e__namespace.object({enabled:e__namespace.boolean(),has_password:e__namespace.boolean(),required:e__namespace.boolean(),recovery_codes_remaining:e__namespace.number()}),Pab=1024,EGb=e__namespace.object({password:e__namespace.string().max(Pab).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),DGb=e__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),Cab=/^\d{6}$/,RGb=e__namespace.object({code:e__namespace.string().regex(Cab)}),_Gb=e__namespace.object({recovery_codes:e__namespace.array(e__namespace.string())}),wab=1024,Aab=6,Fab=32,NGb=e__namespace.object({password:e__namespace.string().max(wab).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(Aab).max(Fab).describe("Six-digit authenticator code or a single-use recovery code.")}),MGb=e__namespace.object({enabled:e__namespace.literal(false)}),kab=100,jab=/^session_2fa_[a-zA-Z0-9]+$/,Hab=6,Lab=32,UGb=e__namespace.object({token:e__namespace.string().max(kab).regex(jab),code:e__namespace.string().min(Hab).max(Lab).describe("Six-digit authenticator code or a single-use recovery code.")}),Gab=100,Vab=36,Kab=31536e3,Zab=50,qab=36,Wab=36,Yab=36,$ab=255,Qab=255,Jab=36,PGb=e__namespace.object({id:e__namespace.string().max(Gab),user_id:e__namespace.string().max(Vab),ttl:e__namespace.number().default(Kab).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Zab).nullish(),entity_id:e__namespace.string().max(qab).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(Wab).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(Yab),email:e__namespace.string().max($ab),name:e__namespace.string().max(Qab).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Jab).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"),Xab=86,erb=86,trb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,CGb=e__namespace.object({email:e__namespace.email(),password:e__namespace.string(),shopify_return_url:e__namespace.string().min(Xab).max(erb).regex(trb).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.")}),nrb=100,srb=36,orb=31536e3,irb=50,arb=36,rrb=36,lrb=36,drb=255,crb=255,urb=36,wGb=e__namespace.object({id:e__namespace.string().max(nrb),user_id:e__namespace.string().max(srb),ttl:e__namespace.number().default(orb).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(irb).nullish(),entity_id:e__namespace.string().max(arb).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(rrb).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(lrb),email:e__namespace.string().max(drb),name:e__namespace.string().max(crb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(urb).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"),prb=2,mrb=8,xrb=/[a-z]/,grb=150,yrb=150,Orb=150,vrb=512,hrb=512,brb=512,Srb=512,AGb=e__namespace.object({email:e__namespace.email(),name:e__namespace.string().min(prb).nullish(),password:e__namespace.string().min(mrb).regex(xrb),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(grb).nullish(),utm_medium:e__namespace.string().min(1).max(yrb).nullish(),utm_campaign:e__namespace.string().min(1).max(Orb).nullish(),gclid:e__namespace.string().min(1).max(vrb).nullish(),gbraid:e__namespace.string().min(1).max(hrb).nullish(),wbraid:e__namespace.string().min(1).max(brb).nullish(),fbclid:e__namespace.string().min(1).max(Srb).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.")}),zrb=86,frb=86,Irb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,FGb=e__namespace.object({email:e__namespace.email(),shopify_return_url:e__namespace.string().min(zrb).max(frb).regex(Irb).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.")}),kGb=e__namespace.object({message:e__namespace.string()}),Brb=8,Trb=/[a-z]/,jGb=e__namespace.object({token:e__namespace.string().min(1),password:e__namespace.string().min(Brb).regex(Trb)}),HGb=e__namespace.object({message:e__namespace.string()}),LGb=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.")}))}),Erb=36,Drb=255,Rrb=255,_rb=36,GGb=e__namespace.object({id:e__namespace.string().max(Erb),email:e__namespace.string().max(Drb),name:e__namespace.string().max(Rrb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(_rb).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({})}),Nrb=2,VGb=e__namespace.object({name:e__namespace.string().min(Nrb).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.")}),Mrb=36,Urb=255,Prb=255,Crb=36,KGb=e__namespace.object({id:e__namespace.string().max(Mrb),email:e__namespace.string().max(Urb),name:e__namespace.string().max(Prb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Crb).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({})}),ZGb=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.")}),qGb=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"),wrb=36,Arb=255,Frb=255,krb=36,WGb=e__namespace.object({id:e__namespace.string().max(wrb),email:e__namespace.string().max(Arb),name:e__namespace.string().max(Frb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(krb).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({})}),YGb=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.")}),$Gb=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"),jrb=36,Hrb=255,Lrb=255,Grb=36,QGb=e__namespace.object({id:e__namespace.string().max(jrb),email:e__namespace.string().max(Hrb),name:e__namespace.string().max(Lrb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Grb).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 On={};$(On,{CancelVerifactuRecordBody:()=>vVb,CancelVerifactuRecordHeader:()=>OVb,CancelVerifactuRecordParams:()=>yVb,CancelVerifactuRecordResponse:()=>hVb,CorrectVerifactuRecordBody:()=>xVb,CorrectVerifactuRecordHeader:()=>mVb,CorrectVerifactuRecordParams:()=>pVb,CorrectVerifactuRecordResponse:()=>gVb,GetVerifactuEvidenceHeader:()=>rVb,GetVerifactuEvidenceParams:()=>aVb,GetVerifactuEvidenceResponse:()=>lVb,GetVerifactuSettingsHeader:()=>JGb,GetVerifactuSettingsResponse:()=>XGb,RetryVerifactuRecordHeader:()=>cVb,RetryVerifactuRecordParams:()=>dVb,RetryVerifactuRecordResponse:()=>uVb,UpdateVerifactuSettingsBody:()=>tVb,UpdateVerifactuSettingsHeader:()=>eVb,UpdateVerifactuSettingsResponse:()=>nVb,UploadVerifactuCertificateBody:()=>oVb,UploadVerifactuCertificateHeader:()=>sVb,UploadVerifactuCertificateResponse:()=>iVb,cancelVerifactuRecordBodyReasonMax:()=>Jrb,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>Wrb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>$rb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>Yrb,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>Qrb,correctVerifactuRecordBodyReasonMax:()=>qrb,getVerifactuSettingsResponsePendingRecordsMin:()=>Vrb,updateVerifactuSettingsResponsePendingRecordsMin:()=>Krb,uploadVerifactuCertificateResponsePendingRecordsMin:()=>Zrb});var JGb=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.")}),Vrb=0,XGb=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(Vrb).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."),eVb=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.")}),tVb=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."),Krb=0,nVb=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(Krb).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."),sVb=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.")}),oVb=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.")}),Zrb=0,iVb=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(Zrb).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."),aVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),rVb=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.")}),lVb=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."),dVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),cVb=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.")}),uVb=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."),pVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),mVb=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.")}),qrb=500,Wrb=500,Yrb=0,$rb=/^\d{2}$/,Qrb=12,xVb=e__namespace.object({reason:e__namespace.string().min(1).max(qrb).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(Wrb).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(Yrb).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($rb).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(Qrb).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."),gVb=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."),yVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),OVb=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.")}),Jrb=500,vVb=e__namespace.object({reason:e__namespace.string().min(1).max(Jrb).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),hVb=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 vn={};$(vn,{CheckViesBody:()=>bVb,CheckViesResponse:()=>SVb,checkViesBodyCustomerCountryCodeMax:()=>slb,checkViesBodyCustomerCountryCodeMin:()=>nlb,checkViesBodyIssuerCountryCodeMax:()=>elb,checkViesBodyIssuerCountryCodeMin:()=>Xrb,checkViesBodyIssuerIsTaxSubjectDefault:()=>tlb,checkViesResponseCustomerCountryCodeMax:()=>rlb,checkViesResponseCustomerCountryCodeMin:()=>alb,checkViesResponseIssuerCountryCodeMax:()=>ilb,checkViesResponseIssuerCountryCodeMin:()=>olb,checkViesResponseVatIdCountryCodeMax:()=>dlb,checkViesResponseVatIdCountryCodeMin:()=>llb});var Xrb=2,elb=2,tlb=true,nlb=2,slb=2,bVb=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(Xrb).max(elb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(tlb).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(nlb).max(slb).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.")}),olb=2,ilb=2,alb=2,rlb=2,llb=2,dlb=2,SVb=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(olb).max(ilb).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(alb).max(rlb).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(llb).max(dlb).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 hn={};$(hn,{CreateWarehouseBody:()=>TVb,CreateWarehouseHeader:()=>BVb,DeleteWarehouseHeader:()=>CVb,DeleteWarehouseParams:()=>PVb,GetWarehouseByIdHeader:()=>DVb,GetWarehouseByIdParams:()=>EVb,GetWarehouseByIdResponse:()=>RVb,GetWarehousesHeader:()=>fVb,GetWarehousesQueryParams:()=>zVb,GetWarehousesResponse:()=>IVb,UpdateWarehouseBody:()=>MVb,UpdateWarehouseHeader:()=>NVb,UpdateWarehouseParams:()=>_Vb,UpdateWarehouseResponse:()=>UVb,createWarehouseBodyNameMax:()=>glb,deleteWarehousePathIdRegExp:()=>Blb,getWarehouseByIdPathIdRegExp:()=>ylb,getWarehouseByIdResponseEntityIdMax:()=>vlb,getWarehouseByIdResponseIdMax:()=>Olb,getWarehouseByIdResponseNameMax:()=>hlb,getWarehousesQueryLimitDefault:()=>clb,getWarehousesQueryLimitMax:()=>ulb,getWarehousesResponseDataItemEntityIdMax:()=>mlb,getWarehousesResponseDataItemIdMax:()=>plb,getWarehousesResponseDataItemNameMax:()=>xlb,updateWarehouseBodyNameMax:()=>Slb,updateWarehousePathIdRegExp:()=>blb,updateWarehouseResponseEntityIdMax:()=>flb,updateWarehouseResponseIdMax:()=>zlb,updateWarehouseResponseNameMax:()=>Ilb});var clb=10,ulb=100,zVb=e__namespace.object({limit:e__namespace.number().min(1).max(ulb).default(clb).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.")}),fVb=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.")}),plb=36,mlb=36,xlb=200,IVb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(plb),entity_id:e__namespace.string().max(mlb),name:e__namespace.string().max(xlb),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")}),BVb=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.")}),glb=200,TVb=e__namespace.object({name:e__namespace.string().min(1).max(glb).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.")}),ylb=/^wh_[0-9a-f]{24}$/,EVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",ylb).describe("Warehouse identifier (wh_ prefix).")}),DVb=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.")}),Olb=36,vlb=36,hlb=200,RVb=e__namespace.object({id:e__namespace.string().max(Olb),entity_id:e__namespace.string().max(vlb),name:e__namespace.string().max(hlb),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."),blb=/^wh_[0-9a-f]{24}$/,_Vb=e__namespace.object({id:e__namespace.stringFormat("resource-id",blb).describe("Warehouse identifier (wh_ prefix).")}),NVb=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.")}),Slb=200,MVb=e__namespace.object({name:e__namespace.string().min(1).max(Slb).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.")}),zlb=36,flb=36,Ilb=200,UVb=e__namespace.object({id:e__namespace.string().max(zlb),entity_id:e__namespace.string().max(flb),name:e__namespace.string().max(Ilb),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."),Blb=/^wh_[0-9a-f]{24}$/,PVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Blb).describe("Warehouse identifier (wh_ prefix).")}),CVb=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 bn={};$(bn,{CreateWebhookBody:()=>AVb,CreateWebhookHeader:()=>wVb,DeleteWebhookHeader:()=>YVb,DeleteWebhookParams:()=>WVb,DeleteWebhookResponse:()=>$Vb,GetWebhookByIdHeader:()=>LVb,GetWebhookByIdParams:()=>HVb,GetWebhookByIdResponse:()=>GVb,GetWebhookDeliveriesHeader:()=>nKb,GetWebhookDeliveriesParams:()=>eKb,GetWebhookDeliveriesQueryParams:()=>tKb,GetWebhookDeliveriesResponse:()=>sKb,GetWebhooksHeader:()=>kVb,GetWebhooksQueryParams:()=>FVb,GetWebhooksResponse:()=>jVb,RotateWebhookSecretHeader:()=>iKb,RotateWebhookSecretParams:()=>oKb,RotateWebhookSecretResponse:()=>aKb,TestWebhookHeader:()=>JVb,TestWebhookParams:()=>QVb,TestWebhookResponse:()=>XVb,UpdateWebhookBody:()=>ZVb,UpdateWebhookHeader:()=>KVb,UpdateWebhookParams:()=>VVb,UpdateWebhookResponse:()=>qVb,createWebhookBodyActiveDefault:()=>Dlb,createWebhookBodyDescriptionMax:()=>Elb,createWebhookBodyUrlMax:()=>Tlb,deleteWebhookPathIdRegExp:()=>$lb,getWebhookByIdPathIdRegExp:()=>wlb,getWebhookByIdResponseDescriptionMax:()=>jlb,getWebhookByIdResponseEntityIdMax:()=>Flb,getWebhookByIdResponseIdMax:()=>Alb,getWebhookByIdResponseMetadataDefault:()=>Hlb,getWebhookByIdResponseUrlMax:()=>klb,getWebhookDeliveriesPathIdRegExp:()=>pdb,getWebhookDeliveriesQueryLimitDefault:()=>mdb,getWebhookDeliveriesQueryLimitMax:()=>xdb,getWebhookDeliveriesResponseDataItemAttemptMax:()=>Idb,getWebhookDeliveriesResponseDataItemAttemptMin:()=>fdb,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>Ddb,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>Edb,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Odb,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>zdb,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>vdb,getWebhookDeliveriesResponseDataItemIdMax:()=>gdb,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>Tdb,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>Bdb,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>Sdb,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>bdb,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>hdb,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>ydb,getWebhooksQueryLimitDefault:()=>Rlb,getWebhooksQueryLimitMax:()=>_lb,getWebhooksResponseDataItemDescriptionMax:()=>Plb,getWebhooksResponseDataItemEntityIdMax:()=>Mlb,getWebhooksResponseDataItemIdMax:()=>Nlb,getWebhooksResponseDataItemMetadataDefault:()=>Clb,getWebhooksResponseDataItemUrlMax:()=>Ulb,rotateWebhookSecretPathIdRegExp:()=>Rdb,rotateWebhookSecretResponseDescriptionMax:()=>Udb,rotateWebhookSecretResponseEntityIdMax:()=>Ndb,rotateWebhookSecretResponseIdMax:()=>_db,rotateWebhookSecretResponseMetadataDefault:()=>Cdb,rotateWebhookSecretResponseSecretMax:()=>Pdb,rotateWebhookSecretResponseUrlMax:()=>Mdb,testWebhookPathIdRegExp:()=>Qlb,testWebhookResponseAttemptMax:()=>rdb,testWebhookResponseAttemptMin:()=>adb,testWebhookResponseDurationMsMax:()=>udb,testWebhookResponseDurationMsMin:()=>cdb,testWebhookResponseEntityIdMax:()=>edb,testWebhookResponseErrorMessageMax:()=>idb,testWebhookResponseEventTypeMax:()=>tdb,testWebhookResponseIdMax:()=>Jlb,testWebhookResponseMaxAttemptsMax:()=>ddb,testWebhookResponseMaxAttemptsMin:()=>ldb,testWebhookResponseResponseBodyMax:()=>odb,testWebhookResponseResponseStatusMax:()=>sdb,testWebhookResponseResponseStatusMin:()=>ndb,testWebhookResponseWebhookIdMax:()=>Xlb,updateWebhookBodyDescriptionMax:()=>Vlb,updateWebhookBodyUrlMax:()=>Glb,updateWebhookPathIdRegExp:()=>Llb,updateWebhookResponseDescriptionMax:()=>Wlb,updateWebhookResponseEntityIdMax:()=>Zlb,updateWebhookResponseIdMax:()=>Klb,updateWebhookResponseMetadataDefault:()=>Ylb,updateWebhookResponseUrlMax:()=>qlb});var wVb=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.")}),Tlb=2048,Elb=500,Dlb=true,AVb=e__namespace.object({url:e__namespace.url().max(Tlb).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Elb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Dlb).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.")}),Rlb=10,_lb=100,FVb=e__namespace.object({limit:e__namespace.number().min(1).max(_lb).default(Rlb).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.")}),kVb=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.")}),Nlb=36,Mlb=36,Ulb=2048,Plb=500,Clb={},jVb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Nlb),entity_id:e__namespace.string().max(Mlb),url:e__namespace.string().max(Ulb),description:e__namespace.string().max(Plb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Clb).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")}),wlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,HVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",wlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LVb=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.")}),Alb=36,Flb=36,klb=2048,jlb=500,Hlb={},GVb=e__namespace.object({id:e__namespace.string().max(Alb),entity_id:e__namespace.string().max(Flb),url:e__namespace.string().max(klb),description:e__namespace.string().max(jlb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Hlb).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)"),Llb=/^[a-z]{3,4}_[0-9a-f]{24}$/,VVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Llb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KVb=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.")}),Glb=2048,Vlb=500,ZVb=e__namespace.object({url:e__namespace.url().max(Glb).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Vlb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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.")}),Klb=36,Zlb=36,qlb=2048,Wlb=500,Ylb={},qVb=e__namespace.object({id:e__namespace.string().max(Klb),entity_id:e__namespace.string().max(Zlb),url:e__namespace.string().max(qlb),description:e__namespace.string().max(Wlb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Ylb).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)"),$lb=/^[a-z]{3,4}_[0-9a-f]{24}$/,WVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",$lb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YVb=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.")}),$Vb=e__namespace.object({success:e__namespace.boolean()}),Qlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,QVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Qlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),JVb=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.")}),Jlb=36,Xlb=36,edb=36,tdb=100,ndb=-2147483648,sdb=2147483647,odb=1e4,idb=2e3,adb=-2147483648,rdb=2147483647,ldb=-2147483648,ddb=2147483647,cdb=-2147483648,udb=2147483647,XVb=e__namespace.object({id:e__namespace.string().max(Jlb),webhook_id:e__namespace.string().max(Xlb),entity_id:e__namespace.string().max(edb),event_type:e__namespace.string().max(tdb),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(ndb).max(sdb).nullish(),response_body:e__namespace.string().max(odb).nullish(),error_message:e__namespace.string().max(idb).nullish(),attempt:e__namespace.number().min(adb).max(rdb),max_attempts:e__namespace.number().min(ldb).max(ddb),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(cdb).max(udb).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),pdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,eKb=e__namespace.object({id:e__namespace.stringFormat("resource-id",pdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),mdb=10,xdb=100,tKb=e__namespace.object({limit:e__namespace.number().min(1).max(xdb).default(mdb).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.")}),nKb=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.")}),gdb=36,ydb=36,Odb=36,vdb=100,hdb=-2147483648,bdb=2147483647,Sdb=1e4,zdb=2e3,fdb=-2147483648,Idb=2147483647,Bdb=-2147483648,Tdb=2147483647,Edb=-2147483648,Ddb=2147483647,sKb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(gdb),webhook_id:e__namespace.string().max(ydb),entity_id:e__namespace.string().max(Odb),event_type:e__namespace.string().max(vdb),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(hdb).max(bdb).nullish(),response_body:e__namespace.string().max(Sdb).nullish(),error_message:e__namespace.string().max(zdb).nullish(),attempt:e__namespace.number().min(fdb).max(Idb),max_attempts:e__namespace.number().min(Bdb).max(Tdb),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(Edb).max(Ddb).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")}),Rdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,oKb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Rdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),iKb=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.")}),_db=36,Ndb=36,Mdb=2048,Udb=500,Pdb=64,Cdb={},aKb=e__namespace.object({id:e__namespace.string().max(_db),entity_id:e__namespace.string().max(Ndb),url:e__namespace.string().max(Mdb),description:e__namespace.string().max(Udb).nullish(),secret:e__namespace.string().max(Pdb),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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Cdb).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 Sn={};$(Sn,{CheckWLFeatureParams:()=>dKb,CheckWLFeatureResponse:()=>cKb,CheckWLLimitParams:()=>uKb,CheckWLLimitResponse:()=>pKb,GetCurrentWLSubscriptionResponse:()=>rKb,GetWLSubscriptionPlansResponse:()=>lKb,UpdateWLSubscriptionBillingEmailBody:()=>mKb,UpdateWLSubscriptionBillingEmailResponse:()=>xKb,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>wdb,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>Adb});var wdb=0,Adb=null,rKb=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(wdb).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e__namespace.number().nullish().default(Adb).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"),lKb=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"),dKb=e__namespace.object({feature:e__namespace.string().describe("Feature slug to check")}),cKb=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"),uKb=e__namespace.object({resource:e__namespace.string().describe("Resource type to check (e.g., 'documents')")}),pKb=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"),mKb=e__namespace.object({billing_email:e__namespace.email().nullable()}),xKb=e__namespace.object({billing_email:e__namespace.string().nullable()});var zn={};$(zn,{GetCurrentWhiteLabelResponse:()=>gKb,GetMyWhiteLabelResponse:()=>yKb});var gKb=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"),yKb=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 OKb=125e3,fn=null,we=null,In=false;function kdb(d){fn=d;}function Bn(d){we=d,d==null&&(In=false);}function vKb(){In||(In=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 hKb(){return we}function bKb(){if(!fn)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return fn}function SKb(d){if(!d)return {};if(d instanceof Headers){let u={};return d.forEach((g,E)=>{u[E]=g;}),u}if(Array.isArray(d)){let u={};for(let[g,E]of d)u[g]=E;return u}return d}function zKb(d,u){if(u==null||u<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,E=()=>{g.abort(d?.reason);};if(d?.aborted)return E(),{signal:g.signal,cleanup:()=>{}};let f=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${u}ms`));},u),M=()=>{clearTimeout(f),d?.removeEventListener("abort",E);};return d?.addEventListener("abort",E,{once:true}),g.signal.addEventListener("abort",M,{once:true}),{signal:g.signal,cleanup:M}}async function v(d,u){let{timeoutMs:g,sdkConfig:E,...f}=u??{},M=E??bKb(),ve=await Promise.resolve(M.getAccessToken()),ze=`${M.baseUrl}${d}`,Oe={...SKb(f.headers)};if(M.clientName&&Object.assign(Oe,rt(M.clientName)),f.body===void 0||f.body===null)for(let fe of Object.keys(Oe))fe.toLowerCase()==="content-type"&&delete Oe[fe];ve&&(Oe.Authorization=`Bearer ${ve}`);let De=Oe["x-account-id"]||Oe["X-Account-Id"]||M.accountId||null;!De&&we&&(E&&vKb(),De=we),De&&!Oe["x-account-id"]&&!Oe["X-Account-Id"]&&(Oe["x-account-id"]=De);let Re=zKb(f.signal,g===void 0?M.requestTimeoutMs??OKb:g);try{let fe=await fetch(ze,{...f,headers:Oe,signal:Re.signal});fe.status===401&&M.onUnauthorized&&M.onUnauthorized(fe);let Ne,fhb=fe.headers.get("content-length"),_e=fe.headers.get("content-type"),Ihb=fe.headers.get("content-disposition");if(fhb==="0"||fe.status===204)Ne=void 0;else if(_e?.includes("application/pdf")||_e?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||_e?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||_e?.includes("text/csv")||_e?.includes("application/octet-stream")||_e?.includes("application/zip")||_e?.includes("application/x-zip-compressed")||_e?.includes("image/"))Ne=await fe.blob();else if(_e?.includes("application/xml")||_e?.includes("text/xml"))Ne=Ihb?.toLowerCase().includes("attachment")?await fe.blob():await fe.text();else if(_e?.includes("text/html"))Ne=await fe.text();else try{Ne=await fe.json();}catch{Ne=void 0;}return {data:Ne,status:fe.status,headers:fe.headers}}finally{Re.cleanup();}}var fKb=1e3;function IKb(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 BKb(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*TKb(d,u,g){let E=g?`listAll(${g})`:"listAll()",f=u?.next_cursor,M=0;for(;;){if(M>=1e3)throw new Error(`${E} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);M++;let ve=f,ze=await d({...u,next_cursor:ve});if(!IKb(ze))throw new Error(`${E} cannot paginate this method: its response is ${BKb(ze)}, 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 Oe of ze.data)yield Oe;let Te=ze.pagination.next_cursor;if(!Te)return;if(Te===ve)throw new Error(`${E} received the same cursor it just sent (${ve}) after ${M} 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=Te;}}var EKb=()=>"/account-webhooks",jdb=async(d,u)=>v(EKb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),DKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},Hdb=async(d,u)=>v(DKb(d),{...u,method:"GET"}),RKb=d=>`/account-webhooks/${d}`,Ldb=async(d,u)=>v(RKb(d),{...u,method:"GET"}),_Kb=d=>`/account-webhooks/${d}`,Gdb=async(d,u,g)=>v(_Kb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),NKb=d=>`/account-webhooks/${d}`,Vdb=async(d,u)=>v(NKb(d),{...u,method:"DELETE"}),MKb=d=>`/account-webhooks/${d}/test`,Kdb=async(d,u)=>v(MKb(d),{...u,method:"POST"});var UKb=d=>`/account-webhooks/${d}/rotate-secret`,Zdb=async(d,u)=>v(UKb(d),{...u,method:"POST"});async function PKb(d,u){return d(...u)}function qdb(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 h(d,u){let g=async(...f)=>{let M=f[f.length-1],ve=M&&typeof M=="object"&&("entity_id"in M||"account_id"in M||"request_id"in M||"signal"in M||"timeoutMs"in M||"sdkConfig"in M||Object.keys(M).length===0),ze,Te;ve?(ze=f.slice(0,-1),Te=qdb(M)):ze=[...f];let Oe=Math.max(0,d.length-1);for(;ze.length<Oe;)ze.push(void 0);ze.push(Te);let De=await PKb(d,ze);if(De.status>=200&&De.status<300)return De.data;let Re=new Error(`API error: ${De.status}`);throw Re.status=De.status,Re.data=De.data,Re};return u===void 0?g:Object.assign(((...f)=>{let M=[...f];return M[u]??={},g(...M)}),{__sdkOptionsIndex:u})}function ne(d){return Object.assign(async g=>{let{entity_id:E,account_id:f,request_id:M,signal:ve,timeoutMs:ze,sdkConfig:Te,...Oe}=g||{},De=qdb({entity_id:E,account_id:f,request_id:M,signal:ve,timeoutMs:ze,sdkConfig:Te}),Re=await d(Oe,De);if(Re.status===200)return Re.data;let fe=new Error(`API error: ${Re.status}`);throw fe.status=Re.status,fe.data=Re.data,fe},{__sdkListMethod:true})}function Tn(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 Wdb(d,u){let g=d.__sdkOptionsIndex;return Object.assign((...f)=>{let M=f[g-1];return Tn(M)&&Object.keys(M).length>0&&!u.some(ve=>ve in M)&&(f[g]={...M,...f[g]},f[g-1]=void 0),d(...f)},{__sdkOptionsIndex:g})}function Y(d,u){let g=Object.entries(d).map(([E,f])=>typeof f!="function"?[E,f]:[E,(...M)=>{let ve=u(),ze=M[M.length-1],Te=f;if(Te.__sdkListMethod){let Oe=M[0];M[0]=Oe&&typeof Oe=="object"?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else if(typeof Te.__sdkOptionsIndex=="number"){let Oe=M[Te.__sdkOptionsIndex];M[Te.__sdkOptionsIndex]=Tn(Oe)?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else Tn(ze)?M[M.length-1]={...ze,sdkConfig:ve}:M.push({sdkConfig:ve});return f(...M)}]);return Object.fromEntries(g)}var En={create:h(jdb,1),list:ne(Hdb),get:h(Ldb,1),update:h(Gdb,2),delete:h(Vdb,1),testAccountWebhook:h(Kdb,1),rotateAccountWebhookSecret:h(Zdb,1)};var CKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/employees?${g}`:"/employees"},Ae=async(d,u)=>v(CKb(d),{...u,method:"GET"}),wKb=()=>"/employees",Fe=async(d,u)=>v(wKb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),AKb=d=>`/employees/${d}`,ke=async(d,u)=>v(AKb(d),{...u,method:"GET"}),FKb=d=>`/employees/${d}`,je=async(d,u,g)=>v(FKb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),kKb=d=>`/employees/${d}`,He=async(d,u)=>v(kKb(d),{...u,method:"DELETE"}),jKb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},Le=async(d,u,g)=>v(jKb(d,u),{...g,method:"GET"}),HKb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},Ge=async(d,u,g,E)=>v(HKb(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),LKb=d=>`/employees/${d}/compensation`,Ydb=async(d,u)=>v(LKb(d),{...u,method:"GET"}),GKb=d=>`/employees/${d}/compensation`,$db=async(d,u,g)=>v(GKb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VKb=(d,u)=>`/employees/${d}/compensation/${u}`,Qdb=async(d,u,g,E)=>v(VKb(d,u),{...E,method:"PATCH",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),KKb=(d,u)=>`/employees/${d}/compensation/${u}`,Jdb=async(d,u,g)=>v(KKb(d,u),{...g,method:"DELETE"}),ZKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fixed-assets?${g}`:"/fixed-assets"},Xdb=async(d,u)=>v(ZKb(d),{...u,method:"GET"}),qKb=()=>"/fixed-assets",ecb=async(d,u)=>v(qKb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register?${g}`:"/fixed-assets/register"},tcb=async(d,u)=>v(WKb(d),{...u,method:"GET"}),YKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register/export?${g}`:"/fixed-assets/register/export"},ncb=async(d,u)=>v(YKb(d),{...u,method:"GET"}),$Kb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/fixed-assets/${d}?${E}`:`/fixed-assets/${d}`},scb=async(d,u,g)=>v($Kb(d,u),{...g,method:"GET"}),QKb=d=>`/fixed-assets/${d}`,ocb=async(d,u,g)=>v(QKb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),JKb=d=>`/fixed-assets/${d}`,icb=async(d,u)=>v(JKb(d),{...u,method:"DELETE"}),XKb=d=>`/fixed-assets/${d}/dispose`,acb=async(d,u,g)=>v(XKb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eZb=d=>`/fixed-assets/${d}/undo-disposal`,rcb=async(d,u)=>v(eZb(d),{...u,method:"POST"}),tZb=d=>`/fixed-assets/${d}/schedule`,lcb=async(d,u)=>v(tZb(d),{...u,method:"GET"}),nZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},Ve=async(d,u)=>v(nZb(d),{...u,method:"GET"}),sZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},Ke=async(d,u)=>v(sZb(d),{...u,method:"GET"}),oZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/payroll/parameters/${d}?${E}`:`/payroll/parameters/${d}`},Ze=async(d,u,g,E)=>v(oZb(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),iZb=()=>"/payroll/runs",dcb=async(d,u)=>v(iZb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),aZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payroll/runs?${g}`:"/payroll/runs"},ccb=async(d,u)=>v(aZb(d),{...u,method:"GET"}),rZb=d=>`/payroll/runs/${d}`,ucb=async(d,u)=>v(rZb(d),{...u,method:"GET"}),lZb=d=>`/payroll/runs/${d}`,pcb=async(d,u)=>v(lZb(d),{...u,method:"DELETE"}),dZb=d=>`/payroll/runs/${d}/recompute`,mcb=async(d,u,g)=>v(dZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),cZb=d=>`/payroll/runs/${d}/approve`,xcb=async(d,u)=>v(cZb(d),{...u,method:"POST"}),uZb=d=>`/payroll/runs/${d}/reopen`,gcb=async(d,u)=>v(uZb(d),{...u,method:"POST"}),pZb=d=>`/payroll/runs/${d}/mark-paid`,ycb=async(d,u,g)=>v(pZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),mZb=d=>`/payroll/runs/${d}/export`,Ocb=async(d,u)=>v(mZb(d),{...u,method:"GET"}),xZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},qe=async(d,u)=>v(xZb(d),{...u,method:"GET"}),gZb=()=>"/vat-returns",We=async(d,u)=>v(gZb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),yZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},Ye=async(d,u)=>v(yZb(d),{...u,method:"GET"}),OZb=d=>`/vat-returns/${d}`,$e=async(d,u)=>v(OZb(d),{...u,method:"GET"}),vZb=d=>`/vat-returns/${d}`,vcb=async(d,u,g)=>v(vZb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hZb=d=>`/vat-returns/${d}/recompute`,Qe=async(d,u)=>v(hZb(d),{...u,method:"POST"}),bZb=d=>`/vat-returns/${d}/approve`,Je=async(d,u)=>v(bZb(d),{...u,method:"POST"}),SZb=d=>`/vat-returns/${d}/submit`,Xe=async(d,u,g)=>v(SZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),zZb=d=>`/vat-returns/${d}/reopen`,et=async(d,u)=>v(zZb(d),{...u,method:"POST"}),fZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/vat-returns/${d}/export?${E}`:`/vat-returns/${d}/export`},tt=async(d,u,g)=>v(fZb(d,u),{...g,method:"GET"}),IZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/filings?${g}`:"/filings"},nt=async(d,u)=>v(IZb(d),{...u,method:"GET"}),BZb=d=>`/filings/${d}/complete`,st=async(d,u,g)=>v(BZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),TZb=d=>`/filings/${d}/reopen`,ot=async(d,u)=>v(TZb(d),{...u,method:"POST"}),EZb=d=>`/filings/${d}/dismiss`,it=async(d,u,g)=>v(EZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),DZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},at=async(d,u)=>v(DZb(d),{...u,method:"GET"}),RZb=()=>"/ledger/accounts",hcb=async d=>v(RZb(),{...d,method:"GET"}),_Zb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/trial-balance?${g}`:"/ledger/trial-balance"},bcb=async(d,u)=>v(_Zb(d),{...u,method:"GET"}),NZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/profit-and-loss?${g}`:"/ledger/profit-and-loss"},Scb=async(d,u)=>v(NZb(d),{...u,method:"GET"}),MZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/balance-sheet?${g}`:"/ledger/balance-sheet"},zcb=async(d,u)=>v(MZb(d),{...u,method:"GET"}),UZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/entries?${g}`:"/ledger/entries"},fcb=async(d,u)=>v(UZb(d),{...u,method:"GET"}),PZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/reconciliations?${g}`:"/ledger/reconciliations"},Icb=async(d,u)=>v(PZb(d),{...u,method:"GET"}),CZb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,Bcb=async(d,u,g,E)=>v(CZb(d,u),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),wZb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,Tcb=async(d,u,g)=>v(wZb(d,u),{...g,method:"DELETE"}),AZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/journal-entries?${g}`:"/journal-entries"},Ecb=async(d,u)=>v(AZb(d),{...u,method:"GET"}),FZb=()=>"/journal-entries",Dcb=async(d,u)=>v(FZb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kZb=d=>`/journal-entries/${d}`,Rcb=async(d,u)=>v(kZb(d),{...u,method:"GET"}),jZb=d=>`/journal-entries/${d}`,_cb=async(d,u,g)=>v(jZb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),HZb=d=>`/journal-entries/${d}`,Ncb=async(d,u)=>v(HZb(d),{...u,method:"DELETE"}),LZb=()=>"/vendor-tax-profiles",Mcb=async d=>v(LZb(),{...d,method:"GET"}),GZb=d=>`/vendor-tax-profiles/${d}`,Ucb=async(d,u,g)=>v(GZb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VZb=d=>`/us-tax-years/${d}`,Pcb=async(d,u)=>v(VZb(d),{...u,method:"GET"}),KZb=d=>`/us-tax-years/${d}/export`,Ccb=async(d,u)=>v(KZb(d),{...u,method:"GET"});var Dn={listEmployees:h(Ae,1),registerEmployee:h(Fe,1),getEmployee:h(ke,1),modifyEmployee:h(je,2),archiveEmployee:h(He,1),getEmployeeAttendance:h(Le,2),replaceEmployeeAttendance:h(Ge,3),listEmployeeCompensation:h(Ydb,1),registerEmployeeCompensation:h($db,2),modifyEmployeeCompensation:h(Qdb,3),removeEmployeeCompensation:h(Jdb,2),listFixedAssets:h(Xdb,1),registerFixedAsset:h(ecb,1),getFixedAssetRegister:h(tcb,1),exportFixedAssetRegister:h(ncb,1),getFixedAsset:h(scb,2),modifyFixedAsset:h(ocb,2),archiveFixedAsset:h(icb,1),disposeFixedAsset:h(acb,2),undoFixedAssetDisposal:h(rcb,1),getFixedAssetSchedule:h(lcb,1),resolvePayrollParameters:h(Ve,1),getPayrollParameterHistory:h(Ke,1),setPayrollParameterOverride:h(Ze,3),draftPayrollRun:h(dcb,1),listPayrollRuns:h(ccb,1),getPayrollRun:h(ucb,1),discardPayrollRun:h(pcb,1),recomputePayrollRun:h(mcb,2),approvePayrollRun:h(xcb,1),reopenPayrollRun:h(gcb,1),markPayrollRunPaid:Wdb(h(ycb,2),["paid_at"]),exportPayrollRun:h(Ocb,1),preview:h(qe,1),draftVatReturn:h(We,1),listVatReturns:h(Ye,1),getVatReturn:h($e,1),update:h(vcb,2),recomputeVatReturn:h(Qe,1),approveVatReturn:h(Je,1),submitVatReturn:h(Xe,2),reopenVatReturn:h(et,1),exportVatReturn:h(tt,2),listFilings:h(nt,1),completeFiling:h(st,2),reopenFiling:h(ot,1),dismissFiling:h(it,2),listAccountFilingsCalendar:h(at,1),listLedgerAccounts:h(hcb,0),getTrialBalance:h(bcb,1),getProfitAndLossReport:h(Scb,1),getBalanceSheet:h(zcb,1),listLedgerEntries:h(fcb,1),listBankReconciliations:h(Icb,1),markBankReconciled:h(Bcb,3),reopenBankReconciliation:h(Tcb,2),listJournalEntries:h(Ecb,1),recordJournalEntry:h(Dcb,1),getJournalEntry:h(Rcb,1),reviseJournalEntry:h(_cb,2),archiveJournalEntry:h(Ncb,1),listVendorTaxProfiles:h(Mcb,0),setVendorTaxProfile:h(Ucb,2),getUsTaxYearWorksheet:h(Pcb,1),exportUsTaxYearWorksheet:h(Ccb,1)};var ZZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/activities?${g}`:"/activities"},wcb=async(d,u)=>v(ZZb(d),{...u,method:"GET"});var Rn={list:ne(wcb)};var qZb=d=>`/advance-invoices/${d}/nav/retry`,Acb=async(d,u)=>v(qZb(d),{...u,method:"POST"}),WZb=d=>`/advance-invoices/${d}/nav/reconcile`,Fcb=async(d,u)=>v(WZb(d),{...u,method:"POST"}),YZb=d=>`/advance-invoices/${d}/nav/resolve`,kcb=async(d,u,g)=>v(YZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),$Zb=d=>`/advance-invoices/${d}/nav/annulment`,jcb=async(d,u,g)=>v($Zb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),QZb=d=>`/advance-invoices/shareable/${d}`,Hcb=async(d,u)=>v(QZb(d),{...u,method:"GET"}),JZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/html?${E}`:`/advance-invoices/shareable/${d}/html`},Lcb=async(d,u,g)=>v(JZb(d,u),{...g,method:"GET"}),XZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/pdf?${E}`:`/advance-invoices/shareable/${d}/pdf`},Gcb=async(d,u,g)=>v(XZb(d,u),{...g,method:"GET"}),eqb=d=>`/advance-invoices/shareable/${d}/eslog`,Vcb=async(d,u)=>v(eqb(d),{...u,method:"GET"}),tqb=()=>"/advance-invoices",Kcb=async(d,u)=>v(tqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},Zcb=async(d,u)=>v(nqb(d),{...u,method:"GET"}),sqb=()=>"/advance-invoices/custom",qcb=async(d,u)=>v(sqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),oqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/advance-invoices/${d}?${E}`:`/advance-invoices/${d}`},Wcb=async(d,u,g)=>v(oqb(d,u),{...g,method:"GET"}),iqb=d=>`/advance-invoices/${d}`,Ycb=async(d,u,g)=>v(iqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),aqb=d=>`/advance-invoices/${d}/versions`,$cb=async(d,u)=>v(aqb(d),{...u,method:"GET"}),rqb=(d,u)=>`/advance-invoices/${d}/versions/${u}`,Qcb=async(d,u,g)=>v(rqb(d,u),{...g,method:"GET"}),lqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},Jcb=async(d,u,g)=>v(lqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),dqb=d=>`/advance-invoices/${d}/void`,Xcb=async(d,u,g)=>v(dqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var _n={retryAdvanceInvoiceNav:h(Acb,1),reconcileAdvanceInvoiceNav:h(Fcb,1),resolveAdvanceInvoiceNav:h(kcb,2),annulAdvanceInvoiceNav:h(jcb,2),getShareableAdvanceInvoice:h(Hcb,1),getShareableAdvanceInvoiceHtml:h(Lcb,2),getShareableAdvanceInvoicePdf:h(Gcb,2),getShareableAdvanceInvoiceEslog:h(Vcb,1),create:h(Kcb,1),list:ne(Zcb),createCustom:h(qcb,1),get:h(Wcb,2),update:h(Ycb,2),getVersions:h($cb,1),getVersion:h(Qcb,2),renderAdvanceInvoicePreview:h(Jcb,2),void:h(Xcb,2)};var cqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/business-units?${g}`:"/business-units"},eub=async(d,u)=>v(cqb(d),{...u,method:"GET"}),uqb=()=>"/business-units",tub=async(d,u)=>v(uqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/business-units/${d}?${E}`:`/business-units/${d}`},nub=async(d,u,g)=>v(pqb(d,u),{...g,method:"GET"}),mqb=d=>`/business-units/${d}`,sub=async(d,u,g)=>v(mqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),xqb=d=>`/business-units/${d}`,oub=async(d,u)=>v(xqb(d),{...u,method:"DELETE"});var Nn={list:ne(eub),create:h(tub,1),get:h(nub,2),update:h(sub,2),delete:h(oub,1)};var gqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},iub=async(d,u)=>v(gqb(d),{...u,method:"GET"}),yqb=()=>"/company-registry/countries",aub=async d=>v(yqb(),{...d,method:"GET"});var Mn={searchCompanyRegistry:h(iub,1),list:h(aub,0)};var Oqb=d=>`/credit-notes/${d}/nav/retry`,rub=async(d,u)=>v(Oqb(d),{...u,method:"POST"}),vqb=d=>`/credit-notes/${d}/nav/reconcile`,lub=async(d,u)=>v(vqb(d),{...u,method:"POST"}),hqb=d=>`/credit-notes/${d}/nav/resolve`,dub=async(d,u,g)=>v(hqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),bqb=d=>`/credit-notes/${d}/nav/annulment`,cub=async(d,u,g)=>v(bqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Sqb=d=>`/credit-notes/shareable/${d}`,uub=async(d,u)=>v(Sqb(d),{...u,method:"GET"}),zqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/html?${E}`:`/credit-notes/shareable/${d}/html`},pub=async(d,u,g)=>v(zqb(d,u),{...g,method:"GET"}),fqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/pdf?${E}`:`/credit-notes/shareable/${d}/pdf`},mub=async(d,u,g)=>v(fqb(d,u),{...g,method:"GET"}),Iqb=d=>`/credit-notes/shareable/${d}/eslog`,xub=async(d,u)=>v(Iqb(d),{...u,method:"GET"}),Bqb=d=>`/credit-notes/${d}/ksef/recover`,gub=async(d,u)=>v(Bqb(d),{...u,method:"POST"}),Tqb=d=>`/credit-notes/${d}/ksef`,yub=async(d,u)=>v(Tqb(d),{...u,method:"GET"}),Eqb=d=>`/credit-notes/${d}/ksef/submit`,Oub=async(d,u)=>v(Eqb(d),{...u,method:"POST"}),Dqb=d=>`/credit-notes/${d}/ksef/upo`,vub=async(d,u)=>v(Dqb(d),{...u,method:"GET"}),Rqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},hub=async(d,u,g)=>v(Rqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),_qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},bub=async(d,u)=>v(_qb(d),{...u,method:"GET"}),Nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},Sub=async(d,u,g)=>v(Nqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),Mqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/credit-notes/${d}?${E}`:`/credit-notes/${d}`},zub=async(d,u,g)=>v(Mqb(d,u),{...g,method:"GET"}),Uqb=d=>`/credit-notes/${d}`,fub=async(d,u,g)=>v(Uqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Pqb=d=>`/credit-notes/${d}/xrechnung`,Iub=async(d,u)=>v(Pqb(d),{...u,method:"GET"}),Cqb=d=>`/credit-notes/${d}/zugferd`,Bub=async(d,u)=>v(Cqb(d),{...u,method:"GET"}),wqb=d=>`/credit-notes/${d}/versions`,Tub=async(d,u)=>v(wqb(d),{...u,method:"GET"}),Aqb=(d,u)=>`/credit-notes/${d}/versions/${u}`,Eub=async(d,u,g)=>v(Aqb(d,u),{...g,method:"GET"}),Fqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},Dub=async(d,u,g)=>v(Fqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),kqb=d=>`/credit-notes/${d}/fiscalize`,Rub=async(d,u)=>v(kqb(d),{...u,method:"POST"}),jqb=d=>`/credit-notes/${d}/void`,_ub=async(d,u,g)=>v(jqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});function Nub(d){let u=h(d);function g(E,f,M){let ve=f&&typeof f=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(Oe=>Oe in f),ze=ve?void 0:f,Te=ve?{...f,...M}:M;return u(E,ze??{},Te??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Un={retryCreditNoteNav:h(rub,1),reconcileCreditNoteNav:h(lub,1),resolveCreditNoteNav:h(dub,2),annulCreditNoteNav:h(cub,2),getShareableCreditNote:h(uub,1),getShareableCreditNoteHtml:h(pub,2),getShareableCreditNotePdf:h(mub,2),getShareableCreditNoteEslog:h(xub,1),recoverCreditNoteFromKsef:h(gub,1),getCreditNoteKsefState:h(yub,1),submitCreditNoteToKsef:h(Oub,1),getCreditNoteKsefUpo:h(vub,1),create:Nub(hub),list:ne(bub),createCustom:Nub(Sub),get:h(zub,2),update:h(fub,2),downloadCreditNoteXRechnung:h(Iub,1),downloadCreditNoteZugferd:h(Bub,1),getVersions:h(Tub,1),getVersion:h(Eub,2),renderCreditNotePreview:h(Dub,2),fiscalizeCreditNote:h(Rub,1),void:h(_ub,2)};var Hqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},Mub=async(d,u)=>v(Hqb(d),{...u,method:"GET"});var Pn={getExchangeRate:h(Mub,1)};var Lqb=()=>"/customers",Uub=async(d,u)=>v(Lqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Gqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/customers?${g}`:"/customers"},Pub=async(d,u)=>v(Gqb(d),{...u,method:"GET"}),Vqb=d=>`/customers/${d}`,Cub=async(d,u)=>v(Vqb(d),{...u,method:"GET"}),Kqb=d=>`/customers/${d}`,wub=async(d,u,g)=>v(Kqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Zqb=d=>`/customers/${d}`,Aub=async(d,u)=>v(Zqb(d),{...u,method:"DELETE"}),qqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/customers/${d}/sold-items?${E}`:`/customers/${d}/sold-items`},Fub=async(d,u,g)=>v(qqb(d,u),{...g,method:"GET"}),Wqb=d=>`/customers/${d}/restore`,kub=async(d,u)=>v(Wqb(d),{...u,method:"POST"}),Yqb=d=>`/customers/${d}/permanent`,jub=async(d,u)=>v(Yqb(d),{...u,method:"DELETE"});var Cn={create:h(Uub,1),list:ne(Pub),get:h(Cub,1),update:h(wub,2),delete:h(Aub,1),listCustomerSoldItems:h(Fub,2),restoreCustomer:h(kub,1),permanentDeleteCustomer:h(jub,1)};var $qb=d=>`/delivery-notes/shareable/${d}`,Hub=async(d,u)=>v($qb(d),{...u,method:"GET"}),Qqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/html?${E}`:`/delivery-notes/shareable/${d}/html`},Lub=async(d,u,g)=>v(Qqb(d,u),{...g,method:"GET"}),Jqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/pdf?${E}`:`/delivery-notes/shareable/${d}/pdf`},Gub=async(d,u,g)=>v(Jqb(d,u),{...g,method:"GET"}),Xqb=()=>"/delivery-notes",Vub=async(d,u)=>v(Xqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},Kub=async(d,u)=>v(eWb(d),{...u,method:"GET"}),tWb=()=>"/delivery-notes/custom",Zub=async(d,u)=>v(tWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/delivery-notes/${d}?${E}`:`/delivery-notes/${d}`},qub=async(d,u,g)=>v(nWb(d,u),{...g,method:"GET"}),sWb=d=>`/delivery-notes/${d}`,Wub=async(d,u,g)=>v(sWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),oWb=d=>`/delivery-notes/${d}/versions`,Yub=async(d,u)=>v(oWb(d),{...u,method:"GET"}),iWb=(d,u)=>`/delivery-notes/${d}/versions/${u}`,$ub=async(d,u,g)=>v(iWb(d,u),{...g,method:"GET"}),aWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},Qub=async(d,u,g)=>v(aWb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),rWb=d=>`/delivery-notes/${d}/void`,Jub=async(d,u,g)=>v(rWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),lWb=d=>`/delivery-notes/${d}/sign`,Xub=async(d,u,g)=>v(lWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),dWb=d=>`/delivery-notes/${d}/quantities`,epb=async(d,u,g)=>v(dWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var wn={getShareableDeliveryNote:h(Hub,1),getShareableDeliveryNoteHtml:h(Lub,2),getShareableDeliveryNotePdf:h(Gub,2),create:h(Vub,1),list:ne(Kub),createCustom:h(Zub,1),get:h(qub,2),update:h(Wub,2),getVersions:h(Yub,1),getVersion:h($ub,2),renderDeliveryNotePreview:h(Qub,2),void:h(Jub,2),signDeliveryNote:h(Xub,2),setDeliveryNoteQuantities:h(epb,2)};var cWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},tpb=async(d,u)=>v(cWb(d),{...u,method:"GET"}),uWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},npb=async(d,u,g)=>v(uWb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),pWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/finalize?${E}`:`/documents/${d}/finalize`},spb=async(d,u,g,E)=>v(pWb(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),mWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/fiscalize?${E}`:`/documents/${d}/fiscalize`},opb=async(d,u,g,E)=>v(mWb(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),xWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/register-output?${E}`:`/documents/${d}/register-output`},ipb=async(d,u,g)=>v(xWb(d,u),{...g,method:"POST"}),gWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}?${E}`:`/documents/${d}`},apb=async(d,u,g)=>v(gWb(d,u),{...g,method:"DELETE"}),yWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/restore?${E}`:`/documents/${d}/restore`},rpb=async(d,u,g)=>v(yWb(d,u),{...g,method:"POST"}),OWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/permanent?${E}`:`/documents/${d}/permanent`},lpb=async(d,u,g)=>v(OWb(d,u),{...g,method:"DELETE"}),vWb=d=>`/documents/${d}/send`,dpb=async(d,u,g)=>v(vWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hWb=d=>`/documents/${d}/share`,cpb=async(d,u)=>v(hWb(d),{...u,method:"POST"}),bWb=d=>`/documents/${d}/share`,upb=async(d,u)=>v(bWb(d),{...u,method:"GET"}),SWb=d=>`/documents/${d}/share`,ppb=async(d,u)=>v(SWb(d),{...u,method:"DELETE"});var An=h(opb,3);function zWb(d){return !!d&&typeof d=="object"&&"type"in d}function Fn(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 fWb=async(d,u,g,E)=>{if(Fn(u))return An(d,void 0,void 0,u);if(zWb(u))return An(d,void 0,u,g);let f=Fn(g)?void 0:g,M=Fn(g)?g:E;return An(d,u,f,M)},kn={getNextNumber:h(tpb,1),calculateDocumentPreview:h(npb,2),finalizeDocument:h(spb,3),fiscalizeDocument:fWb,registerDocumentOutput:h(ipb,2),delete:h(apb,2),restoreDocument:h(rpb,2),permanentDeleteDocument:h(lpb,2),sendDocument:h(dpb,2),shareDocument:h(cpb,1),getShareableId:h(upb,1),unshareDocument:h(ppb,1)};var IWb=()=>"/e-invoicing/settings",mpb=async d=>v(IWb(),{...d,method:"GET"}),BWb=()=>"/e-invoicing/settings",xpb=async(d,u)=>v(BWb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TWb=()=>"/e-invoicing/enrollment/sync",gpb=async d=>v(TWb(),{...d,method:"POST"}),EWb=()=>"/e-invoicing/enrollment/verification-link",ypb=async d=>v(EWb(),{...d,method:"POST"}),DWb=()=>"/e-invoicing/enrollment/authorize",Opb=async(d,u)=>v(DWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),RWb=()=>"/e-invoicing/enrollment/disconnect",vpb=async d=>v(RWb(),{...d,method:"POST"}),_Wb=()=>"/e-invoicing/france/directory/lookup",hpb=async(d,u)=>v(_Wb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),NWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},bpb=async(d,u)=>v(NWb(d),{...u,method:"GET"}),MWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/e-invoicing/received-documents/${d}/download?${E}`:`/e-invoicing/received-documents/${d}/download`},Spb=async(d,u,g)=>v(MWb(d,u),{...g,method:"GET"}),UWb=d=>`/e-invoicing/received-documents/${d}/accept`,zpb=async(d,u)=>v(UWb(d),{...u,method:"POST"}),PWb=d=>`/e-invoicing/received-documents/${d}/lifecycle`,fpb=async(d,u,g)=>v(PWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),CWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},Ipb=async(d,u)=>v(CWb(d),{...u,method:"GET"}),wWb=d=>`/e-invoicing/reporting-records/${d}/retry`,Bpb=async(d,u)=>v(wWb(d),{...u,method:"POST"}),AWb=()=>"/e-invoicing/supplier",Tpb=async(d,u)=>v(AWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),FWb=()=>"/e-invoicing/supplier",Epb=async d=>v(FWb(),{...d,method:"GET"});var kWb=()=>"/e-invoicing/recipients/check",Dpb=async(d,u)=>v(kWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jWb=()=>"/e-invoicing/customer-search",Rpb=async(d,u)=>v(jWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HWb=d=>`/e-invoicing/documents/${d}/send`,_pb=async(d,u,g)=>v(HWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),LWb=(d,u)=>`/e-invoicing/send/${d}/${u}`,Npb=async(d,u,g,E)=>v(LWb(d,u),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),GWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},Mpb=async(d,u)=>v(GWb(d),{...u,method:"GET"}),VWb=d=>`/e-invoicing/submissions/${d}`,jn=async(d,u)=>v(VWb(d),{...u,method:"GET"}),KWb=d=>`/e-invoicing/submissions/${d}/retry`,Hn=async(d,u)=>v(KWb(d),{...u,method:"POST"});var Ln={getEInvoicingSubmission:h(jn,1),retryEInvoicingSubmission:h(Hn,1),list:h(mpb,0),update:h(xpb,1),syncEInvoicingEnrollment:h(gpb,0),create:h(ypb,0),createEInvoicingEnrollmentAuthorization:h(Opb,1),disconnectEInvoicingEnrollment:h(vpb,0),lookupFranceEInvoicingDirectory:h(hpb,1),listReceivedEInvoices:h(bpb,1),downloadReceivedEInvoice:h(Spb,2),acceptReceivedEInvoice:h(zpb,1),sendReceivedEInvoiceLifecycle:h(fpb,2),listFrenchEReportingRecords:h(Ipb,1),retryFrenchEReportingRecord:h(Bpb,1),registerEInvoicingSupplier:h(Tpb,1),getEInvoicingSupplier:h(Epb,0),checkEInvoicingRecipient:h(Dpb,1),searchEInvoicingCustomer:h(Rpb,1),sendEInvoicingDocument:h(_pb,2),sendEInvoice:h(Npb,3),listEInvoicingSubmissions:h(Mpb,1),get:h(jn,1),retryEInvoicingSubmissionById:h(Hn,1)};var ZWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/validate?${E}`:`/eslog/${d}/validate`},Upb=async(d,u,g)=>v(ZWb(d,u),{...g,method:"POST"}),qWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/download?${E}`:`/eslog/${d}/download`},Ppb=async(d,u,g)=>v(qWb(d,u),{...g,method:"GET"});var Gn={validate:h(Upb,2),download:h(Ppb,2)};var WWb=()=>"/fiscalization/eet/settings/certificate",Cpb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(WWb(),{...u,method:"POST",body:g})},YWb=()=>"/fiscalization/eet/settings/certificate",wpb=async d=>v(YWb(),{...d,method:"GET"}),$Wb=()=>"/fiscalization/eet/settings/certificate",Apb=async d=>v($Wb(),{...d,method:"DELETE"});var Vn={uploadEetCertificate:h(Cpb,1),getEetCertificate:h(wpb,0),delete:h(Apb,0)};var QWb=()=>"/fiscalization/eet/settings",Fpb=async d=>v(QWb(),{...d,method:"GET"}),JWb=()=>"/fiscalization/eet/settings",kpb=async(d,u)=>v(JWb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Kn={list:h(Fpb,0),update:h(kpb,1)};var XWb=()=>"/email/send",jpb=async(d,u)=>v(XWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zn={sendEmail:h(jpb,1)};var e6b=d=>`/entities/${d}/nav`,Hpb=async(d,u)=>v(e6b(d),{...u,method:"GET"}),t6b=d=>`/entities/${d}/nav`,Lpb=async(d,u,g)=>v(t6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),n6b=d=>`/entities/${d}/nav/credentials`,Gpb=async(d,u,g)=>v(n6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),s6b=d=>`/entities/${d}/nav/credentials`,Vpb=async(d,u)=>v(s6b(d),{...u,method:"DELETE"}),o6b=d=>`/entities/${d}/nav/credentials/verify`,Kpb=async(d,u)=>v(o6b(d),{...u,method:"POST"}),i6b=d=>`/entities/${d}/ksef`,Zpb=async(d,u)=>v(i6b(d),{...u,method:"GET"}),a6b=d=>`/entities/${d}/ksef`,qpb=async(d,u,g)=>v(a6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),r6b=d=>`/entities/${d}/ksef/credentials`,Wpb=async(d,u,g)=>v(r6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),l6b=d=>`/entities/${d}/ksef/credentials`,Ypb=async(d,u)=>v(l6b(d),{...u,method:"DELETE"}),d6b=()=>"/entities",$pb=async(d,u)=>v(d6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),c6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/entities?${g}`:"/entities"},Qpb=async(d,u)=>v(c6b(d),{...u,method:"GET"}),u6b=d=>`/entities/${d}`,Jpb=async(d,u)=>v(u6b(d),{...u,method:"GET"}),p6b=d=>`/entities/${d}`,Xpb=async(d,u,g)=>v(p6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),m6b=d=>`/entities/${d}/enable`,emb=async(d,u)=>v(m6b(d),{...u,method:"POST"}),x6b=d=>`/entities/${d}/disable`,tmb=async(d,u)=>v(x6b(d),{...u,method:"POST"}),g6b=d=>`/entities/${d}/email-sender`,nmb=async(d,u)=>v(g6b(d),{...u,method:"GET"}),y6b=d=>`/entities/${d}/email-sender`,smb=async(d,u,g)=>v(y6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),O6b=d=>`/entities/${d}/email-sender`,omb=async(d,u)=>v(O6b(d),{...u,method:"DELETE"}),v6b=d=>`/entities/${d}/email-sender/recheck`,imb=async(d,u)=>v(v6b(d),{...u,method:"POST"});var qn={retrieveEntityNavSettings:h(Hpb,1),modifyEntityNavSettings:h(Lpb,2),storeEntityNavCredentials:h(Gpb,2),removeEntityNavCredentials:h(Vpb,1),verifyEntityNavCredentials:h(Kpb,1),getEntityKsefSetup:h(Zpb,1),putEntityKsefSettings:h(qpb,2),putEntityKsefCredential:h(Wpb,2),removeEntityKsefCredential:h(Ypb,1),create:h($pb,1),list:ne(Qpb),get:h(Jpb,1),update:h(Xpb,2),enableEntity:h(emb,1),disableEntity:h(tmb,1),getEntityEmailSender:h(nmb,1),putEntityEmailSender:h(smb,2),deleteEntityEmailSender:h(omb),recheckEntityEmailSender:h(imb,1)};var h6b=()=>"/entities/api-keys",amb=async d=>v(h6b(),{...d,method:"GET"}),b6b=()=>"/entities/api-keys",rmb=async(d,u)=>v(b6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),S6b=d=>`/entities/api-keys/${d}`,lmb=async(d,u)=>v(S6b(d),{...u,method:"DELETE"}),z6b=()=>"/entities/api-keys/revoke-integration",dmb=async d=>v(z6b(),{...d,method:"POST"});var Wn={listEntityApiKeys:h(amb,0),create:h(rmb,1),delete:h(lmb,1),revokeEntityApiKeyIntegration:h(dmb,0)};var f6b=()=>"/entities/invitations",cmb=async d=>v(f6b(),{...d,method:"GET"}),I6b=d=>`/entities/invitations/${d}`,umb=async(d,u)=>v(I6b(d),{...u,method:"GET"}),B6b=d=>`/entities/invitations/${d}`,pmb=async(d,u)=>v(B6b(d),{...u,method:"DELETE"}),T6b=d=>`/entities/invitations/${d}/resend`,mmb=async(d,u)=>v(T6b(d),{...u,method:"POST"}),E6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},xmb=async(d,u)=>v(E6b(d),{...u,method:"GET"}),D6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},gmb=async(d,u,g)=>v(D6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Yn={listEntityInvitations:h(cmb,0),getEntityInvitation:h(umb,1),cancelEntityInvitation:h(pmb,1),resendEntityInvitation:h(mmb,1),preview:h(xmb,1),acceptEntityInvitation:h(gmb,2)};var R6b=()=>"/stats/query",ymb=async(d,u)=>v(R6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var $n={queryEntityStats:h(ymb,1)};var _6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},Omb=async(d,u)=>v(_6b(d),{...u,method:"GET"}),N6b=()=>"/entities/users",vmb=async(d,u)=>v(N6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),M6b=()=>"/entities/users/access",hmb=async d=>v(M6b(),{...d,method:"GET"}),U6b=d=>`/entities/users/${d}`,bmb=async(d,u,g)=>v(U6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),P6b=d=>`/entities/users/${d}`,Smb=async(d,u)=>v(P6b(d),{...u,method:"DELETE"}),C6b=d=>`/entities/users/${d}/token`,zmb=async(d,u,g)=>v(C6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Qn={list:ne(Omb),addEntityUser:h(vmb,1),getAccess:h(hmb,0),update:h(bmb,2),removeEntityUser:h(Smb,1),generateEntityUserToken:h(zmb,2)};var w6b=d=>`/estimates/shareable/${d}`,fmb=async(d,u)=>v(w6b(d),{...u,method:"GET"}),A6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/html?${E}`:`/estimates/shareable/${d}/html`},Imb=async(d,u,g)=>v(A6b(d,u),{...g,method:"GET"}),F6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/pdf?${E}`:`/estimates/shareable/${d}/pdf`},Bmb=async(d,u,g)=>v(F6b(d,u),{...g,method:"GET"}),k6b=d=>`/estimates/shareable/${d}/eslog`,Tmb=async(d,u)=>v(k6b(d),{...u,method:"GET"}),j6b=()=>"/estimates",Emb=async(d,u)=>v(j6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),H6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/estimates?${g}`:"/estimates"},Dmb=async(d,u)=>v(H6b(d),{...u,method:"GET"}),L6b=()=>"/estimates/custom",Rmb=async(d,u)=>v(L6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),G6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/estimates/${d}?${E}`:`/estimates/${d}`},_mb=async(d,u,g)=>v(G6b(d,u),{...g,method:"GET"}),V6b=d=>`/estimates/${d}`,Nmb=async(d,u,g)=>v(V6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),K6b=d=>`/estimates/${d}/versions`,Mmb=async(d,u)=>v(K6b(d),{...u,method:"GET"}),Z6b=(d,u)=>`/estimates/${d}/versions/${u}`,Umb=async(d,u,g)=>v(Z6b(d,u),{...g,method:"GET"}),q6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},Pmb=async(d,u,g)=>v(q6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Jn={getShareableEstimate:h(fmb,1),getShareableEstimateHtml:h(Imb,2),getShareableEstimatePdf:h(Bmb,2),getShareableEstimateEslog:h(Tmb,1),create:h(Emb,1),list:ne(Dmb),createCustom:h(Rmb,1),get:h(_mb,2),update:h(Nmb,2),getVersions:h(Mmb,1),getVersion:h(Umb,2),renderEstimatePreview:h(Pmb,2)};var W6b=()=>"/expenses",Cmb=async(d,u)=>v(W6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses?${g}`:"/expenses"},wmb=async(d,u)=>v(Y6b(d),{...u,method:"GET"}),$6b=()=>"/expenses/custom",Amb=async(d,u)=>v($6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Q6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},Fmb=async(d,u)=>v(Q6b(d),{...u,method:"GET"}),J6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},kmb=async(d,u)=>v(J6b(d),{...u,method:"GET"}),X6b=()=>"/expenses/recognition/settings",jmb=async d=>v(X6b(),{...d,method:"GET"}),e7b=()=>"/expenses/recognition/settings",Hmb=async(d,u)=>v(e7b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),t7b=()=>"/expenses/recognition/backfill",Lmb=async(d,u)=>v(t7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),n7b=()=>"/expenses/recognitions",Gmb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(n7b(),{...u,method:"POST",body:g})},s7b=d=>`/expenses/recognitions/${d}`,Vmb=async(d,u)=>v(s7b(d),{...u,method:"GET"}),o7b=d=>`/expenses/recognitions/${d}/retry`,Kmb=async(d,u)=>v(o7b(d),{...u,method:"POST"}),i7b=()=>"/expenses/inbound-email",Zmb=async d=>v(i7b(),{...d,method:"GET"}),a7b=()=>"/expenses/inbound-email",qmb=async d=>v(a7b(),{...d,method:"POST"}),r7b=()=>"/expenses/inbound-email",Wmb=async d=>v(r7b(),{...d,method:"DELETE"}),l7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},Ymb=async(d,u)=>v(l7b(d),{...u,method:"GET"}),d7b=()=>"/expenses/imports/shareable/preview",$mb=async(d,u)=>v(d7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),c7b=()=>"/expenses/imports/shareable",Qmb=async(d,u)=>v(c7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),u7b=d=>`/expenses/${d}/recognition`,Jmb=async(d,u)=>v(u7b(d),{...u,method:"GET"}),p7b=d=>`/expenses/${d}`,Xmb=async(d,u)=>v(p7b(d),{...u,method:"GET"}),m7b=d=>`/expenses/${d}`,exb=async(d,u,g)=>v(m7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),x7b=d=>`/expenses/${d}`,txb=async(d,u)=>v(x7b(d),{...u,method:"DELETE"}),g7b=d=>`/expenses/${d}/void`,nxb=async(d,u)=>v(g7b(d),{...u,method:"POST"}),y7b=d=>`/expenses/${d}/restore`,sxb=async(d,u)=>v(y7b(d),{...u,method:"POST"}),O7b=d=>`/expenses/${d}/attachments`,oxb=async(d,u,g)=>{let E=new FormData;return E.append("file",u.file),v(O7b(d),{...g,method:"POST",body:E})},v7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/expenses/${d}/attachments?${E}`:`/expenses/${d}/attachments`},ixb=async(d,u,g)=>v(v7b(d,u),{...g,method:"GET"}),h7b=(d,u)=>`/expenses/${d}/attachments/${u}`,axb=async(d,u,g)=>v(h7b(d,u),{...g,method:"DELETE"}),b7b=d=>`/expenses/${d}/payments`,rxb=async(d,u)=>v(b7b(d),{...u,method:"GET"}),S7b=d=>`/expenses/${d}/payments`,lxb=async(d,u,g)=>v(S7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Xn={create:h(Cmb,1),list:ne(wmb),createCustom:h(Amb,1),exportExpenses:h(Fmb,1),getExpenseCategoryReport:h(kmb,1),getRecognitionSettings:h(jmb,0),updateRecognitionSettings:h(Hmb,1),backfillExpenseRecognition:h(Lmb,1),createRecognition:h(Gmb,1),getRecognition:h(Vmb,1),retryRecognition:h(Kmb,1),getExpenseInboundEmail:h(Zmb,0),rotateExpenseInboundEmail:h(qmb,0),disableExpenseInboundEmail:h(Wmb,0),listExpenseInboundEmailMessages:h(Ymb,1),previewImportFromShareableLink:h($mb,1),importFromShareableLink:h(Qmb,1),getLatestRecognition:h(Jmb,1),get:h(Xmb,1),update:h(exb,2),delete:h(txb,1),void:h(nxb,1),restoreExpense:h(sxb,1),uploadExpenseAttachment:h(oxb,2),getExpenseAttachments:h(ixb,2),deleteExpenseAttachment:h(axb,2),getExpensePayments:h(rxb,1),createExpensePayment:h(lxb,2)};var z7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},dxb=async(d,u)=>v(z7b(d),{...u,method:"GET"}),f7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},cxb=async(d,u)=>v(f7b(d),{...u,method:"GET"}),I7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},uxb=async(d,u)=>v(I7b(d),{...u,method:"GET"}),B7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},pxb=async(d,u)=>v(B7b(d),{...u,method:"GET"}),T7b=()=>"/documents/export/pdf",mxb=async(d,u)=>v(T7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),E7b=d=>`/documents/export/pdf/${d}`,xxb=async(d,u)=>v(E7b(d),{...u,method:"GET"}),D7b=d=>`/documents/export/pdf/${d}/download`,gxb=async(d,u)=>v(D7b(d),{...u,method:"GET"}),R7b=()=>"/documents/export/eslog",yxb=async(d,u)=>v(R7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_7b=d=>`/documents/export/eslog/${d}`,Oxb=async(d,u)=>v(_7b(d),{...u,method:"GET"}),N7b=d=>`/documents/export/eslog/${d}/download`,vxb=async(d,u)=>v(N7b(d),{...u,method:"GET"});var es={exportDocuments:h(dxb,1),exportSalesPerItem:h(cxb,1),exportInventory:h(uxb,1),exportRevenueByCategory:h(pxb,1),startPdfExport:h(mxb,1),getPdfStatus:h(xxb,1),downloadPdfExport:h(gxb,1),startEslogExport:h(yxb,1),getEslogStatus:h(Oxb,1),downloadEslogExport:h(vxb,1)};var M7b=()=>"/files",hxb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&g.append("document_id",d.document_id),d.account_payable_id!==void 0&&g.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&g.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&g.append("expense_id",d.expense_id),v(M7b(),{...u,method:"POST",body:g})},U7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/files?${g}`:"/files"},bxb=async(d,u)=>v(U7b(d),{...u,method:"GET"}),P7b=d=>`/files/${d}`,Sxb=async(d,u)=>v(P7b(d),{...u,method:"GET"}),C7b=d=>`/files/${d}`,zxb=async(d,u)=>v(C7b(d),{...u,method:"DELETE"});var ts={uploadFile:h(hxb,1),list:ne(bxb),get:h(Sxb,1),delete:h(zxb,1)};var w7b=()=>"/fiscalization/fina/settings/certificate",fxb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(w7b(),{...u,method:"POST",body:g})},A7b=()=>"/fiscalization/fina/settings/certificate",Ixb=async d=>v(A7b(),{...d,method:"GET"}),F7b=()=>"/fiscalization/fina/settings/certificate",Bxb=async d=>v(F7b(),{...d,method:"DELETE"});var ns={uploadFinaCertificate:h(fxb,1),getFinaCertificate:h(Ixb,0),delete:h(Bxb,0)};var k7b=d=>`/fiscalization/fina/premises/${d}/devices`,Txb=async(d,u)=>v(k7b(d),{...u,method:"GET"}),j7b=d=>`/fiscalization/fina/premises/${d}/devices`,Exb=async(d,u,g)=>v(j7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H7b=d=>`/fiscalization/fina/devices/${d}`,Dxb=async(d,u)=>v(H7b(d),{...u,method:"GET"}),L7b=d=>`/fiscalization/fina/devices/${d}`,Rxb=async(d,u,g)=>v(L7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),G7b=d=>`/fiscalization/fina/devices/${d}`,_xb=async(d,u)=>v(G7b(d),{...u,method:"DELETE"});var ss={listFinaDevices:h(Txb,1),registerFinaDevice:h(Exb,2),getFinaDevice:h(Dxb,1),update:h(Rxb,2),delete:h(_xb,1)};var V7b=()=>"/fiscalization/fina/premises",Nxb=async d=>v(V7b(),{...d,method:"GET"}),K7b=()=>"/fiscalization/fina/premises",Mxb=async(d,u)=>v(K7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Z7b=d=>`/fiscalization/fina/premises/${d}`,Uxb=async(d,u)=>v(Z7b(d),{...u,method:"GET"}),q7b=d=>`/fiscalization/fina/premises/${d}`,Pxb=async(d,u,g)=>v(q7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),W7b=d=>`/fiscalization/fina/premises/${d}`,Cxb=async(d,u)=>v(W7b(d),{...u,method:"DELETE"});var os={listFinaPremises:h(Nxb,0),create:h(Mxb,1),getFinaPremise:h(Uxb,1),update:h(Pxb,2),delete:h(Cxb,1)};var Y7b=()=>"/fiscalization/fina/settings",wxb=async d=>v(Y7b(),{...d,method:"GET"}),$7b=()=>"/fiscalization/fina/settings",Axb=async(d,u)=>v($7b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var is={list:h(wxb,0),update:h(Axb,1)};var Q7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},Fxb=async(d,u)=>v(Q7b(d),{...u,method:"GET"}),J7b=()=>"/financial-categories",kxb=async(d,u)=>v(J7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X7b=d=>`/financial-categories/${d}`,jxb=async(d,u,g)=>v(X7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),e9b=d=>`/financial-categories/${d}`,Hxb=async(d,u)=>v(e9b(d),{...u,method:"DELETE"}),t9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},Lxb=async(d,u)=>v(t9b(d),{...u,method:"GET"}),n9b=()=>"/financial-categories/document-items/batch",Gxb=async(d,u)=>v(n9b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),s9b=d=>`/financial-categories/document-items/${d}`,Vxb=async(d,u,g)=>v(s9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var as={list:ne(Fxb),create:h(kxb,1),update:h(jxb,2),delete:h(Hxb,1),getRevenueByFinancialCategory:h(Lxb,1),updateDocumentItemFinancialCategories:h(Gxb,1),updateDocumentItemFinancialCategory:h(Vxb,2)};var o9b=()=>"/fiscalization/furs/settings/certificate",Kxb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(o9b(),{...u,method:"POST",body:g})},i9b=()=>"/fiscalization/furs/settings/certificate",Zxb=async d=>v(i9b(),{...d,method:"GET"}),a9b=()=>"/fiscalization/furs/settings/certificate",qxb=async d=>v(a9b(),{...d,method:"DELETE"});var rs={uploadFursCertificate:h(Kxb,1),getFursCertificate:h(Zxb,0),delete:h(qxb,0)};var r9b=d=>`/fiscalization/furs/premises/${d}/devices`,Wxb=async(d,u)=>v(r9b(d),{...u,method:"GET"}),l9b=d=>`/fiscalization/furs/premises/${d}/devices`,Yxb=async(d,u,g)=>v(l9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),d9b=d=>`/fiscalization/furs/devices/${d}`,$xb=async(d,u)=>v(d9b(d),{...u,method:"GET"}),c9b=d=>`/fiscalization/furs/devices/${d}`,Qxb=async(d,u,g)=>v(c9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var ls={listFursElectronicDevices:h(Wxb,1),registerFursElectronicDevice:h(Yxb,2),getFursElectronicDevice:h($xb,1),update:h(Qxb,2)};var u9b=()=>"/fiscalization/furs/internal-act/report.pdf",Jxb=async d=>v(u9b(),{...d,method:"GET"}),p9b=()=>"/fiscalization/furs/internal-act/report.docx",Xxb=async d=>v(p9b(),{...d,method:"GET"});var ds={generateFursInternalActPdf:h(Jxb,0),generateFursInternalActDocx:h(Xxb,0)};var m9b=()=>"/fiscalization/furs/premises",egb=async d=>v(m9b(),{...d,method:"GET"}),x9b=d=>`/fiscalization/furs/premises/${d}`,tgb=async(d,u)=>v(x9b(d),{...u,method:"GET"}),g9b=d=>`/fiscalization/furs/premises/${d}`,ngb=async(d,u,g)=>v(g9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),y9b=()=>"/fiscalization/furs/premises/real-estate",sgb=async(d,u)=>v(y9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),O9b=()=>"/fiscalization/furs/premises/movable",ogb=async(d,u)=>v(O9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v9b=d=>`/fiscalization/furs/premises/${d}/close`,igb=async(d,u)=>v(v9b(d),{...u,method:"POST"});var cs={listFursBusinessPremises:h(egb,0),getFursBusinessPremise:h(tgb,1),update:h(ngb,2),registerFursRealEstatePremise:h(sgb,1),registerFursMovablePremise:h(ogb,1),closeFursBusinessPremise:h(igb,1)};var h9b=()=>"/fiscalization/furs/settings",agb=async d=>v(h9b(),{...d,method:"GET"}),b9b=()=>"/fiscalization/furs/settings",rgb=async(d,u)=>v(b9b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var us={list:h(agb,0),update:h(rgb,1)};var S9b=()=>"/health/live",lgb=async d=>v(S9b(),{...d,method:"GET"}),z9b=()=>"/health/ready",dgb=async d=>v(z9b(),{...d,method:"GET"}),f9b=()=>"/health",cgb=async d=>v(f9b(),{...d,method:"GET"});var ps={livenessCheck:h(lgb,0),readinessCheck:h(dgb,0),healthCheck:h(cgb,0)};var I9b=d=>`/invoices/${d}/nav/retry`,ugb=async(d,u)=>v(I9b(d),{...u,method:"POST"}),B9b=d=>`/invoices/${d}/nav/reconcile`,pgb=async(d,u)=>v(B9b(d),{...u,method:"POST"}),T9b=d=>`/invoices/${d}/nav/resolve`,mgb=async(d,u,g)=>v(T9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),E9b=d=>`/invoices/${d}/nav/annulment`,xgb=async(d,u,g)=>v(E9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),D9b=d=>`/invoices/shareable/${d}`,ggb=async(d,u)=>v(D9b(d),{...u,method:"GET"}),R9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/html?${E}`:`/invoices/shareable/${d}/html`},ygb=async(d,u,g)=>v(R9b(d,u),{...g,method:"GET"}),_9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/pdf?${E}`:`/invoices/shareable/${d}/pdf`},Ogb=async(d,u,g)=>v(_9b(d,u),{...g,method:"GET"}),N9b=d=>`/invoices/shareable/${d}/eslog`,vgb=async(d,u)=>v(N9b(d),{...u,method:"GET"}),M9b=d=>`/invoices/${d}/ksef/recover`,hgb=async(d,u)=>v(M9b(d),{...u,method:"POST"}),U9b=d=>`/invoices/${d}/ksef`,bgb=async(d,u)=>v(U9b(d),{...u,method:"GET"}),P9b=d=>`/invoices/${d}/ksef/submit`,Sgb=async(d,u)=>v(P9b(d),{...u,method:"POST"}),C9b=d=>`/invoices/${d}/ksef/upo`,zgb=async(d,u)=>v(C9b(d),{...u,method:"GET"}),w9b=()=>"/invoices",fgb=async(d,u)=>v(w9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),A9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invoices?${g}`:"/invoices"},Igb=async(d,u)=>v(A9b(d),{...u,method:"GET"}),F9b=()=>"/invoices/custom",Bgb=async(d,u)=>v(F9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),k9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/invoices/${d}?${E}`:`/invoices/${d}`},Tgb=async(d,u,g)=>v(k9b(d,u),{...g,method:"GET"}),j9b=d=>`/invoices/${d}`,Egb=async(d,u,g)=>v(j9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H9b=d=>`/invoices/${d}/credit-options`,Dgb=async(d,u)=>v(H9b(d),{...u,method:"GET"}),L9b=d=>`/invoices/${d}/xrechnung`,Rgb=async(d,u)=>v(L9b(d),{...u,method:"GET"}),G9b=d=>`/invoices/${d}/zugferd`,_gb=async(d,u)=>v(G9b(d),{...u,method:"GET"}),V9b=d=>`/invoices/${d}/versions`,Ngb=async(d,u)=>v(V9b(d),{...u,method:"GET"}),K9b=(d,u)=>`/invoices/${d}/versions/${u}`,Mgb=async(d,u,g)=>v(K9b(d,u),{...g,method:"GET"}),Z9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},Ugb=async(d,u,g)=>v(Z9b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),q9b=d=>`/invoices/${d}/void`,Pgb=async(d,u,g)=>v(q9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),W9b=d=>`/invoices/${d}/fiscalize`,Cgb=async(d,u)=>v(W9b(d),{...u,method:"POST"}),Y9b=d=>`/invoices/${d}/change-buyer-oib`,wgb=async(d,u,g)=>v(Y9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),$9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/html?${E}`:`/documents/${d}/html`},Agb=async(d,u,g)=>v($9b(d,u),{...g,method:"GET"}),Q9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/pdf?${E}`:`/documents/${d}/pdf`},Fgb=async(d,u,g)=>v(Q9b(d,u),{...g,method:"GET"});function ms(d,u){let g=URL.createObjectURL(d),E=document.createElement("a");E.href=g,E.download=u,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(g);}var kgb=h(Fgb,2),J9b=Object.assign(async(d,u,g,E)=>{let f=await kgb(d,g,E);ms(f,u);},{__sdkOptionsIndex:3}),xs={retryInvoiceNav:h(ugb,1),reconcileInvoiceNav:h(pgb,1),resolveInvoiceNav:h(mgb,2),annulInvoiceNav:h(xgb,2),getShareableInvoice:h(ggb,1),getShareableInvoiceHtml:h(ygb,2),getShareableInvoicePdf:h(Ogb,2),getShareableInvoiceEslog:h(vgb,1),recoverInvoiceFromKsef:h(hgb,1),getInvoiceKsefState:h(bgb,1),submitInvoiceToKsef:h(Sgb,1),getInvoiceKsefUpo:h(zgb,1),create:h(fgb,1),list:ne(Igb),createCustom:h(Bgb,1),get:h(Tgb,2),update:h(Egb,2),getCreditOptions:h(Dgb,1),downloadInvoiceXRechnung:h(Rgb,1),downloadInvoiceZugferd:h(_gb,1),getVersions:h(Ngb,1),getVersion:h(Mgb,2),renderInvoicePreview:h(Ugb,2),void:h(Pgb,2),fiscalizeInvoice:h(Cgb,1),changeInvoiceBuyerOib:h(wgb,2),renderHtml:h(Agb,2),renderPdf:kgb,downloadPdf:J9b};var X9b=()=>"/items",jgb=async(d,u)=>v(X9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),e8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/items?${g}`:"/items"},Hgb=async(d,u)=>v(e8b(d),{...u,method:"GET"}),t8b=()=>"/items/categories",Lgb=async d=>v(t8b(),{...d,method:"GET"}),n8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},Ggb=async(d,u)=>v(n8b(d),{...u,method:"GET"}),s8b=()=>"/items/import/preview",Vgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(s8b(),{...u,method:"POST",body:g})},o8b=()=>"/items/import",Kgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(o8b(),{...u,method:"POST",body:g})},i8b=d=>`/items/${d}`,Zgb=async(d,u,g)=>v(i8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),a8b=d=>`/items/${d}`,qgb=async(d,u)=>v(a8b(d),{...u,method:"DELETE"}),r8b=d=>`/items/${d}/restore`,Wgb=async(d,u)=>v(r8b(d),{...u,method:"POST"}),l8b=d=>`/items/${d}/permanent`,Ygb=async(d,u)=>v(l8b(d),{...u,method:"DELETE"}),d8b=d=>`/items/${d}/inventory`,$gb=async(d,u)=>v(d8b(d),{...u,method:"GET"}),c8b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/items/${d}/inventory/movements?${E}`:`/items/${d}/inventory/movements`},Qgb=async(d,u,g)=>v(c8b(d,u),{...g,method:"GET"}),u8b=d=>`/items/${d}/inventory/movements`,Jgb=async(d,u,g)=>v(u8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),p8b=(d,u)=>`/items/${d}/inventory/movements/${u}`,Xgb=async(d,u,g)=>v(p8b(d,u),{...g,method:"DELETE"}),m8b=d=>`/items/${d}/components`,e0b=async(d,u)=>v(m8b(d),{...u,method:"GET"}),x8b=d=>`/items/${d}/components`,t0b=async(d,u,g)=>v(x8b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var gs={create:h(jgb,1),list:ne(Hgb),categories:h(Lgb,0),getItemsImportTemplate:h(Ggb,1),preview:h(Vgb,1),importItems:h(Kgb,1),update:h(Zgb,2),delete:h(qgb,1),restoreItem:h(Wgb,1),permanentDeleteItem:h(Ygb,1),getItemInventory:h($gb,1),getItemInventoryMovements:h(Qgb,2),createItemInventoryMovement:h(Jgb,2),deleteItemInventoryMovement:h(Xgb,2),listItemComponents:h(e0b,1),setItemComponents:h(t0b,2)};var g8b=()=>"/legacy-migration/auth",n0b=async(d,u)=>v(g8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y8b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/legacy-migration/organizations/${d}?${E}`:`/legacy-migration/organizations/${d}`},s0b=async(d,u,g)=>v(y8b(d,u),{...g,method:"GET"}),O8b=()=>"/legacy-migration/jobs",o0b=async(d,u)=>v(O8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v8b=()=>"/legacy-migration/jobs",i0b=async d=>v(v8b(),{...d,method:"GET"}),h8b=d=>`/legacy-migration/jobs/${d}`,a0b=async(d,u)=>v(h8b(d),{...u,method:"GET"});var ys={legacyMigrationAuth:h(n0b,1),getLegacyMigrationOrganization:h(s0b,2),create:h(o0b,1),listMigrationJobs:h(i0b,0),getMigrationJob:h(a0b,1)};var b8b=()=>"/locale/detect",r0b=async d=>v(b8b(),{...d,method:"GET"});var Os={detectLocale:h(r0b,0)};var S8b=()=>"/order-integrations/shopify/authorize",l0b=async(d,u)=>v(S8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),z8b=()=>"/order-integrations/woocommerce/authorize",d0b=async(d,u)=>v(z8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),f8b=()=>"/order-integrations/magento/authorize",c0b=async(d,u)=>v(f8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I8b=d=>`/order-integrations/magento/authorizations/${d}`,u0b=async(d,u)=>v(I8b(d),{...u,method:"GET"}),B8b=()=>"/order-integrations/shopify/resume-install",p0b=async(d,u)=>v(B8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),T8b=d=>`/order-integrations/${d}/promote-shopify-billing`,m0b=async(d,u)=>v(T8b(d),{...u,method:"POST"}),E8b=d=>`/order-integrations/${d}/sync-shopify`,x0b=async(d,u,g)=>v(E8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),D8b=d=>`/order-integrations/${d}/sync`,g0b=async(d,u,g)=>v(D8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),R8b=()=>"/order-integrations/custom/connect",y0b=async(d,u)=>v(R8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_8b=d=>`/order-integrations/${d}/custom/rotate-secret`,O0b=async(d,u)=>v(_8b(d),{...u,method:"POST"}),N8b=d=>`/order-integrations/${d}/orders`,v0b=async(d,u,g)=>v(N8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M8b=()=>"/order-integrations",h0b=async(d,u)=>v(M8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),U8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},b0b=async(d,u)=>v(U8b(d),{...u,method:"GET"}),P8b=d=>`/order-integrations/${d}`,S0b=async(d,u)=>v(P8b(d),{...u,method:"GET"}),C8b=d=>`/order-integrations/${d}`,z0b=async(d,u,g)=>v(C8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),w8b=d=>`/order-integrations/${d}`,f0b=async(d,u)=>v(w8b(d),{...u,method:"DELETE"});var vs={authorizeShopify:h(l0b,1),authorizeWooCommerce:h(d0b,1),authorizeMagento:h(c0b,1),getMagentoAuthorization:h(u0b,1),resumeShopifyInstall:h(p0b,1),promoteShopifyBilling:h(m0b,1),syncShopifyOrders:h(x0b,2),syncOrderIntegration:h(g0b,2),connectCustomStore:h(y0b,1),rotateCustomStoreSecret:h(O0b,1),pushCustomStoreOrder:h(v0b,2),create:h(h0b,1),list:ne(b0b),get:h(S0b,1),update:h(z0b,2),delete:h(f0b,1)};var A8b=()=>"/orders",I0b=async(d,u)=>v(A8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/orders?${g}`:"/orders"},B0b=async(d,u)=>v(F8b(d),{...u,method:"GET"}),k8b=d=>`/orders/${d}`,T0b=async(d,u)=>v(k8b(d),{...u,method:"GET"}),j8b=d=>`/orders/${d}`,E0b=async(d,u,g)=>v(j8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H8b=d=>`/orders/${d}`,D0b=async(d,u)=>v(H8b(d),{...u,method:"DELETE"}),L8b=d=>`/orders/${d}/process`,R0b=async(d,u)=>v(L8b(d),{...u,method:"POST"}),G8b=d=>`/orders/${d}/cancel`,_0b=async(d,u)=>v(G8b(d),{...u,method:"POST"}),V8b=d=>`/orders/${d}/reissue`,N0b=async(d,u)=>v(V8b(d),{...u,method:"POST"}),K8b=()=>"/orders/export/pdf",M0b=async(d,u)=>v(K8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Z8b=d=>`/orders/export/pdf/${d}`,U0b=async(d,u)=>v(Z8b(d),{...u,method:"GET"}),q8b=d=>`/orders/export/pdf/${d}/download`,P0b=async(d,u)=>v(q8b(d),{...u,method:"GET"});var hs={create:h(I0b,1),list:ne(B0b),get:h(T0b,1),update:h(E0b,2),delete:h(D0b,1),processOrder:h(R0b,1),cancelOrder:h(_0b,1),reissueOrder:h(N0b,1),startOrdersPdfExport:h(M0b,1),getOrdersPdfExportJob:h(U0b,1),downloadOrdersPdfExport:h(P0b,1)};var W8b=()=>"/payment-reminders/send",C0b=async(d,u)=>v(W8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},w0b=async(d,u)=>v(Y8b(d),{...u,method:"GET"});var bs={sendPaymentReminder:h(C0b,1),list:ne(w0b)};var $8b=()=>"/payments",A0b=async(d,u)=>v($8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Q8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payments?${g}`:"/payments"},F0b=async(d,u)=>v(Q8b(d),{...u,method:"GET"}),J8b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/payments/${d}?${E}`:`/payments/${d}`},k0b=async(d,u,g)=>v(J8b(d,u),{...g,method:"GET"}),X8b=d=>`/payments/${d}`,j0b=async(d,u,g)=>v(X8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eYb=d=>`/payments/${d}`,H0b=async(d,u)=>v(eYb(d),{...u,method:"DELETE"}),tYb=d=>`/payments/${d}/restore`,L0b=async(d,u)=>v(tYb(d),{...u,method:"POST"}),nYb=d=>`/payments/${d}/permanent`,G0b=async(d,u)=>v(nYb(d),{...u,method:"DELETE"}),sYb=()=>"/bank-imports",V0b=async(d,u)=>{let g=new FormData;return g.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&g.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&g.append("column_mapping",d.column_mapping),d.ledger_account_code!==void 0&&d.ledger_account_code!==null&&g.append("ledger_account_code",d.ledger_account_code),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),v(sYb(),{...u,method:"POST",body:g})},oYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},K0b=async(d,u)=>v(oYb(d),{...u,method:"GET"}),iYb=d=>`/bank-imports/${d}`,Z0b=async(d,u)=>v(iYb(d),{...u,method:"GET"}),aYb=d=>`/bank-imports/${d}/summary`,q0b=async(d,u)=>v(aYb(d),{...u,method:"GET"}),rYb=d=>`/bank-imports/${d}/match`,W0b=async(d,u)=>v(rYb(d),{...u,method:"POST"}),lYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},Y0b=async(d,u)=>v(lYb(d),{...u,method:"GET"}),dYb=d=>`/bank-transactions/${d}`,$0b=async(d,u)=>v(dYb(d),{...u,method:"GET"}),cYb=d=>`/bank-transactions/${d}/link`,Q0b=async(d,u,g)=>v(cYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),uYb=d=>`/bank-transactions/${d}/confirm-fee`,J0b=async(d,u,g)=>v(uYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),pYb=d=>`/bank-transactions/${d}/categorize`,X0b=async(d,u,g)=>v(pYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),mYb=()=>"/bank-transactions/apply-category-suggestions",eyb=async(d,u)=>v(mYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),xYb=d=>`/bank-transactions/${d}/ignore`,tyb=async(d,u)=>v(xYb(d),{...u,method:"POST"}),gYb=d=>`/bank-transactions/${d}/unlink`,nyb=async(d,u)=>v(gYb(d),{...u,method:"POST"});var Ss={create:h(A0b,1),list:ne(F0b),get:h(k0b,2),update:h(j0b,2),delete:h(H0b,1),restorePayment:h(L0b,1),permanentDeletePayment:h(G0b,1),importBankStatement:h(V0b,1),listBankImports:h(K0b,1),getBankImport:h(Z0b,1),getBankImportSummary:h(q0b,1),rematchBankImport:h(W0b,1),listBankTransactions:h(Y0b,1),getBankTransaction:h($0b,1),linkBankTransaction:h(Q0b,2),confirmBankTransactionFee:h(J0b,2),categorizeBankTransaction:h(X0b,2),applyBankTransactionCategorySuggestions:h(eyb,1),ignoreBankTransaction:h(tyb,1),unlinkBankTransaction:h(nyb,1)};var yYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},syb=async(d,u)=>v(yYb(d),{...u,method:"GET"}),OYb=()=>"/pos/tables",oyb=async(d,u)=>v(OYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),vYb=d=>`/pos/tables/${d}`,iyb=async(d,u,g)=>v(vYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hYb=d=>`/pos/tables/${d}`,ayb=async(d,u)=>v(hYb(d),{...u,method:"DELETE"}),bYb=d=>`/pos/tabs/${d}/items`,ryb=async(d,u,g)=>v(bYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),SYb=d=>`/pos/tabs/${d}/claim`,lyb=async(d,u,g)=>v(SYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),zYb=d=>`/pos/tabs/${d}/release`,dyb=async(d,u,g)=>v(zYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),fYb=d=>`/pos/tabs/${d}/close`,cyb=async(d,u,g)=>v(fYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),IYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},uyb=async(d,u)=>v(IYb(d),{...u,method:"GET"}),BYb=()=>"/pos/tabs",pyb=async(d,u)=>v(BYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TYb=d=>`/pos/tabs/${d}`,myb=async(d,u)=>v(TYb(d),{...u,method:"GET"}),EYb=d=>`/pos/tabs/${d}`,xyb=async(d,u,g)=>v(EYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),DYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/pos/tabs/${d}?${E}`:`/pos/tabs/${d}`},gyb=async(d,u,g)=>v(DYb(d,u),{...g,method:"DELETE"}),RYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},yyb=async(d,u)=>v(RYb(d),{...u,method:"GET"}),_Yb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},Oyb=async(d,u)=>v(_Yb(d),{...u,method:"GET"}),NYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},vyb=async(d,u)=>v(NYb(d),{...u,method:"GET"}),MYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},hyb=async(d,u)=>v(MYb(d),{...u,method:"GET"}),UYb=()=>"/pos/operators",byb=async d=>v(UYb(),{...d,method:"GET"}),PYb=()=>"/pos/operators/enrol",Syb=async(d,u)=>v(PYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),CYb=()=>"/pos/operators/switch",zyb=async(d,u)=>v(CYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wYb=d=>`/pos/operators/${d}/pin`,fyb=async(d,u,g)=>v(wYb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),AYb=d=>`/pos/operators/${d}/pin`,Iyb=async(d,u)=>v(AYb(d),{...u,method:"DELETE"});var FYb=h(gyb,2),zs={listTables:ne(syb),createTable:h(oyb,1),updateTable:h(iyb,2),deleteTable:h(ayb,1),appendTabItems:h(ryb,2),claimTab:h(lyb,2),releaseTab:h(dyb,2),closeTab:h(cyb,2),listTabs:ne(uyb),createTab:h(pyb,1),getTab:h(myb,1),updateTab:h(xyb,2),cancelTab:Object.assign((...d)=>FYb(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:h(yyb,1),exportPosMonthlyReport:h(Oyb,1),dailyReport:h(vyb,1),getPosMonthlyReport:h(hyb,1),listOperators:h(byb,0),enrolPosOperator:h(Syb,1),switchOperator:h(zyb,1),setOperatorPin:h(fyb,2),clearOperatorPin:h(Iyb,1)};var kYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/items/prices?${g}`:"/items/prices"},Byb=async(d,u)=>v(kYb(d),{...u,method:"GET"}),jYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/price-lists?${g}`:"/price-lists"},Tyb=async(d,u)=>v(jYb(d),{...u,method:"GET"}),HYb=()=>"/price-lists",Eyb=async(d,u)=>v(HYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),LYb=d=>`/price-lists/${d}`,Dyb=async(d,u)=>v(LYb(d),{...u,method:"GET"}),GYb=d=>`/price-lists/${d}`,Ryb=async(d,u,g)=>v(GYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VYb=d=>`/price-lists/${d}`,_yb=async(d,u)=>v(VYb(d),{...u,method:"DELETE"}),KYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/price-lists/${d}/prices?${E}`:`/price-lists/${d}/prices`},Nyb=async(d,u,g)=>v(KYb(d,u),{...g,method:"GET"}),ZYb=d=>`/price-lists/${d}/prices`,Myb=async(d,u,g)=>v(ZYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qYb=d=>`/price-lists/${d}/prices/bulk`,Uyb=async(d,u,g)=>v(qYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WYb=(d,u)=>`/price-lists/${d}/prices/${u}`,Pyb=async(d,u,g)=>v(WYb(d,u),{...g,method:"DELETE"});var fs={resolveItemPrices:h(Byb,1),list:ne(Tyb),create:h(Eyb,1),get:h(Dyb,1),update:h(Ryb,2),delete:h(_yb,1),listPriceListPrices:h(Nyb,2),upsertPriceListPrices:h(Myb,2),bulkSetPriceListPrices:h(Uyb,2),removePriceListPrice:h(Pyb,2)};var YYb=()=>"/fiscalization/pt/atcud-series",Cyb=async(d,u)=>v(YYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$Yb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},wyb=async(d,u)=>v($Yb(d),{...u,method:"GET"}),QYb=d=>`/fiscalization/pt/atcud-series/${d}`,Ayb=async(d,u)=>v(QYb(d),{...u,method:"GET"}),JYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},Fyb=async(d,u)=>v(JYb(d),{...u,method:"POST"}),XYb=d=>`/fiscalization/pt/atcud-series/${d}/retire`,kyb=async(d,u)=>v(XYb(d),{...u,method:"POST"});var Is={create:h(Cyb,1),list:ne(wyb),get:h(Ayb,1),getActive:h(Fyb,1),retirePtAtcudSeries:h(kyb,1)};var e$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},jyb=async(d,u)=>v(e$b(d),{...u,method:"GET"});var Bs={generateReport:h(jyb,1)};var t$b=d=>`/purchase-orders/shareable/${d}`,Hyb=async(d,u)=>v(t$b(d),{...u,method:"GET"}),n$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/html?${E}`:`/purchase-orders/shareable/${d}/html`},Lyb=async(d,u,g)=>v(n$b(d,u),{...g,method:"GET"}),s$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/pdf?${E}`:`/purchase-orders/shareable/${d}/pdf`},Gyb=async(d,u,g)=>v(s$b(d,u),{...g,method:"GET"}),o$b=()=>"/purchase-orders",Vyb=async(d,u)=>v(o$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),i$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},Kyb=async(d,u)=>v(i$b(d),{...u,method:"GET"}),a$b=d=>`/purchase-orders/${d}`,Zyb=async(d,u)=>v(a$b(d),{...u,method:"GET"}),r$b=d=>`/purchase-orders/${d}`,qyb=async(d,u,g)=>v(r$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),l$b=d=>`/purchase-orders/${d}/versions`,Wyb=async(d,u)=>v(l$b(d),{...u,method:"GET"}),d$b=(d,u)=>`/purchase-orders/${d}/versions/${u}`,Yyb=async(d,u,g)=>v(d$b(d,u),{...g,method:"GET"}),c$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},$yb=async(d,u,g)=>v(c$b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),u$b=d=>`/purchase-orders/${d}/void`,Qyb=async(d,u,g)=>v(u$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Ts={getShareablePurchaseOrder:h(Hyb,1),getShareablePurchaseOrderHtml:h(Lyb,2),getShareablePurchaseOrderPdf:h(Gyb,2),create:h(Vyb,1),list:ne(Kyb),get:h(Zyb,1),update:h(qyb,2),getVersions:h(Wyb,1),getVersion:h(Yyb,2),renderPurchaseOrderPreview:h($yb,2),void:h(Qyb,2)};var p$b=()=>"/recurring-invoices",Jyb=async(d,u)=>v(p$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),m$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},Xyb=async(d,u)=>v(m$b(d),{...u,method:"GET"}),x$b=d=>`/recurring-invoices/${d}`,eOb=async(d,u)=>v(x$b(d),{...u,method:"GET"}),g$b=d=>`/recurring-invoices/${d}`,tOb=async(d,u,g)=>v(g$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),y$b=d=>`/recurring-invoices/${d}`,nOb=async(d,u)=>v(y$b(d),{...u,method:"DELETE"}),O$b=d=>`/recurring-invoices/${d}/restore`,sOb=async(d,u)=>v(O$b(d),{...u,method:"POST"}),v$b=d=>`/recurring-invoices/${d}/permanent`,oOb=async(d,u)=>v(v$b(d),{...u,method:"DELETE"}),h$b=d=>`/recurring-invoices/${d}/pause`,iOb=async(d,u)=>v(h$b(d),{...u,method:"POST"}),b$b=d=>`/recurring-invoices/${d}/resume`,aOb=async(d,u)=>v(b$b(d),{...u,method:"POST"}),S$b=d=>`/recurring-invoices/${d}/trigger`,rOb=async(d,u)=>v(S$b(d),{...u,method:"POST"});var Es={create:h(Jyb,1),list:ne(Xyb),get:h(eOb,1),update:h(tOb,2),delete:h(nOb,1),restoreRecurringInvoice:h(sOb,1),permanentDeleteRecurringInvoice:h(oOb,1),pauseRecurringInvoice:h(iOb,1),resumeRecurringInvoice:h(aOb,1),triggerRecurringInvoice:h(rOb,1)};var z$b=()=>"/revenue-recognition/settings",lOb=async d=>v(z$b(),{...d,method:"GET"}),f$b=()=>"/revenue-recognition/settings",dOb=async(d,u)=>v(f$b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I$b=()=>"/revenue-recognition/backfill",cOb=async(d,u)=>v(I$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),B$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},uOb=async(d,u)=>v(B$b(d),{...u,method:"GET"}),T$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},pOb=async(d,u)=>v(T$b(d),{...u,method:"GET"}),E$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},mOb=async(d,u)=>v(E$b(d),{...u,method:"GET"}),D$b=d=>`/revenue-recognition/documents/${d}`,xOb=async(d,u)=>v(D$b(d),{...u,method:"GET"});var Ds={getSettings:h(lOb,0),updateSettings:h(dOb,1),backfill:h(cOb,1),getReport:h(uOb,1),getDetails:h(pOb,1),listLines:h(mOb,1),getDocumentSchedule:h(xOb,1)};var R$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/orders/${d}/shipment-draft?${E}`:`/orders/${d}/shipment-draft`},gOb=async(d,u,g)=>v(R$b(d,u),{...g,method:"GET"}),_$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/shipments?${g}`:"/shipments"},yOb=async(d,u)=>v(_$b(d),{...u,method:"GET"}),N$b=()=>"/shipments",OOb=async(d,u)=>v(N$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),M$b=()=>"/shipments/labels",vOb=async(d,u)=>v(M$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),U$b=d=>`/shipments/${d}`,hOb=async(d,u)=>v(U$b(d),{...u,method:"GET"}),P$b=d=>`/shipments/${d}/label`,bOb=async(d,u)=>v(P$b(d),{...u,method:"GET"}),C$b=d=>`/shipments/${d}/cancel`,SOb=async(d,u,g)=>v(C$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Rs={getOrderShipmentDraft:h(gOb,2),listShipments:h(yOb,1),create:h(OOb,1),downloadShipmentLabels:h(vOb,1),getShipment:h(hOb,1),downloadShipmentLabel:h(bOb,1),cancelShipment:h(SOb,2)};var w$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/shipping-connections?${g}`:"/shipping-connections"},zOb=async(d,u)=>v(w$b(d),{...u,method:"GET"}),A$b=()=>"/shipping-connections",fOb=async(d,u)=>v(A$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F$b=d=>`/shipping-connections/${d}`,IOb=async(d,u)=>v(F$b(d),{...u,method:"GET"}),k$b=d=>`/shipping-connections/${d}`,BOb=async(d,u,g)=>v(k$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),j$b=d=>`/shipping-connections/${d}`,TOb=async(d,u)=>v(j$b(d),{...u,method:"DELETE"});var _s={listShippingConnections:h(zOb,1),create:h(fOb,1),getShippingConnection:h(IOb,1),update:h(BOb,2),delete:h(TOb,1)};var H$b=()=>"/stripe-app/marketplace-authorize",EOb=async(d,u)=>v(H$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L$b=()=>"/stripe-app/connect",DOb=async(d,u)=>v(L$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),G$b=()=>"/stripe-app/entity-connection",ROb=async d=>v(G$b(),{...d,method:"GET"}),V$b=()=>"/stripe-app/entity-connection",_Ob=async d=>v(V$b(),{...d,method:"DELETE"}),K$b=()=>"/stripe-app/entity-settings",NOb=async d=>v(K$b(),{...d,method:"GET"}),Z$b=()=>"/stripe-app/entity-settings",MOb=async(d,u)=>v(Z$b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Ns={stripeAppMarketplaceAuthorize:h(EOb,1),stripeAppConnect:h(DOb,1),stripeAppEntityGetConnection:h(ROb,0),stripeAppEntityDisconnect:h(_Ob,0),stripeAppEntityGetSettings:h(NOb,0),stripeAppEntityUpdateSettings:h(MOb,1)};var q$b=()=>"/subscriptions",UOb=async d=>v(q$b(),{...d,method:"GET"}),W$b=()=>"/subscriptions/spending-limit",POb=async(d,u)=>v(W$b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y$b=()=>"/subscriptions/check-entity-limit",COb=async d=>v(Y$b(),{...d,method:"GET"});var Ms={getCurrent:h(UOb,0),update:h(POb,1),checkEntityLimit:h(COb,0)};var $$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},wOb=async(d,u)=>v($$b(d),{...u,method:"GET"});var Us={listUsTaxRateEstimates:h(wOb,1)};var Q$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},AOb=async(d,u)=>v(Q$b(d),{...u,method:"GET"}),J$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},FOb=async(d,u)=>v(J$b(d),{...u,method:"GET"}),X$b=()=>"/tax-reports/payments",kOb=async(d,u)=>v(X$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eQb=d=>`/tax-reports/payments/${d}`,jOb=async(d,u,g)=>v(eQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),tQb=d=>`/tax-reports/payments/${d}`,HOb=async(d,u)=>v(tQb(d),{...u,method:"DELETE"}),nQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},LOb=async(d,u)=>v(nQb(d),{...u,method:"GET"}),sQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},GOb=async(d,u)=>v(sQb(d),{...u,method:"POST"}),oQb=()=>"/tax-reports/si/profile",VOb=async d=>v(oQb(),{...d,method:"GET"}),iQb=()=>"/tax-reports/si/profile",KOb=async(d,u)=>v(iQb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),aQb=()=>"/tax-reports/si/yearly/normirani/review",ZOb=async(d,u)=>v(aQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),rQb=()=>"/tax-reports/si/yearly/normirani/export",qOb=async(d,u)=>v(rQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lQb=()=>"/tax-reports/si/accounting/vod/export",WOb=async(d,u)=>v(lQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),dQb=()=>"/tax-reports/si/accounting/minimax/export",YOb=async(d,u)=>v(dQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cQb=()=>"/tax-reports/si/accounting/vasco/export",$Ob=async(d,u)=>v(cQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),uQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},QOb=async(d,u)=>v(uQb(d),{...u,method:"GET"});var Ps={getTaxLiabilityReport:h(AOb,1),list:ne(FOb),create:h(kOb,1),update:h(jOb,2),delete:h(HOb,1),getEuOssReport:h(LOb,1),generateKirExport:h(GOb,1),getSloveniaTaxProfile:h(VOb,0),updateSloveniaTaxProfile:h(KOb,1),reviewSloveniaYearlyNormiraniReport:h(ZOb,1),exportSloveniaYearlyNormiraniReport:h(qOb,1),exportSloveniaVodXml:h(WOb,1),exportSloveniaMinimaxXml:h(YOb,1),exportSloveniaVascoXml:h($Ob,1),exportQuickbooksCsv:h(QOb,1),listEmployees:h(Ae,1),registerEmployee:h(Fe,1),getEmployee:h(ke,1),modifyEmployee:h(je,2),archiveEmployee:h(He,1),getEmployeeAttendance:h(Le,2),replaceEmployeeAttendance:h(Ge,3),resolvePayrollParameters:h(Ve,1),getPayrollParameterHistory:h(Ke,1),setPayrollParameterOverride:h(Ze,3),preview:h(qe,1),draftVatReturn:h(We,1),listVatReturns:h(Ye,1),getVatReturn:h($e,1),recomputeVatReturn:h(Qe,1),approveVatReturn:h(Je,1),submitVatReturn:h(Xe,2),reopenVatReturn:h(et,1),exportVatReturn:h(tt,2),listFilings:h(nt,1),completeFiling:h(st,2),reopenFiling:h(ot,1),dismissFiling:h(it,2),listAccountFilingsCalendar:h(at,1)};var pQb=()=>"/taxes",JOb=async(d,u)=>v(pQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),mQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/taxes?${g}`:"/taxes"},XOb=async(d,u)=>v(mQb(d),{...u,method:"GET"}),xQb=d=>`/taxes/${d}`,evb=async(d,u,g)=>v(xQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),gQb=d=>`/taxes/${d}`,tvb=async(d,u,g)=>v(gQb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),yQb=d=>`/taxes/${d}`,nvb=async(d,u)=>v(yQb(d),{...u,method:"DELETE"}),OQb=d=>`/taxes/${d}/restore`,svb=async(d,u)=>v(OQb(d),{...u,method:"POST"}),vQb=d=>`/taxes/${d}/permanent`,ovb=async(d,u)=>v(vQb(d),{...u,method:"DELETE"});var Cs={create:h(JOb,1),list:ne(XOb),update:h(evb,2),replaceTax:h(tvb,2),delete:h(nvb,1),restoreTax:h(svb,1),permanentDeleteTax:h(ovb,1)};var hQb=()=>"/fiscalization/ticketbai/settings",ivb=async d=>v(hQb(),{...d,method:"GET"}),bQb=()=>"/fiscalization/ticketbai/settings",avb=async(d,u)=>v(bQb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),SQb=()=>"/fiscalization/ticketbai/settings/certificate",rvb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(SQb(),{...u,method:"POST",body:g})},zQb=d=>`/fiscalization/ticketbai/records/${d}`,lvb=async(d,u)=>v(zQb(d),{...u,method:"GET"}),fQb=d=>`/fiscalization/ticketbai/records/${d}/xml`,dvb=async(d,u)=>v(fQb(d),{...u,method:"GET"}),IQb=d=>`/fiscalization/ticketbai/records/${d}/retry`,cvb=async(d,u)=>v(IQb(d),{...u,method:"POST"}),BQb=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,uvb=async(d,u)=>v(BQb(d),{...u,method:"POST"});var ws={getSettings:h(ivb,0),updateSettings:h(avb,1),uploadCertificate:h(rvb,1),getRecord:h(lvb,1),downloadRecordXml:h(dvb,1),retryRecord:h(cvb,1),reconcileRecord:h(uvb,1)};var TQb=()=>"/transaction-type/check",pvb=async(d,u)=>v(TQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var As={checkTransactionType:h(pvb,1)};var EQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},mvb=async(d,u)=>v(EQb(d),{...u,method:"GET"}),DQb=()=>"/travel-orders",xvb=async(d,u)=>v(DQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),RQb=()=>"/travel-orders/preview",gvb=async(d,u)=>v(RQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_Qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},yvb=async(d,u,g)=>v(_Qb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),NQb=()=>"/travel-orders/route-distance",Ovb=async(d,u)=>v(NQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MQb=d=>`/travel-orders/${d}`,vvb=async(d,u)=>v(MQb(d),{...u,method:"GET"}),UQb=d=>`/travel-orders/${d}`,hvb=async(d,u,g)=>v(UQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),PQb=d=>`/travel-orders/${d}`,bvb=async(d,u)=>v(PQb(d),{...u,method:"DELETE"}),CQb=d=>`/travel-orders/${d}/approve`,Svb=async(d,u)=>v(CQb(d),{...u,method:"POST"}),wQb=d=>`/travel-orders/${d}/settle`,zvb=async(d,u)=>v(wQb(d),{...u,method:"POST"}),AQb=d=>`/travel-orders/${d}/reopen`,fvb=async(d,u,g)=>v(AQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),FQb=d=>`/travel-orders/${d}/cancel`,Ivb=async(d,u)=>v(FQb(d),{...u,method:"POST"}),kQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/pdf?${E}`:`/travel-orders/${d}/pdf`},Bvb=async(d,u,g)=>v(kQb(d,u),{...g,method:"GET"}),jQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/html?${E}`:`/travel-orders/${d}/html`},Tvb=async(d,u,g)=>v(jQb(d,u),{...g,method:"GET"});var Fs={list:ne(mvb),create:h(xvb,1),preview:h(gvb,1),renderTravelOrderPreview:h(yvb,2),calculateTravelOrderRouteDistance:h(Ovb,1),get:h(vvb,1),update:h(hvb,2),delete:h(bvb,1),approveTravelOrder:h(Svb,1),settleTravelOrder:h(zvb,1),reopenTravelOrder:h(fvb,2),cancelTravelOrder:h(Ivb,1),renderPdf:h(Bvb,2),renderHtml:h(Tvb,2)};var Ce="https://eu.spaceinvoices.com";var HQb=d=>`/documents/${d}/ujp`,Evb=async(d,u)=>v(HQb(d),{...u,method:"GET"});var ks={download:h(Evb,1)};var LQb=()=>"/upload/image",Dvb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(LQb(),{...u,method:"POST",body:g})};var js={uploadImage:h(Dvb,1)};var GQb=()=>"/accounts/two-factor-policy",Rvb=async d=>v(GQb(),{...d,method:"GET"}),VQb=()=>"/accounts/two-factor-policy",_vb=async(d,u)=>v(VQb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KQb=d=>`/entities/${d}/two-factor-policy`,Nvb=async(d,u)=>v(KQb(d),{...u,method:"GET"}),ZQb=d=>`/entities/${d}/two-factor-policy`,Mvb=async(d,u,g)=>v(ZQb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qQb=()=>"/users/two-factor/setup",Uvb=async(d,u)=>v(qQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WQb=()=>"/users/two-factor/enable",Pvb=async(d,u)=>v(WQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),YQb=()=>"/users/me/two-factor",Cvb=async d=>v(YQb(),{...d,method:"GET"}),$Qb=()=>"/users/me/two-factor/setup",wvb=async(d,u)=>v($Qb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),QQb=()=>"/users/me/two-factor/enable",Avb=async(d,u)=>v(QQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),JQb=()=>"/users/me/two-factor/disable",Fvb=async(d,u)=>v(JQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),XQb=()=>"/users/two-factor/verify",kvb=async(d,u)=>v(XQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eJb=()=>"/users/login",jvb=async(d,u)=>v(eJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),tJb=()=>"/users/signup",Hvb=async(d,u)=>v(tJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nJb=()=>"/users/password-reset",Lvb=async(d,u)=>v(nJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),sJb=()=>"/users/password-reset/confirm",Gvb=async(d,u)=>v(sJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),oJb=()=>"/users/me/accounts",Vvb=async d=>v(oJb(),{...d,method:"GET"}),iJb=()=>"/users/me",Kvb=async d=>v(iJb(),{...d,method:"GET"}),aJb=()=>"/users/me",Zvb=async(d,u)=>v(aJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),rJb=()=>"/users/me/account-deletion",qvb=async d=>v(rJb(),{...d,method:"POST"}),lJb=()=>"/users/me/settings/furs",Wvb=async(d,u)=>v(lJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),dJb=()=>"/users/me/settings/fina",Yvb=async(d,u)=>v(dJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Hs={getAccountTwoFactorPolicy:h(Rvb,0),updateAccountTwoFactorPolicy:h(_vb,1),getEntityTwoFactorPolicy:h(Nvb,1),updateEntityTwoFactorPolicy:h(Mvb,2),setupRequiredTwoFactor:h(Uvb,1),enableRequiredTwoFactor:h(Pvb,1),getTwoFactorConfiguration:h(Cvb,0),setupTwoFactor:h(wvb,1),enableTwoFactor:h(Avb,1),disableTwoFactor:h(Fvb,1),verifyTwoFactor:h(kvb,1),login:h(jvb,1),signup:h(Hvb,1),requestPasswordReset:h(Lvb,1),confirmPasswordReset:h(Gvb,1),listMyAccounts:h(Vvb,0),getMe:h(Kvb,0),update:h(Zvb,1),requestAccountDeletion:h(qvb,0),updateFursSettings:h(Wvb,1),updateFinaSettings:h(Yvb,1)};var cJb=()=>"/fiscalization/verifactu/settings",$vb=async d=>v(cJb(),{...d,method:"GET"}),uJb=()=>"/fiscalization/verifactu/settings",Qvb=async(d,u)=>v(uJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pJb=()=>"/fiscalization/verifactu/certificate",Jvb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(pJb(),{...u,method:"POST",body:g})},mJb=d=>`/fiscalization/verifactu/records/${d}`,Xvb=async(d,u)=>v(mJb(d),{...u,method:"GET"}),xJb=d=>`/fiscalization/verifactu/records/${d}/retry`,ehb=async(d,u)=>v(xJb(d),{...u,method:"POST"}),gJb=d=>`/fiscalization/verifactu/records/${d}/correct`,thb=async(d,u,g)=>v(gJb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),yJb=d=>`/fiscalization/verifactu/records/${d}/cancel`,nhb=async(d,u,g)=>v(yJb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Ls={getSettings:h($vb,0),updateSettings:h(Qvb,1),uploadCertificate:h(Jvb,1),getEvidence:h(Xvb,1),retryRecord:h(ehb,1),correctRecord:h(thb,2),cancelRecord:h(nhb,2)};var OJb=()=>"/vies/check",shb=async(d,u)=>v(OJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Gs={checkVies:h(shb,1)};var vJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},ohb=async(d,u)=>v(vJb(d),{...u,method:"GET"}),hJb=()=>"/warehouses",ihb=async(d,u)=>v(hJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),bJb=d=>`/warehouses/${d}`,ahb=async(d,u)=>v(bJb(d),{...u,method:"GET"}),SJb=d=>`/warehouses/${d}`,rhb=async(d,u,g)=>v(SJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),zJb=d=>`/warehouses/${d}`,lhb=async(d,u)=>v(zJb(d),{...u,method:"DELETE"});var Vs={list:ne(ohb),create:h(ihb,1),get:h(ahb,1),update:h(rhb,2),delete:h(lhb,1)};var fJb=()=>"/webhooks",dhb=async(d,u)=>v(fJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),IJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},chb=async(d,u)=>v(IJb(d),{...u,method:"GET"}),BJb=d=>`/webhooks/${d}`,uhb=async(d,u)=>v(BJb(d),{...u,method:"GET"}),TJb=d=>`/webhooks/${d}`,phb=async(d,u,g)=>v(TJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),EJb=d=>`/webhooks/${d}`,mhb=async(d,u)=>v(EJb(d),{...u,method:"DELETE"}),DJb=d=>`/webhooks/${d}/test`,xhb=async(d,u)=>v(DJb(d),{...u,method:"POST"});var RJb=d=>`/webhooks/${d}/rotate-secret`,ghb=async(d,u)=>v(RJb(d),{...u,method:"POST"});var Ks={create:h(dhb,1),list:ne(chb),get:h(uhb,1),update:h(phb,2),delete:h(mhb,1),testWebhook:h(xhb,1),rotateWebhookSecret:h(ghb,1)};var _Jb=()=>"/white-label-subscriptions",yhb=async d=>v(_Jb(),{...d,method:"GET"}),NJb=()=>"/white-label-subscriptions/plans",Ohb=async d=>v(NJb(),{...d,method:"GET"}),MJb=d=>`/white-label-subscriptions/check-feature/${d}`,vhb=async(d,u)=>v(MJb(d),{...u,method:"GET"}),UJb=d=>`/white-label-subscriptions/check-limit/${d}`,hhb=async(d,u)=>v(UJb(d),{...u,method:"GET"}),PJb=()=>"/white-label-subscriptions/billing-email",bhb=async(d,u)=>v(PJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zs={getCurrentWLSubscription:h(yhb,0),list:h(Ohb,0),checkWLFeature:h(vhb,1),checkWLLimit:h(hhb,1),update:h(bhb,1)};var CJb=()=>"/white-labels/current",Shb=async d=>v(CJb(),{...d,method:"GET"}),wJb=()=>"/white-labels/me",zhb=async d=>v(wJb(),{...d,method:"GET"});var qs={getCurrentWhiteLabel:h(Shb,0),getMyWhiteLabel:h(zhb,0)};var Pe=class{sdkConfig;accountWebhooks=Y(En,()=>this.sdkConfig);accounting=Y(Dn,()=>this.sdkConfig);activities=Y(Rn,()=>this.sdkConfig);advanceInvoices=Y(_n,()=>this.sdkConfig);businessUnits=Y(Nn,()=>this.sdkConfig);companyRegistry=Y(Mn,()=>this.sdkConfig);creditNotes=Y(Un,()=>this.sdkConfig);currency=Y(Pn,()=>this.sdkConfig);customers=Y(Cn,()=>this.sdkConfig);deliveryNotes=Y(wn,()=>this.sdkConfig);documents=Y(kn,()=>this.sdkConfig);eInvoicing=Y(Ln,()=>this.sdkConfig);eSlog=Y(Gn,()=>this.sdkConfig);eetCertificate=Y(Vn,()=>this.sdkConfig);eetSettings=Y(Kn,()=>this.sdkConfig);email=Y(Zn,()=>this.sdkConfig);entities=Y(qn,()=>this.sdkConfig);entityApiKeys=Y(Wn,()=>this.sdkConfig);entityInvitations=Y(Yn,()=>this.sdkConfig);entityStats=Y($n,()=>this.sdkConfig);entityUsers=Y(Qn,()=>this.sdkConfig);estimates=Y(Jn,()=>this.sdkConfig);expenses=Y(Xn,()=>this.sdkConfig);exports=Y(es,()=>this.sdkConfig);files=Y(ts,()=>this.sdkConfig);finaCertificate=Y(ns,()=>this.sdkConfig);finaDevices=Y(ss,()=>this.sdkConfig);finaPremises=Y(os,()=>this.sdkConfig);finaSettings=Y(is,()=>this.sdkConfig);financialCategories=Y(as,()=>this.sdkConfig);fursCertificate=Y(rs,()=>this.sdkConfig);fursDevices=Y(ls,()=>this.sdkConfig);fursInternalAct=Y(ds,()=>this.sdkConfig);fursPremises=Y(cs,()=>this.sdkConfig);fursSettings=Y(us,()=>this.sdkConfig);health=Y(ps,()=>this.sdkConfig);invoices=Y(xs,()=>this.sdkConfig);items=Y(gs,()=>this.sdkConfig);legacyMigration=Y(ys,()=>this.sdkConfig);locale=Y(Os,()=>this.sdkConfig);orderIntegrations=Y(vs,()=>this.sdkConfig);orders=Y(hs,()=>this.sdkConfig);paymentReminders=Y(bs,()=>this.sdkConfig);payments=Y(Ss,()=>this.sdkConfig);pointOfSale=Y(zs,()=>this.sdkConfig);priceLists=Y(fs,()=>this.sdkConfig);ptAtcudSeries=Y(Is,()=>this.sdkConfig);ptSafT=Y(Bs,()=>this.sdkConfig);purchaseOrders=Y(Ts,()=>this.sdkConfig);recurringInvoices=Y(Es,()=>this.sdkConfig);revenueRecognition=Y(Ds,()=>this.sdkConfig);shipments=Y(Rs,()=>this.sdkConfig);shippingConnections=Y(_s,()=>this.sdkConfig);stripeApp=Y(Ns,()=>this.sdkConfig);subscriptions=Y(Ms,()=>this.sdkConfig);taxRateEstimates=Y(Us,()=>this.sdkConfig);taxReports=Y(Ps,()=>this.sdkConfig);taxes=Y(Cs,()=>this.sdkConfig);ticketBai=Y(ws,()=>this.sdkConfig);transactionType=Y(As,()=>this.sdkConfig);travelOrders=Y(Fs,()=>this.sdkConfig);ujp=Y(ks,()=>this.sdkConfig);upload=Y(js,()=>this.sdkConfig);users=Y(Hs,()=>this.sdkConfig);veriFactu=Y(Ls,()=>this.sdkConfig);vies=Y(Gs,()=>this.sdkConfig);warehouses=Y(Vs,()=>this.sdkConfig);webhooks=Y(Ks,()=>this.sdkConfig);whiteLabelSubscriptions=Y(Zs,()=>this.sdkConfig);whiteLabels=Y(qs,()=>this.sdkConfig);constructor(u){let g=typeof u=="string"?{accessToken:u}:u,E=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Ce,getAccessToken:E,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function AJb(d){let u=typeof d=="string"?{accessToken:d}:d,g=typeof u.accessToken=="function"?u.accessToken:()=>u.accessToken;kdb({baseUrl:u.basePath??Ce,getAccessToken:g,clientName:u.clientName??"js-sdk",onUnauthorized:u.onUnauthorized,requestTimeoutMs:u.requestTimeoutMs}),Bn(u.accountId??null);}
144
+ Searches across number, traveler name, purpose, origin, and destination.`)}),v3b=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.")}),Vnb=200,Knb=0,Znb=1e6,qnb=/^\d{4}-\d{2}-\d{2}$/,h3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Vnb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Knb).max(Znb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(qnb).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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")}),b3b=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.")}),Wnb=200,Ynb=200,$nb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Qnb=500,Jnb=500,Xnb=500,esb=/^[A-Za-z]{2}$/,tsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,nsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,ssb=20,osb=0,isb=1e5,asb=0,rsb=60,lsb=0,dsb=1e4,csb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,usb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,psb=500,msb=500,xsb=0,gsb=1e5,ysb=0,Osb=60,vsb=62,hsb=0,bsb=1e6,Ssb=200,zsb=0,fsb=1e6,Isb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Bsb=100,Tsb=2e3,S3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(Wnb).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(Ynb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex($nb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(Qnb).describe("Business purpose of the trip."),origin:e__namespace.string().max(Jnb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(Xnb).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(esb).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.string().regex(tsb).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e__namespace.string().regex(nsb).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(ssb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.number().min(osb).max(isb).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(asb).max(rsb).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e__namespace.number().gt(lsb).max(dsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(csb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(usb).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(psb).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(msb).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(xsb).max(gsb).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(ysb).max(Osb).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(vsb).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e__namespace.number().min(hsb).max(bsb).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(Ssb).describe("Description of the cost line."),amount:e__namespace.number().gt(zsb).max(fsb).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(Isb).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Bsb).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e__namespace.string().max(Tsb).nullish().describe("Free-text note. Omit or send null to leave unset.")}),z3b=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.")}),Esb=200,Dsb=200,Rsb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_sb=500,Nsb=500,Msb=500,Usb=/^[A-Za-z]{2}$/,Psb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Csb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,wsb=20,Asb=0,Fsb=1e5,ksb=0,jsb=60,Hsb=0,Lsb=1e4,Gsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Vsb=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Ksb=500,Zsb=500,qsb=0,Wsb=1e5,Ysb=0,$sb=60,Qsb=62,Jsb=0,Xsb=1e6,eob=200,tob=0,nob=1e6,sob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,oob=100,iob=2e3,f3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(Esb).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(Dsb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(Rsb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(_sb).describe("Business purpose of the trip."),origin:e__namespace.string().max(Nsb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(Msb).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(Usb).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.string().regex(Psb).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e__namespace.string().regex(Csb).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(wsb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.number().min(Asb).max(Fsb).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(ksb).max(jsb).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e__namespace.number().gt(Hsb).max(Lsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(Gsb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(Vsb).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(Ksb).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(Zsb).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(qsb).max(Wsb).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(Ysb).max($sb).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Qsb).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e__namespace.number().min(Jsb).max(Xsb).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(eob).describe("Description of the cost line."),amount:e__namespace.number().gt(tob).max(nob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(sob).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(oob).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e__namespace.string().max(iob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),I3b=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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),aob=2,rob=5,lob=2,dob=5,B3b=e__namespace.object({locale:e__namespace.string().min(aob).max(rob).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(lob).max(dob).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.")}),T3b=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.")}),cob=200,uob=200,pob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,mob=500,xob=500,gob=500,yob=/^[A-Za-z]{2}$/,Oob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,vob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,hob=20,bob=0,Sob=1e5,zob=0,fob=60,Iob=0,Bob=1e4,Tob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Eob=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Dob=500,Rob=500,_ob=0,Nob=1e5,Mob=0,Uob=60,Pob=62,Cob=0,wob=1e6,Aob=200,Fob=0,kob=1e6,job=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Hob=100,Lob=2e3,E3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(cob).describe("Full name of the traveling employee or contractor."),traveler_position:e__namespace.string().max(uob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e__namespace.string().regex(pob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e__namespace.string().min(1).max(mob).describe("Business purpose of the trip."),origin:e__namespace.string().max(xob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e__namespace.string().min(1).max(gob).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(yob).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.string().regex(Oob).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Required for a single-trip order; must be omitted (or null) for a collective order, where each trip carries its own times."),return_at:e__namespace.string().regex(vob).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at, and the trip must not exceed 60 days. Required for a single-trip order; must be omitted (or null) for a collective order."),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(hob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e__namespace.number().min(bob).max(Sob).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled. Must be omitted (or null) for a collective order, where each trip carries its own distance and this value is derived as their sum."),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(zob).max(fob).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null. Must be omitted (or null) for a collective order, where each trip carries its own count."),foreign_daily_rate:e__namespace.number().gt(Iob).max(Bob).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(Tob).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(Eob).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(Dob).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(Rob).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(_ob).max(Nob).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(Mob).max(Uob).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).min(1).max(Pob).nullish().describe("Trips of a collective monthly travel order (zbirni potni nalog), for example one per working day of a month. Omit or send null for a single-trip order. Trips are sorted by departure_at, must not overlap and must all depart in the same calendar month (Europe/Ljubljana). When trips are given, per diem and mileage are calculated per trip, and departure_at, return_at, distance_km and breakfasts_provided must be omitted; the stored order-level values are derived from the trips."),advance_amount:e__namespace.number().min(Cob).max(wob).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(Aob).describe("Description of the cost line."),amount:e__namespace.number().gt(Fob).max(kob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(job).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(Hob).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e__namespace.string().max(Lob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),D3b=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.")}),Gob=3,Vob=300,Kob=3,Zob=300,R3b=e__namespace.object({from:e__namespace.string().min(Gob).max(Vob).describe("Starting address to geocode."),to:e__namespace.string().min(Kob).max(Zob).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.")}),_3b=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.")}),qob=/^[a-z]{3,4}_[0-9a-f]{24}$/,N3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",qob).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),M3b=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.")}),Wob=200,Yob=0,$ob=1e6,Qob=/^\d{4}-\d{2}-\d{2}$/,U3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Wob).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Yob).max($ob).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Qob).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),Job=/^[a-z]{3,4}_[0-9a-f]{24}$/,P3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Job).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C3b=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.")}),Xob=200,eib=200,tib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nib=500,sib=500,oib=500,iib=/^[A-Za-z]{2}$/,aib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,rib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,lib=20,dib=0,cib=1e5,uib=0,pib=60,mib=0,xib=1e4,gib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,yib=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Oib=500,vib=500,hib=0,bib=1e5,Sib=0,zib=60,fib=62,Iib=0,Bib=1e6,Tib=200,Eib=0,Dib=1e6,Rib=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_ib=100,Nib=2e3,w3b=e__namespace.object({traveler_name:e__namespace.string().min(1).max(Xob).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(eib).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e__namespace.string().regex(tib).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(nib).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e__namespace.string().max(sib).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e__namespace.string().min(1).max(oib).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(iib).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e__namespace.string().regex(aib).nullish().describe("Departure date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with return_at when converting it back to a single trip with `trips: []`."),return_at:e__namespace.string().regex(rib).nullish().describe("Return date and time, ISO 8601 in UTC with a `Z` suffix. Omit or send null to leave unchanged; cannot be cleared. Not accepted for a collective order (edit its trips instead), except together with departure_at when converting it back to a single trip with `trips: []`."),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(lib).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e__namespace.number().min(dib).max(cib).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear. Not accepted as a non-null value for a collective order, where it is derived from the trips."),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(uib).max(pib).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0. Not accepted as a non-null value for a collective order, where it is derived from the trips."),foreign_daily_rate:e__namespace.number().gt(mib).max(xib).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().regex(gib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e__namespace.string().regex(yib).describe("Return date and time of this trip, ISO 8601 in UTC with a `Z` suffix. Must be after departure_at; every trip is limited to 60 days."),destination:e__namespace.string().min(1).max(Oib).nullish().describe("Destination of this trip when it differs from the order destination. Omit or send null to inherit."),purpose:e__namespace.string().min(1).max(vib).nullish().describe("Purpose of this trip when it differs from the order purpose. Omit or send null to inherit."),distance_km:e__namespace.number().min(hib).max(bib).nullish().describe("Distance of this trip in kilometers (up to 2 decimals). Required on every trip to settle a collective order that uses own_vehicle transport."),breakfasts_provided:e__namespace.number().min(Sib).max(zib).nullish().describe("Number of breakfasts provided during this trip, reducing its per diem. Defaults to 0 when omitted or null.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog).")).max(fib).nullish().describe("Replaces the whole list of trips (the order becomes, or stays, a collective order). Omit (or send null) to leave the trips unchanged. To convert a collective order back to a single trip, send an empty array (`trips: []`) together with both departure_at and return_at (a request with only one of them is rejected); distance_km and breakfasts_provided then take the request values or reset to null and 0. An empty array on a single-trip order is a no-op."),advance_amount:e__namespace.number().min(Iib).max(Bib).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(Tib).describe("Description of the cost line."),amount:e__namespace.number().gt(Eib).max(Dib).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e__namespace.string().regex(Rib).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(_ib).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e__namespace.string().max(Nib).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),Mib=200,Uib=0,Pib=1e6,Cib=/^\d{4}-\d{2}-\d{2}$/,A3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Mib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Uib).max(Pib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Cib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),wib=/^[a-z]{3,4}_[0-9a-f]{24}$/,F3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",wib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),k3b=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.")}),Aib=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Aib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3b=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.")}),Fib=200,kib=0,jib=1e6,Hib=/^\d{4}-\d{2}-\d{2}$/,L3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Fib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(kib).max(jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Hib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),Lib=/^[a-z]{3,4}_[0-9a-f]{24}$/,G3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",Lib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V3b=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.")}),Gib=200,Vib=0,Kib=1e6,Zib=/^\d{4}-\d{2}-\d{2}$/,K3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(Gib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Vib).max(Kib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Zib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),qib=/^[a-z]{3,4}_[0-9a-f]{24}$/,Z3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",qib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),q3b=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.")}),Wib=3,Yib=500,W3b=e__namespace.object({reason:e__namespace.string().min(Wib).max(Yib).describe("Why this settled travel order is being reopened for correction. Required.")}),$ib=200,Qib=0,Jib=1e6,Xib=/^\d{4}-\d{2}-\d{2}$/,Y3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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($ib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(Qib).max(Jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(Xib).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),eab=/^[a-z]{3,4}_[0-9a-f]{24}$/,$3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",eab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q3b=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.")}),tab=200,nab=0,sab=1e6,oab=/^\d{4}-\d{2}-\d{2}$/,J3b=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). For collective orders this is derived: the first trip's departure."),return_at:e__namespace.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),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. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),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. For collective orders this is derived: the sum over all trips."),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(tab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e__namespace.number().gt(nab).max(sab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e__namespace.string().regex(oab).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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}),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."),trips:e__namespace.array(e__namespace.object({index:e__namespace.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e__namespace.number().describe("Trip duration in hours, rounded to 2 decimals."),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).")}),total:e__namespace.number().describe("per_diem.total + mileage.total of this trip, in EUR.")})).optional().describe("Per-trip breakdown, present only for collective orders. The order-level per_diem, mileage and totals are the sums of these trips (per_diem.periods are the trips' periods concatenated and re-indexed; reference_rate and mileage.rate are those of the first trip).")}).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."),trips:e__namespace.array(e__namespace.object({departure_at:e__namespace.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e__namespace.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e__namespace.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e__namespace.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e__namespace.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e__namespace.number().describe("Number of breakfasts provided during this trip, reducing its per diem.")}).describe("One trip of a collective monthly travel order (zbirni potni nalog). Trips are sorted ascending by departure_at.")).optional().describe("Trips of a collective monthly travel order (zbirni potni nalog), sorted ascending by departure_at. Empty for a single-trip order. When non-empty, the order-level departure_at, return_at, distance_km and breakfasts_provided are derived from the trips."),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."),iab=/^[a-z]{3,4}_[0-9a-f]{24}$/,X3b=e__namespace.object({id:e__namespace.stringFormat("resource-id",iab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),aab=2,rab=5,lab=2,dab=5,eGb=e__namespace.object({locale:e__namespace.string().min(aab).max(rab).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(lab).max(dab).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.")}),tGb=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.")}),cab=/^[a-z]{3,4}_[0-9a-f]{24}$/,nGb=e__namespace.object({id:e__namespace.stringFormat("resource-id",cab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),uab=2,pab=5,mab=2,xab=5,sGb=e__namespace.object({locale:e__namespace.string().min(uab).max(pab).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(mab).max(xab).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.")}),oGb=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 xn={};$(xn,{DownloadUjpPackageHeader:()=>aGb,DownloadUjpPackageParams:()=>iGb});var iGb=e__namespace.object({id:e__namespace.string().describe("Document ID. The document type is detected from the ID prefix.")}),aGb=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 gn={};$(gn,{UploadImageBody:()=>lGb,UploadImageHeader:()=>rGb,UploadImageResponse:()=>dGb});var rGb=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.")}),lGb=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)")}),dGb=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 yn={};$(yn,{ConfirmPasswordResetBody:()=>jGb,ConfirmPasswordResetResponse:()=>HGb,DisableTwoFactorBody:()=>NGb,DisableTwoFactorResponse:()=>MGb,EnableRequiredTwoFactorBody:()=>IGb,EnableRequiredTwoFactorResponse:()=>BGb,EnableTwoFactorBody:()=>RGb,EnableTwoFactorResponse:()=>_Gb,GetAccountTwoFactorPolicyHeader:()=>cGb,GetAccountTwoFactorPolicyResponse:()=>uGb,GetEntityTwoFactorPolicyHeader:()=>yGb,GetEntityTwoFactorPolicyParams:()=>gGb,GetEntityTwoFactorPolicyResponse:()=>OGb,GetMeResponse:()=>GGb,GetTwoFactorConfigurationResponse:()=>TGb,ListMyAccountsResponse:()=>LGb,LoginBody:()=>CGb,LoginResponse:()=>wGb,PatchMeBody:()=>VGb,PatchMeResponse:()=>KGb,RequestPasswordResetBody:()=>FGb,RequestPasswordResetResponse:()=>kGb,SetupRequiredTwoFactorBody:()=>zGb,SetupRequiredTwoFactorResponse:()=>fGb,SetupTwoFactorBody:()=>EGb,SetupTwoFactorResponse:()=>DGb,SignupBody:()=>AGb,UpdateAccountTwoFactorPolicyBody:()=>mGb,UpdateAccountTwoFactorPolicyHeader:()=>pGb,UpdateAccountTwoFactorPolicyResponse:()=>xGb,UpdateEntityTwoFactorPolicyBody:()=>bGb,UpdateEntityTwoFactorPolicyHeader:()=>hGb,UpdateEntityTwoFactorPolicyParams:()=>vGb,UpdateEntityTwoFactorPolicyResponse:()=>SGb,UpdateUserFinaSettingsBody:()=>$Gb,UpdateUserFinaSettingsHeader:()=>YGb,UpdateUserFinaSettingsResponse:()=>QGb,UpdateUserFursSettingsBody:()=>qGb,UpdateUserFursSettingsHeader:()=>ZGb,UpdateUserFursSettingsResponse:()=>WGb,VerifyTwoFactorBody:()=>UGb,VerifyTwoFactorResponse:()=>PGb,confirmPasswordResetBodyPasswordMin:()=>Brb,confirmPasswordResetBodyPasswordRegExp:()=>Trb,disableTwoFactorBodyCodeMax:()=>Fab,disableTwoFactorBodyCodeMin:()=>Aab,disableTwoFactorBodyPasswordMax:()=>wab,enableRequiredTwoFactorBodyCodeRegExp:()=>fab,enableRequiredTwoFactorBodyTokenRegExp:()=>zab,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>Dab,enableRequiredTwoFactorResponseSessionOneIdMax:()=>Iab,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>Rab,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>Eab,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>Tab,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>Bab,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>Uab,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>Nab,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>_ab,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>Mab,enableTwoFactorBodyCodeRegExp:()=>Cab,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>gab,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>vab,getEntityTwoFactorPolicyPathIdRegExp:()=>Oab,getMeResponseAccountIdMax:()=>_rb,getMeResponseEmailMax:()=>Drb,getMeResponseIdMax:()=>Erb,getMeResponseNameMax:()=>Rrb,loginBodyShopifyReturnUrlMax:()=>erb,loginBodyShopifyReturnUrlMin:()=>Xab,loginBodyShopifyReturnUrlRegExp:()=>trb,loginResponseOneEntityIdMax:()=>arb,loginResponseOneIdMax:()=>nrb,loginResponseOneImpersonatorUserIdMax:()=>rrb,loginResponseOneScopeMax:()=>irb,loginResponseOneTtlDefault:()=>orb,loginResponseOneUserIdMax:()=>srb,loginResponseTwoUserAccountIdMax:()=>urb,loginResponseTwoUserEmailMax:()=>drb,loginResponseTwoUserIdMax:()=>lrb,loginResponseTwoUserNameMax:()=>crb,patchMeBodyNameMin:()=>Nrb,patchMeResponseAccountIdMax:()=>Crb,patchMeResponseEmailMax:()=>Urb,patchMeResponseIdMax:()=>Mrb,patchMeResponseNameMax:()=>Prb,requestPasswordResetBodyShopifyReturnUrlMax:()=>frb,requestPasswordResetBodyShopifyReturnUrlMin:()=>zrb,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>Irb,setupRequiredTwoFactorBodyTokenRegExp:()=>Sab,setupTwoFactorBodyPasswordMax:()=>Pab,signupBodyNameMin:()=>prb,signupBodyPasswordMin:()=>mrb,signupBodyPasswordRegExp:()=>xrb,signupBodySignupAttributionFbclidMax:()=>Srb,signupBodySignupAttributionGbraidMax:()=>hrb,signupBodySignupAttributionGclidMax:()=>vrb,signupBodySignupAttributionUtmCampaignMax:()=>Orb,signupBodySignupAttributionUtmMediumMax:()=>yrb,signupBodySignupAttributionUtmSourceMax:()=>grb,signupBodySignupAttributionWbraidMax:()=>brb,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>yab,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>bab,updateEntityTwoFactorPolicyPathIdRegExp:()=>hab,updateUserFinaSettingsResponseAccountIdMax:()=>Grb,updateUserFinaSettingsResponseEmailMax:()=>Hrb,updateUserFinaSettingsResponseIdMax:()=>jrb,updateUserFinaSettingsResponseNameMax:()=>Lrb,updateUserFursSettingsResponseAccountIdMax:()=>krb,updateUserFursSettingsResponseEmailMax:()=>Arb,updateUserFursSettingsResponseIdMax:()=>wrb,updateUserFursSettingsResponseNameMax:()=>Frb,verifyTwoFactorBodyCodeMax:()=>Lab,verifyTwoFactorBodyCodeMin:()=>Hab,verifyTwoFactorBodyTokenMax:()=>kab,verifyTwoFactorBodyTokenRegExp:()=>jab,verifyTwoFactorResponseOneEntityIdMax:()=>qab,verifyTwoFactorResponseOneIdMax:()=>Gab,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>Wab,verifyTwoFactorResponseOneScopeMax:()=>Zab,verifyTwoFactorResponseOneTtlDefault:()=>Kab,verifyTwoFactorResponseOneUserIdMax:()=>Vab,verifyTwoFactorResponseTwoUserAccountIdMax:()=>Jab,verifyTwoFactorResponseTwoUserEmailMax:()=>$ab,verifyTwoFactorResponseTwoUserIdMax:()=>Yab,verifyTwoFactorResponseTwoUserNameMax:()=>Qab});var gab=/^acc_[0-9a-fA-F]{24}$/,cGb=e__namespace.object({"x-account-id":e__namespace.string().regex(gab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uGb=e__namespace.object({required:e__namespace.boolean()}),yab=/^acc_[0-9a-fA-F]{24}$/,pGb=e__namespace.object({"x-account-id":e__namespace.string().regex(yab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mGb=e__namespace.object({required:e__namespace.boolean()}),xGb=e__namespace.object({required:e__namespace.boolean()}),Oab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,gGb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Oab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vab=/^acc_[0-9a-fA-F]{24}$/,yGb=e__namespace.object({"x-account-id":e__namespace.string().regex(vab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),OGb=e__namespace.object({required:e__namespace.boolean()}),hab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,vGb=e__namespace.object({id:e__namespace.stringFormat("resource-id",hab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),bab=/^acc_[0-9a-fA-F]{24}$/,hGb=e__namespace.object({"x-account-id":e__namespace.string().regex(bab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),bGb=e__namespace.object({required:e__namespace.boolean()}),SGb=e__namespace.object({required:e__namespace.boolean()}),Sab=/^session_2fa_setup_[a-f0-9]{64}$/,zGb=e__namespace.object({token:e__namespace.string().regex(Sab)}),fGb=e__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),zab=/^session_2fa_setup_[a-f0-9]{64}$/,fab=/^\d{6}$/,IGb=e__namespace.object({token:e__namespace.string().regex(zab),code:e__namespace.string().regex(fab)}),Iab=100,Bab=36,Tab=31536e3,Eab=50,Dab=36,Rab=36,_ab=36,Nab=255,Mab=255,Uab=36,BGb=e__namespace.object({recovery_codes:e__namespace.array(e__namespace.string()),session:e__namespace.object({id:e__namespace.string().max(Iab),user_id:e__namespace.string().max(Bab),ttl:e__namespace.number().default(Tab).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Eab).nullish(),entity_id:e__namespace.string().max(Dab).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(Rab).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(_ab),email:e__namespace.string().max(Nab),name:e__namespace.string().max(Mab).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Uab).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")}),TGb=e__namespace.object({enabled:e__namespace.boolean(),has_password:e__namespace.boolean(),required:e__namespace.boolean(),recovery_codes_remaining:e__namespace.number()}),Pab=1024,EGb=e__namespace.object({password:e__namespace.string().max(Pab).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),DGb=e__namespace.object({secret:e__namespace.string(),otpauth_uri:e__namespace.string(),qr_code:e__namespace.string()}),Cab=/^\d{6}$/,RGb=e__namespace.object({code:e__namespace.string().regex(Cab)}),_Gb=e__namespace.object({recovery_codes:e__namespace.array(e__namespace.string())}),wab=1024,Aab=6,Fab=32,NGb=e__namespace.object({password:e__namespace.string().max(wab).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(Aab).max(Fab).describe("Six-digit authenticator code or a single-use recovery code.")}),MGb=e__namespace.object({enabled:e__namespace.literal(false)}),kab=100,jab=/^session_2fa_[a-zA-Z0-9]+$/,Hab=6,Lab=32,UGb=e__namespace.object({token:e__namespace.string().max(kab).regex(jab),code:e__namespace.string().min(Hab).max(Lab).describe("Six-digit authenticator code or a single-use recovery code.")}),Gab=100,Vab=36,Kab=31536e3,Zab=50,qab=36,Wab=36,Yab=36,$ab=255,Qab=255,Jab=36,PGb=e__namespace.object({id:e__namespace.string().max(Gab),user_id:e__namespace.string().max(Vab),ttl:e__namespace.number().default(Kab).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(Zab).nullish(),entity_id:e__namespace.string().max(qab).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(Wab).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(Yab),email:e__namespace.string().max($ab),name:e__namespace.string().max(Qab).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Jab).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"),Xab=86,erb=86,trb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,CGb=e__namespace.object({email:e__namespace.email(),password:e__namespace.string(),shopify_return_url:e__namespace.string().min(Xab).max(erb).regex(trb).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.")}),nrb=100,srb=36,orb=31536e3,irb=50,arb=36,rrb=36,lrb=36,drb=255,crb=255,urb=36,wGb=e__namespace.object({id:e__namespace.string().max(nrb),user_id:e__namespace.string().max(srb),ttl:e__namespace.number().default(orb).describe("Token time-to-live in seconds"),scope:e__namespace.string().max(irb).nullish(),entity_id:e__namespace.string().max(arb).nullish(),created_at:e__namespace.iso.datetime({}),impersonator_user_id:e__namespace.string().max(rrb).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(lrb),email:e__namespace.string().max(drb),name:e__namespace.string().max(crb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(urb).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"),prb=2,mrb=8,xrb=/[a-z]/,grb=150,yrb=150,Orb=150,vrb=512,hrb=512,brb=512,Srb=512,AGb=e__namespace.object({email:e__namespace.email(),name:e__namespace.string().min(prb).nullish(),password:e__namespace.string().min(mrb).regex(xrb),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(grb).nullish(),utm_medium:e__namespace.string().min(1).max(yrb).nullish(),utm_campaign:e__namespace.string().min(1).max(Orb).nullish(),gclid:e__namespace.string().min(1).max(vrb).nullish(),gbraid:e__namespace.string().min(1).max(hrb).nullish(),wbraid:e__namespace.string().min(1).max(brb).nullish(),fbclid:e__namespace.string().min(1).max(Srb).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.")}),zrb=86,frb=86,Irb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,FGb=e__namespace.object({email:e__namespace.email(),shopify_return_url:e__namespace.string().min(zrb).max(frb).regex(Irb).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.")}),kGb=e__namespace.object({message:e__namespace.string()}),Brb=8,Trb=/[a-z]/,jGb=e__namespace.object({token:e__namespace.string().min(1),password:e__namespace.string().min(Brb).regex(Trb)}),HGb=e__namespace.object({message:e__namespace.string()}),LGb=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.")}))}),Erb=36,Drb=255,Rrb=255,_rb=36,GGb=e__namespace.object({id:e__namespace.string().max(Erb),email:e__namespace.string().max(Drb),name:e__namespace.string().max(Rrb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(_rb).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({})}),Nrb=2,VGb=e__namespace.object({name:e__namespace.string().min(Nrb).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.")}),Mrb=36,Urb=255,Prb=255,Crb=36,KGb=e__namespace.object({id:e__namespace.string().max(Mrb),email:e__namespace.string().max(Urb),name:e__namespace.string().max(Prb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Crb).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({})}),ZGb=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.")}),qGb=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"),wrb=36,Arb=255,Frb=255,krb=36,WGb=e__namespace.object({id:e__namespace.string().max(wrb),email:e__namespace.string().max(Arb),name:e__namespace.string().max(Frb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(krb).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({})}),YGb=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.")}),$Gb=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"),jrb=36,Hrb=255,Lrb=255,Grb=36,QGb=e__namespace.object({id:e__namespace.string().max(jrb),email:e__namespace.string().max(Hrb),name:e__namespace.string().max(Lrb).nullish(),email_verified:e__namespace.boolean(),account_id:e__namespace.string().max(Grb).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 On={};$(On,{CancelVerifactuRecordBody:()=>vVb,CancelVerifactuRecordHeader:()=>OVb,CancelVerifactuRecordParams:()=>yVb,CancelVerifactuRecordResponse:()=>hVb,CorrectVerifactuRecordBody:()=>xVb,CorrectVerifactuRecordHeader:()=>mVb,CorrectVerifactuRecordParams:()=>pVb,CorrectVerifactuRecordResponse:()=>gVb,GetVerifactuEvidenceHeader:()=>rVb,GetVerifactuEvidenceParams:()=>aVb,GetVerifactuEvidenceResponse:()=>lVb,GetVerifactuSettingsHeader:()=>JGb,GetVerifactuSettingsResponse:()=>XGb,RetryVerifactuRecordHeader:()=>cVb,RetryVerifactuRecordParams:()=>dVb,RetryVerifactuRecordResponse:()=>uVb,UpdateVerifactuSettingsBody:()=>tVb,UpdateVerifactuSettingsHeader:()=>eVb,UpdateVerifactuSettingsResponse:()=>nVb,UploadVerifactuCertificateBody:()=>oVb,UploadVerifactuCertificateHeader:()=>sVb,UploadVerifactuCertificateResponse:()=>iVb,cancelVerifactuRecordBodyReasonMax:()=>Jrb,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>Wrb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>$rb,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>Yrb,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>Qrb,correctVerifactuRecordBodyReasonMax:()=>qrb,getVerifactuSettingsResponsePendingRecordsMin:()=>Vrb,updateVerifactuSettingsResponsePendingRecordsMin:()=>Krb,uploadVerifactuCertificateResponsePendingRecordsMin:()=>Zrb});var JGb=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.")}),Vrb=0,XGb=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(Vrb).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."),eVb=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.")}),tVb=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."),Krb=0,nVb=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(Krb).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."),sVb=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.")}),oVb=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.")}),Zrb=0,iVb=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(Zrb).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."),aVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),rVb=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.")}),lVb=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."),dVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),cVb=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.")}),uVb=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."),pVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),mVb=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.")}),qrb=500,Wrb=500,Yrb=0,$rb=/^\d{2}$/,Qrb=12,xVb=e__namespace.object({reason:e__namespace.string().min(1).max(qrb).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(Wrb).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(Yrb).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($rb).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(Qrb).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."),gVb=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."),yVb=e__namespace.object({id:e__namespace.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),OVb=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.")}),Jrb=500,vVb=e__namespace.object({reason:e__namespace.string().min(1).max(Jrb).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),hVb=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 vn={};$(vn,{CheckViesBody:()=>bVb,CheckViesResponse:()=>SVb,checkViesBodyCustomerCountryCodeMax:()=>slb,checkViesBodyCustomerCountryCodeMin:()=>nlb,checkViesBodyIssuerCountryCodeMax:()=>elb,checkViesBodyIssuerCountryCodeMin:()=>Xrb,checkViesBodyIssuerIsTaxSubjectDefault:()=>tlb,checkViesResponseCustomerCountryCodeMax:()=>rlb,checkViesResponseCustomerCountryCodeMin:()=>alb,checkViesResponseIssuerCountryCodeMax:()=>ilb,checkViesResponseIssuerCountryCodeMin:()=>olb,checkViesResponseVatIdCountryCodeMax:()=>dlb,checkViesResponseVatIdCountryCodeMin:()=>llb});var Xrb=2,elb=2,tlb=true,nlb=2,slb=2,bVb=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(Xrb).max(elb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e__namespace.boolean().default(tlb).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(nlb).max(slb).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.")}),olb=2,ilb=2,alb=2,rlb=2,llb=2,dlb=2,SVb=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(olb).max(ilb).nullable().describe("Resolved issuer country code"),customer_country_code:e__namespace.string().min(alb).max(rlb).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(llb).max(dlb).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 hn={};$(hn,{CreateWarehouseBody:()=>TVb,CreateWarehouseHeader:()=>BVb,DeleteWarehouseHeader:()=>CVb,DeleteWarehouseParams:()=>PVb,GetWarehouseByIdHeader:()=>DVb,GetWarehouseByIdParams:()=>EVb,GetWarehouseByIdResponse:()=>RVb,GetWarehousesHeader:()=>fVb,GetWarehousesQueryParams:()=>zVb,GetWarehousesResponse:()=>IVb,UpdateWarehouseBody:()=>MVb,UpdateWarehouseHeader:()=>NVb,UpdateWarehouseParams:()=>_Vb,UpdateWarehouseResponse:()=>UVb,createWarehouseBodyNameMax:()=>glb,deleteWarehousePathIdRegExp:()=>Blb,getWarehouseByIdPathIdRegExp:()=>ylb,getWarehouseByIdResponseEntityIdMax:()=>vlb,getWarehouseByIdResponseIdMax:()=>Olb,getWarehouseByIdResponseNameMax:()=>hlb,getWarehousesQueryLimitDefault:()=>clb,getWarehousesQueryLimitMax:()=>ulb,getWarehousesResponseDataItemEntityIdMax:()=>mlb,getWarehousesResponseDataItemIdMax:()=>plb,getWarehousesResponseDataItemNameMax:()=>xlb,updateWarehouseBodyNameMax:()=>Slb,updateWarehousePathIdRegExp:()=>blb,updateWarehouseResponseEntityIdMax:()=>flb,updateWarehouseResponseIdMax:()=>zlb,updateWarehouseResponseNameMax:()=>Ilb});var clb=10,ulb=100,zVb=e__namespace.object({limit:e__namespace.number().min(1).max(ulb).default(clb).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.")}),fVb=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.")}),plb=36,mlb=36,xlb=200,IVb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(plb),entity_id:e__namespace.string().max(mlb),name:e__namespace.string().max(xlb),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")}),BVb=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.")}),glb=200,TVb=e__namespace.object({name:e__namespace.string().min(1).max(glb).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.")}),ylb=/^wh_[0-9a-f]{24}$/,EVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",ylb).describe("Warehouse identifier (wh_ prefix).")}),DVb=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.")}),Olb=36,vlb=36,hlb=200,RVb=e__namespace.object({id:e__namespace.string().max(Olb),entity_id:e__namespace.string().max(vlb),name:e__namespace.string().max(hlb),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."),blb=/^wh_[0-9a-f]{24}$/,_Vb=e__namespace.object({id:e__namespace.stringFormat("resource-id",blb).describe("Warehouse identifier (wh_ prefix).")}),NVb=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.")}),Slb=200,MVb=e__namespace.object({name:e__namespace.string().min(1).max(Slb).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.")}),zlb=36,flb=36,Ilb=200,UVb=e__namespace.object({id:e__namespace.string().max(zlb),entity_id:e__namespace.string().max(flb),name:e__namespace.string().max(Ilb),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."),Blb=/^wh_[0-9a-f]{24}$/,PVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Blb).describe("Warehouse identifier (wh_ prefix).")}),CVb=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 bn={};$(bn,{CreateWebhookBody:()=>AVb,CreateWebhookHeader:()=>wVb,DeleteWebhookHeader:()=>YVb,DeleteWebhookParams:()=>WVb,DeleteWebhookResponse:()=>$Vb,GetWebhookByIdHeader:()=>LVb,GetWebhookByIdParams:()=>HVb,GetWebhookByIdResponse:()=>GVb,GetWebhookDeliveriesHeader:()=>nKb,GetWebhookDeliveriesParams:()=>eKb,GetWebhookDeliveriesQueryParams:()=>tKb,GetWebhookDeliveriesResponse:()=>sKb,GetWebhooksHeader:()=>kVb,GetWebhooksQueryParams:()=>FVb,GetWebhooksResponse:()=>jVb,RotateWebhookSecretHeader:()=>iKb,RotateWebhookSecretParams:()=>oKb,RotateWebhookSecretResponse:()=>aKb,TestWebhookHeader:()=>JVb,TestWebhookParams:()=>QVb,TestWebhookResponse:()=>XVb,UpdateWebhookBody:()=>ZVb,UpdateWebhookHeader:()=>KVb,UpdateWebhookParams:()=>VVb,UpdateWebhookResponse:()=>qVb,createWebhookBodyActiveDefault:()=>Dlb,createWebhookBodyDescriptionMax:()=>Elb,createWebhookBodyUrlMax:()=>Tlb,deleteWebhookPathIdRegExp:()=>$lb,getWebhookByIdPathIdRegExp:()=>wlb,getWebhookByIdResponseDescriptionMax:()=>jlb,getWebhookByIdResponseEntityIdMax:()=>Flb,getWebhookByIdResponseIdMax:()=>Alb,getWebhookByIdResponseMetadataDefault:()=>Hlb,getWebhookByIdResponseUrlMax:()=>klb,getWebhookDeliveriesPathIdRegExp:()=>pdb,getWebhookDeliveriesQueryLimitDefault:()=>mdb,getWebhookDeliveriesQueryLimitMax:()=>xdb,getWebhookDeliveriesResponseDataItemAttemptMax:()=>Idb,getWebhookDeliveriesResponseDataItemAttemptMin:()=>fdb,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>Ddb,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>Edb,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Odb,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>zdb,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>vdb,getWebhookDeliveriesResponseDataItemIdMax:()=>gdb,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>Tdb,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>Bdb,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>Sdb,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>bdb,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>hdb,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>ydb,getWebhooksQueryLimitDefault:()=>Rlb,getWebhooksQueryLimitMax:()=>_lb,getWebhooksResponseDataItemDescriptionMax:()=>Plb,getWebhooksResponseDataItemEntityIdMax:()=>Mlb,getWebhooksResponseDataItemIdMax:()=>Nlb,getWebhooksResponseDataItemMetadataDefault:()=>Clb,getWebhooksResponseDataItemUrlMax:()=>Ulb,rotateWebhookSecretPathIdRegExp:()=>Rdb,rotateWebhookSecretResponseDescriptionMax:()=>Udb,rotateWebhookSecretResponseEntityIdMax:()=>Ndb,rotateWebhookSecretResponseIdMax:()=>_db,rotateWebhookSecretResponseMetadataDefault:()=>Cdb,rotateWebhookSecretResponseSecretMax:()=>Pdb,rotateWebhookSecretResponseUrlMax:()=>Mdb,testWebhookPathIdRegExp:()=>Qlb,testWebhookResponseAttemptMax:()=>rdb,testWebhookResponseAttemptMin:()=>adb,testWebhookResponseDurationMsMax:()=>udb,testWebhookResponseDurationMsMin:()=>cdb,testWebhookResponseEntityIdMax:()=>edb,testWebhookResponseErrorMessageMax:()=>idb,testWebhookResponseEventTypeMax:()=>tdb,testWebhookResponseIdMax:()=>Jlb,testWebhookResponseMaxAttemptsMax:()=>ddb,testWebhookResponseMaxAttemptsMin:()=>ldb,testWebhookResponseResponseBodyMax:()=>odb,testWebhookResponseResponseStatusMax:()=>sdb,testWebhookResponseResponseStatusMin:()=>ndb,testWebhookResponseWebhookIdMax:()=>Xlb,updateWebhookBodyDescriptionMax:()=>Vlb,updateWebhookBodyUrlMax:()=>Glb,updateWebhookPathIdRegExp:()=>Llb,updateWebhookResponseDescriptionMax:()=>Wlb,updateWebhookResponseEntityIdMax:()=>Zlb,updateWebhookResponseIdMax:()=>Klb,updateWebhookResponseMetadataDefault:()=>Ylb,updateWebhookResponseUrlMax:()=>qlb});var wVb=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.")}),Tlb=2048,Elb=500,Dlb=true,AVb=e__namespace.object({url:e__namespace.url().max(Tlb).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Elb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Dlb).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.")}),Rlb=10,_lb=100,FVb=e__namespace.object({limit:e__namespace.number().min(1).max(_lb).default(Rlb).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.")}),kVb=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.")}),Nlb=36,Mlb=36,Ulb=2048,Plb=500,Clb={},jVb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(Nlb),entity_id:e__namespace.string().max(Mlb),url:e__namespace.string().max(Ulb),description:e__namespace.string().max(Plb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Clb).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")}),wlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,HVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",wlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LVb=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.")}),Alb=36,Flb=36,klb=2048,jlb=500,Hlb={},GVb=e__namespace.object({id:e__namespace.string().max(Alb),entity_id:e__namespace.string().max(Flb),url:e__namespace.string().max(klb),description:e__namespace.string().max(jlb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Hlb).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)"),Llb=/^[a-z]{3,4}_[0-9a-f]{24}$/,VVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Llb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KVb=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.")}),Glb=2048,Vlb=500,ZVb=e__namespace.object({url:e__namespace.url().max(Glb).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e__namespace.string().max(Vlb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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.")}),Klb=36,Zlb=36,qlb=2048,Wlb=500,Ylb={},qVb=e__namespace.object({id:e__namespace.string().max(Klb),entity_id:e__namespace.string().max(Zlb),url:e__namespace.string().max(qlb),description:e__namespace.string().max(Wlb).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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Ylb).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)"),$lb=/^[a-z]{3,4}_[0-9a-f]{24}$/,WVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",$lb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YVb=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.")}),$Vb=e__namespace.object({success:e__namespace.boolean()}),Qlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,QVb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Qlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),JVb=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.")}),Jlb=36,Xlb=36,edb=36,tdb=100,ndb=-2147483648,sdb=2147483647,odb=1e4,idb=2e3,adb=-2147483648,rdb=2147483647,ldb=-2147483648,ddb=2147483647,cdb=-2147483648,udb=2147483647,XVb=e__namespace.object({id:e__namespace.string().max(Jlb),webhook_id:e__namespace.string().max(Xlb),entity_id:e__namespace.string().max(edb),event_type:e__namespace.string().max(tdb),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(ndb).max(sdb).nullish(),response_body:e__namespace.string().max(odb).nullish(),error_message:e__namespace.string().max(idb).nullish(),attempt:e__namespace.number().min(adb).max(rdb),max_attempts:e__namespace.number().min(ldb).max(ddb),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(cdb).max(udb).nullish(),created_at:e__namespace.iso.datetime({}),completed_at:e__namespace.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),pdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,eKb=e__namespace.object({id:e__namespace.stringFormat("resource-id",pdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),mdb=10,xdb=100,tKb=e__namespace.object({limit:e__namespace.number().min(1).max(xdb).default(mdb).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.")}),nKb=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.")}),gdb=36,ydb=36,Odb=36,vdb=100,hdb=-2147483648,bdb=2147483647,Sdb=1e4,zdb=2e3,fdb=-2147483648,Idb=2147483647,Bdb=-2147483648,Tdb=2147483647,Edb=-2147483648,Ddb=2147483647,sKb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(gdb),webhook_id:e__namespace.string().max(ydb),entity_id:e__namespace.string().max(Odb),event_type:e__namespace.string().max(vdb),status:e__namespace.enum(["pending","success","failed"]),request_body:e__namespace.record(e__namespace.string(),e__namespace.unknown()),response_status:e__namespace.number().min(hdb).max(bdb).nullish(),response_body:e__namespace.string().max(Sdb).nullish(),error_message:e__namespace.string().max(zdb).nullish(),attempt:e__namespace.number().min(fdb).max(Idb),max_attempts:e__namespace.number().min(Bdb).max(Tdb),next_retry_at:e__namespace.iso.datetime({}).nullish(),duration_ms:e__namespace.number().min(Edb).max(Ddb).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")}),Rdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,oKb=e__namespace.object({id:e__namespace.stringFormat("resource-id",Rdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),iKb=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.")}),_db=36,Ndb=36,Mdb=2048,Udb=500,Pdb=64,Cdb={},aKb=e__namespace.object({id:e__namespace.string().max(_db),entity_id:e__namespace.string().max(Ndb),url:e__namespace.string().max(Mdb),description:e__namespace.string().max(Udb).nullish(),secret:e__namespace.string().max(Pdb),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","shipment.created","shipment.cancelled","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.*","shipment.*","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(Cdb).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 Sn={};$(Sn,{CheckWLFeatureParams:()=>dKb,CheckWLFeatureResponse:()=>cKb,CheckWLLimitParams:()=>uKb,CheckWLLimitResponse:()=>pKb,GetCurrentWLSubscriptionResponse:()=>rKb,GetWLSubscriptionPlansResponse:()=>lKb,UpdateWLSubscriptionBillingEmailBody:()=>mKb,UpdateWLSubscriptionBillingEmailResponse:()=>xKb,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>wdb,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>Adb});var wdb=0,Adb=null,rKb=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(wdb).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e__namespace.number().nullish().default(Adb).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"),lKb=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"),dKb=e__namespace.object({feature:e__namespace.string().describe("Feature slug to check")}),cKb=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"),uKb=e__namespace.object({resource:e__namespace.string().describe("Resource type to check (e.g., 'documents')")}),pKb=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"),mKb=e__namespace.object({billing_email:e__namespace.email().nullable()}),xKb=e__namespace.object({billing_email:e__namespace.string().nullable()});var zn={};$(zn,{GetCurrentWhiteLabelResponse:()=>gKb,GetMyWhiteLabelResponse:()=>yKb});var gKb=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"),yKb=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 OKb=125e3,fn=null,we=null,In=false;function kdb(d){fn=d;}function Bn(d){we=d,d==null&&(In=false);}function vKb(){In||(In=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 hKb(){return we}function bKb(){if(!fn)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return fn}function SKb(d){if(!d)return {};if(d instanceof Headers){let u={};return d.forEach((g,E)=>{u[E]=g;}),u}if(Array.isArray(d)){let u={};for(let[g,E]of d)u[g]=E;return u}return d}function zKb(d,u){if(u==null||u<=0)return {signal:d??void 0,cleanup:()=>{}};let g=new AbortController,E=()=>{g.abort(d?.reason);};if(d?.aborted)return E(),{signal:g.signal,cleanup:()=>{}};let f=setTimeout(()=>{g.abort(new Error(`SDK request timed out after ${u}ms`));},u),M=()=>{clearTimeout(f),d?.removeEventListener("abort",E);};return d?.addEventListener("abort",E,{once:true}),g.signal.addEventListener("abort",M,{once:true}),{signal:g.signal,cleanup:M}}async function v(d,u){let{timeoutMs:g,sdkConfig:E,...f}=u??{},M=E??bKb(),ve=await Promise.resolve(M.getAccessToken()),ze=`${M.baseUrl}${d}`,Oe={...SKb(f.headers)};if(M.clientName&&Object.assign(Oe,rt(M.clientName)),f.body===void 0||f.body===null)for(let fe of Object.keys(Oe))fe.toLowerCase()==="content-type"&&delete Oe[fe];ve&&(Oe.Authorization=`Bearer ${ve}`);let De=Oe["x-account-id"]||Oe["X-Account-Id"]||M.accountId||null;!De&&we&&(E&&vKb(),De=we),De&&!Oe["x-account-id"]&&!Oe["X-Account-Id"]&&(Oe["x-account-id"]=De);let Re=zKb(f.signal,g===void 0?M.requestTimeoutMs??OKb:g);try{let fe=await fetch(ze,{...f,headers:Oe,signal:Re.signal});fe.status===401&&M.onUnauthorized&&M.onUnauthorized(fe);let Ne,fhb=fe.headers.get("content-length"),_e=fe.headers.get("content-type"),Ihb=fe.headers.get("content-disposition");if(fhb==="0"||fe.status===204)Ne=void 0;else if(_e?.includes("application/pdf")||_e?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||_e?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||_e?.includes("text/csv")||_e?.includes("application/octet-stream")||_e?.includes("application/zip")||_e?.includes("application/x-zip-compressed")||_e?.includes("image/"))Ne=await fe.blob();else if(_e?.includes("application/xml")||_e?.includes("text/xml"))Ne=Ihb?.toLowerCase().includes("attachment")?await fe.blob():await fe.text();else if(_e?.includes("text/html"))Ne=await fe.text();else try{Ne=await fe.json();}catch{Ne=void 0;}return {data:Ne,status:fe.status,headers:fe.headers}}finally{Re.cleanup();}}var fKb=1e3;function IKb(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 BKb(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*TKb(d,u,g){let E=g?`listAll(${g})`:"listAll()",f=u?.next_cursor,M=0;for(;;){if(M>=1e3)throw new Error(`${E} exceeded the safety limit of 1000 pages without reaching the end of the result set. This is almost always a pagination bug (a cursor that never advances) rather than a genuinely huge result set. Narrow the request with additional filters (e.g. a date range or query) or paginate manually with next_cursor if you really need more than 1000 pages.`);M++;let ve=f,ze=await d({...u,next_cursor:ve});if(!IKb(ze))throw new Error(`${E} cannot paginate this method: its response is ${BKb(ze)}, 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 Oe of ze.data)yield Oe;let Te=ze.pagination.next_cursor;if(!Te)return;if(Te===ve)throw new Error(`${E} received the same cursor it just sent (${ve}) after ${M} 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=Te;}}var EKb=()=>"/account-webhooks",jdb=async(d,u)=>v(EKb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),DKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/account-webhooks?${g}`:"/account-webhooks"},Hdb=async(d,u)=>v(DKb(d),{...u,method:"GET"}),RKb=d=>`/account-webhooks/${d}`,Ldb=async(d,u)=>v(RKb(d),{...u,method:"GET"}),_Kb=d=>`/account-webhooks/${d}`,Gdb=async(d,u,g)=>v(_Kb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),NKb=d=>`/account-webhooks/${d}`,Vdb=async(d,u)=>v(NKb(d),{...u,method:"DELETE"}),MKb=d=>`/account-webhooks/${d}/test`,Kdb=async(d,u)=>v(MKb(d),{...u,method:"POST"});var UKb=d=>`/account-webhooks/${d}/rotate-secret`,Zdb=async(d,u)=>v(UKb(d),{...u,method:"POST"});async function PKb(d,u){return d(...u)}function qdb(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 h(d,u){let g=async(...f)=>{let M=f[f.length-1],ve=M&&typeof M=="object"&&("entity_id"in M||"account_id"in M||"request_id"in M||"signal"in M||"timeoutMs"in M||"sdkConfig"in M||Object.keys(M).length===0),ze,Te;ve?(ze=f.slice(0,-1),Te=qdb(M)):ze=[...f];let Oe=Math.max(0,d.length-1);for(;ze.length<Oe;)ze.push(void 0);ze.push(Te);let De=await PKb(d,ze);if(De.status>=200&&De.status<300)return De.data;let Re=new Error(`API error: ${De.status}`);throw Re.status=De.status,Re.data=De.data,Re};return u===void 0?g:Object.assign(((...f)=>{let M=[...f];return M[u]??={},g(...M)}),{__sdkOptionsIndex:u})}function ne(d){return Object.assign(async g=>{let{entity_id:E,account_id:f,request_id:M,signal:ve,timeoutMs:ze,sdkConfig:Te,...Oe}=g||{},De=qdb({entity_id:E,account_id:f,request_id:M,signal:ve,timeoutMs:ze,sdkConfig:Te}),Re=await d(Oe,De);if(Re.status===200)return Re.data;let fe=new Error(`API error: ${Re.status}`);throw fe.status=Re.status,fe.data=Re.data,fe},{__sdkListMethod:true})}function Tn(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 Wdb(d,u){let g=d.__sdkOptionsIndex;return Object.assign((...f)=>{let M=f[g-1];return Tn(M)&&Object.keys(M).length>0&&!u.some(ve=>ve in M)&&(f[g]={...M,...f[g]},f[g-1]=void 0),d(...f)},{__sdkOptionsIndex:g})}function Y(d,u){let g=Object.entries(d).map(([E,f])=>typeof f!="function"?[E,f]:[E,(...M)=>{let ve=u(),ze=M[M.length-1],Te=f;if(Te.__sdkListMethod){let Oe=M[0];M[0]=Oe&&typeof Oe=="object"?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else if(typeof Te.__sdkOptionsIndex=="number"){let Oe=M[Te.__sdkOptionsIndex];M[Te.__sdkOptionsIndex]=Tn(Oe)?{...Oe,sdkConfig:ve}:{sdkConfig:ve};}else Tn(ze)?M[M.length-1]={...ze,sdkConfig:ve}:M.push({sdkConfig:ve});return f(...M)}]);return Object.fromEntries(g)}var En={create:h(jdb,1),list:ne(Hdb),get:h(Ldb,1),update:h(Gdb,2),delete:h(Vdb,1),testAccountWebhook:h(Kdb,1),rotateAccountWebhookSecret:h(Zdb,1)};var CKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/employees?${g}`:"/employees"},Ae=async(d,u)=>v(CKb(d),{...u,method:"GET"}),wKb=()=>"/employees",Fe=async(d,u)=>v(wKb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),AKb=d=>`/employees/${d}`,ke=async(d,u)=>v(AKb(d),{...u,method:"GET"}),FKb=d=>`/employees/${d}`,je=async(d,u,g)=>v(FKb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),kKb=d=>`/employees/${d}`,He=async(d,u)=>v(kKb(d),{...u,method:"DELETE"}),jKb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},Le=async(d,u,g)=>v(jKb(d,u),{...g,method:"GET"}),HKb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/employees/${d}/attendance?${E}`:`/employees/${d}/attendance`},Ge=async(d,u,g,E)=>v(HKb(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),LKb=d=>`/employees/${d}/compensation`,Ydb=async(d,u)=>v(LKb(d),{...u,method:"GET"}),GKb=d=>`/employees/${d}/compensation`,$db=async(d,u,g)=>v(GKb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VKb=(d,u)=>`/employees/${d}/compensation/${u}`,Qdb=async(d,u,g,E)=>v(VKb(d,u),{...E,method:"PATCH",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),KKb=(d,u)=>`/employees/${d}/compensation/${u}`,Jdb=async(d,u,g)=>v(KKb(d,u),{...g,method:"DELETE"}),ZKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fixed-assets?${g}`:"/fixed-assets"},Xdb=async(d,u)=>v(ZKb(d),{...u,method:"GET"}),qKb=()=>"/fixed-assets",ecb=async(d,u)=>v(qKb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register?${g}`:"/fixed-assets/register"},tcb=async(d,u)=>v(WKb(d),{...u,method:"GET"}),YKb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fixed-assets/register/export?${g}`:"/fixed-assets/register/export"},ncb=async(d,u)=>v(YKb(d),{...u,method:"GET"}),$Kb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/fixed-assets/${d}?${E}`:`/fixed-assets/${d}`},scb=async(d,u,g)=>v($Kb(d,u),{...g,method:"GET"}),QKb=d=>`/fixed-assets/${d}`,ocb=async(d,u,g)=>v(QKb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),JKb=d=>`/fixed-assets/${d}`,icb=async(d,u)=>v(JKb(d),{...u,method:"DELETE"}),XKb=d=>`/fixed-assets/${d}/dispose`,acb=async(d,u,g)=>v(XKb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eZb=d=>`/fixed-assets/${d}/undo-disposal`,rcb=async(d,u)=>v(eZb(d),{...u,method:"POST"}),tZb=d=>`/fixed-assets/${d}/schedule`,lcb=async(d,u)=>v(tZb(d),{...u,method:"GET"}),nZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payroll/parameters?${g}`:"/payroll/parameters"},Ve=async(d,u)=>v(nZb(d),{...u,method:"GET"}),sZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payroll/parameters/history?${g}`:"/payroll/parameters/history"},Ke=async(d,u)=>v(sZb(d),{...u,method:"GET"}),oZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/payroll/parameters/${d}?${E}`:`/payroll/parameters/${d}`},Ze=async(d,u,g,E)=>v(oZb(d,g),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),iZb=()=>"/payroll/runs",dcb=async(d,u)=>v(iZb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),aZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payroll/runs?${g}`:"/payroll/runs"},ccb=async(d,u)=>v(aZb(d),{...u,method:"GET"}),rZb=d=>`/payroll/runs/${d}`,ucb=async(d,u)=>v(rZb(d),{...u,method:"GET"}),lZb=d=>`/payroll/runs/${d}`,pcb=async(d,u)=>v(lZb(d),{...u,method:"DELETE"}),dZb=d=>`/payroll/runs/${d}/recompute`,mcb=async(d,u,g)=>v(dZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),cZb=d=>`/payroll/runs/${d}/approve`,xcb=async(d,u)=>v(cZb(d),{...u,method:"POST"}),uZb=d=>`/payroll/runs/${d}/reopen`,gcb=async(d,u)=>v(uZb(d),{...u,method:"POST"}),pZb=d=>`/payroll/runs/${d}/mark-paid`,ycb=async(d,u,g)=>v(pZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),mZb=d=>`/payroll/runs/${d}/export`,Ocb=async(d,u)=>v(mZb(d),{...u,method:"GET"}),xZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/vat-returns/preview?${g}`:"/vat-returns/preview"},qe=async(d,u)=>v(xZb(d),{...u,method:"GET"}),gZb=()=>"/vat-returns",We=async(d,u)=>v(gZb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),yZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/vat-returns?${g}`:"/vat-returns"},Ye=async(d,u)=>v(yZb(d),{...u,method:"GET"}),OZb=d=>`/vat-returns/${d}`,$e=async(d,u)=>v(OZb(d),{...u,method:"GET"}),vZb=d=>`/vat-returns/${d}`,vcb=async(d,u,g)=>v(vZb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hZb=d=>`/vat-returns/${d}/recompute`,Qe=async(d,u)=>v(hZb(d),{...u,method:"POST"}),bZb=d=>`/vat-returns/${d}/approve`,Je=async(d,u)=>v(bZb(d),{...u,method:"POST"}),SZb=d=>`/vat-returns/${d}/submit`,Xe=async(d,u,g)=>v(SZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),zZb=d=>`/vat-returns/${d}/reopen`,et=async(d,u)=>v(zZb(d),{...u,method:"POST"}),fZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/vat-returns/${d}/export?${E}`:`/vat-returns/${d}/export`},tt=async(d,u,g)=>v(fZb(d,u),{...g,method:"GET"}),IZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/filings?${g}`:"/filings"},nt=async(d,u)=>v(IZb(d),{...u,method:"GET"}),BZb=d=>`/filings/${d}/complete`,st=async(d,u,g)=>v(BZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),TZb=d=>`/filings/${d}/reopen`,ot=async(d,u)=>v(TZb(d),{...u,method:"POST"}),EZb=d=>`/filings/${d}/dismiss`,it=async(d,u,g)=>v(EZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),DZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/accounting/filings-calendar?${g}`:"/accounting/filings-calendar"},at=async(d,u)=>v(DZb(d),{...u,method:"GET"}),RZb=()=>"/ledger/accounts",hcb=async d=>v(RZb(),{...d,method:"GET"}),_Zb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/trial-balance?${g}`:"/ledger/trial-balance"},bcb=async(d,u)=>v(_Zb(d),{...u,method:"GET"}),NZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/profit-and-loss?${g}`:"/ledger/profit-and-loss"},Scb=async(d,u)=>v(NZb(d),{...u,method:"GET"}),MZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/balance-sheet?${g}`:"/ledger/balance-sheet"},zcb=async(d,u)=>v(MZb(d),{...u,method:"GET"}),UZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/entries?${g}`:"/ledger/entries"},fcb=async(d,u)=>v(UZb(d),{...u,method:"GET"}),PZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/ledger/reconciliations?${g}`:"/ledger/reconciliations"},Icb=async(d,u)=>v(PZb(d),{...u,method:"GET"}),CZb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,Bcb=async(d,u,g,E)=>v(CZb(d,u),{...E,method:"PUT",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),wZb=(d,u)=>`/ledger/reconciliations/${d}/${u}`,Tcb=async(d,u,g)=>v(wZb(d,u),{...g,method:"DELETE"}),AZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/journal-entries?${g}`:"/journal-entries"},Ecb=async(d,u)=>v(AZb(d),{...u,method:"GET"}),FZb=()=>"/journal-entries",Dcb=async(d,u)=>v(FZb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),kZb=d=>`/journal-entries/${d}`,Rcb=async(d,u)=>v(kZb(d),{...u,method:"GET"}),jZb=d=>`/journal-entries/${d}`,_cb=async(d,u,g)=>v(jZb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),HZb=d=>`/journal-entries/${d}`,Ncb=async(d,u)=>v(HZb(d),{...u,method:"DELETE"}),LZb=()=>"/vendor-tax-profiles",Mcb=async d=>v(LZb(),{...d,method:"GET"}),GZb=d=>`/vendor-tax-profiles/${d}`,Ucb=async(d,u,g)=>v(GZb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VZb=d=>`/us-tax-years/${d}`,Pcb=async(d,u)=>v(VZb(d),{...u,method:"GET"}),KZb=d=>`/us-tax-years/${d}/export`,Ccb=async(d,u)=>v(KZb(d),{...u,method:"GET"});var Dn={listEmployees:h(Ae,1),registerEmployee:h(Fe,1),getEmployee:h(ke,1),modifyEmployee:h(je,2),archiveEmployee:h(He,1),getEmployeeAttendance:h(Le,2),replaceEmployeeAttendance:h(Ge,3),listEmployeeCompensation:h(Ydb,1),registerEmployeeCompensation:h($db,2),modifyEmployeeCompensation:h(Qdb,3),removeEmployeeCompensation:h(Jdb,2),listFixedAssets:h(Xdb,1),registerFixedAsset:h(ecb,1),getFixedAssetRegister:h(tcb,1),exportFixedAssetRegister:h(ncb,1),getFixedAsset:h(scb,2),modifyFixedAsset:h(ocb,2),archiveFixedAsset:h(icb,1),disposeFixedAsset:h(acb,2),undoFixedAssetDisposal:h(rcb,1),getFixedAssetSchedule:h(lcb,1),resolvePayrollParameters:h(Ve,1),getPayrollParameterHistory:h(Ke,1),setPayrollParameterOverride:h(Ze,3),draftPayrollRun:h(dcb,1),listPayrollRuns:h(ccb,1),getPayrollRun:h(ucb,1),discardPayrollRun:h(pcb,1),recomputePayrollRun:h(mcb,2),approvePayrollRun:h(xcb,1),reopenPayrollRun:h(gcb,1),markPayrollRunPaid:Wdb(h(ycb,2),["paid_at"]),exportPayrollRun:h(Ocb,1),preview:h(qe,1),draftVatReturn:h(We,1),listVatReturns:h(Ye,1),getVatReturn:h($e,1),update:h(vcb,2),recomputeVatReturn:h(Qe,1),approveVatReturn:h(Je,1),submitVatReturn:h(Xe,2),reopenVatReturn:h(et,1),exportVatReturn:h(tt,2),listFilings:h(nt,1),completeFiling:h(st,2),reopenFiling:h(ot,1),dismissFiling:h(it,2),listAccountFilingsCalendar:h(at,1),listLedgerAccounts:h(hcb,0),getTrialBalance:h(bcb,1),getProfitAndLossReport:h(Scb,1),getBalanceSheet:h(zcb,1),listLedgerEntries:h(fcb,1),listBankReconciliations:h(Icb,1),markBankReconciled:h(Bcb,3),reopenBankReconciliation:h(Tcb,2),listJournalEntries:h(Ecb,1),recordJournalEntry:h(Dcb,1),getJournalEntry:h(Rcb,1),reviseJournalEntry:h(_cb,2),archiveJournalEntry:h(Ncb,1),listVendorTaxProfiles:h(Mcb,0),setVendorTaxProfile:h(Ucb,2),getUsTaxYearWorksheet:h(Pcb,1),exportUsTaxYearWorksheet:h(Ccb,1)};var ZZb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/activities?${g}`:"/activities"},wcb=async(d,u)=>v(ZZb(d),{...u,method:"GET"});var Rn={list:ne(wcb)};var qZb=d=>`/advance-invoices/${d}/nav/retry`,Acb=async(d,u)=>v(qZb(d),{...u,method:"POST"}),WZb=d=>`/advance-invoices/${d}/nav/reconcile`,Fcb=async(d,u)=>v(WZb(d),{...u,method:"POST"}),YZb=d=>`/advance-invoices/${d}/nav/resolve`,kcb=async(d,u,g)=>v(YZb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),$Zb=d=>`/advance-invoices/${d}/nav/annulment`,jcb=async(d,u,g)=>v($Zb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),QZb=d=>`/advance-invoices/shareable/${d}`,Hcb=async(d,u)=>v(QZb(d),{...u,method:"GET"}),JZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/html?${E}`:`/advance-invoices/shareable/${d}/html`},Lcb=async(d,u,g)=>v(JZb(d,u),{...g,method:"GET"}),XZb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/advance-invoices/shareable/${d}/pdf?${E}`:`/advance-invoices/shareable/${d}/pdf`},Gcb=async(d,u,g)=>v(XZb(d,u),{...g,method:"GET"}),eqb=d=>`/advance-invoices/shareable/${d}/eslog`,Vcb=async(d,u)=>v(eqb(d),{...u,method:"GET"}),tqb=()=>"/advance-invoices",Kcb=async(d,u)=>v(tqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/advance-invoices?${g}`:"/advance-invoices"},Zcb=async(d,u)=>v(nqb(d),{...u,method:"GET"}),sqb=()=>"/advance-invoices/custom",qcb=async(d,u)=>v(sqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),oqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/advance-invoices/${d}?${E}`:`/advance-invoices/${d}`},Wcb=async(d,u,g)=>v(oqb(d,u),{...g,method:"GET"}),iqb=d=>`/advance-invoices/${d}`,Ycb=async(d,u,g)=>v(iqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),aqb=d=>`/advance-invoices/${d}/versions`,$cb=async(d,u)=>v(aqb(d),{...u,method:"GET"}),rqb=(d,u)=>`/advance-invoices/${d}/versions/${u}`,Qcb=async(d,u,g)=>v(rqb(d,u),{...g,method:"GET"}),lqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/advance-invoices/render?${g}`:"/advance-invoices/render"},Jcb=async(d,u,g)=>v(lqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),dqb=d=>`/advance-invoices/${d}/void`,Xcb=async(d,u,g)=>v(dqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var _n={retryAdvanceInvoiceNav:h(Acb,1),reconcileAdvanceInvoiceNav:h(Fcb,1),resolveAdvanceInvoiceNav:h(kcb,2),annulAdvanceInvoiceNav:h(jcb,2),getShareableAdvanceInvoice:h(Hcb,1),getShareableAdvanceInvoiceHtml:h(Lcb,2),getShareableAdvanceInvoicePdf:h(Gcb,2),getShareableAdvanceInvoiceEslog:h(Vcb,1),create:h(Kcb,1),list:ne(Zcb),createCustom:h(qcb,1),get:h(Wcb,2),update:h(Ycb,2),getVersions:h($cb,1),getVersion:h(Qcb,2),renderAdvanceInvoicePreview:h(Jcb,2),void:h(Xcb,2)};var cqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/business-units?${g}`:"/business-units"},eub=async(d,u)=>v(cqb(d),{...u,method:"GET"}),uqb=()=>"/business-units",tub=async(d,u)=>v(uqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/business-units/${d}?${E}`:`/business-units/${d}`},nub=async(d,u,g)=>v(pqb(d,u),{...g,method:"GET"}),mqb=d=>`/business-units/${d}`,sub=async(d,u,g)=>v(mqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),xqb=d=>`/business-units/${d}`,oub=async(d,u)=>v(xqb(d),{...u,method:"DELETE"});var Nn={list:ne(eub),create:h(tub,1),get:h(nub,2),update:h(sub,2),delete:h(oub,1)};var gqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/company-registry/search?${g}`:"/company-registry/search"},iub=async(d,u)=>v(gqb(d),{...u,method:"GET"}),yqb=()=>"/company-registry/countries",aub=async d=>v(yqb(),{...d,method:"GET"});var Mn={searchCompanyRegistry:h(iub,1),list:h(aub,0)};var Oqb=d=>`/credit-notes/${d}/nav/retry`,rub=async(d,u)=>v(Oqb(d),{...u,method:"POST"}),vqb=d=>`/credit-notes/${d}/nav/reconcile`,lub=async(d,u)=>v(vqb(d),{...u,method:"POST"}),hqb=d=>`/credit-notes/${d}/nav/resolve`,dub=async(d,u,g)=>v(hqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),bqb=d=>`/credit-notes/${d}/nav/annulment`,cub=async(d,u,g)=>v(bqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Sqb=d=>`/credit-notes/shareable/${d}`,uub=async(d,u)=>v(Sqb(d),{...u,method:"GET"}),zqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/html?${E}`:`/credit-notes/shareable/${d}/html`},pub=async(d,u,g)=>v(zqb(d,u),{...g,method:"GET"}),fqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/credit-notes/shareable/${d}/pdf?${E}`:`/credit-notes/shareable/${d}/pdf`},mub=async(d,u,g)=>v(fqb(d,u),{...g,method:"GET"}),Iqb=d=>`/credit-notes/shareable/${d}/eslog`,xub=async(d,u)=>v(Iqb(d),{...u,method:"GET"}),Bqb=d=>`/credit-notes/${d}/ksef/recover`,gub=async(d,u)=>v(Bqb(d),{...u,method:"POST"}),Tqb=d=>`/credit-notes/${d}/ksef`,yub=async(d,u)=>v(Tqb(d),{...u,method:"GET"}),Eqb=d=>`/credit-notes/${d}/ksef/submit`,Oub=async(d,u)=>v(Eqb(d),{...u,method:"POST"}),Dqb=d=>`/credit-notes/${d}/ksef/upo`,vub=async(d,u)=>v(Dqb(d),{...u,method:"GET"}),Rqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},hub=async(d,u,g)=>v(Rqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),_qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes?${g}`:"/credit-notes"},bub=async(d,u)=>v(_qb(d),{...u,method:"GET"}),Nqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes/custom?${g}`:"/credit-notes/custom"},Sub=async(d,u,g)=>v(Nqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),Mqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/credit-notes/${d}?${E}`:`/credit-notes/${d}`},zub=async(d,u,g)=>v(Mqb(d,u),{...g,method:"GET"}),Uqb=d=>`/credit-notes/${d}`,fub=async(d,u,g)=>v(Uqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Pqb=d=>`/credit-notes/${d}/xrechnung`,Iub=async(d,u)=>v(Pqb(d),{...u,method:"GET"}),Cqb=d=>`/credit-notes/${d}/zugferd`,Bub=async(d,u)=>v(Cqb(d),{...u,method:"GET"}),wqb=d=>`/credit-notes/${d}/versions`,Tub=async(d,u)=>v(wqb(d),{...u,method:"GET"}),Aqb=(d,u)=>`/credit-notes/${d}/versions/${u}`,Eub=async(d,u,g)=>v(Aqb(d,u),{...g,method:"GET"}),Fqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/credit-notes/render?${g}`:"/credit-notes/render"},Dub=async(d,u,g)=>v(Fqb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),kqb=d=>`/credit-notes/${d}/fiscalize`,Rub=async(d,u)=>v(kqb(d),{...u,method:"POST"}),jqb=d=>`/credit-notes/${d}/void`,_ub=async(d,u,g)=>v(jqb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});function Nub(d){let u=h(d);function g(E,f,M){let ve=f&&typeof f=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(Oe=>Oe in f),ze=ve?void 0:f,Te=ve?{...f,...M}:M;return u(E,ze??{},Te??{})}return Object.assign(g,{__sdkOptionsIndex:2})}var Un={retryCreditNoteNav:h(rub,1),reconcileCreditNoteNav:h(lub,1),resolveCreditNoteNav:h(dub,2),annulCreditNoteNav:h(cub,2),getShareableCreditNote:h(uub,1),getShareableCreditNoteHtml:h(pub,2),getShareableCreditNotePdf:h(mub,2),getShareableCreditNoteEslog:h(xub,1),recoverCreditNoteFromKsef:h(gub,1),getCreditNoteKsefState:h(yub,1),submitCreditNoteToKsef:h(Oub,1),getCreditNoteKsefUpo:h(vub,1),create:Nub(hub),list:ne(bub),createCustom:Nub(Sub),get:h(zub,2),update:h(fub,2),downloadCreditNoteXRechnung:h(Iub,1),downloadCreditNoteZugferd:h(Bub,1),getVersions:h(Tub,1),getVersion:h(Eub,2),renderCreditNotePreview:h(Dub,2),fiscalizeCreditNote:h(Rub,1),void:h(_ub,2)};var Hqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/currency/exchange-rate?${g}`:"/currency/exchange-rate"},Mub=async(d,u)=>v(Hqb(d),{...u,method:"GET"});var Pn={getExchangeRate:h(Mub,1)};var Lqb=()=>"/customers",Uub=async(d,u)=>v(Lqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Gqb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/customers?${g}`:"/customers"},Pub=async(d,u)=>v(Gqb(d),{...u,method:"GET"}),Vqb=d=>`/customers/${d}`,Cub=async(d,u)=>v(Vqb(d),{...u,method:"GET"}),Kqb=d=>`/customers/${d}`,wub=async(d,u,g)=>v(Kqb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),Zqb=d=>`/customers/${d}`,Aub=async(d,u)=>v(Zqb(d),{...u,method:"DELETE"}),qqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/customers/${d}/sold-items?${E}`:`/customers/${d}/sold-items`},Fub=async(d,u,g)=>v(qqb(d,u),{...g,method:"GET"}),Wqb=d=>`/customers/${d}/restore`,kub=async(d,u)=>v(Wqb(d),{...u,method:"POST"}),Yqb=d=>`/customers/${d}/permanent`,jub=async(d,u)=>v(Yqb(d),{...u,method:"DELETE"});var Cn={create:h(Uub,1),list:ne(Pub),get:h(Cub,1),update:h(wub,2),delete:h(Aub,1),listCustomerSoldItems:h(Fub,2),restoreCustomer:h(kub,1),permanentDeleteCustomer:h(jub,1)};var $qb=d=>`/delivery-notes/shareable/${d}`,Hub=async(d,u)=>v($qb(d),{...u,method:"GET"}),Qqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/html?${E}`:`/delivery-notes/shareable/${d}/html`},Lub=async(d,u,g)=>v(Qqb(d,u),{...g,method:"GET"}),Jqb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/delivery-notes/shareable/${d}/pdf?${E}`:`/delivery-notes/shareable/${d}/pdf`},Gub=async(d,u,g)=>v(Jqb(d,u),{...g,method:"GET"}),Xqb=()=>"/delivery-notes",Vub=async(d,u)=>v(Xqb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/delivery-notes?${g}`:"/delivery-notes"},Kub=async(d,u)=>v(eWb(d),{...u,method:"GET"}),tWb=()=>"/delivery-notes/custom",Zub=async(d,u)=>v(tWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/delivery-notes/${d}?${E}`:`/delivery-notes/${d}`},qub=async(d,u,g)=>v(nWb(d,u),{...g,method:"GET"}),sWb=d=>`/delivery-notes/${d}`,Wub=async(d,u,g)=>v(sWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),oWb=d=>`/delivery-notes/${d}/versions`,Yub=async(d,u)=>v(oWb(d),{...u,method:"GET"}),iWb=(d,u)=>`/delivery-notes/${d}/versions/${u}`,$ub=async(d,u,g)=>v(iWb(d,u),{...g,method:"GET"}),aWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/delivery-notes/render?${g}`:"/delivery-notes/render"},Qub=async(d,u,g)=>v(aWb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),rWb=d=>`/delivery-notes/${d}/void`,Jub=async(d,u,g)=>v(rWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),lWb=d=>`/delivery-notes/${d}/sign`,Xub=async(d,u,g)=>v(lWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),dWb=d=>`/delivery-notes/${d}/quantities`,epb=async(d,u,g)=>v(dWb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var wn={getShareableDeliveryNote:h(Hub,1),getShareableDeliveryNoteHtml:h(Lub,2),getShareableDeliveryNotePdf:h(Gub,2),create:h(Vub,1),list:ne(Kub),createCustom:h(Zub,1),get:h(qub,2),update:h(Wub,2),getVersions:h(Yub,1),getVersion:h($ub,2),renderDeliveryNotePreview:h(Qub,2),void:h(Jub,2),signDeliveryNote:h(Xub,2),setDeliveryNoteQuantities:h(epb,2)};var cWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/next-number?${g}`:"/documents/next-number"},tpb=async(d,u)=>v(cWb(d),{...u,method:"GET"}),uWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/calculate?${g}`:"/documents/calculate"},npb=async(d,u,g)=>v(uWb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),pWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/finalize?${E}`:`/documents/${d}/finalize`},spb=async(d,u,g,E)=>v(pWb(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),mWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/fiscalize?${E}`:`/documents/${d}/fiscalize`},opb=async(d,u,g,E)=>v(mWb(d,g),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(u)}),xWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/register-output?${E}`:`/documents/${d}/register-output`},ipb=async(d,u,g)=>v(xWb(d,u),{...g,method:"POST"}),gWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}?${E}`:`/documents/${d}`},apb=async(d,u,g)=>v(gWb(d,u),{...g,method:"DELETE"}),yWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/restore?${E}`:`/documents/${d}/restore`},rpb=async(d,u,g)=>v(yWb(d,u),{...g,method:"POST"}),OWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/permanent?${E}`:`/documents/${d}/permanent`},lpb=async(d,u,g)=>v(OWb(d,u),{...g,method:"DELETE"}),vWb=d=>`/documents/${d}/send`,dpb=async(d,u,g)=>v(vWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hWb=d=>`/documents/${d}/share`,cpb=async(d,u)=>v(hWb(d),{...u,method:"POST"}),bWb=d=>`/documents/${d}/share`,upb=async(d,u)=>v(bWb(d),{...u,method:"GET"}),SWb=d=>`/documents/${d}/share`,ppb=async(d,u)=>v(SWb(d),{...u,method:"DELETE"});var An=h(opb,3);function zWb(d){return !!d&&typeof d=="object"&&"type"in d}function Fn(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 fWb=async(d,u,g,E)=>{if(Fn(u))return An(d,void 0,void 0,u);if(zWb(u))return An(d,void 0,u,g);let f=Fn(g)?void 0:g,M=Fn(g)?g:E;return An(d,u,f,M)},kn={getNextNumber:h(tpb,1),calculateDocumentPreview:h(npb,2),finalizeDocument:h(spb,3),fiscalizeDocument:fWb,registerDocumentOutput:h(ipb,2),delete:h(apb,2),restoreDocument:h(rpb,2),permanentDeleteDocument:h(lpb,2),sendDocument:h(dpb,2),shareDocument:h(cpb,1),getShareableId:h(upb,1),unshareDocument:h(ppb,1)};var IWb=()=>"/e-invoicing/settings",mpb=async d=>v(IWb(),{...d,method:"GET"}),BWb=()=>"/e-invoicing/settings",xpb=async(d,u)=>v(BWb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TWb=()=>"/e-invoicing/enrollment/sync",gpb=async d=>v(TWb(),{...d,method:"POST"}),EWb=()=>"/e-invoicing/enrollment/verification-link",ypb=async d=>v(EWb(),{...d,method:"POST"}),DWb=()=>"/e-invoicing/enrollment/authorize",Opb=async(d,u)=>v(DWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),RWb=()=>"/e-invoicing/enrollment/disconnect",vpb=async d=>v(RWb(),{...d,method:"POST"}),_Wb=()=>"/e-invoicing/france/directory/lookup",hpb=async(d,u)=>v(_Wb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),NWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/e-invoicing/received-documents?${g}`:"/e-invoicing/received-documents"},bpb=async(d,u)=>v(NWb(d),{...u,method:"GET"}),MWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/e-invoicing/received-documents/${d}/download?${E}`:`/e-invoicing/received-documents/${d}/download`},Spb=async(d,u,g)=>v(MWb(d,u),{...g,method:"GET"}),UWb=d=>`/e-invoicing/received-documents/${d}/accept`,zpb=async(d,u)=>v(UWb(d),{...u,method:"POST"}),PWb=d=>`/e-invoicing/received-documents/${d}/lifecycle`,fpb=async(d,u,g)=>v(PWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),CWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/e-invoicing/reporting-records?${g}`:"/e-invoicing/reporting-records"},Ipb=async(d,u)=>v(CWb(d),{...u,method:"GET"}),wWb=d=>`/e-invoicing/reporting-records/${d}/retry`,Bpb=async(d,u)=>v(wWb(d),{...u,method:"POST"}),AWb=()=>"/e-invoicing/supplier",Tpb=async(d,u)=>v(AWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),FWb=()=>"/e-invoicing/supplier",Epb=async d=>v(FWb(),{...d,method:"GET"});var kWb=()=>"/e-invoicing/recipients/check",Dpb=async(d,u)=>v(kWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),jWb=()=>"/e-invoicing/customer-search",Rpb=async(d,u)=>v(jWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),HWb=d=>`/e-invoicing/documents/${d}/send`,_pb=async(d,u,g)=>v(HWb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),LWb=(d,u)=>`/e-invoicing/send/${d}/${u}`,Npb=async(d,u,g,E)=>v(LWb(d,u),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(g)}),GWb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/e-invoicing/submissions?${g}`:"/e-invoicing/submissions"},Mpb=async(d,u)=>v(GWb(d),{...u,method:"GET"}),VWb=d=>`/e-invoicing/submissions/${d}`,jn=async(d,u)=>v(VWb(d),{...u,method:"GET"}),KWb=d=>`/e-invoicing/submissions/${d}/retry`,Hn=async(d,u)=>v(KWb(d),{...u,method:"POST"});var Ln={getEInvoicingSubmission:h(jn,1),retryEInvoicingSubmission:h(Hn,1),list:h(mpb,0),update:h(xpb,1),syncEInvoicingEnrollment:h(gpb,0),create:h(ypb,0),createEInvoicingEnrollmentAuthorization:h(Opb,1),disconnectEInvoicingEnrollment:h(vpb,0),lookupFranceEInvoicingDirectory:h(hpb,1),listReceivedEInvoices:h(bpb,1),downloadReceivedEInvoice:h(Spb,2),acceptReceivedEInvoice:h(zpb,1),sendReceivedEInvoiceLifecycle:h(fpb,2),listFrenchEReportingRecords:h(Ipb,1),retryFrenchEReportingRecord:h(Bpb,1),registerEInvoicingSupplier:h(Tpb,1),getEInvoicingSupplier:h(Epb,0),checkEInvoicingRecipient:h(Dpb,1),searchEInvoicingCustomer:h(Rpb,1),sendEInvoicingDocument:h(_pb,2),sendEInvoice:h(Npb,3),listEInvoicingSubmissions:h(Mpb,1),get:h(jn,1),retryEInvoicingSubmissionById:h(Hn,1)};var ZWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/validate?${E}`:`/eslog/${d}/validate`},Upb=async(d,u,g)=>v(ZWb(d,u),{...g,method:"POST"}),qWb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/eslog/${d}/download?${E}`:`/eslog/${d}/download`},Ppb=async(d,u,g)=>v(qWb(d,u),{...g,method:"GET"});var Gn={validate:h(Upb,2),download:h(Ppb,2)};var WWb=()=>"/fiscalization/eet/settings/certificate",Cpb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(WWb(),{...u,method:"POST",body:g})},YWb=()=>"/fiscalization/eet/settings/certificate",wpb=async d=>v(YWb(),{...d,method:"GET"}),$Wb=()=>"/fiscalization/eet/settings/certificate",Apb=async d=>v($Wb(),{...d,method:"DELETE"});var Vn={uploadEetCertificate:h(Cpb,1),getEetCertificate:h(wpb,0),delete:h(Apb,0)};var QWb=()=>"/fiscalization/eet/settings",Fpb=async d=>v(QWb(),{...d,method:"GET"}),JWb=()=>"/fiscalization/eet/settings",kpb=async(d,u)=>v(JWb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Kn={list:h(Fpb,0),update:h(kpb,1)};var XWb=()=>"/email/send",jpb=async(d,u)=>v(XWb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zn={sendEmail:h(jpb,1)};var e6b=d=>`/entities/${d}/nav`,Hpb=async(d,u)=>v(e6b(d),{...u,method:"GET"}),t6b=d=>`/entities/${d}/nav`,Lpb=async(d,u,g)=>v(t6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),n6b=d=>`/entities/${d}/nav/credentials`,Gpb=async(d,u,g)=>v(n6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),s6b=d=>`/entities/${d}/nav/credentials`,Vpb=async(d,u)=>v(s6b(d),{...u,method:"DELETE"}),o6b=d=>`/entities/${d}/nav/credentials/verify`,Kpb=async(d,u)=>v(o6b(d),{...u,method:"POST"}),i6b=d=>`/entities/${d}/ksef`,Zpb=async(d,u)=>v(i6b(d),{...u,method:"GET"}),a6b=d=>`/entities/${d}/ksef`,qpb=async(d,u,g)=>v(a6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),r6b=d=>`/entities/${d}/ksef/credentials`,Wpb=async(d,u,g)=>v(r6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),l6b=d=>`/entities/${d}/ksef/credentials`,Ypb=async(d,u)=>v(l6b(d),{...u,method:"DELETE"}),d6b=()=>"/entities",$pb=async(d,u)=>v(d6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),c6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/entities?${g}`:"/entities"},Qpb=async(d,u)=>v(c6b(d),{...u,method:"GET"}),u6b=d=>`/entities/${d}`,Jpb=async(d,u)=>v(u6b(d),{...u,method:"GET"}),p6b=d=>`/entities/${d}`,Xpb=async(d,u,g)=>v(p6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),m6b=d=>`/entities/${d}/enable`,emb=async(d,u)=>v(m6b(d),{...u,method:"POST"}),x6b=d=>`/entities/${d}/disable`,tmb=async(d,u)=>v(x6b(d),{...u,method:"POST"}),g6b=d=>`/entities/${d}/email-sender`,nmb=async(d,u)=>v(g6b(d),{...u,method:"GET"}),y6b=d=>`/entities/${d}/email-sender`,smb=async(d,u,g)=>v(y6b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),O6b=d=>`/entities/${d}/email-sender`,omb=async(d,u)=>v(O6b(d),{...u,method:"DELETE"}),v6b=d=>`/entities/${d}/email-sender/recheck`,imb=async(d,u)=>v(v6b(d),{...u,method:"POST"});var qn={retrieveEntityNavSettings:h(Hpb,1),modifyEntityNavSettings:h(Lpb,2),storeEntityNavCredentials:h(Gpb,2),removeEntityNavCredentials:h(Vpb,1),verifyEntityNavCredentials:h(Kpb,1),getEntityKsefSetup:h(Zpb,1),putEntityKsefSettings:h(qpb,2),putEntityKsefCredential:h(Wpb,2),removeEntityKsefCredential:h(Ypb,1),create:h($pb,1),list:ne(Qpb),get:h(Jpb,1),update:h(Xpb,2),enableEntity:h(emb,1),disableEntity:h(tmb,1),getEntityEmailSender:h(nmb,1),putEntityEmailSender:h(smb,2),deleteEntityEmailSender:h(omb),recheckEntityEmailSender:h(imb,1)};var h6b=()=>"/entities/api-keys",amb=async d=>v(h6b(),{...d,method:"GET"}),b6b=()=>"/entities/api-keys",rmb=async(d,u)=>v(b6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),S6b=d=>`/entities/api-keys/${d}`,lmb=async(d,u)=>v(S6b(d),{...u,method:"DELETE"}),z6b=()=>"/entities/api-keys/revoke-integration",dmb=async d=>v(z6b(),{...d,method:"POST"});var Wn={listEntityApiKeys:h(amb,0),create:h(rmb,1),delete:h(lmb,1),revokeEntityApiKeyIntegration:h(dmb,0)};var f6b=()=>"/entities/invitations",cmb=async d=>v(f6b(),{...d,method:"GET"}),I6b=d=>`/entities/invitations/${d}`,umb=async(d,u)=>v(I6b(d),{...u,method:"GET"}),B6b=d=>`/entities/invitations/${d}`,pmb=async(d,u)=>v(B6b(d),{...u,method:"DELETE"}),T6b=d=>`/entities/invitations/${d}/resend`,mmb=async(d,u)=>v(T6b(d),{...u,method:"POST"}),E6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invitations/preview?${g}`:"/invitations/preview"},xmb=async(d,u)=>v(E6b(d),{...u,method:"GET"}),D6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invitations/accept?${g}`:"/invitations/accept"},gmb=async(d,u,g)=>v(D6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Yn={listEntityInvitations:h(cmb,0),getEntityInvitation:h(umb,1),cancelEntityInvitation:h(pmb,1),resendEntityInvitation:h(mmb,1),preview:h(xmb,1),acceptEntityInvitation:h(gmb,2)};var R6b=()=>"/stats/query",ymb=async(d,u)=>v(R6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var $n={queryEntityStats:h(ymb,1)};var _6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/entities/users?${g}`:"/entities/users"},Omb=async(d,u)=>v(_6b(d),{...u,method:"GET"}),N6b=()=>"/entities/users",vmb=async(d,u)=>v(N6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),M6b=()=>"/entities/users/access",hmb=async d=>v(M6b(),{...d,method:"GET"}),U6b=d=>`/entities/users/${d}`,bmb=async(d,u,g)=>v(U6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),P6b=d=>`/entities/users/${d}`,Smb=async(d,u)=>v(P6b(d),{...u,method:"DELETE"}),C6b=d=>`/entities/users/${d}/token`,zmb=async(d,u,g)=>v(C6b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Qn={list:ne(Omb),addEntityUser:h(vmb,1),getAccess:h(hmb,0),update:h(bmb,2),removeEntityUser:h(Smb,1),generateEntityUserToken:h(zmb,2)};var w6b=d=>`/estimates/shareable/${d}`,fmb=async(d,u)=>v(w6b(d),{...u,method:"GET"}),A6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/html?${E}`:`/estimates/shareable/${d}/html`},Imb=async(d,u,g)=>v(A6b(d,u),{...g,method:"GET"}),F6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/estimates/shareable/${d}/pdf?${E}`:`/estimates/shareable/${d}/pdf`},Bmb=async(d,u,g)=>v(F6b(d,u),{...g,method:"GET"}),k6b=d=>`/estimates/shareable/${d}/eslog`,Tmb=async(d,u)=>v(k6b(d),{...u,method:"GET"}),j6b=()=>"/estimates",Emb=async(d,u)=>v(j6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),H6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/estimates?${g}`:"/estimates"},Dmb=async(d,u)=>v(H6b(d),{...u,method:"GET"}),L6b=()=>"/estimates/custom",Rmb=async(d,u)=>v(L6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),G6b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/estimates/${d}?${E}`:`/estimates/${d}`},_mb=async(d,u,g)=>v(G6b(d,u),{...g,method:"GET"}),V6b=d=>`/estimates/${d}`,Nmb=async(d,u,g)=>v(V6b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),K6b=d=>`/estimates/${d}/versions`,Mmb=async(d,u)=>v(K6b(d),{...u,method:"GET"}),Z6b=(d,u)=>`/estimates/${d}/versions/${u}`,Umb=async(d,u,g)=>v(Z6b(d,u),{...g,method:"GET"}),q6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/estimates/render?${g}`:"/estimates/render"},Pmb=async(d,u,g)=>v(q6b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)});var Jn={getShareableEstimate:h(fmb,1),getShareableEstimateHtml:h(Imb,2),getShareableEstimatePdf:h(Bmb,2),getShareableEstimateEslog:h(Tmb,1),create:h(Emb,1),list:ne(Dmb),createCustom:h(Rmb,1),get:h(_mb,2),update:h(Nmb,2),getVersions:h(Mmb,1),getVersion:h(Umb,2),renderEstimatePreview:h(Pmb,2)};var W6b=()=>"/expenses",Cmb=async(d,u)=>v(W6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses?${g}`:"/expenses"},wmb=async(d,u)=>v(Y6b(d),{...u,method:"GET"}),$6b=()=>"/expenses/custom",Amb=async(d,u)=>v($6b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Q6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses/export?${g}`:"/expenses/export"},Fmb=async(d,u)=>v(Q6b(d),{...u,method:"GET"}),J6b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses/report?${g}`:"/expenses/report"},kmb=async(d,u)=>v(J6b(d),{...u,method:"GET"}),X6b=()=>"/expenses/recognition/settings",jmb=async d=>v(X6b(),{...d,method:"GET"}),e7b=()=>"/expenses/recognition/settings",Hmb=async(d,u)=>v(e7b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),t7b=()=>"/expenses/recognition/backfill",Lmb=async(d,u)=>v(t7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),n7b=()=>"/expenses/recognitions",Gmb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(n7b(),{...u,method:"POST",body:g})},s7b=d=>`/expenses/recognitions/${d}`,Vmb=async(d,u)=>v(s7b(d),{...u,method:"GET"}),o7b=d=>`/expenses/recognitions/${d}/retry`,Kmb=async(d,u)=>v(o7b(d),{...u,method:"POST"}),i7b=()=>"/expenses/inbound-email",Zmb=async d=>v(i7b(),{...d,method:"GET"}),a7b=()=>"/expenses/inbound-email",qmb=async d=>v(a7b(),{...d,method:"POST"}),r7b=()=>"/expenses/inbound-email",Wmb=async d=>v(r7b(),{...d,method:"DELETE"}),l7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/expenses/inbound-email/messages?${g}`:"/expenses/inbound-email/messages"},Ymb=async(d,u)=>v(l7b(d),{...u,method:"GET"}),d7b=()=>"/expenses/imports/shareable/preview",$mb=async(d,u)=>v(d7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),c7b=()=>"/expenses/imports/shareable",Qmb=async(d,u)=>v(c7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),u7b=d=>`/expenses/${d}/recognition`,Jmb=async(d,u)=>v(u7b(d),{...u,method:"GET"}),p7b=d=>`/expenses/${d}`,Xmb=async(d,u)=>v(p7b(d),{...u,method:"GET"}),m7b=d=>`/expenses/${d}`,exb=async(d,u,g)=>v(m7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),x7b=d=>`/expenses/${d}`,txb=async(d,u)=>v(x7b(d),{...u,method:"DELETE"}),g7b=d=>`/expenses/${d}/void`,nxb=async(d,u)=>v(g7b(d),{...u,method:"POST"}),y7b=d=>`/expenses/${d}/restore`,sxb=async(d,u)=>v(y7b(d),{...u,method:"POST"}),O7b=d=>`/expenses/${d}/attachments`,oxb=async(d,u,g)=>{let E=new FormData;return E.append("file",u.file),v(O7b(d),{...g,method:"POST",body:E})},v7b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/expenses/${d}/attachments?${E}`:`/expenses/${d}/attachments`},ixb=async(d,u,g)=>v(v7b(d,u),{...g,method:"GET"}),h7b=(d,u)=>`/expenses/${d}/attachments/${u}`,axb=async(d,u,g)=>v(h7b(d,u),{...g,method:"DELETE"}),b7b=d=>`/expenses/${d}/payments`,rxb=async(d,u)=>v(b7b(d),{...u,method:"GET"}),S7b=d=>`/expenses/${d}/payments`,lxb=async(d,u,g)=>v(S7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Xn={create:h(Cmb,1),list:ne(wmb),createCustom:h(Amb,1),exportExpenses:h(Fmb,1),getExpenseCategoryReport:h(kmb,1),getRecognitionSettings:h(jmb,0),updateRecognitionSettings:h(Hmb,1),backfillExpenseRecognition:h(Lmb,1),createRecognition:h(Gmb,1),getRecognition:h(Vmb,1),retryRecognition:h(Kmb,1),getExpenseInboundEmail:h(Zmb,0),rotateExpenseInboundEmail:h(qmb,0),disableExpenseInboundEmail:h(Wmb,0),listExpenseInboundEmailMessages:h(Ymb,1),previewImportFromShareableLink:h($mb,1),importFromShareableLink:h(Qmb,1),getLatestRecognition:h(Jmb,1),get:h(Xmb,1),update:h(exb,2),delete:h(txb,1),void:h(nxb,1),restoreExpense:h(sxb,1),uploadExpenseAttachment:h(oxb,2),getExpenseAttachments:h(ixb,2),deleteExpenseAttachment:h(axb,2),getExpensePayments:h(rxb,1),createExpensePayment:h(lxb,2)};var z7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export?${g}`:"/documents/export"},dxb=async(d,u)=>v(z7b(d),{...u,method:"GET"}),f7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export/sales-per-item?${g}`:"/documents/export/sales-per-item"},cxb=async(d,u)=>v(f7b(d),{...u,method:"GET"}),I7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export/inventory?${g}`:"/documents/export/inventory"},uxb=async(d,u)=>v(I7b(d),{...u,method:"GET"}),B7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/documents/export/revenue-by-category?${g}`:"/documents/export/revenue-by-category"},pxb=async(d,u)=>v(B7b(d),{...u,method:"GET"}),T7b=()=>"/documents/export/pdf",mxb=async(d,u)=>v(T7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),E7b=d=>`/documents/export/pdf/${d}`,xxb=async(d,u)=>v(E7b(d),{...u,method:"GET"}),D7b=d=>`/documents/export/pdf/${d}/download`,gxb=async(d,u)=>v(D7b(d),{...u,method:"GET"}),R7b=()=>"/documents/export/eslog",yxb=async(d,u)=>v(R7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_7b=d=>`/documents/export/eslog/${d}`,Oxb=async(d,u)=>v(_7b(d),{...u,method:"GET"}),N7b=d=>`/documents/export/eslog/${d}/download`,vxb=async(d,u)=>v(N7b(d),{...u,method:"GET"});var es={exportDocuments:h(dxb,1),exportSalesPerItem:h(cxb,1),exportInventory:h(uxb,1),exportRevenueByCategory:h(pxb,1),startPdfExport:h(mxb,1),getPdfStatus:h(xxb,1),downloadPdfExport:h(gxb,1),startEslogExport:h(yxb,1),getEslogStatus:h(Oxb,1),downloadEslogExport:h(vxb,1)};var M7b=()=>"/files",hxb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("category",d.category),d.document_id!==void 0&&d.document_id!==null&&g.append("document_id",d.document_id),d.account_payable_id!==void 0&&g.append("account_payable_id",d.account_payable_id),d.business_unit_id!==void 0&&g.append("business_unit_id",d.business_unit_id),d.expense_id!==void 0&&g.append("expense_id",d.expense_id),v(M7b(),{...u,method:"POST",body:g})},U7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/files?${g}`:"/files"},bxb=async(d,u)=>v(U7b(d),{...u,method:"GET"}),P7b=d=>`/files/${d}`,Sxb=async(d,u)=>v(P7b(d),{...u,method:"GET"}),C7b=d=>`/files/${d}`,zxb=async(d,u)=>v(C7b(d),{...u,method:"DELETE"});var ts={uploadFile:h(hxb,1),list:ne(bxb),get:h(Sxb,1),delete:h(zxb,1)};var w7b=()=>"/fiscalization/fina/settings/certificate",fxb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(w7b(),{...u,method:"POST",body:g})},A7b=()=>"/fiscalization/fina/settings/certificate",Ixb=async d=>v(A7b(),{...d,method:"GET"}),F7b=()=>"/fiscalization/fina/settings/certificate",Bxb=async d=>v(F7b(),{...d,method:"DELETE"});var ns={uploadFinaCertificate:h(fxb,1),getFinaCertificate:h(Ixb,0),delete:h(Bxb,0)};var k7b=d=>`/fiscalization/fina/premises/${d}/devices`,Txb=async(d,u)=>v(k7b(d),{...u,method:"GET"}),j7b=d=>`/fiscalization/fina/premises/${d}/devices`,Exb=async(d,u,g)=>v(j7b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H7b=d=>`/fiscalization/fina/devices/${d}`,Dxb=async(d,u)=>v(H7b(d),{...u,method:"GET"}),L7b=d=>`/fiscalization/fina/devices/${d}`,Rxb=async(d,u,g)=>v(L7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),G7b=d=>`/fiscalization/fina/devices/${d}`,_xb=async(d,u)=>v(G7b(d),{...u,method:"DELETE"});var ss={listFinaDevices:h(Txb,1),registerFinaDevice:h(Exb,2),getFinaDevice:h(Dxb,1),update:h(Rxb,2),delete:h(_xb,1)};var V7b=()=>"/fiscalization/fina/premises",Nxb=async d=>v(V7b(),{...d,method:"GET"}),K7b=()=>"/fiscalization/fina/premises",Mxb=async(d,u)=>v(K7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Z7b=d=>`/fiscalization/fina/premises/${d}`,Uxb=async(d,u)=>v(Z7b(d),{...u,method:"GET"}),q7b=d=>`/fiscalization/fina/premises/${d}`,Pxb=async(d,u,g)=>v(q7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),W7b=d=>`/fiscalization/fina/premises/${d}`,Cxb=async(d,u)=>v(W7b(d),{...u,method:"DELETE"});var os={listFinaPremises:h(Nxb,0),create:h(Mxb,1),getFinaPremise:h(Uxb,1),update:h(Pxb,2),delete:h(Cxb,1)};var Y7b=()=>"/fiscalization/fina/settings",wxb=async d=>v(Y7b(),{...d,method:"GET"}),$7b=()=>"/fiscalization/fina/settings",Axb=async(d,u)=>v($7b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var is={list:h(wxb,0),update:h(Axb,1)};var Q7b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/financial-categories?${g}`:"/financial-categories"},Fxb=async(d,u)=>v(Q7b(d),{...u,method:"GET"}),J7b=()=>"/financial-categories",kxb=async(d,u)=>v(J7b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),X7b=d=>`/financial-categories/${d}`,jxb=async(d,u,g)=>v(X7b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),e9b=d=>`/financial-categories/${d}`,Hxb=async(d,u)=>v(e9b(d),{...u,method:"DELETE"}),t9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/financial-categories/revenue-summary?${g}`:"/financial-categories/revenue-summary"},Lxb=async(d,u)=>v(t9b(d),{...u,method:"GET"}),n9b=()=>"/financial-categories/document-items/batch",Gxb=async(d,u)=>v(n9b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),s9b=d=>`/financial-categories/document-items/${d}`,Vxb=async(d,u,g)=>v(s9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var as={list:ne(Fxb),create:h(kxb,1),update:h(jxb,2),delete:h(Hxb,1),getRevenueByFinancialCategory:h(Lxb,1),updateDocumentItemFinancialCategories:h(Gxb,1),updateDocumentItemFinancialCategory:h(Vxb,2)};var o9b=()=>"/fiscalization/furs/settings/certificate",Kxb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(o9b(),{...u,method:"POST",body:g})},i9b=()=>"/fiscalization/furs/settings/certificate",Zxb=async d=>v(i9b(),{...d,method:"GET"}),a9b=()=>"/fiscalization/furs/settings/certificate",qxb=async d=>v(a9b(),{...d,method:"DELETE"});var rs={uploadFursCertificate:h(Kxb,1),getFursCertificate:h(Zxb,0),delete:h(qxb,0)};var r9b=d=>`/fiscalization/furs/premises/${d}/devices`,Wxb=async(d,u)=>v(r9b(d),{...u,method:"GET"}),l9b=d=>`/fiscalization/furs/premises/${d}/devices`,Yxb=async(d,u,g)=>v(l9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),d9b=d=>`/fiscalization/furs/devices/${d}`,$xb=async(d,u)=>v(d9b(d),{...u,method:"GET"}),c9b=d=>`/fiscalization/furs/devices/${d}`,Qxb=async(d,u,g)=>v(c9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var ls={listFursElectronicDevices:h(Wxb,1),registerFursElectronicDevice:h(Yxb,2),getFursElectronicDevice:h($xb,1),update:h(Qxb,2)};var u9b=()=>"/fiscalization/furs/internal-act/report.pdf",Jxb=async d=>v(u9b(),{...d,method:"GET"}),p9b=()=>"/fiscalization/furs/internal-act/report.docx",Xxb=async d=>v(p9b(),{...d,method:"GET"});var ds={generateFursInternalActPdf:h(Jxb,0),generateFursInternalActDocx:h(Xxb,0)};var m9b=()=>"/fiscalization/furs/premises",egb=async d=>v(m9b(),{...d,method:"GET"}),x9b=d=>`/fiscalization/furs/premises/${d}`,tgb=async(d,u)=>v(x9b(d),{...u,method:"GET"}),g9b=d=>`/fiscalization/furs/premises/${d}`,ngb=async(d,u,g)=>v(g9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),y9b=()=>"/fiscalization/furs/premises/real-estate",sgb=async(d,u)=>v(y9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),O9b=()=>"/fiscalization/furs/premises/movable",ogb=async(d,u)=>v(O9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v9b=d=>`/fiscalization/furs/premises/${d}/close`,igb=async(d,u)=>v(v9b(d),{...u,method:"POST"});var cs={listFursBusinessPremises:h(egb,0),getFursBusinessPremise:h(tgb,1),update:h(ngb,2),registerFursRealEstatePremise:h(sgb,1),registerFursMovablePremise:h(ogb,1),closeFursBusinessPremise:h(igb,1)};var h9b=()=>"/fiscalization/furs/settings",agb=async d=>v(h9b(),{...d,method:"GET"}),b9b=()=>"/fiscalization/furs/settings",rgb=async(d,u)=>v(b9b(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var us={list:h(agb,0),update:h(rgb,1)};var S9b=()=>"/health/live",lgb=async d=>v(S9b(),{...d,method:"GET"}),z9b=()=>"/health/ready",dgb=async d=>v(z9b(),{...d,method:"GET"}),f9b=()=>"/health",cgb=async d=>v(f9b(),{...d,method:"GET"});var ps={livenessCheck:h(lgb,0),readinessCheck:h(dgb,0),healthCheck:h(cgb,0)};var I9b=d=>`/invoices/${d}/nav/retry`,ugb=async(d,u)=>v(I9b(d),{...u,method:"POST"}),B9b=d=>`/invoices/${d}/nav/reconcile`,pgb=async(d,u)=>v(B9b(d),{...u,method:"POST"}),T9b=d=>`/invoices/${d}/nav/resolve`,mgb=async(d,u,g)=>v(T9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),E9b=d=>`/invoices/${d}/nav/annulment`,xgb=async(d,u,g)=>v(E9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),D9b=d=>`/invoices/shareable/${d}`,ggb=async(d,u)=>v(D9b(d),{...u,method:"GET"}),R9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/html?${E}`:`/invoices/shareable/${d}/html`},ygb=async(d,u,g)=>v(R9b(d,u),{...g,method:"GET"}),_9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/invoices/shareable/${d}/pdf?${E}`:`/invoices/shareable/${d}/pdf`},Ogb=async(d,u,g)=>v(_9b(d,u),{...g,method:"GET"}),N9b=d=>`/invoices/shareable/${d}/eslog`,vgb=async(d,u)=>v(N9b(d),{...u,method:"GET"}),M9b=d=>`/invoices/${d}/ksef/recover`,hgb=async(d,u)=>v(M9b(d),{...u,method:"POST"}),U9b=d=>`/invoices/${d}/ksef`,bgb=async(d,u)=>v(U9b(d),{...u,method:"GET"}),P9b=d=>`/invoices/${d}/ksef/submit`,Sgb=async(d,u)=>v(P9b(d),{...u,method:"POST"}),C9b=d=>`/invoices/${d}/ksef/upo`,zgb=async(d,u)=>v(C9b(d),{...u,method:"GET"}),w9b=()=>"/invoices",fgb=async(d,u)=>v(w9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),A9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invoices?${g}`:"/invoices"},Igb=async(d,u)=>v(A9b(d),{...u,method:"GET"}),F9b=()=>"/invoices/custom",Bgb=async(d,u)=>v(F9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),k9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/invoices/${d}?${E}`:`/invoices/${d}`},Tgb=async(d,u,g)=>v(k9b(d,u),{...g,method:"GET"}),j9b=d=>`/invoices/${d}`,Egb=async(d,u,g)=>v(j9b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H9b=d=>`/invoices/${d}/credit-options`,Dgb=async(d,u)=>v(H9b(d),{...u,method:"GET"}),L9b=d=>`/invoices/${d}/xrechnung`,Rgb=async(d,u)=>v(L9b(d),{...u,method:"GET"}),G9b=d=>`/invoices/${d}/zugferd`,_gb=async(d,u)=>v(G9b(d),{...u,method:"GET"}),V9b=d=>`/invoices/${d}/versions`,Ngb=async(d,u)=>v(V9b(d),{...u,method:"GET"}),K9b=(d,u)=>`/invoices/${d}/versions/${u}`,Mgb=async(d,u,g)=>v(K9b(d,u),{...g,method:"GET"}),Z9b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/invoices/render?${g}`:"/invoices/render"},Ugb=async(d,u,g)=>v(Z9b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),q9b=d=>`/invoices/${d}/void`,Pgb=async(d,u,g)=>v(q9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),W9b=d=>`/invoices/${d}/fiscalize`,Cgb=async(d,u)=>v(W9b(d),{...u,method:"POST"}),Y9b=d=>`/invoices/${d}/change-buyer-oib`,wgb=async(d,u,g)=>v(Y9b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),$9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/html?${E}`:`/documents/${d}/html`},Agb=async(d,u,g)=>v($9b(d,u),{...g,method:"GET"}),Q9b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/documents/${d}/pdf?${E}`:`/documents/${d}/pdf`},Fgb=async(d,u,g)=>v(Q9b(d,u),{...g,method:"GET"});function ms(d,u){let g=URL.createObjectURL(d),E=document.createElement("a");E.href=g,E.download=u,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(g);}var kgb=h(Fgb,2),J9b=Object.assign(async(d,u,g,E)=>{let f=await kgb(d,g,E);ms(f,u);},{__sdkOptionsIndex:3}),xs={retryInvoiceNav:h(ugb,1),reconcileInvoiceNav:h(pgb,1),resolveInvoiceNav:h(mgb,2),annulInvoiceNav:h(xgb,2),getShareableInvoice:h(ggb,1),getShareableInvoiceHtml:h(ygb,2),getShareableInvoicePdf:h(Ogb,2),getShareableInvoiceEslog:h(vgb,1),recoverInvoiceFromKsef:h(hgb,1),getInvoiceKsefState:h(bgb,1),submitInvoiceToKsef:h(Sgb,1),getInvoiceKsefUpo:h(zgb,1),create:h(fgb,1),list:ne(Igb),createCustom:h(Bgb,1),get:h(Tgb,2),update:h(Egb,2),getCreditOptions:h(Dgb,1),downloadInvoiceXRechnung:h(Rgb,1),downloadInvoiceZugferd:h(_gb,1),getVersions:h(Ngb,1),getVersion:h(Mgb,2),renderInvoicePreview:h(Ugb,2),void:h(Pgb,2),fiscalizeInvoice:h(Cgb,1),changeInvoiceBuyerOib:h(wgb,2),renderHtml:h(Agb,2),renderPdf:kgb,downloadPdf:J9b};var X9b=()=>"/items",jgb=async(d,u)=>v(X9b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),e8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/items?${g}`:"/items"},Hgb=async(d,u)=>v(e8b(d),{...u,method:"GET"}),t8b=()=>"/items/categories",Lgb=async d=>v(t8b(),{...d,method:"GET"}),n8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/items/import/template?${g}`:"/items/import/template"},Ggb=async(d,u)=>v(n8b(d),{...u,method:"GET"}),s8b=()=>"/items/import/preview",Vgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(s8b(),{...u,method:"POST",body:g})},o8b=()=>"/items/import",Kgb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(o8b(),{...u,method:"POST",body:g})},i8b=d=>`/items/${d}`,Zgb=async(d,u,g)=>v(i8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),a8b=d=>`/items/${d}`,qgb=async(d,u)=>v(a8b(d),{...u,method:"DELETE"}),r8b=d=>`/items/${d}/restore`,Wgb=async(d,u)=>v(r8b(d),{...u,method:"POST"}),l8b=d=>`/items/${d}/permanent`,Ygb=async(d,u)=>v(l8b(d),{...u,method:"DELETE"}),d8b=d=>`/items/${d}/inventory`,$gb=async(d,u)=>v(d8b(d),{...u,method:"GET"}),c8b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/items/${d}/inventory/movements?${E}`:`/items/${d}/inventory/movements`},Qgb=async(d,u,g)=>v(c8b(d,u),{...g,method:"GET"}),u8b=d=>`/items/${d}/inventory/movements`,Jgb=async(d,u,g)=>v(u8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),p8b=(d,u)=>`/items/${d}/inventory/movements/${u}`,Xgb=async(d,u,g)=>v(p8b(d,u),{...g,method:"DELETE"}),m8b=d=>`/items/${d}/components`,e0b=async(d,u)=>v(m8b(d),{...u,method:"GET"}),x8b=d=>`/items/${d}/components`,t0b=async(d,u,g)=>v(x8b(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var gs={create:h(jgb,1),list:ne(Hgb),categories:h(Lgb,0),getItemsImportTemplate:h(Ggb,1),preview:h(Vgb,1),importItems:h(Kgb,1),update:h(Zgb,2),delete:h(qgb,1),restoreItem:h(Wgb,1),permanentDeleteItem:h(Ygb,1),getItemInventory:h($gb,1),getItemInventoryMovements:h(Qgb,2),createItemInventoryMovement:h(Jgb,2),deleteItemInventoryMovement:h(Xgb,2),listItemComponents:h(e0b,1),setItemComponents:h(t0b,2)};var g8b=()=>"/legacy-migration/auth",n0b=async(d,u)=>v(g8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),y8b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/legacy-migration/organizations/${d}?${E}`:`/legacy-migration/organizations/${d}`},s0b=async(d,u,g)=>v(y8b(d,u),{...g,method:"GET"}),O8b=()=>"/legacy-migration/jobs",o0b=async(d,u)=>v(O8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),v8b=()=>"/legacy-migration/jobs",i0b=async d=>v(v8b(),{...d,method:"GET"}),h8b=d=>`/legacy-migration/jobs/${d}`,a0b=async(d,u)=>v(h8b(d),{...u,method:"GET"});var ys={legacyMigrationAuth:h(n0b,1),getLegacyMigrationOrganization:h(s0b,2),create:h(o0b,1),listMigrationJobs:h(i0b,0),getMigrationJob:h(a0b,1)};var b8b=()=>"/locale/detect",r0b=async d=>v(b8b(),{...d,method:"GET"});var Os={detectLocale:h(r0b,0)};var S8b=()=>"/order-integrations/shopify/authorize",l0b=async(d,u)=>v(S8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),z8b=()=>"/order-integrations/woocommerce/authorize",d0b=async(d,u)=>v(z8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),f8b=()=>"/order-integrations/magento/authorize",c0b=async(d,u)=>v(f8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I8b=d=>`/order-integrations/magento/authorizations/${d}`,u0b=async(d,u)=>v(I8b(d),{...u,method:"GET"}),B8b=()=>"/order-integrations/shopify/resume-install",p0b=async(d,u)=>v(B8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),T8b=d=>`/order-integrations/${d}/promote-shopify-billing`,m0b=async(d,u)=>v(T8b(d),{...u,method:"POST"}),E8b=d=>`/order-integrations/${d}/sync-shopify`,x0b=async(d,u,g)=>v(E8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),D8b=d=>`/order-integrations/${d}/sync`,g0b=async(d,u,g)=>v(D8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),R8b=()=>"/order-integrations/custom/connect",y0b=async(d,u)=>v(R8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_8b=d=>`/order-integrations/${d}/custom/rotate-secret`,O0b=async(d,u)=>v(_8b(d),{...u,method:"POST"}),N8b=d=>`/order-integrations/${d}/orders`,v0b=async(d,u,g)=>v(N8b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),M8b=()=>"/order-integrations",h0b=async(d,u)=>v(M8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),U8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/order-integrations?${g}`:"/order-integrations"},b0b=async(d,u)=>v(U8b(d),{...u,method:"GET"}),P8b=d=>`/order-integrations/${d}`,S0b=async(d,u)=>v(P8b(d),{...u,method:"GET"}),C8b=d=>`/order-integrations/${d}`,z0b=async(d,u,g)=>v(C8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),w8b=d=>`/order-integrations/${d}`,f0b=async(d,u)=>v(w8b(d),{...u,method:"DELETE"});var vs={authorizeShopify:h(l0b,1),authorizeWooCommerce:h(d0b,1),authorizeMagento:h(c0b,1),getMagentoAuthorization:h(u0b,1),resumeShopifyInstall:h(p0b,1),promoteShopifyBilling:h(m0b,1),syncShopifyOrders:h(x0b,2),syncOrderIntegration:h(g0b,2),connectCustomStore:h(y0b,1),rotateCustomStoreSecret:h(O0b,1),pushCustomStoreOrder:h(v0b,2),create:h(h0b,1),list:ne(b0b),get:h(S0b,1),update:h(z0b,2),delete:h(f0b,1)};var A8b=()=>"/orders",I0b=async(d,u)=>v(A8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/orders?${g}`:"/orders"},B0b=async(d,u)=>v(F8b(d),{...u,method:"GET"}),k8b=d=>`/orders/${d}`,T0b=async(d,u)=>v(k8b(d),{...u,method:"GET"}),j8b=d=>`/orders/${d}`,E0b=async(d,u,g)=>v(j8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),H8b=d=>`/orders/${d}`,D0b=async(d,u)=>v(H8b(d),{...u,method:"DELETE"}),L8b=d=>`/orders/${d}/process`,R0b=async(d,u)=>v(L8b(d),{...u,method:"POST"}),G8b=d=>`/orders/${d}/cancel`,_0b=async(d,u)=>v(G8b(d),{...u,method:"POST"}),V8b=d=>`/orders/${d}/reissue`,N0b=async(d,u)=>v(V8b(d),{...u,method:"POST"}),K8b=()=>"/orders/export/pdf",M0b=async(d,u)=>v(K8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Z8b=d=>`/orders/export/pdf/${d}`,U0b=async(d,u)=>v(Z8b(d),{...u,method:"GET"}),q8b=d=>`/orders/export/pdf/${d}/download`,P0b=async(d,u)=>v(q8b(d),{...u,method:"GET"});var hs={create:h(I0b,1),list:ne(B0b),get:h(T0b,1),update:h(E0b,2),delete:h(D0b,1),processOrder:h(R0b,1),cancelOrder:h(_0b,1),reissueOrder:h(N0b,1),startOrdersPdfExport:h(M0b,1),getOrdersPdfExportJob:h(U0b,1),downloadOrdersPdfExport:h(P0b,1)};var W8b=()=>"/payment-reminders/send",C0b=async(d,u)=>v(W8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payment-reminders?${g}`:"/payment-reminders"},w0b=async(d,u)=>v(Y8b(d),{...u,method:"GET"});var bs={sendPaymentReminder:h(C0b,1),list:ne(w0b)};var $8b=()=>"/payments",A0b=async(d,u)=>v($8b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Q8b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/payments?${g}`:"/payments"},F0b=async(d,u)=>v(Q8b(d),{...u,method:"GET"}),J8b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/payments/${d}?${E}`:`/payments/${d}`},k0b=async(d,u,g)=>v(J8b(d,u),{...g,method:"GET"}),X8b=d=>`/payments/${d}`,j0b=async(d,u,g)=>v(X8b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),eYb=d=>`/payments/${d}`,H0b=async(d,u)=>v(eYb(d),{...u,method:"DELETE"}),tYb=d=>`/payments/${d}/restore`,L0b=async(d,u)=>v(tYb(d),{...u,method:"POST"}),nYb=d=>`/payments/${d}/permanent`,G0b=async(d,u)=>v(nYb(d),{...u,method:"DELETE"}),sYb=()=>"/bank-imports",V0b=async(d,u)=>{let g=new FormData;return g.append("file",d.file),d.source_format!==void 0&&d.source_format!==null&&g.append("source_format",d.source_format),d.column_mapping!==void 0&&d.column_mapping!==null&&g.append("column_mapping",d.column_mapping),d.ledger_account_code!==void 0&&d.ledger_account_code!==null&&g.append("ledger_account_code",d.ledger_account_code),d.account_iban!==void 0&&d.account_iban!==null&&g.append("account_iban",d.account_iban),v(sYb(),{...u,method:"POST",body:g})},oYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/bank-imports?${g}`:"/bank-imports"},K0b=async(d,u)=>v(oYb(d),{...u,method:"GET"}),iYb=d=>`/bank-imports/${d}`,Z0b=async(d,u)=>v(iYb(d),{...u,method:"GET"}),aYb=d=>`/bank-imports/${d}/summary`,q0b=async(d,u)=>v(aYb(d),{...u,method:"GET"}),rYb=d=>`/bank-imports/${d}/match`,W0b=async(d,u)=>v(rYb(d),{...u,method:"POST"}),lYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/bank-transactions?${g}`:"/bank-transactions"},Y0b=async(d,u)=>v(lYb(d),{...u,method:"GET"}),dYb=d=>`/bank-transactions/${d}`,$0b=async(d,u)=>v(dYb(d),{...u,method:"GET"}),cYb=d=>`/bank-transactions/${d}/link`,Q0b=async(d,u,g)=>v(cYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),uYb=d=>`/bank-transactions/${d}/confirm-fee`,J0b=async(d,u,g)=>v(uYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),pYb=d=>`/bank-transactions/${d}/categorize`,X0b=async(d,u,g)=>v(pYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),mYb=()=>"/bank-transactions/apply-category-suggestions",eyb=async(d,u)=>v(mYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),xYb=d=>`/bank-transactions/${d}/ignore`,tyb=async(d,u)=>v(xYb(d),{...u,method:"POST"}),gYb=d=>`/bank-transactions/${d}/unlink`,nyb=async(d,u)=>v(gYb(d),{...u,method:"POST"});var Ss={create:h(A0b,1),list:ne(F0b),get:h(k0b,2),update:h(j0b,2),delete:h(H0b,1),restorePayment:h(L0b,1),permanentDeletePayment:h(G0b,1),importBankStatement:h(V0b,1),listBankImports:h(K0b,1),getBankImport:h(Z0b,1),getBankImportSummary:h(q0b,1),rematchBankImport:h(W0b,1),listBankTransactions:h(Y0b,1),getBankTransaction:h($0b,1),linkBankTransaction:h(Q0b,2),confirmBankTransactionFee:h(J0b,2),categorizeBankTransaction:h(X0b,2),applyBankTransactionCategorySuggestions:h(eyb,1),ignoreBankTransaction:h(tyb,1),unlinkBankTransaction:h(nyb,1)};var yYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/tables?${g}`:"/pos/tables"},syb=async(d,u)=>v(yYb(d),{...u,method:"GET"}),OYb=()=>"/pos/tables",oyb=async(d,u)=>v(OYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),vYb=d=>`/pos/tables/${d}`,iyb=async(d,u,g)=>v(vYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),hYb=d=>`/pos/tables/${d}`,ayb=async(d,u)=>v(hYb(d),{...u,method:"DELETE"}),bYb=d=>`/pos/tabs/${d}/items`,ryb=async(d,u,g)=>v(bYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),SYb=d=>`/pos/tabs/${d}/claim`,lyb=async(d,u,g)=>v(SYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),zYb=d=>`/pos/tabs/${d}/release`,dyb=async(d,u,g)=>v(zYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),fYb=d=>`/pos/tabs/${d}/close`,cyb=async(d,u,g)=>v(fYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),IYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/tabs?${g}`:"/pos/tabs"},uyb=async(d,u)=>v(IYb(d),{...u,method:"GET"}),BYb=()=>"/pos/tabs",pyb=async(d,u)=>v(BYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),TYb=d=>`/pos/tabs/${d}`,myb=async(d,u)=>v(TYb(d),{...u,method:"GET"}),EYb=d=>`/pos/tabs/${d}`,xyb=async(d,u,g)=>v(EYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),DYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/pos/tabs/${d}?${E}`:`/pos/tabs/${d}`},gyb=async(d,u,g)=>v(DYb(d,u),{...g,method:"DELETE"}),RYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily/export?${g}`:"/pos/reports/daily/export"},yyb=async(d,u)=>v(RYb(d),{...u,method:"GET"}),_Yb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly/export?${g}`:"/pos/reports/monthly/export"},Oyb=async(d,u)=>v(_Yb(d),{...u,method:"GET"}),NYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/daily?${g}`:"/pos/reports/daily"},vyb=async(d,u)=>v(NYb(d),{...u,method:"GET"}),MYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/pos/reports/monthly?${g}`:"/pos/reports/monthly"},hyb=async(d,u)=>v(MYb(d),{...u,method:"GET"}),UYb=()=>"/pos/operators",byb=async d=>v(UYb(),{...d,method:"GET"}),PYb=()=>"/pos/operators/enrol",Syb=async(d,u)=>v(PYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),CYb=()=>"/pos/operators/switch",zyb=async(d,u)=>v(CYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),wYb=d=>`/pos/operators/${d}/pin`,fyb=async(d,u,g)=>v(wYb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),AYb=d=>`/pos/operators/${d}/pin`,Iyb=async(d,u)=>v(AYb(d),{...u,method:"DELETE"});var FYb=h(gyb,2),zs={listTables:ne(syb),createTable:h(oyb,1),updateTable:h(iyb,2),deleteTable:h(ayb,1),appendTabItems:h(ryb,2),claimTab:h(lyb,2),releaseTab:h(dyb,2),closeTab:h(cyb,2),listTabs:ne(uyb),createTab:h(pyb,1),getTab:h(myb,1),updateTab:h(xyb,2),cancelTab:Object.assign((...d)=>FYb(d[0],d[1]??{},d[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:h(yyb,1),exportPosMonthlyReport:h(Oyb,1),dailyReport:h(vyb,1),getPosMonthlyReport:h(hyb,1),listOperators:h(byb,0),enrolPosOperator:h(Syb,1),switchOperator:h(zyb,1),setOperatorPin:h(fyb,2),clearOperatorPin:h(Iyb,1)};var kYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/items/prices?${g}`:"/items/prices"},Byb=async(d,u)=>v(kYb(d),{...u,method:"GET"}),jYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/price-lists?${g}`:"/price-lists"},Tyb=async(d,u)=>v(jYb(d),{...u,method:"GET"}),HYb=()=>"/price-lists",Eyb=async(d,u)=>v(HYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),LYb=d=>`/price-lists/${d}`,Dyb=async(d,u)=>v(LYb(d),{...u,method:"GET"}),GYb=d=>`/price-lists/${d}`,Ryb=async(d,u,g)=>v(GYb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),VYb=d=>`/price-lists/${d}`,_yb=async(d,u)=>v(VYb(d),{...u,method:"DELETE"}),KYb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/price-lists/${d}/prices?${E}`:`/price-lists/${d}/prices`},Nyb=async(d,u,g)=>v(KYb(d,u),{...g,method:"GET"}),ZYb=d=>`/price-lists/${d}/prices`,Myb=async(d,u,g)=>v(ZYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qYb=d=>`/price-lists/${d}/prices/bulk`,Uyb=async(d,u,g)=>v(qYb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),WYb=(d,u)=>`/price-lists/${d}/prices/${u}`,Pyb=async(d,u,g)=>v(WYb(d,u),{...g,method:"DELETE"});var fs={resolveItemPrices:h(Byb,1),list:ne(Tyb),create:h(Eyb,1),get:h(Dyb,1),update:h(Ryb,2),delete:h(_yb,1),listPriceListPrices:h(Nyb,2),upsertPriceListPrices:h(Myb,2),bulkSetPriceListPrices:h(Uyb,2),removePriceListPrice:h(Pyb,2)};var YYb=()=>"/fiscalization/pt/atcud-series",Cyb=async(d,u)=>v(YYb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),$Yb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series?${g}`:"/fiscalization/pt/atcud-series"},wyb=async(d,u)=>v($Yb(d),{...u,method:"GET"}),QYb=d=>`/fiscalization/pt/atcud-series/${d}`,Ayb=async(d,u)=>v(QYb(d),{...u,method:"GET"}),JYb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/atcud-series/active?${g}`:"/fiscalization/pt/atcud-series/active"},Fyb=async(d,u)=>v(JYb(d),{...u,method:"POST"}),XYb=d=>`/fiscalization/pt/atcud-series/${d}/retire`,kyb=async(d,u)=>v(XYb(d),{...u,method:"POST"});var Is={create:h(Cyb,1),list:ne(wyb),get:h(Ayb,1),getActive:h(Fyb,1),retirePtAtcudSeries:h(kyb,1)};var e$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/fiscalization/pt/saft/report?${g}`:"/fiscalization/pt/saft/report"},jyb=async(d,u)=>v(e$b(d),{...u,method:"GET"});var Bs={generateReport:h(jyb,1)};var t$b=d=>`/purchase-orders/shareable/${d}`,Hyb=async(d,u)=>v(t$b(d),{...u,method:"GET"}),n$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/html?${E}`:`/purchase-orders/shareable/${d}/html`},Lyb=async(d,u,g)=>v(n$b(d,u),{...g,method:"GET"}),s$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/purchase-orders/shareable/${d}/pdf?${E}`:`/purchase-orders/shareable/${d}/pdf`},Gyb=async(d,u,g)=>v(s$b(d,u),{...g,method:"GET"}),o$b=()=>"/purchase-orders",Vyb=async(d,u)=>v(o$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),i$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/purchase-orders?${g}`:"/purchase-orders"},Kyb=async(d,u)=>v(i$b(d),{...u,method:"GET"}),a$b=d=>`/purchase-orders/${d}`,Zyb=async(d,u)=>v(a$b(d),{...u,method:"GET"}),r$b=d=>`/purchase-orders/${d}`,qyb=async(d,u,g)=>v(r$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),l$b=d=>`/purchase-orders/${d}/versions`,Wyb=async(d,u)=>v(l$b(d),{...u,method:"GET"}),d$b=(d,u)=>`/purchase-orders/${d}/versions/${u}`,Yyb=async(d,u,g)=>v(d$b(d,u),{...g,method:"GET"}),c$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/purchase-orders/render?${g}`:"/purchase-orders/render"},$yb=async(d,u,g)=>v(c$b(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),u$b=d=>`/purchase-orders/${d}/void`,Qyb=async(d,u,g)=>v(u$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Ts={getShareablePurchaseOrder:h(Hyb,1),getShareablePurchaseOrderHtml:h(Lyb,2),getShareablePurchaseOrderPdf:h(Gyb,2),create:h(Vyb,1),list:ne(Kyb),get:h(Zyb,1),update:h(qyb,2),getVersions:h(Wyb,1),getVersion:h(Yyb,2),renderPurchaseOrderPreview:h($yb,2),void:h(Qyb,2)};var p$b=()=>"/recurring-invoices",Jyb=async(d,u)=>v(p$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),m$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/recurring-invoices?${g}`:"/recurring-invoices"},Xyb=async(d,u)=>v(m$b(d),{...u,method:"GET"}),x$b=d=>`/recurring-invoices/${d}`,eOb=async(d,u)=>v(x$b(d),{...u,method:"GET"}),g$b=d=>`/recurring-invoices/${d}`,tOb=async(d,u,g)=>v(g$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),y$b=d=>`/recurring-invoices/${d}`,nOb=async(d,u)=>v(y$b(d),{...u,method:"DELETE"}),O$b=d=>`/recurring-invoices/${d}/restore`,sOb=async(d,u)=>v(O$b(d),{...u,method:"POST"}),v$b=d=>`/recurring-invoices/${d}/permanent`,oOb=async(d,u)=>v(v$b(d),{...u,method:"DELETE"}),h$b=d=>`/recurring-invoices/${d}/pause`,iOb=async(d,u)=>v(h$b(d),{...u,method:"POST"}),b$b=d=>`/recurring-invoices/${d}/resume`,aOb=async(d,u)=>v(b$b(d),{...u,method:"POST"}),S$b=d=>`/recurring-invoices/${d}/trigger`,rOb=async(d,u)=>v(S$b(d),{...u,method:"POST"});var Es={create:h(Jyb,1),list:ne(Xyb),get:h(eOb,1),update:h(tOb,2),delete:h(nOb,1),restoreRecurringInvoice:h(sOb,1),permanentDeleteRecurringInvoice:h(oOb,1),pauseRecurringInvoice:h(iOb,1),resumeRecurringInvoice:h(aOb,1),triggerRecurringInvoice:h(rOb,1)};var z$b=()=>"/revenue-recognition/settings",lOb=async d=>v(z$b(),{...d,method:"GET"}),f$b=()=>"/revenue-recognition/settings",dOb=async(d,u)=>v(f$b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),I$b=()=>"/revenue-recognition/backfill",cOb=async(d,u)=>v(I$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),B$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/report?${g}`:"/revenue-recognition/report"},uOb=async(d,u)=>v(B$b(d),{...u,method:"GET"}),T$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/details?${g}`:"/revenue-recognition/details"},pOb=async(d,u)=>v(T$b(d),{...u,method:"GET"}),E$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/revenue-recognition/lines?${g}`:"/revenue-recognition/lines"},mOb=async(d,u)=>v(E$b(d),{...u,method:"GET"}),D$b=d=>`/revenue-recognition/documents/${d}`,xOb=async(d,u)=>v(D$b(d),{...u,method:"GET"});var Ds={getSettings:h(lOb,0),updateSettings:h(dOb,1),backfill:h(cOb,1),getReport:h(uOb,1),getDetails:h(pOb,1),listLines:h(mOb,1),getDocumentSchedule:h(xOb,1)};var R$b=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/orders/${d}/shipment-draft?${E}`:`/orders/${d}/shipment-draft`},gOb=async(d,u,g)=>v(R$b(d,u),{...g,method:"GET"}),_$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/shipments?${g}`:"/shipments"},yOb=async(d,u)=>v(_$b(d),{...u,method:"GET"}),N$b=()=>"/shipments",OOb=async(d,u)=>v(N$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),M$b=()=>"/shipments/labels",vOb=async(d,u)=>v(M$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),U$b=d=>`/shipments/${d}`,hOb=async(d,u)=>v(U$b(d),{...u,method:"GET"}),P$b=d=>`/shipments/${d}/label`,bOb=async(d,u)=>v(P$b(d),{...u,method:"GET"}),C$b=d=>`/shipments/${d}/cancel`,SOb=async(d,u,g)=>v(C$b(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Rs={getOrderShipmentDraft:h(gOb,2),listShipments:h(yOb,1),create:h(OOb,1),downloadShipmentLabels:h(vOb,1),getShipment:h(hOb,1),downloadShipmentLabel:h(bOb,1),cancelShipment:h(SOb,2)};var w$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/shipping-connections?${g}`:"/shipping-connections"},zOb=async(d,u)=>v(w$b(d),{...u,method:"GET"}),A$b=()=>"/shipping-connections",fOb=async(d,u)=>v(A$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),F$b=d=>`/shipping-connections/${d}`,IOb=async(d,u)=>v(F$b(d),{...u,method:"GET"}),k$b=d=>`/shipping-connections/${d}`,BOb=async(d,u,g)=>v(k$b(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),j$b=d=>`/shipping-connections/${d}`,TOb=async(d,u)=>v(j$b(d),{...u,method:"DELETE"});var _s={listShippingConnections:h(zOb,1),create:h(fOb,1),getShippingConnection:h(IOb,1),update:h(BOb,2),delete:h(TOb,1)};var H$b=()=>"/stripe-app/marketplace-authorize",EOb=async(d,u)=>v(H$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),L$b=()=>"/stripe-app/connect",DOb=async(d,u)=>v(L$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),G$b=()=>"/stripe-app/entity-connection",ROb=async d=>v(G$b(),{...d,method:"GET"}),V$b=()=>"/stripe-app/entity-connection",_Ob=async d=>v(V$b(),{...d,method:"DELETE"}),K$b=()=>"/stripe-app/entity-settings",NOb=async d=>v(K$b(),{...d,method:"GET"}),Z$b=()=>"/stripe-app/entity-settings",MOb=async(d,u)=>v(Z$b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Ns={stripeAppMarketplaceAuthorize:h(EOb,1),stripeAppConnect:h(DOb,1),stripeAppEntityGetConnection:h(ROb,0),stripeAppEntityDisconnect:h(_Ob,0),stripeAppEntityGetSettings:h(NOb,0),stripeAppEntityUpdateSettings:h(MOb,1)};var q$b=()=>"/subscriptions",UOb=async d=>v(q$b(),{...d,method:"GET"}),W$b=()=>"/subscriptions/spending-limit",POb=async(d,u)=>v(W$b(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),Y$b=()=>"/subscriptions/check-entity-limit",COb=async d=>v(Y$b(),{...d,method:"GET"});var Ms={getCurrent:h(UOb,0),update:h(POb,1),checkEntityLimit:h(COb,0)};var $$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-rate-estimates/us?${g}`:"/tax-rate-estimates/us"},wOb=async(d,u)=>v($$b(d),{...u,method:"GET"});var Us={listUsTaxRateEstimates:h(wOb,1)};var Q$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/liability?${g}`:"/tax-reports/liability"},AOb=async(d,u)=>v(Q$b(d),{...u,method:"GET"}),J$b=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/payments?${g}`:"/tax-reports/payments"},FOb=async(d,u)=>v(J$b(d),{...u,method:"GET"}),X$b=()=>"/tax-reports/payments",kOb=async(d,u)=>v(X$b(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eQb=d=>`/tax-reports/payments/${d}`,jOb=async(d,u,g)=>v(eQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),tQb=d=>`/tax-reports/payments/${d}`,HOb=async(d,u)=>v(tQb(d),{...u,method:"DELETE"}),nQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/eu/oss?${g}`:"/tax-reports/eu/oss"},LOb=async(d,u)=>v(nQb(d),{...u,method:"GET"}),sQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/kir?${g}`:"/tax-reports/kir"},GOb=async(d,u)=>v(sQb(d),{...u,method:"POST"}),oQb=()=>"/tax-reports/si/profile",VOb=async d=>v(oQb(),{...d,method:"GET"}),iQb=()=>"/tax-reports/si/profile",KOb=async(d,u)=>v(iQb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),aQb=()=>"/tax-reports/si/yearly/normirani/review",ZOb=async(d,u)=>v(aQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),rQb=()=>"/tax-reports/si/yearly/normirani/export",qOb=async(d,u)=>v(rQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),lQb=()=>"/tax-reports/si/accounting/vod/export",WOb=async(d,u)=>v(lQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),dQb=()=>"/tax-reports/si/accounting/minimax/export",YOb=async(d,u)=>v(dQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),cQb=()=>"/tax-reports/si/accounting/vasco/export",$Ob=async(d,u)=>v(cQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),uQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/tax-reports/accounting/quickbooks/export?${g}`:"/tax-reports/accounting/quickbooks/export"},QOb=async(d,u)=>v(uQb(d),{...u,method:"GET"});var Ps={getTaxLiabilityReport:h(AOb,1),list:ne(FOb),create:h(kOb,1),update:h(jOb,2),delete:h(HOb,1),getEuOssReport:h(LOb,1),generateKirExport:h(GOb,1),getSloveniaTaxProfile:h(VOb,0),updateSloveniaTaxProfile:h(KOb,1),reviewSloveniaYearlyNormiraniReport:h(ZOb,1),exportSloveniaYearlyNormiraniReport:h(qOb,1),exportSloveniaVodXml:h(WOb,1),exportSloveniaMinimaxXml:h(YOb,1),exportSloveniaVascoXml:h($Ob,1),exportQuickbooksCsv:h(QOb,1),listEmployees:h(Ae,1),registerEmployee:h(Fe,1),getEmployee:h(ke,1),modifyEmployee:h(je,2),archiveEmployee:h(He,1),getEmployeeAttendance:h(Le,2),replaceEmployeeAttendance:h(Ge,3),resolvePayrollParameters:h(Ve,1),getPayrollParameterHistory:h(Ke,1),setPayrollParameterOverride:h(Ze,3),preview:h(qe,1),draftVatReturn:h(We,1),listVatReturns:h(Ye,1),getVatReturn:h($e,1),recomputeVatReturn:h(Qe,1),approveVatReturn:h(Je,1),submitVatReturn:h(Xe,2),reopenVatReturn:h(et,1),exportVatReturn:h(tt,2),listFilings:h(nt,1),completeFiling:h(st,2),reopenFiling:h(ot,1),dismissFiling:h(it,2),listAccountFilingsCalendar:h(at,1)};var pQb=()=>"/taxes",JOb=async(d,u)=>v(pQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),mQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/taxes?${g}`:"/taxes"},XOb=async(d,u)=>v(mQb(d),{...u,method:"GET"}),xQb=d=>`/taxes/${d}`,evb=async(d,u,g)=>v(xQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),gQb=d=>`/taxes/${d}`,tvb=async(d,u,g)=>v(gQb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),yQb=d=>`/taxes/${d}`,nvb=async(d,u)=>v(yQb(d),{...u,method:"DELETE"}),OQb=d=>`/taxes/${d}/restore`,svb=async(d,u)=>v(OQb(d),{...u,method:"POST"}),vQb=d=>`/taxes/${d}/permanent`,ovb=async(d,u)=>v(vQb(d),{...u,method:"DELETE"});var Cs={create:h(JOb,1),list:ne(XOb),update:h(evb,2),replaceTax:h(tvb,2),delete:h(nvb,1),restoreTax:h(svb,1),permanentDeleteTax:h(ovb,1)};var hQb=()=>"/fiscalization/ticketbai/settings",ivb=async d=>v(hQb(),{...d,method:"GET"}),bQb=()=>"/fiscalization/ticketbai/settings",avb=async(d,u)=>v(bQb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),SQb=()=>"/fiscalization/ticketbai/settings/certificate",rvb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(SQb(),{...u,method:"POST",body:g})},zQb=d=>`/fiscalization/ticketbai/records/${d}`,lvb=async(d,u)=>v(zQb(d),{...u,method:"GET"}),fQb=d=>`/fiscalization/ticketbai/records/${d}/xml`,dvb=async(d,u)=>v(fQb(d),{...u,method:"GET"}),IQb=d=>`/fiscalization/ticketbai/records/${d}/retry`,cvb=async(d,u)=>v(IQb(d),{...u,method:"POST"}),BQb=d=>`/fiscalization/ticketbai/records/${d}/reconcile`,uvb=async(d,u)=>v(BQb(d),{...u,method:"POST"});var ws={getSettings:h(ivb,0),updateSettings:h(avb,1),uploadCertificate:h(rvb,1),getRecord:h(lvb,1),downloadRecordXml:h(dvb,1),retryRecord:h(cvb,1),reconcileRecord:h(uvb,1)};var TQb=()=>"/transaction-type/check",pvb=async(d,u)=>v(TQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var As={checkTransactionType:h(pvb,1)};var EQb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/travel-orders?${g}`:"/travel-orders"},mvb=async(d,u)=>v(EQb(d),{...u,method:"GET"}),DQb=()=>"/travel-orders",xvb=async(d,u)=>v(DQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),RQb=()=>"/travel-orders/preview",gvb=async(d,u)=>v(RQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),_Qb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/travel-orders/render?${g}`:"/travel-orders/render"},yvb=async(d,u,g)=>v(_Qb(u),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(d)}),NQb=()=>"/travel-orders/route-distance",Ovb=async(d,u)=>v(NQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),MQb=d=>`/travel-orders/${d}`,vvb=async(d,u)=>v(MQb(d),{...u,method:"GET"}),UQb=d=>`/travel-orders/${d}`,hvb=async(d,u,g)=>v(UQb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),PQb=d=>`/travel-orders/${d}`,bvb=async(d,u)=>v(PQb(d),{...u,method:"DELETE"}),CQb=d=>`/travel-orders/${d}/approve`,Svb=async(d,u)=>v(CQb(d),{...u,method:"POST"}),wQb=d=>`/travel-orders/${d}/settle`,zvb=async(d,u)=>v(wQb(d),{...u,method:"POST"}),AQb=d=>`/travel-orders/${d}/reopen`,fvb=async(d,u,g)=>v(AQb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),FQb=d=>`/travel-orders/${d}/cancel`,Ivb=async(d,u)=>v(FQb(d),{...u,method:"POST"}),kQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/pdf?${E}`:`/travel-orders/${d}/pdf`},Bvb=async(d,u,g)=>v(kQb(d,u),{...g,method:"GET"}),jQb=(d,u)=>{let g=new URLSearchParams;Object.entries(u||{}).forEach(([f,M])=>{M!==void 0&&g.append(f,M===null?"null":M.toString());});let E=g.toString();return E.length>0?`/travel-orders/${d}/html?${E}`:`/travel-orders/${d}/html`},Tvb=async(d,u,g)=>v(jQb(d,u),{...g,method:"GET"});var Fs={list:ne(mvb),create:h(xvb,1),preview:h(gvb,1),renderTravelOrderPreview:h(yvb,2),calculateTravelOrderRouteDistance:h(Ovb,1),get:h(vvb,1),update:h(hvb,2),delete:h(bvb,1),approveTravelOrder:h(Svb,1),settleTravelOrder:h(zvb,1),reopenTravelOrder:h(fvb,2),cancelTravelOrder:h(Ivb,1),renderPdf:h(Bvb,2),renderHtml:h(Tvb,2)};var Ce="https://eu.spaceinvoices.com";var HQb=d=>`/documents/${d}/ujp`,Evb=async(d,u)=>v(HQb(d),{...u,method:"GET"});var ks={download:h(Evb,1)};var LQb=()=>"/upload/image",Dvb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),v(LQb(),{...u,method:"POST",body:g})};var js={uploadImage:h(Dvb,1)};var GQb=()=>"/accounts/two-factor-policy",Rvb=async d=>v(GQb(),{...d,method:"GET"}),VQb=()=>"/accounts/two-factor-policy",_vb=async(d,u)=>v(VQb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),KQb=d=>`/entities/${d}/two-factor-policy`,Nvb=async(d,u)=>v(KQb(d),{...u,method:"GET"}),ZQb=d=>`/entities/${d}/two-factor-policy`,Mvb=async(d,u,g)=>v(ZQb(d),{...g,method:"PUT",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),qQb=()=>"/users/two-factor/setup",Uvb=async(d,u)=>v(qQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),WQb=()=>"/users/two-factor/enable",Pvb=async(d,u)=>v(WQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),YQb=()=>"/users/me/two-factor",Cvb=async d=>v(YQb(),{...d,method:"GET"}),$Qb=()=>"/users/me/two-factor/setup",wvb=async(d,u)=>v($Qb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),QQb=()=>"/users/me/two-factor/enable",Avb=async(d,u)=>v(QQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),JQb=()=>"/users/me/two-factor/disable",Fvb=async(d,u)=>v(JQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),XQb=()=>"/users/two-factor/verify",kvb=async(d,u)=>v(XQb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),eJb=()=>"/users/login",jvb=async(d,u)=>v(eJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),tJb=()=>"/users/signup",Hvb=async(d,u)=>v(tJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),nJb=()=>"/users/password-reset",Lvb=async(d,u)=>v(nJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),sJb=()=>"/users/password-reset/confirm",Gvb=async(d,u)=>v(sJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),oJb=()=>"/users/me/accounts",Vvb=async d=>v(oJb(),{...d,method:"GET"}),iJb=()=>"/users/me",Kvb=async d=>v(iJb(),{...d,method:"GET"}),aJb=()=>"/users/me",Zvb=async(d,u)=>v(aJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),rJb=()=>"/users/me/account-deletion",qvb=async d=>v(rJb(),{...d,method:"POST"}),lJb=()=>"/users/me/settings/furs",Wvb=async(d,u)=>v(lJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),dJb=()=>"/users/me/settings/fina",Yvb=async(d,u)=>v(dJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Hs={getAccountTwoFactorPolicy:h(Rvb,0),updateAccountTwoFactorPolicy:h(_vb,1),getEntityTwoFactorPolicy:h(Nvb,1),updateEntityTwoFactorPolicy:h(Mvb,2),setupRequiredTwoFactor:h(Uvb,1),enableRequiredTwoFactor:h(Pvb,1),getTwoFactorConfiguration:h(Cvb,0),setupTwoFactor:h(wvb,1),enableTwoFactor:h(Avb,1),disableTwoFactor:h(Fvb,1),verifyTwoFactor:h(kvb,1),login:h(jvb,1),signup:h(Hvb,1),requestPasswordReset:h(Lvb,1),confirmPasswordReset:h(Gvb,1),listMyAccounts:h(Vvb,0),getMe:h(Kvb,0),update:h(Zvb,1),requestAccountDeletion:h(qvb,0),updateFursSettings:h(Wvb,1),updateFinaSettings:h(Yvb,1)};var cJb=()=>"/fiscalization/verifactu/settings",$vb=async d=>v(cJb(),{...d,method:"GET"}),uJb=()=>"/fiscalization/verifactu/settings",Qvb=async(d,u)=>v(uJb(),{...u,method:"PUT",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),pJb=()=>"/fiscalization/verifactu/certificate",Jvb=async(d,u)=>{let g=new FormData;return g.append("file",d.file),g.append("passphrase",d.passphrase),v(pJb(),{...u,method:"POST",body:g})},mJb=d=>`/fiscalization/verifactu/records/${d}`,Xvb=async(d,u)=>v(mJb(d),{...u,method:"GET"}),xJb=d=>`/fiscalization/verifactu/records/${d}/retry`,ehb=async(d,u)=>v(xJb(d),{...u,method:"POST"}),gJb=d=>`/fiscalization/verifactu/records/${d}/correct`,thb=async(d,u,g)=>v(gJb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),yJb=d=>`/fiscalization/verifactu/records/${d}/cancel`,nhb=async(d,u,g)=>v(yJb(d),{...g,method:"POST",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)});var Ls={getSettings:h($vb,0),updateSettings:h(Qvb,1),uploadCertificate:h(Jvb,1),getEvidence:h(Xvb,1),retryRecord:h(ehb,1),correctRecord:h(thb,2),cancelRecord:h(nhb,2)};var OJb=()=>"/vies/check",shb=async(d,u)=>v(OJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Gs={checkVies:h(shb,1)};var vJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/warehouses?${g}`:"/warehouses"},ohb=async(d,u)=>v(vJb(d),{...u,method:"GET"}),hJb=()=>"/warehouses",ihb=async(d,u)=>v(hJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),bJb=d=>`/warehouses/${d}`,ahb=async(d,u)=>v(bJb(d),{...u,method:"GET"}),SJb=d=>`/warehouses/${d}`,rhb=async(d,u,g)=>v(SJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),zJb=d=>`/warehouses/${d}`,lhb=async(d,u)=>v(zJb(d),{...u,method:"DELETE"});var Vs={list:ne(ohb),create:h(ihb,1),get:h(ahb,1),update:h(rhb,2),delete:h(lhb,1)};var fJb=()=>"/webhooks",dhb=async(d,u)=>v(fJb(),{...u,method:"POST",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)}),IJb=d=>{let u=new URLSearchParams;Object.entries(d||{}).forEach(([E,f])=>{f!==void 0&&u.append(E,f===null?"null":f.toString());});let g=u.toString();return g.length>0?`/webhooks?${g}`:"/webhooks"},chb=async(d,u)=>v(IJb(d),{...u,method:"GET"}),BJb=d=>`/webhooks/${d}`,uhb=async(d,u)=>v(BJb(d),{...u,method:"GET"}),TJb=d=>`/webhooks/${d}`,phb=async(d,u,g)=>v(TJb(d),{...g,method:"PATCH",headers:{"Content-Type":"application/json",...g?.headers},body:JSON.stringify(u)}),EJb=d=>`/webhooks/${d}`,mhb=async(d,u)=>v(EJb(d),{...u,method:"DELETE"}),DJb=d=>`/webhooks/${d}/test`,xhb=async(d,u)=>v(DJb(d),{...u,method:"POST"});var RJb=d=>`/webhooks/${d}/rotate-secret`,ghb=async(d,u)=>v(RJb(d),{...u,method:"POST"});var Ks={create:h(dhb,1),list:ne(chb),get:h(uhb,1),update:h(phb,2),delete:h(mhb,1),testWebhook:h(xhb,1),rotateWebhookSecret:h(ghb,1)};var _Jb=()=>"/white-label-subscriptions",yhb=async d=>v(_Jb(),{...d,method:"GET"}),NJb=()=>"/white-label-subscriptions/plans",Ohb=async d=>v(NJb(),{...d,method:"GET"}),MJb=d=>`/white-label-subscriptions/check-feature/${d}`,vhb=async(d,u)=>v(MJb(d),{...u,method:"GET"}),UJb=d=>`/white-label-subscriptions/check-limit/${d}`,hhb=async(d,u)=>v(UJb(d),{...u,method:"GET"}),PJb=()=>"/white-label-subscriptions/billing-email",bhb=async(d,u)=>v(PJb(),{...u,method:"PATCH",headers:{"Content-Type":"application/json",...u?.headers},body:JSON.stringify(d)});var Zs={getCurrentWLSubscription:h(yhb,0),list:h(Ohb,0),checkWLFeature:h(vhb,1),checkWLLimit:h(hhb,1),update:h(bhb,1)};var CJb=()=>"/white-labels/current",Shb=async d=>v(CJb(),{...d,method:"GET"}),wJb=()=>"/white-labels/me",zhb=async d=>v(wJb(),{...d,method:"GET"});var qs={getCurrentWhiteLabel:h(Shb,0),getMyWhiteLabel:h(zhb,0)};var Pe=class{sdkConfig;accountWebhooks=Y(En,()=>this.sdkConfig);accounting=Y(Dn,()=>this.sdkConfig);activities=Y(Rn,()=>this.sdkConfig);advanceInvoices=Y(_n,()=>this.sdkConfig);businessUnits=Y(Nn,()=>this.sdkConfig);companyRegistry=Y(Mn,()=>this.sdkConfig);creditNotes=Y(Un,()=>this.sdkConfig);currency=Y(Pn,()=>this.sdkConfig);customers=Y(Cn,()=>this.sdkConfig);deliveryNotes=Y(wn,()=>this.sdkConfig);documents=Y(kn,()=>this.sdkConfig);eInvoicing=Y(Ln,()=>this.sdkConfig);eSlog=Y(Gn,()=>this.sdkConfig);eetCertificate=Y(Vn,()=>this.sdkConfig);eetSettings=Y(Kn,()=>this.sdkConfig);email=Y(Zn,()=>this.sdkConfig);entities=Y(qn,()=>this.sdkConfig);entityApiKeys=Y(Wn,()=>this.sdkConfig);entityInvitations=Y(Yn,()=>this.sdkConfig);entityStats=Y($n,()=>this.sdkConfig);entityUsers=Y(Qn,()=>this.sdkConfig);estimates=Y(Jn,()=>this.sdkConfig);expenses=Y(Xn,()=>this.sdkConfig);exports=Y(es,()=>this.sdkConfig);files=Y(ts,()=>this.sdkConfig);finaCertificate=Y(ns,()=>this.sdkConfig);finaDevices=Y(ss,()=>this.sdkConfig);finaPremises=Y(os,()=>this.sdkConfig);finaSettings=Y(is,()=>this.sdkConfig);financialCategories=Y(as,()=>this.sdkConfig);fursCertificate=Y(rs,()=>this.sdkConfig);fursDevices=Y(ls,()=>this.sdkConfig);fursInternalAct=Y(ds,()=>this.sdkConfig);fursPremises=Y(cs,()=>this.sdkConfig);fursSettings=Y(us,()=>this.sdkConfig);health=Y(ps,()=>this.sdkConfig);invoices=Y(xs,()=>this.sdkConfig);items=Y(gs,()=>this.sdkConfig);legacyMigration=Y(ys,()=>this.sdkConfig);locale=Y(Os,()=>this.sdkConfig);orderIntegrations=Y(vs,()=>this.sdkConfig);orders=Y(hs,()=>this.sdkConfig);paymentReminders=Y(bs,()=>this.sdkConfig);payments=Y(Ss,()=>this.sdkConfig);pointOfSale=Y(zs,()=>this.sdkConfig);priceLists=Y(fs,()=>this.sdkConfig);ptAtcudSeries=Y(Is,()=>this.sdkConfig);ptSafT=Y(Bs,()=>this.sdkConfig);purchaseOrders=Y(Ts,()=>this.sdkConfig);recurringInvoices=Y(Es,()=>this.sdkConfig);revenueRecognition=Y(Ds,()=>this.sdkConfig);shipments=Y(Rs,()=>this.sdkConfig);shippingConnections=Y(_s,()=>this.sdkConfig);stripeApp=Y(Ns,()=>this.sdkConfig);subscriptions=Y(Ms,()=>this.sdkConfig);taxRateEstimates=Y(Us,()=>this.sdkConfig);taxReports=Y(Ps,()=>this.sdkConfig);taxes=Y(Cs,()=>this.sdkConfig);ticketBai=Y(ws,()=>this.sdkConfig);transactionType=Y(As,()=>this.sdkConfig);travelOrders=Y(Fs,()=>this.sdkConfig);ujp=Y(ks,()=>this.sdkConfig);upload=Y(js,()=>this.sdkConfig);users=Y(Hs,()=>this.sdkConfig);veriFactu=Y(Ls,()=>this.sdkConfig);vies=Y(Gs,()=>this.sdkConfig);warehouses=Y(Vs,()=>this.sdkConfig);webhooks=Y(Ks,()=>this.sdkConfig);whiteLabelSubscriptions=Y(Zs,()=>this.sdkConfig);whiteLabels=Y(qs,()=>this.sdkConfig);constructor(u){let g=typeof u=="string"?{accessToken:u}:u,E=typeof g.accessToken=="function"?g.accessToken:()=>g.accessToken;this.sdkConfig={baseUrl:g.basePath??Ce,getAccessToken:E,clientName:g.clientName??"js-sdk",onUnauthorized:g.onUnauthorized,requestTimeoutMs:g.requestTimeoutMs,accountId:g.accountId??null};}};function AJb(d){let u=typeof d=="string"?{accessToken:d}:d,g=typeof u.accessToken=="function"?u.accessToken:()=>u.accessToken;kdb({baseUrl:u.basePath??Ce,getAccessToken:g,clientName:u.clientName??"js-sdk",onUnauthorized:u.onUnauthorized,requestTimeoutMs:u.requestTimeoutMs}),Bn(u.accountId??null);}
145
145
  exports.AccountInfoRole=jJb;exports.AccountWebhookDeliveryStatus=VJb;exports.AccountWebhookResponseEventsItem=ZJb;exports.AccountWebhookWithSecretEventsItem=WJb;exports.AccountingSettingsVatPeriod=LJb;exports.AddEntityUserBodyRole=$Jb;exports.AdvanceInvoiceCalculationMode=JJb;exports.AdvanceInvoiceItemClassification=eXb;exports.AdvanceInvoiceItemType=nXb;exports.AdvanceInvoiceTransactionType=oXb;exports.ApplyCategorySuggestionsResponseResultsItemStatus=aXb;exports.AttendanceDayKind=lXb;exports.AttendanceDaySickReason=cXb;exports.AuthorizeShopifyBodyAutoProcessOn=pXb;exports.AvailablePlansAllowedPaymentProvidersItem=xXb;exports.AvailablePlansBillingProfile=yXb;exports.AvailablePlansCurrencyCode=vXb;exports.AvailablePlansStripePublishableKeyKind=bXb;exports.BankImportParseErrorCauseCode=zXb;exports.BankReconciliationMonthStatementBalanceSource=IXb;exports.BankReconciliationMonthStatus=TXb;exports.BankReconciliationsResponseAccountCode=DXb;exports.BankStatementImportSourceFormat=_Xb;exports.BankStatementImportStatus=MXb;exports.BankTransactionConflictErrorCauseCode=PXb;exports.BankTransactionDetailMatchStatus=wXb;exports.BankTransactionDetailSourceFormat=FXb;exports.BankTransactionMatchInfoDocumentType=jXb;exports.BankTransactionMatchStatus=LXb;exports.BankTransactionSourceFormat=VXb;exports.BankTransactionSuggestedDocumentDocumentType=ZXb;exports.BulkSetPriceListPricesBodySource=WXb;exports.BusinessUnitSettingsInputPdfTemplate=$Xb;exports.BusinessUnitSettingsPdfTemplate=JXb;exports.CLIENT_HEADER_NAME=Ws;exports.CalculateDocumentPreviewCalculationMode=neS;exports.CalculateDocumentPreviewType=oeS;exports.CalculateTravelOrderRouteDistance422Field=aeS;exports.CalculatedItemType=eeS;exports.CalculationSettingsDefaultMode=leS;exports.CheckEInvoicingRecipientRequestDocumentType=ceS;exports.CompanyRegistryResultSettingsSloveniaVatProfile=peS;exports.CompleteAdvanceInvoicePreviewCalculationMode=xeS;exports.CompleteAdvanceInvoicePreviewCreationSource=yeS;exports.CompleteCreditNotePreviewCalculationMode=veS;exports.CompleteCreditNotePreviewCreationSource=beS;exports.CompleteDeliveryNotePreviewCalculationMode=zeS;exports.CompleteDeliveryNotePreviewCreationSource=IeS;exports.CompleteEstimatePreviewCalculationMode=TeS;exports.CompleteEstimatePreviewCreationSource=DeS;exports.CompleteEstimatePreviewTitleType=_eS;exports.CompleteInvoicePreviewCalculationMode=MeS;exports.CompleteInvoicePreviewCreationSource=PeS;exports.CompletePurchaseOrderPreviewCalculationMode=weS;exports.CompletePurchaseOrderPreviewCreationSource=FeS;exports.CreateAccountWebhookBodyEventsItem=jeS;exports.CreateAdvanceInvoiceCalculationMode=LeS;exports.CreateCheckoutRequestBillingInterval=VeS;exports.CreateCreditNoteCalculationMode=ZeS;exports.CreateCustomerBodyContactType=WeS;exports.CreateDeliveryNoteCalculationMode=$eS;exports.CreateDocumentItemClassification=JeS;exports.CreateDocumentItemType=etS;exports.CreateDocumentPaymentType=ntS;exports.CreateEntityApiKeyBodyPurpose=otS;exports.CreateEntityBodyEnvironment=atS;exports.CreateEntityBodySettingsPdfTemplate=ltS;exports.CreateEstimateCalculationMode=ctS;exports.CreateEstimateTitleType=ptS;exports.CreateExpenseBodyCalculationMode=xtS;exports.CreateExpenseBodyPaymentsItemType=ytS;exports.CreateExpenseBodyTransactionType=vtS;exports.CreateExpenseBodyType=btS;exports.CreateExpenseItemClassification=ztS;exports.CreateExpenseItemType=ItS;exports.CreateExpensePaymentBodyType=TtS;exports.CreateFinaInvoiceDataPaymentType=DtS;exports.CreateInvoiceCalculationMode=_tS;exports.CreateItemBodyClassification=MtS;exports.CreateItemBodyUsage=PtS;exports.CreateItemInventoryMovementBodyType=wtS;exports.CreateMigrationJobRequestEnvironment=FtS;exports.CreateMigrationJobResponseStatus=jtS;exports.CreateOrderBodyPaymentStatus=LtS;exports.CreateOrderBodySource=VtS;exports.CreateOrderIntegrationBodySource=ZtS;exports.CreatePaymentBodyType=WtS;exports.CreatePtAtcudSeriesBodyDocumentType=$tS;exports.CreatePurchaseOrderCalculationMode=JtS;exports.CreatePurchaseOrderItemClassification=enS;exports.CreatePurchaseOrderItemType=nnS;exports.CreateRecurringInvoiceBodyFrequency=onS;exports.CreateShipmentRequestParcelType=anS;exports.CreateShippingConnectionRequestCarrier=lnS;exports.CreateTaxPaymentType=cnS;exports.CreateTravelOrderBodyTripType=pnS;exports.CreateWebhookBodyEventsItem=xnS;exports.CreationSource=ynS;exports.CreditNoteCalculationMode=vnS;exports.CreditNoteItemClassification=bnS;exports.CreditNoteItemType=znS;exports.CreditNoteTransactionType=InS;exports.CryptoEquivalentCode=TnS;exports.CryptoEquivalentsSettingsCodesItem=DnS;exports.CryptoWalletCode=_nS;exports.CurrentSubscriptionAllowedPaymentProvidersItem=MnS;exports.CurrentSubscriptionBillingProfile=PnS;exports.CurrentSubscriptionCurrencyCode=wnS;exports.CurrentSubscriptionPaymentProvider=FnS;exports.CurrentSubscriptionStripePublishableKeyKind=jnS;exports.CustomCreateAdvanceInvoiceCalculationMode=LnS;exports.CustomCreateCreditNoteCalculationMode=VnS;exports.CustomCreateDeliveryNoteCalculationMode=ZnS;exports.CustomCreateEstimateCalculationMode=WnS;exports.CustomCreateEstimateTitleType=$nS;exports.CustomCreateExpenseTransactionType=JnS;exports.CustomCreateExpenseType=esS;exports.CustomCreateInvoiceCalculationMode=nsS;exports.CustomDocumentItemClassification=osS;exports.CustomDocumentItemType=asS;exports.CustomExpenseItemClassification=lsS;exports.CustomExpenseItemType=csS;exports.CustomExpenseWriteCalculationMode=psS;exports.CustomExpenseWritePaymentsItemType=xsS;exports.CustomExpenseWriteTransactionType=ysS;exports.CustomExpenseWriteType=vsS;exports.CustomStoreConnectRequestAutoProcessOn=bsS;exports.CustomStoreOrderItemsItemKind=zsS;exports.CustomStoreOrderResultAction=IsS;exports.DEFAULT_BASE_URL=Ce;exports.DeleteDocumentType=TsS;exports.DeliveryNoteCalculationMode=DsS;exports.DeliveryNoteItemClassification=_sS;exports.DeliveryNoteItemType=MsS;exports.DeliveryNoteTransactionType=PsS;exports.DocumentCalculationCalculationMode=wsS;exports.DocumentCalculationTransactionType=FsS;exports.DocumentItemEInvoicingVatCategoryCode=jsS;exports.DocumentItemRevenueRecognitionMethod=LsS;exports.DocumentRelationRelatedDocumentTitleType=VsS;exports.DocumentRelationRelatedDocumentType=ZsS;exports.DocumentRelationSourceType=WsS;exports.DocumentRelationTargetType=$sS;exports.DocumentVersionDocumentType=JsS;exports.DownloadDocumentEslogType=eoS;exports.DownloadReceivedEInvoiceFormat=noS;exports.EInvoicingDeliveryRoute=loS;exports.EInvoicingEnrollmentChannel=coS;exports.EInvoicingEnrollmentEnvironment=poS;exports.EInvoicingEnrollmentState=xoS;exports.EInvoicingRecipientCheckResponseDocumentType=yoS;exports.EetFiscalizationResponseStatus=ooS;exports.EffectiveItemPriceSource=aoS;exports.EmailSenderDomainVerificationStatus=voS;exports.EmailSenderEffectiveSource=boS;exports.EmailSenderEmailVerificationStatus=zoS;exports.EmailSenderVerificationStatus=IoS;exports.EntityApiKeyEnvironment=ToS;exports.EntityApiKeyListItemEnvironment=DoS;exports.EntityApiKeyListItemPurpose=_oS;exports.EntityApiKeyPurpose=MoS;exports.EntityBankAccountInputType=PoS;exports.EntityBankAccountType=woS;exports.EntityEnvironment=FoS;exports.EntityInvitationPreviewRole=joS;exports.EntityInvitationPreviewStatus=LoS;exports.EntityInvitationRole=VoS;exports.EntityInvitationStatus=ZoS;exports.EntitySettingsPdfTemplate=WoS;exports.EntitySettingsUpdatePdfTemplate=$oS;exports.EntityUserRole=JoS;exports.EntityUsersAccessAccountRole=eiS;exports.EntityUsersAccessEntityRole=niS;exports.EslogDataValidationStatus=oiS;exports.EslogExportByDateRangeTypesItem=aiS;exports.EstimateCalculationMode=liS;exports.EstimateItemClassification=ciS;exports.EstimateItemType=piS;exports.EstimateTitleType=xiS;exports.EstimateTransactionType=yiS;exports.EuOssReportResponseEligibilityReason=viS;exports.EuOssReportResponseNoticesItem=biS;exports.EuOssThresholdAmount=ziS;exports.EuOssThresholdCurrencyCode=IiS;exports.EuOssThresholdStatus=TiS;exports.ExpenseCategoryReportResponseBasis=DiS;exports.ExpenseCategoryReportResponseCalculationMode=_iS;exports.ExpenseCategoryReportResponseGroupBy=MiS;exports.ExpenseImportDraftItemClassification=PiS;exports.ExpenseImportDraftItemType=wiS;exports.ExpenseImportResultAttachmentStatus=FiS;exports.ExpenseImportSourceDocumentType=jiS;exports.ExpenseImportWarningCode=LiS;exports.ExpenseInboundEmailAttachmentMode=ViS;exports.ExpenseInboundEmailMessageStatus=ZiS;exports.ExpenseItemClassification=WiS;exports.ExpenseItemRecognitionMethod=$iS;exports.ExpenseItemType=JiS;exports.ExpensePaymentOpenBalanceErrorCauseCode=eaS;exports.ExpenseRecognitionJobSimulationMode=naS;exports.ExpenseRecognitionJobStatus=oaS;exports.ExpenseRecognitionJobWarningsItemCode=aaS;exports.ExpenseRecognitionSettingsDefaultMethod=laS;exports.ExpenseRecognitionSettingsResponseDefaultMethod=caS;exports.ExpenseSummaryClassification=paS;exports.ExpenseType=xaS;exports.ExportDocumentsFormat=yaS;exports.ExportDocumentsLanguage=vaS;exports.ExportDocumentsType=baS;exports.ExportExpensesDateBasis=zaS;exports.ExportExpensesFormat=IaS;exports.ExportExpensesLanguage=TaS;exports.ExportFixedAssetRegisterFormat=DaS;exports.ExportInventoryFormat=_aS;exports.ExportInventoryLanguage=MaS;exports.ExportPosDailyReportFormat=PaS;exports.ExportPosDailyReportLanguage=waS;exports.ExportPosMonthlyReportFormat=FaS;exports.ExportPosMonthlyReportLanguage=jaS;exports.ExportRevenueByCategoryFormat=LaS;exports.ExportRevenueByCategoryLanguage=VaS;exports.ExportSalesPerItemFormat=ZaS;exports.ExportSalesPerItemLanguage=WaS;exports.ExportVatReturnFormat=$aS;exports.ExportVatReturnSelfReport=JaS;exports.FilingKind=erS;exports.FilingObligationType=nrS;exports.FilingState=orS;exports.FilingStatus=arS;exports.FilingVerification=lrS;exports.FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason=crS;exports.FinaFiscalizationResponseStatus=prS;exports.FinalizeDocumentType=xrS;exports.FiscalRecoveryErrorCauseCode=TrS;exports.FiscalizationProviderErrorCauseProvider=yrS;exports.FiscalizationProviderErrorCauseType=vrS;exports.FiscalizationProviderErrorCode=brS;exports.FiscalizeDocumentType=zrS;exports.FiscalizedOutputRegistrationFiscalizationProvider=IrS;exports.FixedAssetCategory=DrS;exports.FixedAssetClass=_rS;exports.FixedAssetDisposalType=MrS;exports.FixedAssetStatus=PrS;exports.FixedAssetTaxRateBasis=wrS;exports.FrenchEReportingRecordKind=FrS;exports.FrenchEReportingRecordStatus=jrS;exports.FursFiscalizationResponseStatus=LrS;exports.FursPremiseSuccessResponseEnvironment=VrS;exports.GeneratePtSaftReportMode=ZrS;exports.GermanEInvoicingDataValidationStatus=WrS;exports.GetActivePtAtcudSeriesDocumentType=$rS;exports.GetActivities200DataItemActorType=JrS;exports.GetEetSettings200CertificateStatus=elS;exports.GetEntitiesEnvironment=nlS;exports.GetEslogExportStatus200Status=olS;exports.GetExpenseCategoryReportBasis=alS;exports.GetExpenseCategoryReportGroupBy=llS;exports.GetFilesCategory=clS;exports.GetFinaSettings200CertificateStatus=plS;exports.GetFinaSettings200NumberingSequence=xlS;exports.GetFursSettings200CertificateStatus=ylS;exports.GetFursSettings200NumberingStrategy=vlS;exports.GetItemsImportTemplateFormat=blS;exports.GetItemsImportTemplateLanguage=zlS;exports.GetItemsUsage=IlS;exports.GetLegacyMigrationOrganization200UnsupportedItemCode=TlS;exports.GetNextDocumentNumberType=DlS;exports.GetOrdersPdfExportJob200Status=_lS;exports.GetPaymentRemindersStatus=MlS;exports.GetPaymentRemindersTrigger=PlS;exports.GetPayrollParameterHistoryScope=wlS;exports.GetPdfExportStatus200Status=FlS;exports.GetRevenueRecognitionDetailsBasis=jlS;exports.GetRevenueRecognitionDetailsGroupBy=LlS;exports.GetRevenueRecognitionReportBasis=VlS;exports.GetRevenueRecognitionReportGroupBy=ZlS;exports.GetShareableAdvanceInvoiceHtmlLanguage=WlS;exports.GetShareableAdvanceInvoiceHtmlLocale=$lS;exports.GetShareableAdvanceInvoicePdfLanguage=JlS;exports.GetShareableAdvanceInvoicePdfLocale=edS;exports.GetShareableCreditNoteHtmlLanguage=ndS;exports.GetShareableCreditNoteHtmlLocale=odS;exports.GetShareableCreditNotePdfLanguage=adS;exports.GetShareableCreditNotePdfLocale=ldS;exports.GetShareableDeliveryNoteHtmlLanguage=cdS;exports.GetShareableDeliveryNoteHtmlLocale=pdS;exports.GetShareableDeliveryNotePdfLanguage=xdS;exports.GetShareableDeliveryNotePdfLocale=ydS;exports.GetShareableEstimateHtmlLanguage=vdS;exports.GetShareableEstimateHtmlLocale=bdS;exports.GetShareableEstimatePdfLanguage=zdS;exports.GetShareableEstimatePdfLocale=IdS;exports.GetShareableInvoiceHtmlLanguage=TdS;exports.GetShareableInvoiceHtmlLocale=DdS;exports.GetShareableInvoicePdfLanguage=_dS;exports.GetShareableInvoicePdfLocale=MdS;exports.GetShareablePurchaseOrderHtmlLanguage=PdS;exports.GetShareablePurchaseOrderHtmlLocale=wdS;exports.GetShareablePurchaseOrderPdfLanguage=FdS;exports.GetShareablePurchaseOrderPdfLocale=jdS;exports.GetSloveniaTaxProfile200AccountingExportsPreferredFormat=LdS;exports.GetSloveniaTaxProfile200BusinessForm=VdS;exports.GetSloveniaTaxProfile200BusinessFormSource=ZdS;exports.GetSloveniaTaxProfile200IncomeTaxRegime=WdS;exports.GetSloveniaTaxProfile200InferredBusinessForm=$dS;exports.GetSloveniaTaxProfile200TaxResidency=JdS;exports.GetSloveniaTaxProfile200VatProfile=ecS;exports.GetSloveniaTaxProfile200YearlyReportingAccountingType=ncS;exports.GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis=ocS;exports.HolidayCompensationMethod=acS;exports.ImportBankStatementBodyLedgerAccountCode=lcS;exports.ImportBankStatementBodySourceFormat=ccS;exports.InventoryMovementResponseType=pcS;exports.InvoiceCalculationMode=xcS;exports.InvoiceItemClassification=ycS;exports.InvoiceItemType=vcS;exports.InvoiceTransactionType=bcS;exports.ItalyLineTaxDataNature=zcS;exports.ItemClassification=IcS;exports.ItemUsage=_cS;exports.ItemsImportReportRowsItemAction=TcS;exports.ItemsImportReportRowsItemStock=DcS;exports.JournalEntryKind=McS;exports.KsefDocumentDataStatus=PcS;exports.KsefEntitySettingsObligation=wcS;exports.KsefSettingsResponseCredentialStatus=FcS;exports.KsefSettingsResponseEnvironment=jcS;exports.KsefSettingsResponseObligation=LcS;exports.LedgerAccountCode=VcS;exports.LedgerAccountDeductibility=ZcS;exports.LedgerAccountType=WcS;exports.LedgerPaymentAccountDirection=$cS;exports.LedgerPaymentAccountPaymentType=JcS;exports.LedgerPostingSourceType=euS;exports.LegacyAuthResponseOrganizationsItemUnsupportedItemCode=nuS;exports.LegalDetailsLegalForm=ouS;exports.LineDiscountInputType=auS;exports.LineDiscountType=luS;exports.LinkBankTransactionBodyDocumentType=cuS;exports.ListAccountFilingsCalendarEnvironment=puS;exports.ListBankReconciliationsAccountCode=xuS;exports.ListEmployeesStatus=yuS;exports.ListFixedAssetsCategory=vuS;exports.ListFixedAssetsStatus=buS;exports.ListPtAtcudSeriesDocumentType=zuS;exports.ListReceivedEInvoicesState=IuS;exports.ListRevenueRecognitionLinesBasis=TuS;exports.ListRevenueRecognitionLinesGroupBy=DuS;exports.ListShipmentsStatus=_uS;exports.MAX_LIST_ALL_PAGES=fKb;exports.MagentoAuthorizationStatusFailureReason=MuS;exports.MagentoAuthorizationStatusStatus=PuS;exports.MagentoAuthorizeRequestAutoProcessOn=wuS;exports.MigrationJobResponseStatus=FuS;exports.ModifyEmployeeBodyCommuteMode=juS;exports.ModifyEmployeeBodyEmploymentType=LuS;exports.ModifyEmployeeBodyGeneralAllowanceMode=VuS;exports.ModifyEmployeeBodyStatus=ZuS;exports.ModifyEmployeeBodyTaxResidency=WuS;exports.ModifyEmployeeCompensationBodyCommuteMode=$uS;exports.ModifyEmployeeCompensationBodyEmploymentType=JuS;exports.MovablePremisePremiseType=epS;exports.NavAnnulmentRequestAnnulmentCode=npS;exports.NavDocumentDataOperation=opS;exports.NavDocumentMessageSeverity=apS;exports.NavDocumentStatus=lpS;exports.NavEnvironment=cpS;exports.NavErrorBodyConflictsItemSource=ppS;exports.NavErrorBodyConflictsItemTypesItem0=xpS;exports.NavErrorBodyConflictsItemTypesItem1=ypS;exports.NavInvoiceAppearance=vpS;exports.NavObligation=bpS;exports.NavResolveRequestOutcome=zpS;exports.NavVatTreatmentDomesticReverseChargeType=IpS;exports.NavVatTreatmentExemptionCase=TpS;exports.NavVatTreatmentExemptionType=DpS;exports.NavVatTreatmentNoVatChargeType=_pS;exports.NavVatTreatmentOutOfScopeCase=MpS;exports.NavVatTreatmentOutOfScopeType=PpS;exports.OrderBasePaymentStatus=wpS;exports.OrderBaseSource=FpS;exports.OrderBaseStatus=jpS;exports.OrderIntegrationBaseAutoProcessOn=LpS;exports.OrderIntegrationBaseDocumentCurrency=VpS;exports.OrderIntegrationBaseSource=ZpS;exports.OrderItemKind=WpS;exports.OrderItemResponseKind=$pS;exports.OrdersPdfExportRequestLanguage=JpS;exports.OrdersPdfExportRequestOutput=emS;exports.PartialAdvanceInvoicePreviewCalculationMode=nmS;exports.PartialAdvanceInvoicePreviewCreationSource=omS;exports.PartialAdvanceInvoicePreviewItemsItemClassification=amS;exports.PartialAdvanceInvoicePreviewItemsItemDiscountsItemType=lmS;exports.PartialAdvanceInvoicePreviewItemsItemType=cmS;exports.PartialCreditNotePreviewCalculationMode=pmS;exports.PartialCreditNotePreviewCreationSource=xmS;exports.PartialCreditNotePreviewItemsItemClassification=ymS;exports.PartialCreditNotePreviewItemsItemDiscountsItemType=vmS;exports.PartialCreditNotePreviewItemsItemType=bmS;exports.PartialDeliveryNotePreviewCalculationMode=zmS;exports.PartialDeliveryNotePreviewCreationSource=ImS;exports.PartialDeliveryNotePreviewItemsItemClassification=TmS;exports.PartialDeliveryNotePreviewItemsItemDiscountsItemType=DmS;exports.PartialDeliveryNotePreviewItemsItemType=_mS;exports.PartialEstimatePreviewCalculationMode=MmS;exports.PartialEstimatePreviewCreationSource=PmS;exports.PartialEstimatePreviewItemsItemClassification=wmS;exports.PartialEstimatePreviewItemsItemDiscountsItemType=FmS;exports.PartialEstimatePreviewItemsItemType=jmS;exports.PartialEstimatePreviewTitleType=LmS;exports.PartialInvoicePreviewCalculationMode=VmS;exports.PartialInvoicePreviewCreationSource=ZmS;exports.PartialInvoicePreviewItemsItemClassification=WmS;exports.PartialInvoicePreviewItemsItemDiscountsItemType=$mS;exports.PartialInvoicePreviewItemsItemType=JmS;exports.PartialPurchaseOrderPreviewCalculationMode=exS;exports.PartialPurchaseOrderPreviewCreationSource=nxS;exports.PartialPurchaseOrderPreviewItemsItemClassification=oxS;exports.PartialPurchaseOrderPreviewItemsItemDiscountsItemType=axS;exports.PartialPurchaseOrderPreviewItemsItemType=lxS;exports.PatchEntityBodySettingsPdfTemplate=cxS;exports.PatchMeBodyLocale=pxS;exports.PaymentReminderStatus=xxS;exports.PaymentReminderTrigger=yxS;exports.PaymentType=vxS;exports.PayrollParameterRowScope=bxS;exports.PayrollRunStatus=zxS;exports.PdfExportByDateRangeLanguage=IxS;exports.PdfExportByDateRangeLocale=TxS;exports.PdfExportByDateRangeTypesItem=DxS;exports.PdfExportByDocumentIdsLanguage=_xS;exports.PdfExportByDocumentIdsLocale=MxS;exports.PermanentDeleteDocumentType=PxS;exports.PosTabConflictCode=wxS;exports.PosTabResponseStatus=FxS;exports.PreviewTravelOrderBodyTripType=jxS;exports.PtAtcudSeriesDocumentType=LxS;exports.PurchaseOrderBusinessUnitSettingsInputPdfTemplate=VxS;exports.PurchaseOrderCalculationMode=ZxS;exports.PurchaseOrderItemClassification=WxS;exports.PurchaseOrderItemType=$xS;exports.PurchaseOrderTransactionType=JxS;exports.PurchaseOrderVersionDocumentType=egS;exports.PutKsefCredentialEnvironment=ngS;exports.ReceivedEInvoiceAttachmentStatus=ogS;exports.ReceivedEInvoiceLifecycleRequestAction=agS;exports.ReceivedEInvoiceLifecycleRequestReasonCode=lgS;exports.ReceivedEInvoiceProvider=cgS;exports.ReceivedEInvoiceState=pgS;exports.RecurringInvoiceBaseFrequency=xgS;exports.RecurringInvoiceBaseStatus=ygS;exports.RegisterDocumentOutputType=vgS;exports.RegisterEmployeeBodyCommuteMode=bgS;exports.RegisterEmployeeBodyEmploymentType=zgS;exports.RegisterEmployeeBodyGeneralAllowanceMode=IgS;exports.RegisterEmployeeBodyStatus=TgS;exports.RegisterEmployeeBodyTaxResidency=DgS;exports.RegisterEmployeeCompensationBodyCommuteMode=_gS;exports.RegisterEmployeeCompensationBodyEmploymentType=MgS;exports.RegisterFursMovablePremiseBodyMovablePremisePremiseType=PgS;exports.RenderAdvanceInvoicePreviewEpcQrEnabled=wgS;exports.RenderAdvanceInvoicePreviewHub3QrEnabled=FgS;exports.RenderAdvanceInvoicePreviewPartial=jgS;exports.RenderAdvanceInvoicePreviewSwissQrBillEnabled=LgS;exports.RenderAdvanceInvoicePreviewTemplate=VgS;exports.RenderAdvanceInvoicePreviewUpnQrDisplayMode=ZgS;exports.RenderAdvanceInvoicePreviewUpnQrEnabled=WgS;exports.RenderCreditNotePreviewEpcQrEnabled=$gS;exports.RenderCreditNotePreviewHub3QrEnabled=JgS;exports.RenderCreditNotePreviewPartial=e0S;exports.RenderCreditNotePreviewSwissQrBillEnabled=n0S;exports.RenderCreditNotePreviewTemplate=o0S;exports.RenderCreditNotePreviewUpnQrDisplayMode=a0S;exports.RenderCreditNotePreviewUpnQrEnabled=l0S;exports.RenderDeliveryNotePreviewEpcQrEnabled=c0S;exports.RenderDeliveryNotePreviewHub3QrEnabled=p0S;exports.RenderDeliveryNotePreviewPartial=x0S;exports.RenderDeliveryNotePreviewSwissQrBillEnabled=y0S;exports.RenderDeliveryNotePreviewTemplate=v0S;exports.RenderDeliveryNotePreviewUpnQrDisplayMode=b0S;exports.RenderDeliveryNotePreviewUpnQrEnabled=z0S;exports.RenderDocumentHtmlTemplate=I0S;exports.RenderDocumentPdfTemplate=T0S;exports.RenderEstimatePreviewEpcQrEnabled=D0S;exports.RenderEstimatePreviewHub3QrEnabled=_0S;exports.RenderEstimatePreviewPartial=M0S;exports.RenderEstimatePreviewSwissQrBillEnabled=P0S;exports.RenderEstimatePreviewTemplate=w0S;exports.RenderEstimatePreviewUpnQrDisplayMode=F0S;exports.RenderEstimatePreviewUpnQrEnabled=j0S;exports.RenderInvoicePreviewEpcQrEnabled=L0S;exports.RenderInvoicePreviewHub3QrEnabled=V0S;exports.RenderInvoicePreviewPartial=Z0S;exports.RenderInvoicePreviewSwissQrBillEnabled=W0S;exports.RenderInvoicePreviewTemplate=$0S;exports.RenderInvoicePreviewUpnQrDisplayMode=J0S;exports.RenderInvoicePreviewUpnQrEnabled=eyS;exports.RenderPurchaseOrderPreviewEpcQrEnabled=nyS;exports.RenderPurchaseOrderPreviewHub3QrEnabled=oyS;exports.RenderPurchaseOrderPreviewPartial=ayS;exports.RenderPurchaseOrderPreviewSwissQrBillEnabled=lyS;exports.RenderPurchaseOrderPreviewTemplate=cyS;exports.RenderPurchaseOrderPreviewUpnQrDisplayMode=pyS;exports.RenderPurchaseOrderPreviewUpnQrEnabled=xyS;exports.RenderTravelOrderPreviewBodyTripType=yyS;exports.ReplaceEmployeeAttendanceBodyDaysItemKind=vyS;exports.ReplaceEmployeeAttendanceBodyDaysItemSickReason=byS;exports.RestoreDocumentType=zyS;exports.RevenueRecognitionDetailsResponseCalculationMode=IyS;exports.RevenueRecognitionLinesResponseCalculationMode=TyS;exports.RevenueRecognitionReportResponseBasis=DyS;exports.RevenueRecognitionReportResponseCalculationMode=_yS;exports.RevenueRecognitionReportResponseGroupBy=MyS;exports.RevenueRecognitionSettingsDefaultMethod=PyS;exports.RevenueRecognitionSettingsResponseDefaultMethod=wyS;exports.ReviewSloveniaYearlyNormiraniReport200FilingKind=FyS;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType=jyS;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer=LyS;exports.ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity=VyS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat=ZyS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm=WyS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource=$yS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime=JyS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm=eOS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency=nOS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile=oOS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType=aOS;exports.ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis=lOS;exports.ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity=cOS;exports.SdiLifecycleDataCountryCode=pOS;exports.SdiLifecycleDataStatus=xOS;exports.SendDocument200Status=yOS;exports.SendEmail200Status=vOS;exports.SendEmailBodyLanguage=bOS;exports.SendEmailBodyLocale=zOS;exports.SendPaymentReminderBodyLocale=IOS;exports.SendPaymentReminderResponseStatus=TOS;exports.SetVendorTaxProfileClassification=DOS;exports.ShipmentCarrier=_OS;exports.ShipmentDraftParcelType=MOS;exports.ShipmentLabelFormat=POS;exports.ShipmentParcelType=wOS;exports.ShipmentStatus=FOS;exports.ShippingConnectionCarrier=jOS;exports.ShippingConnectionSettingsInputLabelFormat=LOS;exports.ShippingConnectionSettingsLabelFormat=VOS;exports.ShippingConnectionSettingsPatchLabelFormat=ZOS;exports.SloveniaAccountingExportsSettingsPreferredFormat=WOS;exports.SloveniaEntitySettingsBusinessForm=$OS;exports.SloveniaEntitySettingsIncomeTaxRegime=JOS;exports.SloveniaEntitySettingsTaxResidency=evS;exports.SloveniaEntitySettingsVatProfile=nvS;exports.SloveniaYearlyReportingSettingsAccountingType=ovS;exports.SloveniaYearlyReportingSettingsNormiranecInsuranceBasis=avS;exports.SpaceInvoices=Pe;exports.StartEslogExport202Status=lvS;exports.StartOrdersPdfExport202Status=cvS;exports.StartPdfExport202Status=pvS;exports.StatsQueryRequestMetricsItemType=xvS;exports.StatsQueryRequestOrderByItemDirection=yvS;exports.StatsQueryRequestTable=vvS;exports.StripeAppConnectionEntityEnvironment=bvS;exports.StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem=zvS;exports.StripeAppUpdateSettingsBodyAutoInvoiceEventsItem=IvS;exports.SubscriptionTier=TvS;exports.SyncOrderIntegrationResponseCompletionState=DvS;exports.SyncShopifyOrdersResponseCompletionState=_vS;exports.TaxPaymentType=MvS;exports.TaxWorksheetForm5472ReportingCorporationCountryOfIncorporation=PvS;exports.TicketBaiDocumentDataExemptionCause=wvS;exports.TicketBaiDocumentDataNonSubjectCause=FvS;exports.TicketBaiDocumentDataOperationType=jvS;exports.TicketBaiDocumentDataRecipientIdType=LvS;exports.TicketBaiDocumentDataRectificationCode=VvS;exports.TicketBaiDocumentDataStatus=ZvS;exports.TicketBaiDocumentDataTaxTreatment=WvS;exports.TicketBaiDocumentDataVatRegime=$vS;exports.TicketBaiDocumentInputExemptionCause=JvS;exports.TicketBaiDocumentInputNonSubjectCause=ehS;exports.TicketBaiDocumentInputOperationType=nhS;exports.TicketBaiDocumentInputRecipientIdType=ohS;exports.TicketBaiDocumentInputRectificationCode=ahS;exports.TicketBaiDocumentInputTaxTreatment=lhS;exports.TicketBaiDocumentInputVatRegime=chS;exports.TicketBaiRecordDocumentType=phS;exports.TicketBaiRecordEnvironment=xhS;exports.TicketBaiRecordOperation=yhS;exports.TicketBaiRecordRecentAttemptsItemKind=vhS;exports.TicketBaiRecordRecentAttemptsItemStatus=bhS;exports.TicketBaiRecordStatus=zhS;exports.TicketBaiRecordTerritory=IhS;exports.TicketBaiSettingsBlockersItem=ThS;exports.TicketBaiSettingsEnvironment=DhS;exports.TicketBaiSettingsLroeModel=_hS;exports.TicketBaiSettingsTerritory=MhS;exports.TransactionTypeCheckRequestItemsItemClassification=PhS;exports.TransactionTypeCheckRequestItemsItemType=whS;exports.TransactionTypeCheckRequestSupplyType=FhS;exports.TransactionTypeCheckResponseSupplyScope=jhS;exports.TransactionTypeCheckResponseTransactionType=LhS;exports.TransactionTypeCheckResponseWarningCode=VhS;exports.TravelOrderCostType=ZhS;exports.TravelOrderCurrencyCode=WhS;exports.TravelOrderPerDiemBand=$hS;exports.TravelOrderRouteDistanceProvider=JhS;exports.TravelOrderStatus=ebS;exports.TravelOrderTransport=nbS;exports.TravelOrderTripType=obS;exports.TrialBalanceRowType=abS;exports.UjpDataValidationStatus=lbS;exports.UpdateAccountWebhookBodyEventsItem=cbS;exports.UpdateCustomerBodyContactType=pbS;exports.UpdateEetSettings200CertificateStatus=xbS;exports.UpdateEntityUserRoleBodyRole=ybS;exports.UpdateEstimateTitleType=vbS;exports.UpdateExpenseBodyCalculationMode=bbS;exports.UpdateExpenseBodyTransactionType=zbS;exports.UpdateExpenseBodyType=IbS;exports.UpdateExpenseRecognitionSettingsDefaultMethod=TbS;exports.UpdateFinaSettings200CertificateStatus=DbS;exports.UpdateFinaSettings200NumberingSequence=_bS;exports.UpdateFinaSettingsBodyNumberingSequence=MbS;exports.UpdateFixedAssetRequestCategory=PbS;exports.UpdateFursSettings200CertificateStatus=wbS;exports.UpdateFursSettings200NumberingStrategy=FbS;exports.UpdateFursSettingsBodyNumberingStrategy=jbS;exports.UpdateItemBodyClassification=LbS;exports.UpdateItemBodyUsage=VbS;exports.UpdateKsefSettingsObligation=ZbS;exports.UpdateNavSettingsInvoiceAppearance=WbS;exports.UpdateNavSettingsObligation=$bS;exports.UpdateOrderBodyPaymentStatus=JbS;exports.UpdateOrderIntegrationBodyAutoProcessOn=eSS;exports.UpdateOrderIntegrationBodyDocumentCurrency=nSS;exports.UpdatePaymentBodyType=oSS;exports.UpdateRecurringInvoiceBodyFrequency=aSS;exports.UpdateRevenueRecognitionSettingsDefaultMethod=lSS;exports.UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat=cSS;exports.UpdateSloveniaTaxProfile200BusinessForm=pSS;exports.UpdateSloveniaTaxProfile200BusinessFormSource=xSS;exports.UpdateSloveniaTaxProfile200IncomeTaxRegime=ySS;exports.UpdateSloveniaTaxProfile200InferredBusinessForm=vSS;exports.UpdateSloveniaTaxProfile200TaxResidency=bSS;exports.UpdateSloveniaTaxProfile200VatProfile=zSS;exports.UpdateSloveniaTaxProfile200YearlyReportingAccountingType=ISS;exports.UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis=TSS;exports.UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat=DSS;exports.UpdateSloveniaTaxProfileBodyBusinessForm=_SS;exports.UpdateSloveniaTaxProfileBodyIncomeTaxRegime=MSS;exports.UpdateSloveniaTaxProfileBodyTaxResidency=PSS;exports.UpdateSloveniaTaxProfileBodyVatProfile=wSS;exports.UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType=FSS;exports.UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis=jSS;exports.UpdateTaxPaymentType=LSS;exports.UpdateTicketBaiSettingsLroeModel=VSS;exports.UpdateTicketBaiSettingsTerritory=ZSS;exports.UpdateTravelOrderBodyTransport=WSS;exports.UpdateTravelOrderBodyTripType=$SS;exports.UpdateVerifactuSettingsTerritory=JSS;exports.UpdateWebhookBodyEventsItem=ezS;exports.UploadFileBodyCategory=nzS;exports.UpnQrSettingsDisplayMode=ozS;exports.UsTaxYearWorksheetCompanyStateOfIncorporation=azS;exports.ValidateDocumentEslogType=lzS;exports.ValidationErrorConflictsItemSource=czS;exports.ValidationErrorConflictsItemTypesItem0=pzS;exports.ValidationErrorConflictsItemTypesItem1=xzS;exports.VatReturnPreviewVatPeriodSetting=yzS;exports.VatReturnRecapitulativeDifferenceReason=vzS;exports.VatReturnRecapitulativeSectionBRowPreviousValueSource=bzS;exports.VatReturnStatus=zzS;exports.VatReturnVatPeriodSetting=IzS;exports.VendorTaxClassification=TzS;exports.VerifactuDocumentInputCustomerIdType=DzS;exports.VerifactuDocumentInputInvoiceType=_zS;exports.VerifactuDocumentInputTaxTreatmentsItemQualification=MzS;exports.VerifactuDocumentInputTaxTreatmentsItemTax=PzS;exports.VerifactuDocumentStatus=wzS;exports.VerifactuEvidenceKind=FzS;exports.VerifactuSettingsEligibility=jzS;exports.VerifactuSettingsEnvironment=LzS;exports.VerifactuSettingsTerritory=VzS;exports.WebhookDeliveryStatus=ZzS;exports.WebhookResponseEventsItem=WzS;exports.WebhookWithSecretEventsItem=$zS;exports.WhiteLabelConfigEnvironment=JzS;exports.WhiteLabelPlanCurrencyCode=efS;exports.WooCommerceAuthorizeRequestAutoProcessOn=nfS;exports.accountWebhooks=En;exports.accounting=Dn;exports.activities=Rn;exports.advanceInvoices=_n;exports.businessUnits=Nn;exports.companyRegistry=Mn;exports.creditNotes=Un;exports.currency=Pn;exports.customers=Cn;exports.default=Pe;exports.deliveryNotes=wn;exports.documents=kn;exports.downloadBlob=ms;exports.eInvoicing=Ln;exports.eSlog=Gn;exports.eetCertificate=Vn;exports.eetSettings=Kn;exports.email=Zn;exports.entities=qn;exports.entityApiKeys=Wn;exports.entityInvitations=Yn;exports.entityStats=$n;exports.entityUsers=Qn;exports.estimates=Jn;exports.expenses=Xn;exports.exports=es;exports.files=ts;exports.finaCertificate=ns;exports.finaDevices=ss;exports.finaPremises=os;exports.finaSettings=is;exports.financialCategories=as;exports.fursCertificate=rs;exports.fursDevices=ls;exports.fursInternalAct=ds;exports.fursPremises=cs;exports.fursSettings=us;exports.getAccountId=hKb;exports.getClientHeaders=rt;exports.health=ps;exports.initSDK=AJb;exports.invoices=xs;exports.items=gs;exports.legacyMigration=ys;exports.listAll=TKb;exports.locale=Os;exports.orderIntegrations=vs;exports.orders=hs;exports.paymentReminders=bs;exports.payments=Ss;exports.pointOfSale=zs;exports.priceLists=fs;exports.ptAtcudSeries=Is;exports.ptSafT=Bs;exports.purchaseOrders=Ts;exports.recurringInvoices=Es;exports.revenueRecognition=Ds;exports.setAccountId=Bn;exports.shipments=Rs;exports.shippingConnections=_s;exports.stripeApp=Ns;exports.subscriptions=Ms;exports.taxRateEstimates=Us;exports.taxReports=Ps;exports.taxes=Cs;exports.ticketBai=ws;exports.transactionType=As;exports.travelOrders=Fs;exports.ujp=ks;exports.upload=js;exports.users=Hs;exports.veriFactu=Ls;exports.vies=Gs;exports.warehouses=Vs;exports.webhooks=Ks;exports.whiteLabelSubscriptions=Zs;exports.whiteLabels=qs;exports.zod=Fdb;