@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/generated/model/signupBody.d.cts +1 -1
- package/dist/generated/model/signupBody.d.ts +1 -1
- package/dist/generated/model/signupBodySignupAttribution.d.cts +1 -1
- package/dist/generated/model/signupBodySignupAttribution.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
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.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),M4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ntb=36,Mtb=100,Utb=0,Ptb=100,Ctb=2,wtb=2,Atb=36,U4b=e.object({data:e.array(e.object({id:e.string().max(Ntb),name:e.string().max(Mtb),tax_rates:e.array(e.object({rate:e.number().min(Utb).max(Ptb),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(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.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(Atb),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Ftb=/^[a-z]{3,4}_[0-9a-f]{24}$/,P4b=e.object({id:e.stringFormat("resource-id",Ftb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),ktb=0,jtb=100,w4b=e.object({tax_rates:e.array(e.object({rate:e.number().min(ktb).max(jtb),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),Htb=36,Ltb=100,Gtb=0,Vtb=100,Ktb=2,Ztb=2,qtb=36,A4b=e.object({id:e.string().max(Htb),name:e.string().max(Ltb),tax_rates:e.array(e.object({rate:e.number().min(Gtb).max(Vtb),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(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.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(qtb),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Wtb=/^[a-z]{3,4}_[0-9a-f]{24}$/,F4b=e.object({id:e.stringFormat("resource-id",Wtb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),k4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ytb=100,$tb=0,Qtb=100,Jtb=2,Xtb=2,enb=60,j4b=e.object({name:e.string().max(Ytb).optional(),tax_rates:e.array(e.object({rate:e.number().min($tb).max(Qtb),valid_from:e.iso.datetime({}).nullish()})).min(1),is_default:e.boolean().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(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.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.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.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),tnb=36,nnb=100,snb=0,onb=100,inb=2,anb=2,rnb=36,H4b=e.object({id:e.string().max(tnb),name:e.string().max(nnb),tax_rates:e.array(e.object({rate:e.number().min(snb).max(onb),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(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.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(rnb),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),lnb=/^[a-z]{3,4}_[0-9a-f]{24}$/,L4b=e.object({id:e.stringFormat("resource-id",lnb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),G4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),dnb=/^[a-z]{3,4}_[0-9a-f]{24}$/,V4b=e.object({id:e.stringFormat("resource-id",dnb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),K4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),cnb=36,unb=100,pnb=0,mnb=100,xnb=2,gnb=2,ynb=36,Z4b=e.object({id:e.string().max(cnb),name:e.string().max(unb),tax_rates:e.array(e.object({rate:e.number().min(pnb).max(mnb),valid_from:e.iso.datetime({})})).describe("Tax rate history"),is_default:e.boolean().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e.string().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),destination_vat_country_code:e.string().min(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.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().nullish().describe("Effective Portugal exemption wording associated with pt_exemption_code. Standard wording is filled automatically when a PT tax is saved."),entity_id:e.string().max(ynb),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Tax definition with rate history").and(e.looseObject({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"),Onb=/^[a-z]{3,4}_[0-9a-f]{24}$/,q4b=e.object({id:e.stringFormat("resource-id",Onb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),W4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),vnb=120,hnb=120,bnb=120,$4b=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(vnb),surname1:e.string().min(1).max(hnb),surname2:e.string().min(1).max(bnb)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),Q4b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Snb=120,znb=120,fnb=120,J4b=e.object({enabled:e.boolean().nullish(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullish(),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullish().describe("Bizkaia taxpayer ledger model: 140 for individuals, 240 for companies. Explicit null clears an unused model."),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(Snb),surname1:e.string().min(1).max(znb),surname2:e.string().min(1).max(fnb)}),e.null()]).optional().describe("Explicit given name and surnames for Bizkaia model 140. Never derived by splitting the entity name. Null clears this setting."),authorization_confirmed:e.boolean().nullish().describe("Confirm that the taxpayer has authorized use of this certificate for signing and submission, including any required representative or device registration.")}),Inb=120,Bnb=120,Tnb=120,X4b=e.object({enabled:e.boolean(),territory:e.union([e.literal("alava"),e.literal("bizkaia"),e.literal("gipuzkoa"),e.literal(null)]).nullable(),environment:e.enum(["sandbox","live"]),lroe_model:e.union([e.literal("140"),e.literal("240"),e.literal(null)]).nullable(),lroe_individual:e.union([e.object({given_name:e.string().min(1).max(Inb),surname1:e.string().min(1).max(Bnb),surname2:e.string().min(1).max(Tnb)}),e.null()]),authorization_confirmed:e.boolean(),ready:e.boolean(),blockers:e.array(e.enum(["territory_required","spanish_entity_required","eur_required","issuer_nif_required","software_configuration_required","certificate_required","certificate_expired","authorization_required","pilot_access_required","production_registration_required","lroe_model_required","lroe_individual_required"])),certificate_expiry:e.string().nullable(),has_issued_records:e.boolean()}),e3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),t3b=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),n3b=e.object({certificate_expiry:e.string()}),Enb=36,s3b=e.object({id:e.string().min(1).max(Enb)}),o3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),i3b=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),Dnb=36,a3b=e.object({id:e.string().min(1).max(Dnb)}),r3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Rnb=36,l3b=e.object({id:e.string().min(1).max(Rnb)}),d3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),c3b=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")}),_nb=36,u3b=e.object({id:e.string().min(1).max(_nb)}),p3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),m3b=e.object({id:e.string(),document_id:e.string(),document_type:e.enum(["invoice","credit_note","advance_invoice"]),operation:e.enum(["issue","cancel"]),territory:e.enum(["alava","bizkaia","gipuzkoa"]),environment:e.enum(["sandbox","live"]),sequence:e.number(),previous_record_id:e.string().nullable(),source_record_id:e.string().nullable(),identifier:e.string(),qr_url:e.string().nullable(),cancellation_reason:e.string().nullable(),xml_sha256:e.string(),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),authority_codes:e.array(e.string()),authority_receipt:e.string().nullable(),authority_record_state:e.string().nullable().describe("Last confirmed authority state. Annulled/replaced states survive subsequent inconclusive queries."),manual_resolution:e.object({outcome:e.enum(["accepted","rejected"]),evidence_sha256:e.string(),resolved_at:e.string()}).nullable().describe("Audited operator resolution based on separately retained authority evidence; this is not an automated authority response."),last_query:e.object({result:e.enum(["found","not_found","unknown"]),record_state:e.string().nullable(),codes:e.array(e.string()),queried_at:e.string()}).nullable(),attempt_count:e.number().describe("Number of submission attempts, excluding authority queries."),retryable:e.boolean(),created_at:e.string(),updated_at:e.string(),recent_attempts:e.array(e.object({id:e.string(),kind:e.enum(["submission","query","manual"]),status:e.enum(["pending","sending","accepted","accepted_with_errors","rejected","unknown"]),http_status:e.number().nullable(),codes:e.array(e.string()),started_at:e.string(),finished_at:e.string().nullable()})).describe("Up to 20 most recent attempts, newest first. Authority messages and certificate material are excluded.")});var 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.object({"x-entity-id":e.string().min(1).optional().describe("Optional entity whose tax rules apply to the check: when its tax_rules.eu.vies_validate_vat (or tax_rules.uk.validate_vat_number for a UK entity) is false, no VIES request or UK VAT number check is made. No default entity is selected when omitted.")}),Nnb=2,Mnb=2,Unb=true,Pnb=2,Cnb=2,g3b=e.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(Nnb).max(Mnb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(Unb).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(Pnb).max(Cnb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),wnb=2,Anb=2,Fnb=2,knb=2,jnb=2,Hnb=2,y3b=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(wnb).max(Anb).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(Fnb).max(knb).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(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.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var 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.object({limit:e.number().min(1).max(Gnb).default(Lnb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen.").and(e.unknown().describe("Filter by lifecycle status.")).optional().describe("Filter by lifecycle status."),search:e.string().optional().describe(`Full-text search query to filter results.
|
|
143
143
|
Searches are case-insensitive and match partial strings.
|
|
144
|
-
Searches across number, traveler name, purpose, origin, and destination.`)}),v3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vnb=200,Knb=0,Znb=1e6,qnb=/^\d{4}-\d{2}-\d{2}$/,h3b=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Vnb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Knb).max(Znb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),b3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.string().min(1).max(Wnb).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Ynb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex($nb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Qnb).describe("Business purpose of the trip."),origin:e.string().max(Jnb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(Xnb).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(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.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.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.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(ssb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.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.number().gt(lsb).max(dsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(csb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Ssb).describe("Description of the cost line."),amount:e.number().gt(zsb).max(fsb).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.string().max(Tsb).nullish().describe("Free-text note. Omit or send null to leave unset.")}),z3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.string().min(1).max(Esb).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Dsb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Rsb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(_sb).describe("Business purpose of the trip."),origin:e.string().max(Nsb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(Msb).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(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.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.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.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(wsb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.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.number().gt(Hsb).max(Lsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Gsb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(eob).describe("Description of the cost line."),amount:e.number().gt(tob).max(nob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.string().max(iob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),I3b=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.object({locale:e.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.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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.string().min(1).max(cob).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(uob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(pob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(mob).describe("Business purpose of the trip."),origin:e.string().max(xob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(gob).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(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.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.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.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(hob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.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.number().gt(Iob).max(Bob).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Tob).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Aob).describe("Description of the cost line."),amount:e.number().gt(Fob).max(kob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.string().max(Lob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),D3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Gob=3,Vob=300,Kob=3,Zob=300,R3b=e.object({from:e.string().min(Gob).max(Vob).describe("Starting address to geocode."),to:e.string().min(Kob).max(Zob).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),_3b=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),qob=/^[a-z]{3,4}_[0-9a-f]{24}$/,N3b=e.object({id:e.stringFormat("resource-id",qob).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),M3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wob=200,Yob=0,$ob=1e6,Qob=/^\d{4}-\d{2}-\d{2}$/,U3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Wob).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Yob).max($ob).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Job=/^[a-z]{3,4}_[0-9a-f]{24}$/,P3b=e.object({id:e.stringFormat("resource-id",Job).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.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.string().max(eib).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(tib).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(nib).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(sib).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(oib).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(iib).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.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.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.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(lib).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.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.number().gt(mib).max(xib).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),trips:e.array(e.object({departure_at:e.string().regex(gib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Tib).describe("Description of the cost line."),amount:e.number().gt(Eib).max(Dib).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.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.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Mib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Uib).max(Pib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),wib=/^[a-z]{3,4}_[0-9a-f]{24}$/,F3b=e.object({id:e.stringFormat("resource-id",wib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),k3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Aib=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3b=e.object({id:e.stringFormat("resource-id",Aib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Fib=200,kib=0,jib=1e6,Hib=/^\d{4}-\d{2}-\d{2}$/,L3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Fib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(kib).max(jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Lib=/^[a-z]{3,4}_[0-9a-f]{24}$/,G3b=e.object({id:e.stringFormat("resource-id",Lib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Gib=200,Vib=0,Kib=1e6,Zib=/^\d{4}-\d{2}-\d{2}$/,K3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Gib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Vib).max(Kib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),qib=/^[a-z]{3,4}_[0-9a-f]{24}$/,Z3b=e.object({id:e.stringFormat("resource-id",qib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),q3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wib=3,Yib=500,W3b=e.object({reason:e.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.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max($ib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Qib).max(Jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),eab=/^[a-z]{3,4}_[0-9a-f]{24}$/,$3b=e.object({id:e.stringFormat("resource-id",eab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tab=200,nab=0,sab=1e6,oab=/^\d{4}-\d{2}-\d{2}$/,J3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(tab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(nab).max(sab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),iab=/^[a-z]{3,4}_[0-9a-f]{24}$/,X3b=e.object({id:e.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.object({locale:e.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.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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),cab=/^[a-z]{3,4}_[0-9a-f]{24}$/,nGb=e.object({id:e.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.object({locale:e.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.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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var xn={};$(xn,{DownloadUjpPackageHeader:()=>aGb,DownloadUjpPackageParams:()=>iGb});var iGb=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),aGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var gn={};$(gn,{UploadImageBody:()=>lGb,UploadImageHeader:()=>rGb,UploadImageResponse:()=>dGb});var rGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lGb=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),dGb=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var 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.object({"x-account-id":e.string().regex(gab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uGb=e.object({required:e.boolean()}),yab=/^acc_[0-9a-fA-F]{24}$/,pGb=e.object({"x-account-id":e.string().regex(yab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mGb=e.object({required:e.boolean()}),xGb=e.object({required:e.boolean()}),Oab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,gGb=e.object({id:e.stringFormat("resource-id",Oab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vab=/^acc_[0-9a-fA-F]{24}$/,yGb=e.object({"x-account-id":e.string().regex(vab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),OGb=e.object({required:e.boolean()}),hab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,vGb=e.object({id:e.stringFormat("resource-id",hab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),bab=/^acc_[0-9a-fA-F]{24}$/,hGb=e.object({"x-account-id":e.string().regex(bab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),bGb=e.object({required:e.boolean()}),SGb=e.object({required:e.boolean()}),Sab=/^session_2fa_setup_[a-f0-9]{64}$/,zGb=e.object({token:e.string().regex(Sab)}),fGb=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),zab=/^session_2fa_setup_[a-f0-9]{64}$/,fab=/^\d{6}$/,IGb=e.object({token:e.string().regex(zab),code:e.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.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(Iab),user_id:e.string().max(Bab),ttl:e.number().default(Tab).describe("Token time-to-live in seconds"),scope:e.string().max(Eab).nullish(),entity_id:e.string().max(Dab).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Rab).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(_ab),email:e.string().max(Nab),name:e.string().max(Mab).nullish(),email_verified:e.boolean(),account_id:e.string().max(Uab).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),TGb=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),Pab=1024,EGb=e.object({password:e.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.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),Cab=/^\d{6}$/,RGb=e.object({code:e.string().regex(Cab)}),_Gb=e.object({recovery_codes:e.array(e.string())}),wab=1024,Aab=6,Fab=32,NGb=e.object({password:e.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.string().min(Aab).max(Fab).describe("Six-digit authenticator code or a single-use recovery code.")}),MGb=e.object({enabled:e.literal(false)}),kab=100,jab=/^session_2fa_[a-zA-Z0-9]+$/,Hab=6,Lab=32,UGb=e.object({token:e.string().max(kab).regex(jab),code:e.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.object({id:e.string().max(Gab),user_id:e.string().max(Vab),ttl:e.number().default(Kab).describe("Token time-to-live in seconds"),scope:e.string().max(Zab).nullish(),entity_id:e.string().max(qab).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Wab).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Yab),email:e.string().max($ab),name:e.string().max(Qab).nullish(),email_verified:e.boolean(),account_id:e.string().max(Jab).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),Xab=86,erb=86,trb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,CGb=e.object({email:e.email(),password:e.string(),shopify_return_url:e.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.object({id:e.string().max(nrb),user_id:e.string().max(srb),ttl:e.number().default(orb).describe("Token time-to-live in seconds"),scope:e.string().max(irb).nullish(),entity_id:e.string().max(arb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(rrb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(lrb),email:e.string().max(drb),name:e.string().max(crb).nullish(),email_verified:e.boolean(),account_id:e.string().max(urb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),prb=2,mrb=8,xrb=/[a-z]/,grb=150,yrb=150,Orb=150,vrb=512,hrb=512,brb=512,Srb=512,AGb=e.object({email:e.email(),name:e.string().min(prb).nullish(),password:e.string().min(mrb).regex(xrb),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(grb).nullish(),utm_medium:e.string().min(1).max(yrb).nullish(),utm_campaign:e.string().min(1).max(Orb).nullish(),gclid:e.string().min(1).max(vrb).nullish(),gbraid:e.string().min(1).max(hrb).nullish(),wbraid:e.string().min(1).max(brb).nullish(),fbclid:e.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.object({email:e.email(),shopify_return_url:e.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.object({message:e.string()}),Brb=8,Trb=/[a-z]/,jGb=e.object({token:e.string().min(1),password:e.string().min(Brb).regex(Trb)}),HGb=e.object({message:e.string()}),LGb=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),Erb=36,Drb=255,Rrb=255,_rb=36,GGb=e.object({id:e.string().max(Erb),email:e.string().max(Drb),name:e.string().max(Rrb).nullish(),email_verified:e.boolean(),account_id:e.string().max(_rb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Nrb=2,VGb=e.object({name:e.string().min(Nrb).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),Mrb=36,Urb=255,Prb=255,Crb=36,KGb=e.object({id:e.string().max(Mrb),email:e.string().max(Urb),name:e.string().max(Prb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Crb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),ZGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qGb=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),wrb=36,Arb=255,Frb=255,krb=36,WGb=e.object({id:e.string().max(wrb),email:e.string().max(Arb),name:e.string().max(Frb).nullish(),email_verified:e.boolean(),account_id:e.string().max(krb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),YGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Gb=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),jrb=36,Hrb=255,Lrb=255,Grb=36,QGb=e.object({id:e.string().max(jrb),email:e.string().max(Hrb),name:e.string().max(Lrb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Grb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var 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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vrb=0,XGb=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tVb=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),Krb=0,nVb=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oVb=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),Zrb=0,iVb=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(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.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),rVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lVb=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),dVb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),cVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uVb=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),pVb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),mVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qrb=500,Wrb=500,Yrb=0,$rb=/^\d{2}$/,Qrb=12,xVb=e.object({reason:e.string().min(1).max(qrb).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(Wrb).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(Yrb).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex($rb).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(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.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),yVb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),OVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Jrb=500,vVb=e.object({reason:e.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.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var 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.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(Xrb).max(elb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(tlb).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(nlb).max(slb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),olb=2,ilb=2,alb=2,rlb=2,llb=2,dlb=2,SVb=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(olb).max(ilb).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(alb).max(rlb).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(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.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var 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.object({limit:e.number().min(1).max(ulb).default(clb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),fVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),plb=36,mlb=36,xlb=200,IVb=e.object({data:e.array(e.object({id:e.string().max(plb),entity_id:e.string().max(mlb),name:e.string().max(xlb),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),BVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),glb=200,TVb=e.object({name:e.string().min(1).max(glb).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),ylb=/^wh_[0-9a-f]{24}$/,EVb=e.object({id:e.stringFormat("resource-id",ylb).describe("Warehouse identifier (wh_ prefix).")}),DVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Olb=36,vlb=36,hlb=200,RVb=e.object({id:e.string().max(Olb),entity_id:e.string().max(vlb),name:e.string().max(hlb),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),blb=/^wh_[0-9a-f]{24}$/,_Vb=e.object({id:e.stringFormat("resource-id",blb).describe("Warehouse identifier (wh_ prefix).")}),NVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Slb=200,MVb=e.object({name:e.string().min(1).max(Slb).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),zlb=36,flb=36,Ilb=200,UVb=e.object({id:e.string().max(zlb),entity_id:e.string().max(flb),name:e.string().max(Ilb),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),Blb=/^wh_[0-9a-f]{24}$/,PVb=e.object({id:e.stringFormat("resource-id",Blb).describe("Warehouse identifier (wh_ prefix).")}),CVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Tlb=2048,Elb=500,Dlb=true,AVb=e.object({url:e.url().max(Tlb).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Elb).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean().default(Dlb).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Rlb=10,_lb=100,FVb=e.object({limit:e.number().min(1).max(_lb).default(Rlb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),kVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Nlb=36,Mlb=36,Ulb=2048,Plb=500,Clb={},jVb=e.object({data:e.array(e.object({id:e.string().max(Nlb),entity_id:e.string().max(Mlb),url:e.string().max(Ulb),description:e.string().max(Plb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),wlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,HVb=e.object({id:e.stringFormat("resource-id",wlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Alb=36,Flb=36,klb=2048,jlb=500,Hlb={},GVb=e.object({id:e.string().max(Alb),entity_id:e.string().max(Flb),url:e.string().max(klb),description:e.string().max(jlb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.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.object({id:e.stringFormat("resource-id",Llb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Glb=2048,Vlb=500,ZVb=e.object({url:e.url().max(Glb).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Vlb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Klb=36,Zlb=36,qlb=2048,Wlb=500,Ylb={},qVb=e.object({id:e.string().max(Klb),entity_id:e.string().max(Zlb),url:e.string().max(qlb),description:e.string().max(Wlb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.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.object({id:e.stringFormat("resource-id",$lb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Vb=e.object({success:e.boolean()}),Qlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,QVb=e.object({id:e.stringFormat("resource-id",Qlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),JVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({id:e.string().max(Jlb),webhook_id:e.string().max(Xlb),entity_id:e.string().max(edb),event_type:e.string().max(tdb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(ndb).max(sdb).nullish(),response_body:e.string().max(odb).nullish(),error_message:e.string().max(idb).nullish(),attempt:e.number().min(adb).max(rdb),max_attempts:e.number().min(ldb).max(ddb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(cdb).max(udb).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),pdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,eKb=e.object({id:e.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.object({limit:e.number().min(1).max(xdb).default(mdb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),nKb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({data:e.array(e.object({id:e.string().max(gdb),webhook_id:e.string().max(ydb),entity_id:e.string().max(Odb),event_type:e.string().max(vdb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(hdb).max(bdb).nullish(),response_body:e.string().max(Sdb).nullish(),error_message:e.string().max(zdb).nullish(),attempt:e.number().min(fdb).max(Idb),max_attempts:e.number().min(Bdb).max(Tdb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Edb).max(Ddb).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Rdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,oKb=e.object({id:e.stringFormat("resource-id",Rdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),iKb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_db=36,Ndb=36,Mdb=2048,Udb=500,Pdb=64,Cdb={},aKb=e.object({id:e.string().max(_db),entity_id:e.string().max(Ndb),url:e.string().max(Mdb),description:e.string().max(Udb).nullish(),secret:e.string().max(Pdb),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.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.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(wdb).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(Adb).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),lKb=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),dKb=e.object({feature:e.string().describe("Feature slug to check")}),cKb=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),uKb=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),pKb=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),mKb=e.object({billing_email:e.email().nullable()}),xKb=e.object({billing_email:e.string().nullable()});var zn={};$(zn,{GetCurrentWhiteLabelResponse:()=>gKb,GetMyWhiteLabelResponse:()=>yKb});var gKb=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),yKb=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var 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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vnb=200,Knb=0,Znb=1e6,qnb=/^\d{4}-\d{2}-\d{2}$/,h3b=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Vnb).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Knb).max(Znb).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),b3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.string().min(1).max(Wnb).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Ynb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex($nb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(Qnb).describe("Business purpose of the trip."),origin:e.string().max(Jnb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(Xnb).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(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.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.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.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(ssb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.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.number().gt(lsb).max(dsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(csb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Ssb).describe("Description of the cost line."),amount:e.number().gt(zsb).max(fsb).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.string().max(Tsb).nullish().describe("Free-text note. Omit or send null to leave unset.")}),z3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.string().min(1).max(Esb).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(Dsb).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(Rsb).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(_sb).describe("Business purpose of the trip."),origin:e.string().max(Nsb).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(Msb).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(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.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.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.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(wsb).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.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.number().gt(Hsb).max(Lsb).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Gsb).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(eob).describe("Description of the cost line."),amount:e.number().gt(tob).max(nob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.string().max(iob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),I3b=e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.object({locale:e.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.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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.string().min(1).max(cob).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(uob).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(pob).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(mob).describe("Business purpose of the trip."),origin:e.string().max(xob).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(gob).describe("Trip destination location."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Defaults to `domestic` when omitted or null."),destination_country_code:e.string().regex(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.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.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.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(hob).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.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.number().gt(Iob).max(Bob).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),trips:e.array(e.object({departure_at:e.string().regex(Tob).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Aob).describe("Description of the cost line."),amount:e.number().gt(Fob).max(kob).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.string().max(Lob).nullish().describe("Free-text note. Omit or send null to leave unset.")}),D3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Gob=3,Vob=300,Kob=3,Zob=300,R3b=e.object({from:e.string().min(Gob).max(Vob).describe("Starting address to geocode."),to:e.string().min(Kob).max(Zob).describe("Destination address to geocode."),round_trip:e.boolean().nullish().describe("When true, doubles the one-way driving distance. Defaults to false when omitted or null.")}),_3b=e.object({distance_km:e.number().describe("Driving distance in kilometers, rounded to 1 decimal. Doubled when round_trip is true."),one_way_km:e.number().describe("One-way driving distance in kilometers, rounded to 1 decimal."),from_label:e.string().describe("Resolved, human-readable label for the geocoded starting address."),to_label:e.string().describe("Resolved, human-readable label for the geocoded destination address."),provider:e.enum(["tomtom"]).describe("Routing provider used to compute the distance.")}),qob=/^[a-z]{3,4}_[0-9a-f]{24}$/,N3b=e.object({id:e.stringFormat("resource-id",qob).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),M3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wob=200,Yob=0,$ob=1e6,Qob=/^\d{4}-\d{2}-\d{2}$/,U3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Wob).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Yob).max($ob).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Job=/^[a-z]{3,4}_[0-9a-f]{24}$/,P3b=e.object({id:e.stringFormat("resource-id",Job).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({traveler_name:e.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.string().max(eib).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(tib).nullish().describe("Document date (YYYY-MM-DD). Omit to leave unchanged, send null to reset to today in Slovenia."),purpose:e.string().min(1).max(nib).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(sib).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(oib).nullish().describe("Trip destination location. Omit or send null to leave unchanged; cannot be cleared."),trip_type:e.union([e.literal("domestic"),e.literal("foreign"),e.literal(null)]).nullish().describe("Trip type. Omit to leave unchanged, send null to reset to `domestic`."),destination_country_code:e.string().regex(iib).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.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.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.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(lib).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.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.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.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.number().gt(mib).max(xib).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),trips:e.array(e.object({departure_at:e.string().regex(gib).describe("Departure date and time of this trip, ISO 8601 in UTC with a `Z` suffix."),return_at:e.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.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.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.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.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.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.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Tib).describe("Description of the cost line."),amount:e.number().gt(Eib).max(Dib).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.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.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.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Mib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Uib).max(Pib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),wib=/^[a-z]{3,4}_[0-9a-f]{24}$/,F3b=e.object({id:e.stringFormat("resource-id",wib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),k3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Aib=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3b=e.object({id:e.stringFormat("resource-id",Aib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Fib=200,kib=0,jib=1e6,Hib=/^\d{4}-\d{2}-\d{2}$/,L3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Fib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(kib).max(jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),Lib=/^[a-z]{3,4}_[0-9a-f]{24}$/,G3b=e.object({id:e.stringFormat("resource-id",Lib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),V3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Gib=200,Vib=0,Kib=1e6,Zib=/^\d{4}-\d{2}-\d{2}$/,K3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(Gib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Vib).max(Kib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),qib=/^[a-z]{3,4}_[0-9a-f]{24}$/,Z3b=e.object({id:e.stringFormat("resource-id",qib).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),q3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Wib=3,Yib=500,W3b=e.object({reason:e.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.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max($ib).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(Qib).max(Jib).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),eab=/^[a-z]{3,4}_[0-9a-f]{24}$/,$3b=e.object({id:e.stringFormat("resource-id",eab).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Q3b=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tab=200,nab=0,sab=1e6,oab=/^\d{4}-\d{2}-\d{2}$/,J3b=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC). For collective orders this is derived: the first trip's departure."),return_at:e.string().describe("Return date and time (ISO 8601, UTC). For collective orders this is derived: the last trip's return."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided. For collective orders this is derived: the sum of the trips' distances, or null when no trip has one."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem. For collective orders this is derived: the sum over all trips."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(tab).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(nab).max(sab).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.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.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation."),trips:e.array(e.object({index:e.number().describe("1-based position of the trip in the sorted trips list."),departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),duration_hours:e.number().describe("Trip duration in hours, rounded to 2 decimals."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),total:e.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.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),trips:e.array(e.object({departure_at:e.string().describe("Trip departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Trip return date and time (ISO 8601, UTC)."),destination:e.string().nullable().describe("Destination override for this trip, or null when the trip uses the order destination."),purpose:e.string().nullable().describe("Purpose override for this trip, or null when the trip uses the order purpose."),distance_km:e.number().nullable().describe("Distance of this trip in kilometers, or null when not provided."),breakfasts_provided:e.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.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),iab=/^[a-z]{3,4}_[0-9a-f]{24}$/,X3b=e.object({id:e.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.object({locale:e.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.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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),cab=/^[a-z]{3,4}_[0-9a-f]{24}$/,nGb=e.object({id:e.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.object({locale:e.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.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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var xn={};$(xn,{DownloadUjpPackageHeader:()=>aGb,DownloadUjpPackageParams:()=>iGb});var iGb=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),aGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var gn={};$(gn,{UploadImageBody:()=>lGb,UploadImageHeader:()=>rGb,UploadImageResponse:()=>dGb});var rGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lGb=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),dGb=e.object({url:e.url().describe("Public URL of the uploaded image"),secure_url:e.url().optional().describe("Secure HTTPS URL of the uploaded image"),public_id:e.string().optional().describe("Storage object key for future reference/deletion"),secureUrl:e.url().describe("Deprecated compatibility alias for secure_url. Use secure_url for new integrations."),publicId:e.string().describe("Deprecated compatibility alias for public_id. Use public_id for new integrations."),format:e.string().describe("Image format (jpg, png, webp, etc.)"),width:e.number().describe("Image width in pixels"),height:e.number().describe("Image height in pixels"),bytes:e.number().describe("File size in bytes"),entity_id:e.string().describe("Entity ID that the image belongs to")});var 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.object({"x-account-id":e.string().regex(gab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),uGb=e.object({required:e.boolean()}),yab=/^acc_[0-9a-fA-F]{24}$/,pGb=e.object({"x-account-id":e.string().regex(yab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mGb=e.object({required:e.boolean()}),xGb=e.object({required:e.boolean()}),Oab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,gGb=e.object({id:e.stringFormat("resource-id",Oab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),vab=/^acc_[0-9a-fA-F]{24}$/,yGb=e.object({"x-account-id":e.string().regex(vab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),OGb=e.object({required:e.boolean()}),hab=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,vGb=e.object({id:e.stringFormat("resource-id",hab).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),bab=/^acc_[0-9a-fA-F]{24}$/,hGb=e.object({"x-account-id":e.string().regex(bab).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),bGb=e.object({required:e.boolean()}),SGb=e.object({required:e.boolean()}),Sab=/^session_2fa_setup_[a-f0-9]{64}$/,zGb=e.object({token:e.string().regex(Sab)}),fGb=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),zab=/^session_2fa_setup_[a-f0-9]{64}$/,fab=/^\d{6}$/,IGb=e.object({token:e.string().regex(zab),code:e.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.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(Iab),user_id:e.string().max(Bab),ttl:e.number().default(Tab).describe("Token time-to-live in seconds"),scope:e.string().max(Eab).nullish(),entity_id:e.string().max(Dab).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Rab).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(_ab),email:e.string().max(Nab),name:e.string().max(Mab).nullish(),email_verified:e.boolean(),account_id:e.string().max(Uab).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),TGb=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),Pab=1024,EGb=e.object({password:e.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.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),Cab=/^\d{6}$/,RGb=e.object({code:e.string().regex(Cab)}),_Gb=e.object({recovery_codes:e.array(e.string())}),wab=1024,Aab=6,Fab=32,NGb=e.object({password:e.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.string().min(Aab).max(Fab).describe("Six-digit authenticator code or a single-use recovery code.")}),MGb=e.object({enabled:e.literal(false)}),kab=100,jab=/^session_2fa_[a-zA-Z0-9]+$/,Hab=6,Lab=32,UGb=e.object({token:e.string().max(kab).regex(jab),code:e.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.object({id:e.string().max(Gab),user_id:e.string().max(Vab),ttl:e.number().default(Kab).describe("Token time-to-live in seconds"),scope:e.string().max(Zab).nullish(),entity_id:e.string().max(qab).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(Wab).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(Yab),email:e.string().max($ab),name:e.string().max(Qab).nullish(),email_verified:e.boolean(),account_id:e.string().max(Jab).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),Xab=86,erb=86,trb=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,CGb=e.object({email:e.email(),password:e.string(),shopify_return_url:e.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.object({id:e.string().max(nrb),user_id:e.string().max(srb),ttl:e.number().default(orb).describe("Token time-to-live in seconds"),scope:e.string().max(irb).nullish(),entity_id:e.string().max(arb).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(rrb).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(lrb),email:e.string().max(drb),name:e.string().max(crb).nullish(),email_verified:e.boolean(),account_id:e.string().max(urb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),prb=2,mrb=8,xrb=/[a-z]/,grb=150,yrb=150,Orb=150,vrb=512,hrb=512,brb=512,Srb=512,AGb=e.object({email:e.email(),name:e.string().min(prb).nullish(),password:e.string().min(mrb).regex(xrb),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]).optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),company_name:e.string().min(1).optional(),account_invitation_token:e.string().min(1).optional(),signup_attribution:e.object({utm_source:e.string().min(1).max(grb).nullish(),utm_medium:e.string().min(1).max(yrb).nullish(),utm_campaign:e.string().min(1).max(Orb).nullish(),gclid:e.string().min(1).max(vrb).nullish(),gbraid:e.string().min(1).max(hrb).nullish(),wbraid:e.string().min(1).max(brb).nullish(),fbclid:e.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.object({email:e.email(),shopify_return_url:e.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.object({message:e.string()}),Brb=8,Trb=/[a-z]/,jGb=e.object({token:e.string().min(1),password:e.string().min(Brb).regex(Trb)}),HGb=e.object({message:e.string()}),LGb=e.object({data:e.array(e.object({id:e.string(),name:e.string(),role:e.enum(["owner","admin","member"]),external_analytics:e.boolean().optional().describe("Whether external analytics is enabled for this account.")}))}),Erb=36,Drb=255,Rrb=255,_rb=36,GGb=e.object({id:e.string().max(Erb),email:e.string().max(Drb),name:e.string().max(Rrb).nullish(),email_verified:e.boolean(),account_id:e.string().max(_rb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),Nrb=2,VGb=e.object({name:e.string().min(Nrb).nullish().describe("User display name"),locale:e.union([e.literal("en"),e.literal("de"),e.literal("sl"),e.literal("it"),e.literal("fr"),e.literal("es"),e.literal("pt"),e.literal("nl"),e.literal("pl"),e.literal("hr"),e.literal("sv"),e.literal("fi"),e.literal("et"),e.literal("bg"),e.literal("cs"),e.literal("sk"),e.literal("nb"),e.literal("is"),e.literal("hu"),e.literal(null)]).nullish().describe("Preferred UI language. When omitted or null, the current preference is left unchanged.")}),Mrb=36,Urb=255,Prb=255,Crb=36,KGb=e.object({id:e.string().max(Mrb),email:e.string().max(Urb),name:e.string().max(Prb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Crb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),ZGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qGb=e.object({operator_tax_number:e.string().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),wrb=36,Arb=255,Frb=255,krb=36,WGb=e.object({id:e.string().max(wrb),email:e.string().max(Arb),name:e.string().max(Frb).nullish(),email_verified:e.boolean(),account_id:e.string().max(krb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),YGb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Gb=e.object({operator_oib:e.string().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e.string().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),jrb=36,Hrb=255,Lrb=255,Grb=36,QGb=e.object({id:e.string().max(jrb),email:e.string().max(Hrb),name:e.string().max(Lrb).nullish(),email_verified:e.boolean(),account_id:e.string().max(Grb).nullish(),settings:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),metadata:e.union([e.string(),e.number(),e.boolean(),e.null(),e.record(e.string(),e.unknown()),e.array(e.unknown())]),is_accountant:e.boolean().optional().describe("Whether the user signed up as an accountant. Read-only. Clients must treat an absent value as false."),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var 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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Vrb=0,XGb=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),tVb=e.object({territory:e.enum(["ordinary","basque_country","navarra"]).describe("The issuer's fiscal territory, confirmed during onboarding."),sii:e.boolean().describe("Whether the issuer uses Spain's SII VAT reporting system."),enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked.")}).describe("Explicit eligibility choices and activation request for the entity\u2019s VeriFactu installation."),Krb=0,nVb=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),oVb=e.object({file:e.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("P12/PFX client certificate file."),passphrase:e.string().describe("P12/PFX passphrase. Empty string is valid for an unprotected file.")}),Zrb=0,iVb=e.object({enabled:e.boolean().describe("Enable VeriFactu issuance after eligibility and credentials have been checked."),territory:e.union([e.literal("ordinary"),e.literal("basque_country"),e.literal("navarra"),e.literal(null)]).nullable(),sii:e.boolean().nullable(),eligibility:e.enum(["not_configured","eligible","unsupported_country","unsupported_territory","unsupported_sii"]).describe("Eligibility for the ordinary-territory, non-SII release."),has_certificate:e.boolean().describe("Whether a currently valid AEAT client certificate is stored."),certificate_expiry:e.string().nullable().describe("Stored client certificate expiry, or null when absent."),environment:e.enum(["test","production"]).describe("AEAT environment, selected from the entity environment."),software_version:e.string().describe("Fiscal software version captured by newly generated records."),production_ready:e.boolean().describe("Whether the released software has the required production approval evidence."),pending_records:e.number().min(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.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),rVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),lVb=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.").and(e.object({document_id:e.string().describe("Originating invoice, credit-note or advance-invoice identifier."),kind:e.enum(["alta","anulacion"]).describe("Fiscal registration or annulment operation."),sequence:e.number().describe("Monotonic position in the installation-wide chain, including rejected records."),previous_record_id:e.string().nullable().describe("Previous record in this installation\u2019s chain, or null for the first record."),reason:e.string().nullable().describe("Retained operator reason for a correction or cancellation."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),total_attempts:e.number().describe("Total retained submission and consultation attempts, including those outside the latest-100 window."),attempts:e.array(e.object({id:e.string().describe("Unique attempt identifier."),request_xml:e.string().describe("Retained SOAP XML request; protected fiscal evidence."),response_xml:e.string().nullable().describe("Retained AEAT response body, or null when no response was received."),http_status:e.number().nullable().describe("HTTP status received from AEAT, or null for a transport failure."),started_at:e.string().describe("Attempt start timestamp."),finished_at:e.string().nullable().describe("Attempt completion timestamp, or null while unfinished."),error_code:e.string().nullable().describe("Authority validation or sanitized local failure classification.")}))})).describe("Immutable fiscal request and the latest 100 submission and consultation attempts; all attempts remain retained."),dVb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),cVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uVb=e.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),pVb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),mVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qrb=500,Wrb=500,Yrb=0,$rb=/^\d{2}$/,Qrb=12,xVb=e.object({reason:e.string().min(1).max(qrb).describe("Operator explanation retained with this fiscal operation."),correction:e.object({invoice_type:e.union([e.literal("F1"),e.literal("F2"),e.literal("R1"),e.literal("R2"),e.literal("R3"),e.literal("R4"),e.literal("R5"),e.literal(null)]).nullish().describe("AEAT invoice type. Ordinary invoices default to F1; rectifying credit notes require an explicit R1\u2013R5 reason type."),description:e.string().min(1).max(Wrb).nullish().describe("Description of the invoiced operation. Defaults to the document's line descriptions."),customer_id_type:e.union([e.literal("02"),e.literal("03"),e.literal("04"),e.literal("05"),e.literal("06"),e.literal("07"),e.literal(null)]).nullish().describe("AEAT identification type for a recipient identified without Spanish NIF: VAT ID, passport, official document, residence certificate, other evidence, or not registered in the census."),tax_treatments:e.array(e.object({tax_index:e.number().min(Yrb).describe("Zero-based index in the document tax summary, available from calculation preview."),tax:e.enum(["01","02","03","05"]).describe("AEAT tax code: IVA, IPSI, IGIC or other."),regime:e.string().regex($rb).describe("Applicable AEAT tax-regime code, supplied by the issuer."),qualification:e.enum(["S1","S2","N1","N2","E1","E2","E3","E4","E5","E6"]).describe("Taxable, reverse-charge, non-subject or statutory exemption classification.")})).max(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.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome."),yVb=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),OVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Jrb=500,vVb=e.object({reason:e.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.object({record_id:e.string().describe("Immutable fiscal record identifier."),status:e.enum(["pending","accepted","accepted_with_errors","rejected","cancelled"]).describe("Authority submission state. Pending and accepted-with-errors invoices remain deliverable; rejected, cancelled and locally voided invoices are blocked."),hash:e.string().describe("Uppercase SHA-256 fingerprint of the canonical AEAT record."),generated_at:e.string().describe("Immutable record-generation timestamp including timezone."),qr_url:e.string().describe("AEAT invoice verification URL encoded by the printed QR."),software_version:e.string().describe("Fiscal software version that generated this record."),csv:e.string().nullable().describe("AEAT submission receipt code, when supplied."),error_code:e.string().nullable().describe("AEAT validation code or local transport error classification."),error_message:e.string().nullable().describe("Authority validation message or retry information.")}).describe("The latest retained fiscal record and its AEAT submission outcome.");var 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.object({issuer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e.string().min(Xrb).max(elb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(tlb).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations."),tax_number:e.string().nullish().describe("Issuer VAT number. It identifies a Northern Ireland issuer (country_code GB with an XI-prefixed number, or country_code XI). When the customer's VAT number is checked in VIES, an EU or XI issuer number is sent as the requester, so that VIES can return a consultation number.")}).describe("Issuer (seller) information"),customer:e.object({country:e.string().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e.string().min(nlb).max(slb).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e.string().optional().describe("Customer tax number (with or without country prefix)"),is_end_consumer:e.boolean().optional().describe("Whether the customer is an end consumer (B2C override). When true, forces B2C classification for non-EU transactions even if customer has a tax number. For intra-EU, VIES validation takes precedence.")}).describe("Customer (buyer) information"),supply_type:e.union([e.literal("goods"),e.literal("services"),e.literal(null)]).nullish().describe("What is being supplied. Only sales between the EU and Northern Ireland (country_code XI, or GB with an XI-prefixed VAT number) depend on it: goods are an intra-EU supply and the XI number is checked in VIES, services are a third-country supply. When it is omitted or null and no items are given, such a sale is classified as third-country and the response carries a warning. Ignored for every other country pair."),items:e.array(e.object({type:e.union([e.literal("separator"),e.literal(null)]).nullish().describe("Set to 'separator' for a section header line; separators are ignored."),classification:e.union([e.literal("product"),e.literal("service"),e.literal("advance"),e.literal(null)]).nullish().describe("The line's classification, as on a document line. Leave it out for a line that takes its classification from the catalog item in item_id; null means the line is unclassified."),item_id:e.string().nullish().describe("Catalog item the line references. Used to inherit the item's classification when the line has none of its own. This needs a selected entity (X-Entity-Id header or an entity-scoped API key) on POST /transaction-type/check; without one, and on the deprecated POST /vies/check, such a line counts as unclassified.")})).nullish().describe("The document's lines, as an alternative to supply_type: the supply type is derived from them with the rule a saved document uses (every line product = goods, every line service = services, anything else = not known). Ignored when supply_type is given."),refresh:e.boolean().nullish().describe("Set true to check the customer's VAT number in VIES again instead of reusing a recent failed lookup. A stored valid or invalid result is still used.")}),olb=2,ilb=2,alb=2,rlb=2,llb=2,dlb=2,SVb=e.object({transaction_type:e.union([e.literal("domestic"),e.literal("intra_eu_b2b"),e.literal("intra_eu_b2c"),e.literal("3w_b2b"),e.literal("3w_b2c"),e.literal(null)]).nullable().describe("Determined transaction type based on geography and tax status. 3w_b2b/3w_b2c = third-world (non-EU) B2B/B2C."),reverse_charge_applies:e.boolean().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e.string().min(olb).max(ilb).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(alb).max(rlb).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result: true if the tax number is valid, false if VIES says it is invalid, null if it was not checked or VIES could not verify it"),warning:e.string().nullable().describe("Warning message if VIES could not confirm the tax number or the tax number was invalid, if a GB- or XI-prefixed UK VAT number failed the format check or the HMRC check, or if a Northern Ireland sale has no supply_type"),warning_code:e.enum(["vies_unavailable","vies_unavailable_last_valid"]).optional().describe("Present when VIES could not be reached. vies_unavailable: the number could not be confirmed. vies_unavailable_last_valid: the last valid VIES result is used (see warning_last_valid_date). Clients can show their own text for it; warning carries an English message."),warning_last_valid_date:e.iso.date().optional().describe("Date of the last valid VIES check. Present with warning_code vies_unavailable_last_valid."),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C, except for a Polish issuer, whose type follows the buyer)"),hmrc_valid:e.boolean().nullish().describe("Present when the customer is in the United Kingdom with a tax number that VIES does not cover (Great Britain, or Northern Ireland services). True or false is HMRC's answer for the UK VAT number; null means HMRC was not asked (lookup not enabled, or the number failed the format check) or gave no answer. Informational: it never changes transaction_type."),vat_id_country_code:e.string().min(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.union([e.literal("goods"),e.literal("services"),e.literal("mixed"),e.literal(null)]).nullish().describe("Whether the given items are goods (classification product), services (anything else) or a mix, resolved like a saved document's lines (a line with item_id and no classification takes the catalog item's). Decides which default tax clause an intra-EU B2B document gets. Not returned when no items were given or the list is empty.")});var 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.object({limit:e.number().min(1).max(ulb).default(clb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),fVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),plb=36,mlb=36,xlb=200,IVb=e.object({data:e.array(e.object({id:e.string().max(plb),entity_id:e.string().max(mlb),name:e.string().max(xlb),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),BVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),glb=200,TVb=e.object({name:e.string().min(1).max(glb).describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Whether this becomes the entity's default warehouse. The first warehouse created for an entity becomes the default automatically; later ones only when `is_default` is true.")}),ylb=/^wh_[0-9a-f]{24}$/,EVb=e.object({id:e.stringFormat("resource-id",ylb).describe("Warehouse identifier (wh_ prefix).")}),DVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Olb=36,vlb=36,hlb=200,RVb=e.object({id:e.string().max(Olb),entity_id:e.string().max(vlb),name:e.string().max(hlb),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),blb=/^wh_[0-9a-f]{24}$/,_Vb=e.object({id:e.stringFormat("resource-id",blb).describe("Warehouse identifier (wh_ prefix).")}),NVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Slb=200,MVb=e.object({name:e.string().min(1).max(Slb).nullish().describe("Warehouse display name."),is_default:e.boolean().nullish().describe("Set true to make this the entity's default warehouse. Omit or send null to leave it unchanged.")}),zlb=36,flb=36,Ilb=200,UVb=e.object({id:e.string().max(zlb),entity_id:e.string().max(flb),name:e.string().max(Ilb),is_default:e.boolean(),deleted_at:e.iso.datetime({}).nullish(),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}).describe("Physical or logical stock location for inventory tracking, scoped to an entity."),Blb=/^wh_[0-9a-f]{24}$/,PVb=e.object({id:e.stringFormat("resource-id",Blb).describe("Warehouse identifier (wh_ prefix).")}),CVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var 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.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Tlb=2048,Elb=500,Dlb=true,AVb=e.object({url:e.url().max(Tlb).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Elb).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean().default(Dlb).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Rlb=10,_lb=100,FVb=e.object({limit:e.number().min(1).max(_lb).default(Rlb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),kVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Nlb=36,Mlb=36,Ulb=2048,Plb=500,Clb={},jVb=e.object({data:e.array(e.object({id:e.string().max(Nlb),entity_id:e.string().max(Mlb),url:e.string().max(Ulb),description:e.string().max(Plb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.string().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),wlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,HVb=e.object({id:e.stringFormat("resource-id",wlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),LVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Alb=36,Flb=36,klb=2048,jlb=500,Hlb={},GVb=e.object({id:e.string().max(Alb),entity_id:e.string().max(Flb),url:e.string().max(klb),description:e.string().max(jlb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.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.object({id:e.stringFormat("resource-id",Llb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),KVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Glb=2048,Vlb=500,ZVb=e.object({url:e.url().max(Glb).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Vlb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),Klb=36,Zlb=36,qlb=2048,Wlb=500,Ylb={},qVb=e.object({id:e.string().max(Klb),entity_id:e.string().max(Zlb),url:e.string().max(qlb),description:e.string().max(Wlb).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.iso.datetime({}),secret:e.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.object({id:e.stringFormat("resource-id",$lb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Vb=e.object({success:e.boolean()}),Qlb=/^[a-z]{3,4}_[0-9a-f]{24}$/,QVb=e.object({id:e.stringFormat("resource-id",Qlb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),JVb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({id:e.string().max(Jlb),webhook_id:e.string().max(Xlb),entity_id:e.string().max(edb),event_type:e.string().max(tdb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(ndb).max(sdb).nullish(),response_body:e.string().max(odb).nullish(),error_message:e.string().max(idb).nullish(),attempt:e.number().min(adb).max(rdb),max_attempts:e.number().min(ldb).max(ddb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(cdb).max(udb).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),pdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,eKb=e.object({id:e.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.object({limit:e.number().min(1).max(xdb).default(mdb).describe("Number of results per request."),next_cursor:e.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),nKb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),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.object({data:e.array(e.object({id:e.string().max(gdb),webhook_id:e.string().max(ydb),entity_id:e.string().max(Odb),event_type:e.string().max(vdb),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(hdb).max(bdb).nullish(),response_body:e.string().max(Sdb).nullish(),error_message:e.string().max(zdb).nullish(),attempt:e.number().min(fdb).max(Idb),max_attempts:e.number().min(Bdb).max(Tdb),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(Edb).max(Ddb).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Rdb=/^[a-z]{3,4}_[0-9a-f]{24}$/,oKb=e.object({id:e.stringFormat("resource-id",Rdb).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),iKb=e.object({"x-entity-id":e.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),_db=36,Ndb=36,Mdb=2048,Udb=500,Pdb=64,Cdb={},aKb=e.object({id:e.string().max(_db),entity_id:e.string().max(Ndb),url:e.string().max(Mdb),description:e.string().max(Udb).nullish(),secret:e.string().max(Pdb),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.updated","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.updated","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.updated","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","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.boolean(),metadata:e.record(e.string(),e.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.iso.datetime({}),updated_at:e.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.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e.string().describe("Subscription status"),billing_interval:e.string().nullable().describe("Current billing interval"),current_period_start:e.string().describe("Current period start date (ISO 8601)"),current_period_end:e.string().describe("Current period end date (ISO 8601)"),payment_provider:e.enum(["stripe","paypal","bank","braintree"]).describe("Billing provider used for this subscription"),shopify_managed:e.boolean().optional().describe("Whether subscription charges and cancellation are managed by Shopify instead of Apollo's payment providers. May be omitted by API versions from before Shopify-managed billing."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for subscription billing."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for this subscription."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use."),bank_reference:e.string().nullable().describe("Stable bank-transfer payment reference for Apollo subscriptions"),billing_email:e.string().nullable().describe("Billing email used for subscription notifications and invoices"),coupon_code:e.string().nullable().describe('Applied saved coupon code for the base plan price, e.g. "COUPON_50".'),trial_ends_at:e.string().nullable().describe("Trial end date (ISO 8601). Null if not on trial."),trial_days_remaining:e.number().nullable().describe("Days remaining in trial. Null if not on trial."),trial_started_now:e.boolean().describe("True only when this request created the trial subscription."),cancel_at:e.string().nullable().describe("Scheduled cancellation date (ISO 8601). Null if not scheduled."),scheduled_change:e.object({plan:e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),billing_interval:e.string().nullable().describe("Scheduled billing interval once the change takes effect"),effective_at:e.string().describe("When the scheduled change takes effect (ISO 8601)")}).nullable(),payment_method:e.object({last4:e.string().nullable(),brand:e.string().nullable(),has_card:e.boolean()}).nullable(),store_billing:e.union([e.object({connected_stores:e.number(),included_stores:e.number(),billable_extra_stores:e.number(),invoices_included_from_extra_stores:e.number(),extra_store_price_cents_monthly:e.number().nullable(),extra_store_price_cents_yearly:e.number().nullable().describe("Effective yearly price in cents for each additional connected store, using the explicit yearly price or the 20% yearly fallback.")}),e.null()]),usage:e.object({documents_count:e.number().describe("Documents created this period"),documents_limit:e.number().nullable().describe("Documents limit for current plan. Null means unlimited."),invoices_count:e.number().describe("Invoices created this period (invoices, credit notes, advance invoices)"),invoices_limit:e.number().nullable().describe("Invoice limit for current plan. Null means unlimited."),e_invoicing_send_count:e.number().default(wdb).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(Adb).describe("Included Peppol/e-invoicing sends for current plan. Null means not configured."),period_start:e.string().describe("Current period start date (ISO 8601)"),period_end:e.string().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),lKb=e.object({plans:e.array(e.object({id:e.string().describe("Unique plan ID"),slug:e.string().describe("Plan slug"),name:e.string().describe("Display name"),billing_interval:e.string().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:e.number().nullable().describe("Price in cents. Null for free plans."),currency_code:e.enum(["EUR","USD"]).describe("Currency used for this plan in the current billing profile."),limits:e.union([e.object({documents_per_month:e.number().nullable().describe("Maximum documents per month (backward compat). Null means unlimited."),invoices_per_month:e.number().nullable().describe("Maximum invoices per month. Null means unlimited."),overage_price_cents:e.number().nullable().describe("Overage price in cents per document. Null means hard block."),annual_price_cents:e.number().nullable().describe("Explicit yearly plan price in cents. Null uses twelve monthly payments with a 20% yearly discount."),included_store_count:e.number().nullable().describe("Number of connected stores included in the base plan."),extra_store_price_cents:e.number().nullable().describe("Monthly price in cents for each additional connected store."),extra_store_annual_price_cents:e.number().nullable().describe("Explicit yearly price in cents for each additional connected store. Null uses twelve monthly payments with a 20% yearly discount."),extra_store_invoices_per_month:e.number().nullable().describe("Pooled invoice allowance added by each additional store."),api_integration_counts_as_store:e.boolean().nullish().describe("Whether an entity's API integration counts as one connected store on this plan. Null or false means it is not billed as a store. Always present in responses from this version; optional for compatibility."),e_invoicing_sends_included:e.number().nullable().describe("Peppol sends included per month. Null means the plan does not configure Peppol metering."),e_invoicing_send_price_cents:e.number().nullable().describe("Overage price in cents per successful live Peppol send.")}),e.null()]),features:e.array(e.string()).describe("List of features included. Empty array means all features."),is_free:e.boolean().describe("Whether this is a free plan"),display_order:e.number().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e.string().nullable().describe("Current plan slug (null if no subscription)"),currency_code:e.enum(["EUR","USD"]).describe("Currency used for the returned plans."),billing_profile:e.enum(["default","us_company"]).describe("Resolved billing profile for the current entity."),allowed_payment_providers:e.array(e.enum(["stripe","paypal","bank"])).describe("Payment providers allowed for the resolved billing profile."),stripe_publishable_key_kind:e.enum(["default","us_company"]).describe("Frontend-safe selector for which Stripe publishable key to use.")}).describe("Available subscription plans for the current white-label"),dKb=e.object({feature:e.string().describe("Feature slug to check")}),cKb=e.object({feature:e.string().describe("Feature being checked"),allowed:e.boolean().describe("Whether the feature is allowed on the current plan"),requires_upgrade:e.boolean().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e.string().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),uKb=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),pKb=e.object({resource:e.string().describe("Resource being checked"),allowed:e.boolean().describe("Whether creating more of this resource is allowed"),usage:e.number().describe("Current usage count"),limit:e.number().nullable().describe("Current limit. Null means unlimited."),percentage:e.number().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),mKb=e.object({billing_email:e.email().nullable()}),xKb=e.object({billing_email:e.string().nullable()});var zn={};$(zn,{GetCurrentWhiteLabelResponse:()=>gKb,GetMyWhiteLabelResponse:()=>yKb});var gKb=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain"),yKb=e.object({slug:e.string().describe("Unique identifier for the white-label"),name:e.string().describe("Display name of the white-label"),environment:e.enum(["production","sandbox"]).optional().describe("White-label environment resolved for this domain or account."),hidden_features:e.array(e.string()).describe('UI capabilities and standalone action controls hidden for this white-label. Empty array means all configured capability families and controls stay visible. Example values include "developer_tools", "documents.credit_notes", and "actions.documents.credit_notes.create_from_invoice".'),billing_enabled:e.boolean().describe("Whether billing-related settings and subscription UI should be shown for this white-label."),account_users_full_ui_enabled:e.boolean().describe("Whether account users bypass white-label UI hiding and keep access to the full product UI on this brand."),hide_new_features_by_default:e.boolean().describe("Whether white-label-visible features added after the last capabilities review stay hidden until reviewed."),guided_onboarding_enabled:e.boolean().optional().describe("Whether the guided onboarding experience (setup wizard, first-steps dashboard, first-invoice guide) is enabled for this white label. Treat a missing value as false."),reviewed_feature_catalog_ids:e.array(e.string()).describe("Catalog IDs reviewed during the last explicit capabilities save."),theme:e.object({primary:e.string().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e.string().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),app_name:e.string().nullable().describe("Installed app name for PWA/browser surfaces. Null means use the white-label name."),short_name:e.string().nullable().describe("Short installed app name for compact browser/PWA surfaces. Null means use the white-label name."),logo_url:e.url().nullable().describe("Branded logo URL used for app install surfaces when configured."),favicon_url:e.url().nullable().describe("Branded favicon/app icon URL used for browser and install surfaces when configured."),theme_color:e.string().nullable().describe("Resolved CSS theme color for install surfaces and browser UI."),analytics:e.object({posthog_key:e.string().nullable().describe("Public PostHog project key for this white-label. Null means browser analytics are disabled."),posthog_host:e.string().nullable().describe("PostHog API host for this white-label. Null means use the default PostHog host."),posthog_track_embeds:e.boolean().describe("Whether PostHog may initialize on embedded app routes for this white-label.")}).describe("Analytics configuration for this white-label."),hal_app_id:e.string().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration."),support_email:e.email().nullable().describe("Support contact email for this white-label. Null means no configured support email."),google_tag_id:e.string().nullable().describe("Google tag ID used for conversion tracking. Null means Google tracking is disabled.")}).describe("White-label configuration for the current domain");var 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
|
export{jJb as AccountInfoRole,VJb as AccountWebhookDeliveryStatus,ZJb as AccountWebhookResponseEventsItem,WJb as AccountWebhookWithSecretEventsItem,LJb as AccountingSettingsVatPeriod,$Jb as AddEntityUserBodyRole,JJb as AdvanceInvoiceCalculationMode,eXb as AdvanceInvoiceItemClassification,nXb as AdvanceInvoiceItemType,oXb as AdvanceInvoiceTransactionType,aXb as ApplyCategorySuggestionsResponseResultsItemStatus,lXb as AttendanceDayKind,cXb as AttendanceDaySickReason,pXb as AuthorizeShopifyBodyAutoProcessOn,xXb as AvailablePlansAllowedPaymentProvidersItem,yXb as AvailablePlansBillingProfile,vXb as AvailablePlansCurrencyCode,bXb as AvailablePlansStripePublishableKeyKind,zXb as BankImportParseErrorCauseCode,IXb as BankReconciliationMonthStatementBalanceSource,TXb as BankReconciliationMonthStatus,DXb as BankReconciliationsResponseAccountCode,_Xb as BankStatementImportSourceFormat,MXb as BankStatementImportStatus,PXb as BankTransactionConflictErrorCauseCode,wXb as BankTransactionDetailMatchStatus,FXb as BankTransactionDetailSourceFormat,jXb as BankTransactionMatchInfoDocumentType,LXb as BankTransactionMatchStatus,VXb as BankTransactionSourceFormat,ZXb as BankTransactionSuggestedDocumentDocumentType,WXb as BulkSetPriceListPricesBodySource,$Xb as BusinessUnitSettingsInputPdfTemplate,JXb as BusinessUnitSettingsPdfTemplate,Ws as CLIENT_HEADER_NAME,neS as CalculateDocumentPreviewCalculationMode,oeS as CalculateDocumentPreviewType,aeS as CalculateTravelOrderRouteDistance422Field,eeS as CalculatedItemType,leS as CalculationSettingsDefaultMode,ceS as CheckEInvoicingRecipientRequestDocumentType,peS as CompanyRegistryResultSettingsSloveniaVatProfile,xeS as CompleteAdvanceInvoicePreviewCalculationMode,yeS as CompleteAdvanceInvoicePreviewCreationSource,veS as CompleteCreditNotePreviewCalculationMode,beS as CompleteCreditNotePreviewCreationSource,zeS as CompleteDeliveryNotePreviewCalculationMode,IeS as CompleteDeliveryNotePreviewCreationSource,TeS as CompleteEstimatePreviewCalculationMode,DeS as CompleteEstimatePreviewCreationSource,_eS as CompleteEstimatePreviewTitleType,MeS as CompleteInvoicePreviewCalculationMode,PeS as CompleteInvoicePreviewCreationSource,weS as CompletePurchaseOrderPreviewCalculationMode,FeS as CompletePurchaseOrderPreviewCreationSource,jeS as CreateAccountWebhookBodyEventsItem,LeS as CreateAdvanceInvoiceCalculationMode,VeS as CreateCheckoutRequestBillingInterval,ZeS as CreateCreditNoteCalculationMode,WeS as CreateCustomerBodyContactType,$eS as CreateDeliveryNoteCalculationMode,JeS as CreateDocumentItemClassification,etS as CreateDocumentItemType,ntS as CreateDocumentPaymentType,otS as CreateEntityApiKeyBodyPurpose,atS as CreateEntityBodyEnvironment,ltS as CreateEntityBodySettingsPdfTemplate,ctS as CreateEstimateCalculationMode,ptS as CreateEstimateTitleType,xtS as CreateExpenseBodyCalculationMode,ytS as CreateExpenseBodyPaymentsItemType,vtS as CreateExpenseBodyTransactionType,btS as CreateExpenseBodyType,ztS as CreateExpenseItemClassification,ItS as CreateExpenseItemType,TtS as CreateExpensePaymentBodyType,DtS as CreateFinaInvoiceDataPaymentType,_tS as CreateInvoiceCalculationMode,MtS as CreateItemBodyClassification,PtS as CreateItemBodyUsage,wtS as CreateItemInventoryMovementBodyType,FtS as CreateMigrationJobRequestEnvironment,jtS as CreateMigrationJobResponseStatus,LtS as CreateOrderBodyPaymentStatus,VtS as CreateOrderBodySource,ZtS as CreateOrderIntegrationBodySource,WtS as CreatePaymentBodyType,$tS as CreatePtAtcudSeriesBodyDocumentType,JtS as CreatePurchaseOrderCalculationMode,enS as CreatePurchaseOrderItemClassification,nnS as CreatePurchaseOrderItemType,onS as CreateRecurringInvoiceBodyFrequency,anS as CreateShipmentRequestParcelType,lnS as CreateShippingConnectionRequestCarrier,cnS as CreateTaxPaymentType,pnS as CreateTravelOrderBodyTripType,xnS as CreateWebhookBodyEventsItem,ynS as CreationSource,vnS as CreditNoteCalculationMode,bnS as CreditNoteItemClassification,znS as CreditNoteItemType,InS as CreditNoteTransactionType,TnS as CryptoEquivalentCode,DnS as CryptoEquivalentsSettingsCodesItem,_nS as CryptoWalletCode,MnS as CurrentSubscriptionAllowedPaymentProvidersItem,PnS as CurrentSubscriptionBillingProfile,wnS as CurrentSubscriptionCurrencyCode,FnS as CurrentSubscriptionPaymentProvider,jnS as CurrentSubscriptionStripePublishableKeyKind,LnS as CustomCreateAdvanceInvoiceCalculationMode,VnS as CustomCreateCreditNoteCalculationMode,ZnS as CustomCreateDeliveryNoteCalculationMode,WnS as CustomCreateEstimateCalculationMode,$nS as CustomCreateEstimateTitleType,JnS as CustomCreateExpenseTransactionType,esS as CustomCreateExpenseType,nsS as CustomCreateInvoiceCalculationMode,osS as CustomDocumentItemClassification,asS as CustomDocumentItemType,lsS as CustomExpenseItemClassification,csS as CustomExpenseItemType,psS as CustomExpenseWriteCalculationMode,xsS as CustomExpenseWritePaymentsItemType,ysS as CustomExpenseWriteTransactionType,vsS as CustomExpenseWriteType,bsS as CustomStoreConnectRequestAutoProcessOn,zsS as CustomStoreOrderItemsItemKind,IsS as CustomStoreOrderResultAction,Ce as DEFAULT_BASE_URL,TsS as DeleteDocumentType,DsS as DeliveryNoteCalculationMode,_sS as DeliveryNoteItemClassification,MsS as DeliveryNoteItemType,PsS as DeliveryNoteTransactionType,wsS as DocumentCalculationCalculationMode,FsS as DocumentCalculationTransactionType,jsS as DocumentItemEInvoicingVatCategoryCode,LsS as DocumentItemRevenueRecognitionMethod,VsS as DocumentRelationRelatedDocumentTitleType,ZsS as DocumentRelationRelatedDocumentType,WsS as DocumentRelationSourceType,$sS as DocumentRelationTargetType,JsS as DocumentVersionDocumentType,eoS as DownloadDocumentEslogType,noS as DownloadReceivedEInvoiceFormat,loS as EInvoicingDeliveryRoute,coS as EInvoicingEnrollmentChannel,poS as EInvoicingEnrollmentEnvironment,xoS as EInvoicingEnrollmentState,yoS as EInvoicingRecipientCheckResponseDocumentType,ooS as EetFiscalizationResponseStatus,aoS as EffectiveItemPriceSource,voS as EmailSenderDomainVerificationStatus,boS as EmailSenderEffectiveSource,zoS as EmailSenderEmailVerificationStatus,IoS as EmailSenderVerificationStatus,ToS as EntityApiKeyEnvironment,DoS as EntityApiKeyListItemEnvironment,_oS as EntityApiKeyListItemPurpose,MoS as EntityApiKeyPurpose,PoS as EntityBankAccountInputType,woS as EntityBankAccountType,FoS as EntityEnvironment,joS as EntityInvitationPreviewRole,LoS as EntityInvitationPreviewStatus,VoS as EntityInvitationRole,ZoS as EntityInvitationStatus,WoS as EntitySettingsPdfTemplate,$oS as EntitySettingsUpdatePdfTemplate,JoS as EntityUserRole,eiS as EntityUsersAccessAccountRole,niS as EntityUsersAccessEntityRole,oiS as EslogDataValidationStatus,aiS as EslogExportByDateRangeTypesItem,liS as EstimateCalculationMode,ciS as EstimateItemClassification,piS as EstimateItemType,xiS as EstimateTitleType,yiS as EstimateTransactionType,viS as EuOssReportResponseEligibilityReason,biS as EuOssReportResponseNoticesItem,ziS as EuOssThresholdAmount,IiS as EuOssThresholdCurrencyCode,TiS as EuOssThresholdStatus,DiS as ExpenseCategoryReportResponseBasis,_iS as ExpenseCategoryReportResponseCalculationMode,MiS as ExpenseCategoryReportResponseGroupBy,PiS as ExpenseImportDraftItemClassification,wiS as ExpenseImportDraftItemType,FiS as ExpenseImportResultAttachmentStatus,jiS as ExpenseImportSourceDocumentType,LiS as ExpenseImportWarningCode,ViS as ExpenseInboundEmailAttachmentMode,ZiS as ExpenseInboundEmailMessageStatus,WiS as ExpenseItemClassification,$iS as ExpenseItemRecognitionMethod,JiS as ExpenseItemType,eaS as ExpensePaymentOpenBalanceErrorCauseCode,naS as ExpenseRecognitionJobSimulationMode,oaS as ExpenseRecognitionJobStatus,aaS as ExpenseRecognitionJobWarningsItemCode,laS as ExpenseRecognitionSettingsDefaultMethod,caS as ExpenseRecognitionSettingsResponseDefaultMethod,paS as ExpenseSummaryClassification,xaS as ExpenseType,yaS as ExportDocumentsFormat,vaS as ExportDocumentsLanguage,baS as ExportDocumentsType,zaS as ExportExpensesDateBasis,IaS as ExportExpensesFormat,TaS as ExportExpensesLanguage,DaS as ExportFixedAssetRegisterFormat,_aS as ExportInventoryFormat,MaS as ExportInventoryLanguage,PaS as ExportPosDailyReportFormat,waS as ExportPosDailyReportLanguage,FaS as ExportPosMonthlyReportFormat,jaS as ExportPosMonthlyReportLanguage,LaS as ExportRevenueByCategoryFormat,VaS as ExportRevenueByCategoryLanguage,ZaS as ExportSalesPerItemFormat,WaS as ExportSalesPerItemLanguage,$aS as ExportVatReturnFormat,JaS as ExportVatReturnSelfReport,erS as FilingKind,nrS as FilingObligationType,orS as FilingState,arS as FilingStatus,lrS as FilingVerification,crS as FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason,prS as FinaFiscalizationResponseStatus,xrS as FinalizeDocumentType,TrS as FiscalRecoveryErrorCauseCode,yrS as FiscalizationProviderErrorCauseProvider,vrS as FiscalizationProviderErrorCauseType,brS as FiscalizationProviderErrorCode,zrS as FiscalizeDocumentType,IrS as FiscalizedOutputRegistrationFiscalizationProvider,DrS as FixedAssetCategory,_rS as FixedAssetClass,MrS as FixedAssetDisposalType,PrS as FixedAssetStatus,wrS as FixedAssetTaxRateBasis,FrS as FrenchEReportingRecordKind,jrS as FrenchEReportingRecordStatus,LrS as FursFiscalizationResponseStatus,VrS as FursPremiseSuccessResponseEnvironment,ZrS as GeneratePtSaftReportMode,WrS as GermanEInvoicingDataValidationStatus,$rS as GetActivePtAtcudSeriesDocumentType,JrS as GetActivities200DataItemActorType,elS as GetEetSettings200CertificateStatus,nlS as GetEntitiesEnvironment,olS as GetEslogExportStatus200Status,alS as GetExpenseCategoryReportBasis,llS as GetExpenseCategoryReportGroupBy,clS as GetFilesCategory,plS as GetFinaSettings200CertificateStatus,xlS as GetFinaSettings200NumberingSequence,ylS as GetFursSettings200CertificateStatus,vlS as GetFursSettings200NumberingStrategy,blS as GetItemsImportTemplateFormat,zlS as GetItemsImportTemplateLanguage,IlS as GetItemsUsage,TlS as GetLegacyMigrationOrganization200UnsupportedItemCode,DlS as GetNextDocumentNumberType,_lS as GetOrdersPdfExportJob200Status,MlS as GetPaymentRemindersStatus,PlS as GetPaymentRemindersTrigger,wlS as GetPayrollParameterHistoryScope,FlS as GetPdfExportStatus200Status,jlS as GetRevenueRecognitionDetailsBasis,LlS as GetRevenueRecognitionDetailsGroupBy,VlS as GetRevenueRecognitionReportBasis,ZlS as GetRevenueRecognitionReportGroupBy,WlS as GetShareableAdvanceInvoiceHtmlLanguage,$lS as GetShareableAdvanceInvoiceHtmlLocale,JlS as GetShareableAdvanceInvoicePdfLanguage,edS as GetShareableAdvanceInvoicePdfLocale,ndS as GetShareableCreditNoteHtmlLanguage,odS as GetShareableCreditNoteHtmlLocale,adS as GetShareableCreditNotePdfLanguage,ldS as GetShareableCreditNotePdfLocale,cdS as GetShareableDeliveryNoteHtmlLanguage,pdS as GetShareableDeliveryNoteHtmlLocale,xdS as GetShareableDeliveryNotePdfLanguage,ydS as GetShareableDeliveryNotePdfLocale,vdS as GetShareableEstimateHtmlLanguage,bdS as GetShareableEstimateHtmlLocale,zdS as GetShareableEstimatePdfLanguage,IdS as GetShareableEstimatePdfLocale,TdS as GetShareableInvoiceHtmlLanguage,DdS as GetShareableInvoiceHtmlLocale,_dS as GetShareableInvoicePdfLanguage,MdS as GetShareableInvoicePdfLocale,PdS as GetShareablePurchaseOrderHtmlLanguage,wdS as GetShareablePurchaseOrderHtmlLocale,FdS as GetShareablePurchaseOrderPdfLanguage,jdS as GetShareablePurchaseOrderPdfLocale,LdS as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,VdS as GetSloveniaTaxProfile200BusinessForm,ZdS as GetSloveniaTaxProfile200BusinessFormSource,WdS as GetSloveniaTaxProfile200IncomeTaxRegime,$dS as GetSloveniaTaxProfile200InferredBusinessForm,JdS as GetSloveniaTaxProfile200TaxResidency,ecS as GetSloveniaTaxProfile200VatProfile,ncS as GetSloveniaTaxProfile200YearlyReportingAccountingType,ocS as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,acS as HolidayCompensationMethod,lcS as ImportBankStatementBodyLedgerAccountCode,ccS as ImportBankStatementBodySourceFormat,pcS as InventoryMovementResponseType,xcS as InvoiceCalculationMode,ycS as InvoiceItemClassification,vcS as InvoiceItemType,bcS as InvoiceTransactionType,zcS as ItalyLineTaxDataNature,IcS as ItemClassification,_cS as ItemUsage,TcS as ItemsImportReportRowsItemAction,DcS as ItemsImportReportRowsItemStock,McS as JournalEntryKind,PcS as KsefDocumentDataStatus,wcS as KsefEntitySettingsObligation,FcS as KsefSettingsResponseCredentialStatus,jcS as KsefSettingsResponseEnvironment,LcS as KsefSettingsResponseObligation,VcS as LedgerAccountCode,ZcS as LedgerAccountDeductibility,WcS as LedgerAccountType,$cS as LedgerPaymentAccountDirection,JcS as LedgerPaymentAccountPaymentType,euS as LedgerPostingSourceType,nuS as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,ouS as LegalDetailsLegalForm,auS as LineDiscountInputType,luS as LineDiscountType,cuS as LinkBankTransactionBodyDocumentType,puS as ListAccountFilingsCalendarEnvironment,xuS as ListBankReconciliationsAccountCode,yuS as ListEmployeesStatus,vuS as ListFixedAssetsCategory,buS as ListFixedAssetsStatus,zuS as ListPtAtcudSeriesDocumentType,IuS as ListReceivedEInvoicesState,TuS as ListRevenueRecognitionLinesBasis,DuS as ListRevenueRecognitionLinesGroupBy,_uS as ListShipmentsStatus,fKb as MAX_LIST_ALL_PAGES,MuS as MagentoAuthorizationStatusFailureReason,PuS as MagentoAuthorizationStatusStatus,wuS as MagentoAuthorizeRequestAutoProcessOn,FuS as MigrationJobResponseStatus,juS as ModifyEmployeeBodyCommuteMode,LuS as ModifyEmployeeBodyEmploymentType,VuS as ModifyEmployeeBodyGeneralAllowanceMode,ZuS as ModifyEmployeeBodyStatus,WuS as ModifyEmployeeBodyTaxResidency,$uS as ModifyEmployeeCompensationBodyCommuteMode,JuS as ModifyEmployeeCompensationBodyEmploymentType,epS as MovablePremisePremiseType,npS as NavAnnulmentRequestAnnulmentCode,opS as NavDocumentDataOperation,apS as NavDocumentMessageSeverity,lpS as NavDocumentStatus,cpS as NavEnvironment,ppS as NavErrorBodyConflictsItemSource,xpS as NavErrorBodyConflictsItemTypesItem0,ypS as NavErrorBodyConflictsItemTypesItem1,vpS as NavInvoiceAppearance,bpS as NavObligation,zpS as NavResolveRequestOutcome,IpS as NavVatTreatmentDomesticReverseChargeType,TpS as NavVatTreatmentExemptionCase,DpS as NavVatTreatmentExemptionType,_pS as NavVatTreatmentNoVatChargeType,MpS as NavVatTreatmentOutOfScopeCase,PpS as NavVatTreatmentOutOfScopeType,wpS as OrderBasePaymentStatus,FpS as OrderBaseSource,jpS as OrderBaseStatus,LpS as OrderIntegrationBaseAutoProcessOn,VpS as OrderIntegrationBaseDocumentCurrency,ZpS as OrderIntegrationBaseSource,WpS as OrderItemKind,$pS as OrderItemResponseKind,JpS as OrdersPdfExportRequestLanguage,emS as OrdersPdfExportRequestOutput,nmS as PartialAdvanceInvoicePreviewCalculationMode,omS as PartialAdvanceInvoicePreviewCreationSource,amS as PartialAdvanceInvoicePreviewItemsItemClassification,lmS as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,cmS as PartialAdvanceInvoicePreviewItemsItemType,pmS as PartialCreditNotePreviewCalculationMode,xmS as PartialCreditNotePreviewCreationSource,ymS as PartialCreditNotePreviewItemsItemClassification,vmS as PartialCreditNotePreviewItemsItemDiscountsItemType,bmS as PartialCreditNotePreviewItemsItemType,zmS as PartialDeliveryNotePreviewCalculationMode,ImS as PartialDeliveryNotePreviewCreationSource,TmS as PartialDeliveryNotePreviewItemsItemClassification,DmS as PartialDeliveryNotePreviewItemsItemDiscountsItemType,_mS as PartialDeliveryNotePreviewItemsItemType,MmS as PartialEstimatePreviewCalculationMode,PmS as PartialEstimatePreviewCreationSource,wmS as PartialEstimatePreviewItemsItemClassification,FmS as PartialEstimatePreviewItemsItemDiscountsItemType,jmS as PartialEstimatePreviewItemsItemType,LmS as PartialEstimatePreviewTitleType,VmS as PartialInvoicePreviewCalculationMode,ZmS as PartialInvoicePreviewCreationSource,WmS as PartialInvoicePreviewItemsItemClassification,$mS as PartialInvoicePreviewItemsItemDiscountsItemType,JmS as PartialInvoicePreviewItemsItemType,exS as PartialPurchaseOrderPreviewCalculationMode,nxS as PartialPurchaseOrderPreviewCreationSource,oxS as PartialPurchaseOrderPreviewItemsItemClassification,axS as PartialPurchaseOrderPreviewItemsItemDiscountsItemType,lxS as PartialPurchaseOrderPreviewItemsItemType,cxS as PatchEntityBodySettingsPdfTemplate,pxS as PatchMeBodyLocale,xxS as PaymentReminderStatus,yxS as PaymentReminderTrigger,vxS as PaymentType,bxS as PayrollParameterRowScope,zxS as PayrollRunStatus,IxS as PdfExportByDateRangeLanguage,TxS as PdfExportByDateRangeLocale,DxS as PdfExportByDateRangeTypesItem,_xS as PdfExportByDocumentIdsLanguage,MxS as PdfExportByDocumentIdsLocale,PxS as PermanentDeleteDocumentType,wxS as PosTabConflictCode,FxS as PosTabResponseStatus,jxS as PreviewTravelOrderBodyTripType,LxS as PtAtcudSeriesDocumentType,VxS as PurchaseOrderBusinessUnitSettingsInputPdfTemplate,ZxS as PurchaseOrderCalculationMode,WxS as PurchaseOrderItemClassification,$xS as PurchaseOrderItemType,JxS as PurchaseOrderTransactionType,egS as PurchaseOrderVersionDocumentType,ngS as PutKsefCredentialEnvironment,ogS as ReceivedEInvoiceAttachmentStatus,agS as ReceivedEInvoiceLifecycleRequestAction,lgS as ReceivedEInvoiceLifecycleRequestReasonCode,cgS as ReceivedEInvoiceProvider,pgS as ReceivedEInvoiceState,xgS as RecurringInvoiceBaseFrequency,ygS as RecurringInvoiceBaseStatus,vgS as RegisterDocumentOutputType,bgS as RegisterEmployeeBodyCommuteMode,zgS as RegisterEmployeeBodyEmploymentType,IgS as RegisterEmployeeBodyGeneralAllowanceMode,TgS as RegisterEmployeeBodyStatus,DgS as RegisterEmployeeBodyTaxResidency,_gS as RegisterEmployeeCompensationBodyCommuteMode,MgS as RegisterEmployeeCompensationBodyEmploymentType,PgS as RegisterFursMovablePremiseBodyMovablePremisePremiseType,wgS as RenderAdvanceInvoicePreviewEpcQrEnabled,FgS as RenderAdvanceInvoicePreviewHub3QrEnabled,jgS as RenderAdvanceInvoicePreviewPartial,LgS as RenderAdvanceInvoicePreviewSwissQrBillEnabled,VgS as RenderAdvanceInvoicePreviewTemplate,ZgS as RenderAdvanceInvoicePreviewUpnQrDisplayMode,WgS as RenderAdvanceInvoicePreviewUpnQrEnabled,$gS as RenderCreditNotePreviewEpcQrEnabled,JgS as RenderCreditNotePreviewHub3QrEnabled,e0S as RenderCreditNotePreviewPartial,n0S as RenderCreditNotePreviewSwissQrBillEnabled,o0S as RenderCreditNotePreviewTemplate,a0S as RenderCreditNotePreviewUpnQrDisplayMode,l0S as RenderCreditNotePreviewUpnQrEnabled,c0S as RenderDeliveryNotePreviewEpcQrEnabled,p0S as RenderDeliveryNotePreviewHub3QrEnabled,x0S as RenderDeliveryNotePreviewPartial,y0S as RenderDeliveryNotePreviewSwissQrBillEnabled,v0S as RenderDeliveryNotePreviewTemplate,b0S as RenderDeliveryNotePreviewUpnQrDisplayMode,z0S as RenderDeliveryNotePreviewUpnQrEnabled,I0S as RenderDocumentHtmlTemplate,T0S as RenderDocumentPdfTemplate,D0S as RenderEstimatePreviewEpcQrEnabled,_0S as RenderEstimatePreviewHub3QrEnabled,M0S as RenderEstimatePreviewPartial,P0S as RenderEstimatePreviewSwissQrBillEnabled,w0S as RenderEstimatePreviewTemplate,F0S as RenderEstimatePreviewUpnQrDisplayMode,j0S as RenderEstimatePreviewUpnQrEnabled,L0S as RenderInvoicePreviewEpcQrEnabled,V0S as RenderInvoicePreviewHub3QrEnabled,Z0S as RenderInvoicePreviewPartial,W0S as RenderInvoicePreviewSwissQrBillEnabled,$0S as RenderInvoicePreviewTemplate,J0S as RenderInvoicePreviewUpnQrDisplayMode,eyS as RenderInvoicePreviewUpnQrEnabled,nyS as RenderPurchaseOrderPreviewEpcQrEnabled,oyS as RenderPurchaseOrderPreviewHub3QrEnabled,ayS as RenderPurchaseOrderPreviewPartial,lyS as RenderPurchaseOrderPreviewSwissQrBillEnabled,cyS as RenderPurchaseOrderPreviewTemplate,pyS as RenderPurchaseOrderPreviewUpnQrDisplayMode,xyS as RenderPurchaseOrderPreviewUpnQrEnabled,yyS as RenderTravelOrderPreviewBodyTripType,vyS as ReplaceEmployeeAttendanceBodyDaysItemKind,byS as ReplaceEmployeeAttendanceBodyDaysItemSickReason,zyS as RestoreDocumentType,IyS as RevenueRecognitionDetailsResponseCalculationMode,TyS as RevenueRecognitionLinesResponseCalculationMode,DyS as RevenueRecognitionReportResponseBasis,_yS as RevenueRecognitionReportResponseCalculationMode,MyS as RevenueRecognitionReportResponseGroupBy,PyS as RevenueRecognitionSettingsDefaultMethod,wyS as RevenueRecognitionSettingsResponseDefaultMethod,FyS as ReviewSloveniaYearlyNormiraniReport200FilingKind,jyS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,LyS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,VyS as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,ZyS as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,WyS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,$yS as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,JyS as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,eOS as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,nOS as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,oOS as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,aOS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,lOS as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,cOS as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,pOS as SdiLifecycleDataCountryCode,xOS as SdiLifecycleDataStatus,yOS as SendDocument200Status,vOS as SendEmail200Status,bOS as SendEmailBodyLanguage,zOS as SendEmailBodyLocale,IOS as SendPaymentReminderBodyLocale,TOS as SendPaymentReminderResponseStatus,DOS as SetVendorTaxProfileClassification,_OS as ShipmentCarrier,MOS as ShipmentDraftParcelType,POS as ShipmentLabelFormat,wOS as ShipmentParcelType,FOS as ShipmentStatus,jOS as ShippingConnectionCarrier,LOS as ShippingConnectionSettingsInputLabelFormat,VOS as ShippingConnectionSettingsLabelFormat,ZOS as ShippingConnectionSettingsPatchLabelFormat,WOS as SloveniaAccountingExportsSettingsPreferredFormat,$OS as SloveniaEntitySettingsBusinessForm,JOS as SloveniaEntitySettingsIncomeTaxRegime,evS as SloveniaEntitySettingsTaxResidency,nvS as SloveniaEntitySettingsVatProfile,ovS as SloveniaYearlyReportingSettingsAccountingType,avS as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,Pe as SpaceInvoices,lvS as StartEslogExport202Status,cvS as StartOrdersPdfExport202Status,pvS as StartPdfExport202Status,xvS as StatsQueryRequestMetricsItemType,yvS as StatsQueryRequestOrderByItemDirection,vvS as StatsQueryRequestTable,bvS as StripeAppConnectionEntityEnvironment,zvS as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,IvS as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,TvS as SubscriptionTier,DvS as SyncOrderIntegrationResponseCompletionState,_vS as SyncShopifyOrdersResponseCompletionState,MvS as TaxPaymentType,PvS as TaxWorksheetForm5472ReportingCorporationCountryOfIncorporation,wvS as TicketBaiDocumentDataExemptionCause,FvS as TicketBaiDocumentDataNonSubjectCause,jvS as TicketBaiDocumentDataOperationType,LvS as TicketBaiDocumentDataRecipientIdType,VvS as TicketBaiDocumentDataRectificationCode,ZvS as TicketBaiDocumentDataStatus,WvS as TicketBaiDocumentDataTaxTreatment,$vS as TicketBaiDocumentDataVatRegime,JvS as TicketBaiDocumentInputExemptionCause,ehS as TicketBaiDocumentInputNonSubjectCause,nhS as TicketBaiDocumentInputOperationType,ohS as TicketBaiDocumentInputRecipientIdType,ahS as TicketBaiDocumentInputRectificationCode,lhS as TicketBaiDocumentInputTaxTreatment,chS as TicketBaiDocumentInputVatRegime,phS as TicketBaiRecordDocumentType,xhS as TicketBaiRecordEnvironment,yhS as TicketBaiRecordOperation,vhS as TicketBaiRecordRecentAttemptsItemKind,bhS as TicketBaiRecordRecentAttemptsItemStatus,zhS as TicketBaiRecordStatus,IhS as TicketBaiRecordTerritory,ThS as TicketBaiSettingsBlockersItem,DhS as TicketBaiSettingsEnvironment,_hS as TicketBaiSettingsLroeModel,MhS as TicketBaiSettingsTerritory,PhS as TransactionTypeCheckRequestItemsItemClassification,whS as TransactionTypeCheckRequestItemsItemType,FhS as TransactionTypeCheckRequestSupplyType,jhS as TransactionTypeCheckResponseSupplyScope,LhS as TransactionTypeCheckResponseTransactionType,VhS as TransactionTypeCheckResponseWarningCode,ZhS as TravelOrderCostType,WhS as TravelOrderCurrencyCode,$hS as TravelOrderPerDiemBand,JhS as TravelOrderRouteDistanceProvider,ebS as TravelOrderStatus,nbS as TravelOrderTransport,obS as TravelOrderTripType,abS as TrialBalanceRowType,lbS as UjpDataValidationStatus,cbS as UpdateAccountWebhookBodyEventsItem,pbS as UpdateCustomerBodyContactType,xbS as UpdateEetSettings200CertificateStatus,ybS as UpdateEntityUserRoleBodyRole,vbS as UpdateEstimateTitleType,bbS as UpdateExpenseBodyCalculationMode,zbS as UpdateExpenseBodyTransactionType,IbS as UpdateExpenseBodyType,TbS as UpdateExpenseRecognitionSettingsDefaultMethod,DbS as UpdateFinaSettings200CertificateStatus,_bS as UpdateFinaSettings200NumberingSequence,MbS as UpdateFinaSettingsBodyNumberingSequence,PbS as UpdateFixedAssetRequestCategory,wbS as UpdateFursSettings200CertificateStatus,FbS as UpdateFursSettings200NumberingStrategy,jbS as UpdateFursSettingsBodyNumberingStrategy,LbS as UpdateItemBodyClassification,VbS as UpdateItemBodyUsage,ZbS as UpdateKsefSettingsObligation,WbS as UpdateNavSettingsInvoiceAppearance,$bS as UpdateNavSettingsObligation,JbS as UpdateOrderBodyPaymentStatus,eSS as UpdateOrderIntegrationBodyAutoProcessOn,nSS as UpdateOrderIntegrationBodyDocumentCurrency,oSS as UpdatePaymentBodyType,aSS as UpdateRecurringInvoiceBodyFrequency,lSS as UpdateRevenueRecognitionSettingsDefaultMethod,cSS as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,pSS as UpdateSloveniaTaxProfile200BusinessForm,xSS as UpdateSloveniaTaxProfile200BusinessFormSource,ySS as UpdateSloveniaTaxProfile200IncomeTaxRegime,vSS as UpdateSloveniaTaxProfile200InferredBusinessForm,bSS as UpdateSloveniaTaxProfile200TaxResidency,zSS as UpdateSloveniaTaxProfile200VatProfile,ISS as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,TSS as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,DSS as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,_SS as UpdateSloveniaTaxProfileBodyBusinessForm,MSS as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,PSS as UpdateSloveniaTaxProfileBodyTaxResidency,wSS as UpdateSloveniaTaxProfileBodyVatProfile,FSS as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,jSS as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,LSS as UpdateTaxPaymentType,VSS as UpdateTicketBaiSettingsLroeModel,ZSS as UpdateTicketBaiSettingsTerritory,WSS as UpdateTravelOrderBodyTransport,$SS as UpdateTravelOrderBodyTripType,JSS as UpdateVerifactuSettingsTerritory,ezS as UpdateWebhookBodyEventsItem,nzS as UploadFileBodyCategory,ozS as UpnQrSettingsDisplayMode,azS as UsTaxYearWorksheetCompanyStateOfIncorporation,lzS as ValidateDocumentEslogType,czS as ValidationErrorConflictsItemSource,pzS as ValidationErrorConflictsItemTypesItem0,xzS as ValidationErrorConflictsItemTypesItem1,yzS as VatReturnPreviewVatPeriodSetting,vzS as VatReturnRecapitulativeDifferenceReason,bzS as VatReturnRecapitulativeSectionBRowPreviousValueSource,zzS as VatReturnStatus,IzS as VatReturnVatPeriodSetting,TzS as VendorTaxClassification,DzS as VerifactuDocumentInputCustomerIdType,_zS as VerifactuDocumentInputInvoiceType,MzS as VerifactuDocumentInputTaxTreatmentsItemQualification,PzS as VerifactuDocumentInputTaxTreatmentsItemTax,wzS as VerifactuDocumentStatus,FzS as VerifactuEvidenceKind,jzS as VerifactuSettingsEligibility,LzS as VerifactuSettingsEnvironment,VzS as VerifactuSettingsTerritory,ZzS as WebhookDeliveryStatus,WzS as WebhookResponseEventsItem,$zS as WebhookWithSecretEventsItem,JzS as WhiteLabelConfigEnvironment,efS as WhiteLabelPlanCurrencyCode,nfS as WooCommerceAuthorizeRequestAutoProcessOn,En as accountWebhooks,Dn as accounting,Rn as activities,_n as advanceInvoices,Nn as businessUnits,Mn as companyRegistry,Un as creditNotes,Pn as currency,Cn as customers,Pe as default,wn as deliveryNotes,kn as documents,ms as downloadBlob,Ln as eInvoicing,Gn as eSlog,Vn as eetCertificate,Kn as eetSettings,Zn as email,qn as entities,Wn as entityApiKeys,Yn as entityInvitations,$n as entityStats,Qn as entityUsers,Jn as estimates,Xn as expenses,es as exports,ts as files,ns as finaCertificate,ss as finaDevices,os as finaPremises,is as finaSettings,as as financialCategories,rs as fursCertificate,ls as fursDevices,ds as fursInternalAct,cs as fursPremises,us as fursSettings,hKb as getAccountId,rt as getClientHeaders,ps as health,AJb as initSDK,xs as invoices,gs as items,ys as legacyMigration,TKb as listAll,Os as locale,vs as orderIntegrations,hs as orders,bs as paymentReminders,Ss as payments,zs as pointOfSale,fs as priceLists,Is as ptAtcudSeries,Bs as ptSafT,Ts as purchaseOrders,Es as recurringInvoices,Ds as revenueRecognition,Bn as setAccountId,Rs as shipments,_s as shippingConnections,Ns as stripeApp,Ms as subscriptions,Us as taxRateEstimates,Ps as taxReports,Cs as taxes,ws as ticketBai,As as transactionType,Fs as travelOrders,ks as ujp,js as upload,Hs as users,Ls as veriFactu,Gs as vies,Vs as warehouses,Ks as webhooks,Zs as whiteLabelSubscriptions,qs as whiteLabels,Fdb as zod};
|