@spaceinvoices/js-sdk 12.39.0 → 12.40.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/whiteLabelConfig.d.cts +2 -0
- package/dist/generated/model/whiteLabelConfig.d.ts +2 -0
- package/dist/generated-zod/white-labels/white-labels.d.cts +2 -0
- package/dist/generated-zod/white-labels/white-labels.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -205,5 +205,5 @@ Searches across all text fields including names, descriptions, addresses, and me
|
|
|
205
205
|
Searches are case-insensitive and match partial strings.
|
|
206
206
|
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.")}),BLS=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.")}),HcS=36,LcS=100,GcS=0,KcS=100,VcS=36,bLS=e.object({data:e.array(e.object({id:e.string().max(HcS),name:e.string().max(LcS),tax_rates:e.array(e.object({rate:e.number().min(GcS).max(KcS),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.'),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(VcS),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")}),ZcS=/^[a-z]{3,4}_[0-9a-f]{24}$/,fLS=e.object({id:e.stringFormat("resource-id",ZcS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zLS=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.")}),qcS=0,WcS=100,ELS=e.object({tax_rates:e.array(e.object({rate:e.number().min(qcS).max(WcS),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)")}),YcS=36,$cS=100,JcS=0,XcS=100,QcS=36,ILS=e.object({id:e.string().max(YcS),name:e.string().max($cS),tax_rates:e.array(e.object({rate:e.number().min(JcS).max(XcS),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.'),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(QcS),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"),euS=/^[a-z]{3,4}_[0-9a-f]{24}$/,DLS=e.object({id:e.stringFormat("resource-id",euS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hLS=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.")}),tuS=100,nuS=0,suS=100,ouS=60,NLS=e.object({name:e.string().max(tuS).optional(),tax_rates:e.array(e.object({rate:e.number().min(nuS).max(suS),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.'),pt_exemption_code:e.string().nullish().describe("Portugal exemption code for 0% / exempt / non-subject taxes."),pt_exemption_reason:e.string().max(ouS).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(l=>Object.keys(l).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.")}),iuS=36,auS=100,ruS=0,luS=100,duS=36,RLS=e.object({id:e.string().max(iuS),name:e.string().max(auS),tax_rates:e.array(e.object({rate:e.number().min(ruS).max(luS),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.'),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(duS),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"),cuS=/^[a-z]{3,4}_[0-9a-f]{24}$/,_LS=e.object({id:e.stringFormat("resource-id",cuS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),MLS=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.")}),uuS=/^[a-z]{3,4}_[0-9a-f]{24}$/,ULS=e.object({id:e.stringFormat("resource-id",uuS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),CLS=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.")}),puS=36,muS=100,xuS=0,guS=100,yuS=36,PLS=e.object({id:e.string().max(puS),name:e.string().max(muS),tax_rates:e.array(e.object({rate:e.number().min(xuS).max(guS),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.'),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(yuS),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"),OuS=/^[a-z]{3,4}_[0-9a-f]{24}$/,wLS=e.object({id:e.stringFormat("resource-id",OuS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ALS=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 It={};W(It,{DownloadTicketBaiRecordXmlHeader:()=>$LS,DownloadTicketBaiRecordXmlParams:()=>YLS,GetTicketBaiRecordHeader:()=>qLS,GetTicketBaiRecordParams:()=>ZLS,GetTicketBaiRecordResponse:()=>WLS,GetTicketBaiSettingsHeader:()=>FLS,GetTicketBaiSettingsResponse:()=>kLS,ReconcileTicketBaiRecordHeader:()=>t1S,ReconcileTicketBaiRecordParams:()=>e1S,ReconcileTicketBaiRecordResponse:()=>n1S,RetryTicketBaiRecordHeader:()=>XLS,RetryTicketBaiRecordParams:()=>JLS,RetryTicketBaiRecordResponse:()=>QLS,UpdateTicketBaiSettingsBody:()=>HLS,UpdateTicketBaiSettingsHeader:()=>jLS,UpdateTicketBaiSettingsResponse:()=>LLS,UploadTicketBaiCertificateBody:()=>KLS,UploadTicketBaiCertificateHeader:()=>GLS,UploadTicketBaiCertificateResponse:()=>VLS,downloadTicketBaiRecordXmlPathIdMax:()=>huS,getTicketBaiRecordPathIdMax:()=>DuS,getTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>vuS,getTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>SuS,getTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>TuS,reconcileTicketBaiRecordPathIdMax:()=>RuS,retryTicketBaiRecordPathIdMax:()=>NuS,updateTicketBaiSettingsBodyLroeIndividualOneGivenNameMax:()=>BuS,updateTicketBaiSettingsBodyLroeIndividualOneSurname1Max:()=>buS,updateTicketBaiSettingsBodyLroeIndividualOneSurname2Max:()=>fuS,updateTicketBaiSettingsResponseLroeIndividualOneGivenNameMax:()=>zuS,updateTicketBaiSettingsResponseLroeIndividualOneSurname1Max:()=>EuS,updateTicketBaiSettingsResponseLroeIndividualOneSurname2Max:()=>IuS});var FLS=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.")}),vuS=120,SuS=120,TuS=120,kLS=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(vuS),surname1:e.string().min(1).max(SuS),surname2:e.string().min(1).max(TuS)}),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()}),jLS=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.")}),BuS=120,buS=120,fuS=120,HLS=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(BuS),surname1:e.string().min(1).max(buS),surname2:e.string().min(1).max(fuS)}),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.")}),zuS=120,EuS=120,IuS=120,LLS=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(zuS),surname1:e.string().min(1).max(EuS),surname2:e.string().min(1).max(IuS)}),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()}),GLS=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.")}),KLS=e.object({file:e.custom(l=>typeof File<"u"&&l instanceof File,"Input not instance of File"),passphrase:e.string().describe("P12/PFX passphrase; empty string is accepted for an unprotected bundle.")}),VLS=e.object({certificate_expiry:e.string()}),DuS=36,ZLS=e.object({id:e.string().min(1).max(DuS)}),qLS=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.")}),WLS=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.")}),huS=36,YLS=e.object({id:e.string().min(1).max(huS)}),$LS=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.")}),NuS=36,JLS=e.object({id:e.string().min(1).max(NuS)}),XLS=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.")}),QLS=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.")}),RuS=36,e1S=e.object({id:e.string().min(1).max(RuS)}),t1S=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.")}),n1S=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 Dt={};W(Dt,{CheckTransactionTypeBody:()=>o1S,CheckTransactionTypeHeader:()=>s1S,CheckTransactionTypeResponse:()=>i1S,checkTransactionTypeBodyCustomerCountryCodeMax:()=>PuS,checkTransactionTypeBodyCustomerCountryCodeMin:()=>CuS,checkTransactionTypeBodyIssuerCountryCodeMax:()=>MuS,checkTransactionTypeBodyIssuerCountryCodeMin:()=>_uS,checkTransactionTypeBodyIssuerIsTaxSubjectDefault:()=>UuS,checkTransactionTypeResponseCustomerCountryCodeMax:()=>kuS,checkTransactionTypeResponseCustomerCountryCodeMin:()=>FuS,checkTransactionTypeResponseIssuerCountryCodeMax:()=>AuS,checkTransactionTypeResponseIssuerCountryCodeMin:()=>wuS});var s1S=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 is false, no VIES request is made. No default entity is selected when omitted.")}),_uS=2,MuS=2,UuS=true,CuS=2,PuS=2,o1S=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(_uS).max(MuS).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(UuS).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(CuS).max(PuS).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")}),wuS=2,AuS=2,FuS=2,kuS=2,i1S=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(wuS).max(AuS).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(FuS).max(kuS).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var ht={};W(ht,{ApproveTravelOrderHeader:()=>R1S,ApproveTravelOrderParams:()=>N1S,ApproveTravelOrderResponse:()=>_1S,CalculateTravelOrderRouteDistanceBody:()=>v1S,CalculateTravelOrderRouteDistanceHeader:()=>O1S,CalculateTravelOrderRouteDistanceResponse:()=>S1S,CancelTravelOrderHeader:()=>j1S,CancelTravelOrderParams:()=>k1S,CancelTravelOrderResponse:()=>H1S,CreateTravelOrderBody:()=>c1S,CreateTravelOrderHeader:()=>d1S,DeleteTravelOrderHeader:()=>h1S,DeleteTravelOrderParams:()=>D1S,GetTravelOrderByIdHeader:()=>B1S,GetTravelOrderByIdParams:()=>T1S,GetTravelOrderByIdResponse:()=>b1S,GetTravelOrdersHeader:()=>r1S,GetTravelOrdersQueryParams:()=>a1S,GetTravelOrdersResponse:()=>l1S,PreviewTravelOrderBody:()=>p1S,PreviewTravelOrderHeader:()=>u1S,PreviewTravelOrderResponse:()=>m1S,RenderTravelOrderHtmlHeader:()=>q1S,RenderTravelOrderHtmlParams:()=>V1S,RenderTravelOrderHtmlQueryParams:()=>Z1S,RenderTravelOrderPdfHeader:()=>K1S,RenderTravelOrderPdfParams:()=>L1S,RenderTravelOrderPdfQueryParams:()=>G1S,RenderTravelOrderPreviewBody:()=>y1S,RenderTravelOrderPreviewHeader:()=>g1S,RenderTravelOrderPreviewQueryParams:()=>x1S,ReopenTravelOrderBody:()=>A1S,ReopenTravelOrderHeader:()=>w1S,ReopenTravelOrderParams:()=>P1S,ReopenTravelOrderResponse:()=>F1S,SettleTravelOrderHeader:()=>U1S,SettleTravelOrderParams:()=>M1S,SettleTravelOrderResponse:()=>C1S,UpdateTravelOrderBody:()=>E1S,UpdateTravelOrderHeader:()=>z1S,UpdateTravelOrderParams:()=>f1S,UpdateTravelOrderResponse:()=>I1S,approveTravelOrderPathIdRegExp:()=>VmS,approveTravelOrderResponseCostsItemAmountExclusiveMin:()=>qmS,approveTravelOrderResponseCostsItemAmountMax:()=>WmS,approveTravelOrderResponseCostsItemDateRegExp:()=>YmS,approveTravelOrderResponseCostsItemDescriptionMax:()=>ZmS,calculateTravelOrderRouteDistanceBodyFromMax:()=>dmS,calculateTravelOrderRouteDistanceBodyFromMin:()=>lmS,calculateTravelOrderRouteDistanceBodyToMax:()=>umS,calculateTravelOrderRouteDistanceBodyToMin:()=>cmS,cancelTravelOrderPathIdRegExp:()=>lxS,cancelTravelOrderResponseCostsItemAmountExclusiveMin:()=>cxS,cancelTravelOrderResponseCostsItemAmountMax:()=>uxS,cancelTravelOrderResponseCostsItemDateRegExp:()=>pxS,cancelTravelOrderResponseCostsItemDescriptionMax:()=>dxS,createTravelOrderBodyAdvanceAmountMax:()=>rpS,createTravelOrderBodyAdvanceAmountMin:()=>apS,createTravelOrderBodyBreakfastsProvidedMax:()=>spS,createTravelOrderBodyBreakfastsProvidedMin:()=>npS,createTravelOrderBodyCostsItemAmountExclusiveMin:()=>dpS,createTravelOrderBodyCostsItemAmountMax:()=>cpS,createTravelOrderBodyCostsItemDateRegExp:()=>upS,createTravelOrderBodyCostsItemDescriptionMax:()=>lpS,createTravelOrderBodyCostsMax:()=>ppS,createTravelOrderBodyDateRegExp:()=>WuS,createTravelOrderBodyDestinationCountryCodeRegExp:()=>XuS,createTravelOrderBodyDestinationMax:()=>JuS,createTravelOrderBodyDistanceKmMax:()=>tpS,createTravelOrderBodyDistanceKmMin:()=>epS,createTravelOrderBodyForeignDailyRateExclusiveMin:()=>opS,createTravelOrderBodyForeignDailyRateMax:()=>ipS,createTravelOrderBodyNoteMax:()=>mpS,createTravelOrderBodyOriginMax:()=>$uS,createTravelOrderBodyPurposeMax:()=>YuS,createTravelOrderBodyTravelerNameMax:()=>ZuS,createTravelOrderBodyTravelerPositionMax:()=>quS,createTravelOrderBodyVehicleRegistrationMax:()=>QuS,deleteTravelOrderPathIdRegExp:()=>KmS,getTravelOrderByIdPathIdRegExp:()=>pmS,getTravelOrderByIdResponseCostsItemAmountExclusiveMin:()=>xmS,getTravelOrderByIdResponseCostsItemAmountMax:()=>gmS,getTravelOrderByIdResponseCostsItemDateRegExp:()=>ymS,getTravelOrderByIdResponseCostsItemDescriptionMax:()=>mmS,getTravelOrdersQueryLimitDefault:()=>juS,getTravelOrdersQueryLimitMax:()=>HuS,getTravelOrdersResponseDataItemCostsItemAmountExclusiveMin:()=>GuS,getTravelOrdersResponseDataItemCostsItemAmountMax:()=>KuS,getTravelOrdersResponseDataItemCostsItemDateRegExp:()=>VuS,getTravelOrdersResponseDataItemCostsItemDescriptionMax:()=>LuS,previewTravelOrderBodyAdvanceAmountMax:()=>NpS,previewTravelOrderBodyAdvanceAmountMin:()=>hpS,previewTravelOrderBodyBreakfastsProvidedMax:()=>EpS,previewTravelOrderBodyBreakfastsProvidedMin:()=>zpS,previewTravelOrderBodyCostsItemAmountExclusiveMin:()=>_pS,previewTravelOrderBodyCostsItemAmountMax:()=>MpS,previewTravelOrderBodyCostsItemDateRegExp:()=>UpS,previewTravelOrderBodyCostsItemDescriptionMax:()=>RpS,previewTravelOrderBodyCostsMax:()=>CpS,previewTravelOrderBodyDateRegExp:()=>ypS,previewTravelOrderBodyDestinationCountryCodeRegExp:()=>TpS,previewTravelOrderBodyDestinationMax:()=>SpS,previewTravelOrderBodyDistanceKmMax:()=>fpS,previewTravelOrderBodyDistanceKmMin:()=>bpS,previewTravelOrderBodyForeignDailyRateExclusiveMin:()=>IpS,previewTravelOrderBodyForeignDailyRateMax:()=>DpS,previewTravelOrderBodyNoteMax:()=>PpS,previewTravelOrderBodyOriginMax:()=>vpS,previewTravelOrderBodyPurposeMax:()=>OpS,previewTravelOrderBodyTravelerNameMax:()=>xpS,previewTravelOrderBodyTravelerPositionMax:()=>gpS,previewTravelOrderBodyVehicleRegistrationMax:()=>BpS,renderTravelOrderHtmlPathIdRegExp:()=>vxS,renderTravelOrderHtmlQueryLanguageMax:()=>bxS,renderTravelOrderHtmlQueryLanguageMin:()=>BxS,renderTravelOrderHtmlQueryLocaleMax:()=>TxS,renderTravelOrderHtmlQueryLocaleMin:()=>SxS,renderTravelOrderPdfPathIdRegExp:()=>mxS,renderTravelOrderPdfQueryLanguageMax:()=>OxS,renderTravelOrderPdfQueryLanguageMin:()=>yxS,renderTravelOrderPdfQueryLocaleMax:()=>gxS,renderTravelOrderPdfQueryLocaleMin:()=>xxS,renderTravelOrderPreviewBodyAdvanceAmountMax:()=>tmS,renderTravelOrderPreviewBodyAdvanceAmountMin:()=>emS,renderTravelOrderPreviewBodyBreakfastsProvidedMax:()=>JpS,renderTravelOrderPreviewBodyBreakfastsProvidedMin:()=>$pS,renderTravelOrderPreviewBodyCostsItemAmountExclusiveMin:()=>smS,renderTravelOrderPreviewBodyCostsItemAmountMax:()=>omS,renderTravelOrderPreviewBodyCostsItemDateRegExp:()=>imS,renderTravelOrderPreviewBodyCostsItemDescriptionMax:()=>nmS,renderTravelOrderPreviewBodyCostsMax:()=>amS,renderTravelOrderPreviewBodyDateRegExp:()=>LpS,renderTravelOrderPreviewBodyDestinationCountryCodeRegExp:()=>ZpS,renderTravelOrderPreviewBodyDestinationMax:()=>VpS,renderTravelOrderPreviewBodyDistanceKmMax:()=>YpS,renderTravelOrderPreviewBodyDistanceKmMin:()=>WpS,renderTravelOrderPreviewBodyForeignDailyRateExclusiveMin:()=>XpS,renderTravelOrderPreviewBodyForeignDailyRateMax:()=>QpS,renderTravelOrderPreviewBodyNoteMax:()=>rmS,renderTravelOrderPreviewBodyOriginMax:()=>KpS,renderTravelOrderPreviewBodyPurposeMax:()=>GpS,renderTravelOrderPreviewBodyTravelerNameMax:()=>jpS,renderTravelOrderPreviewBodyTravelerPositionMax:()=>HpS,renderTravelOrderPreviewBodyVehicleRegistrationMax:()=>qpS,renderTravelOrderPreviewQueryLanguageMax:()=>kpS,renderTravelOrderPreviewQueryLanguageMin:()=>FpS,renderTravelOrderPreviewQueryLocaleMax:()=>ApS,renderTravelOrderPreviewQueryLocaleMin:()=>wpS,reopenTravelOrderBodyReasonMax:()=>sxS,reopenTravelOrderBodyReasonMin:()=>nxS,reopenTravelOrderPathIdRegExp:()=>txS,reopenTravelOrderResponseCostsItemAmountExclusiveMin:()=>ixS,reopenTravelOrderResponseCostsItemAmountMax:()=>axS,reopenTravelOrderResponseCostsItemDateRegExp:()=>rxS,reopenTravelOrderResponseCostsItemDescriptionMax:()=>oxS,settleTravelOrderPathIdRegExp:()=>$mS,settleTravelOrderResponseCostsItemAmountExclusiveMin:()=>XmS,settleTravelOrderResponseCostsItemAmountMax:()=>QmS,settleTravelOrderResponseCostsItemDateRegExp:()=>exS,settleTravelOrderResponseCostsItemDescriptionMax:()=>JmS,updateTravelOrderBodyAdvanceAmountMax:()=>UmS,updateTravelOrderBodyAdvanceAmountMin:()=>MmS,updateTravelOrderBodyBreakfastsProvidedMax:()=>NmS,updateTravelOrderBodyBreakfastsProvidedMin:()=>hmS,updateTravelOrderBodyCostsItemAmountExclusiveMin:()=>PmS,updateTravelOrderBodyCostsItemAmountMax:()=>wmS,updateTravelOrderBodyCostsItemDateRegExp:()=>AmS,updateTravelOrderBodyCostsItemDescriptionMax:()=>CmS,updateTravelOrderBodyCostsMax:()=>FmS,updateTravelOrderBodyDateRegExp:()=>TmS,updateTravelOrderBodyDestinationCountryCodeRegExp:()=>zmS,updateTravelOrderBodyDestinationMax:()=>fmS,updateTravelOrderBodyDistanceKmMax:()=>DmS,updateTravelOrderBodyDistanceKmMin:()=>ImS,updateTravelOrderBodyForeignDailyRateExclusiveMin:()=>RmS,updateTravelOrderBodyForeignDailyRateMax:()=>_mS,updateTravelOrderBodyNoteMax:()=>kmS,updateTravelOrderBodyOriginMax:()=>bmS,updateTravelOrderBodyPurposeMax:()=>BmS,updateTravelOrderBodyTravelerNameMax:()=>vmS,updateTravelOrderBodyTravelerPositionMax:()=>SmS,updateTravelOrderBodyVehicleRegistrationMax:()=>EmS,updateTravelOrderPathIdRegExp:()=>OmS,updateTravelOrderResponseCostsItemAmountExclusiveMin:()=>HmS,updateTravelOrderResponseCostsItemAmountMax:()=>LmS,updateTravelOrderResponseCostsItemDateRegExp:()=>GmS,updateTravelOrderResponseCostsItemDescriptionMax:()=>jmS});var juS=10,HuS=100,a1S=e.object({limit:e.number().min(1).max(HuS).default(juS).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.
|
|
207
207
|
Searches are case-insensitive and match partial strings.
|
|
208
|
-
Searches across number, traveler name, purpose, origin, and destination.`)}),r1S=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.")}),LuS=200,GuS=0,KuS=1e6,VuS=/^\d{4}-\d{2}-\d{2}$/,l1S=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(LuS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(GuS).max(KuS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(VuS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),d1S=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.")}),ZuS=200,quS=200,WuS=/^\d{4}-\d{2}-\d{2}$/,YuS=500,$uS=500,JuS=500,XuS=/^[A-Za-z]{2}$/,QuS=20,epS=0,tpS=1e5,npS=0,spS=60,opS=0,ipS=1e4,apS=0,rpS=1e6,lpS=200,dpS=0,cpS=1e6,upS=/^\d{4}-\d{2}-\d{2}$/,ppS=100,mpS=2e3,c1S=e.object({traveler_name:e.string().min(1).max(ZuS).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(quS).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(WuS).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(YuS).describe("Business purpose of the trip."),origin:e.string().max($uS).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(JuS).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(XuS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(QuS).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(epS).max(tpS).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(npS).max(spS).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(opS).max(ipS).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(apS).max(rpS).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(lpS).describe("Description of the cost line."),amount:e.number().gt(dpS).max(cpS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(upS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(ppS).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(mpS).nullish().describe("Free-text note. Omit or send null to leave unset.")}),u1S=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.")}),xpS=200,gpS=200,ypS=/^\d{4}-\d{2}-\d{2}$/,OpS=500,vpS=500,SpS=500,TpS=/^[A-Za-z]{2}$/,BpS=20,bpS=0,fpS=1e5,zpS=0,EpS=60,IpS=0,DpS=1e4,hpS=0,NpS=1e6,RpS=200,_pS=0,MpS=1e6,UpS=/^\d{4}-\d{2}-\d{2}$/,CpS=100,PpS=2e3,p1S=e.object({traveler_name:e.string().min(1).max(xpS).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(gpS).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(ypS).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(OpS).describe("Business purpose of the trip."),origin:e.string().max(vpS).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(SpS).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(TpS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(BpS).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(bpS).max(fpS).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(zpS).max(EpS).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(IpS).max(DpS).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(hpS).max(NpS).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(RpS).describe("Description of the cost line."),amount:e.number().gt(_pS).max(MpS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(UpS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(CpS).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(PpS).nullish().describe("Free-text note. Omit or send null to leave unset.")}),m1S=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.")}),wpS=2,ApS=5,FpS=2,kpS=5,x1S=e.object({locale:e.string().min(wpS).max(ApS).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(FpS).max(kpS).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.")}),g1S=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.")}),jpS=200,HpS=200,LpS=/^\d{4}-\d{2}-\d{2}$/,GpS=500,KpS=500,VpS=500,ZpS=/^[A-Za-z]{2}$/,qpS=20,WpS=0,YpS=1e5,$pS=0,JpS=60,XpS=0,QpS=1e4,emS=0,tmS=1e6,nmS=200,smS=0,omS=1e6,imS=/^\d{4}-\d{2}-\d{2}$/,amS=100,rmS=2e3,y1S=e.object({traveler_name:e.string().min(1).max(jpS).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(HpS).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(LpS).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(GpS).describe("Business purpose of the trip."),origin:e.string().max(KpS).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(VpS).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(ZpS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(qpS).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(WpS).max(YpS).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min($pS).max(JpS).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(XpS).max(QpS).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(emS).max(tmS).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(nmS).describe("Description of the cost line."),amount:e.number().gt(smS).max(omS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(imS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(amS).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(rmS).nullish().describe("Free-text note. Omit or send null to leave unset.")}),O1S=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.")}),lmS=3,dmS=300,cmS=3,umS=300,v1S=e.object({from:e.string().min(lmS).max(dmS).describe("Starting address to geocode."),to:e.string().min(cmS).max(umS).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.")}),S1S=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.")}),pmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,T1S=e.object({id:e.stringFormat("resource-id",pmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),B1S=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.")}),mmS=200,xmS=0,gmS=1e6,ymS=/^\d{4}-\d{2}-\d{2}$/,b1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(mmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(xmS).max(gmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(ymS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),OmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,f1S=e.object({id:e.stringFormat("resource-id",OmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),z1S=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.")}),vmS=200,SmS=200,TmS=/^\d{4}-\d{2}-\d{2}$/,BmS=500,bmS=500,fmS=500,zmS=/^[A-Za-z]{2}$/,EmS=20,ImS=0,DmS=1e5,hmS=0,NmS=60,RmS=0,_mS=1e4,MmS=0,UmS=1e6,CmS=200,PmS=0,wmS=1e6,AmS=/^\d{4}-\d{2}-\d{2}$/,FmS=100,kmS=2e3,E1S=e.object({traveler_name:e.string().min(1).max(vmS).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(SmS).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(TmS).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(BmS).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(bmS).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(fmS).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(zmS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(EmS).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(ImS).max(DmS).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(hmS).max(NmS).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(RmS).max(_mS).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(MmS).max(UmS).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(CmS).describe("Description of the cost line."),amount:e.number().gt(PmS).max(wmS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(AmS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(FmS).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(kmS).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),jmS=200,HmS=0,LmS=1e6,GmS=/^\d{4}-\d{2}-\d{2}$/,I1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(jmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(HmS).max(LmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(GmS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),KmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,D1S=e.object({id:e.stringFormat("resource-id",KmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),h1S=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.")}),VmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,N1S=e.object({id:e.stringFormat("resource-id",VmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),R1S=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.")}),ZmS=200,qmS=0,WmS=1e6,YmS=/^\d{4}-\d{2}-\d{2}$/,_1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(ZmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(qmS).max(WmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(YmS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),$mS=/^[a-z]{3,4}_[0-9a-f]{24}$/,M1S=e.object({id:e.stringFormat("resource-id",$mS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),U1S=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.")}),JmS=200,XmS=0,QmS=1e6,exS=/^\d{4}-\d{2}-\d{2}$/,C1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(JmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(XmS).max(QmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(exS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),txS=/^[a-z]{3,4}_[0-9a-f]{24}$/,P1S=e.object({id:e.stringFormat("resource-id",txS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),w1S=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.")}),nxS=3,sxS=500,A1S=e.object({reason:e.string().min(nxS).max(sxS).describe("Why this settled travel order is being reopened for correction. Required.")}),oxS=200,ixS=0,axS=1e6,rxS=/^\d{4}-\d{2}-\d{2}$/,F1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(oxS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(ixS).max(axS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(rxS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),lxS=/^[a-z]{3,4}_[0-9a-f]{24}$/,k1S=e.object({id:e.stringFormat("resource-id",lxS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),j1S=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.")}),dxS=200,cxS=0,uxS=1e6,pxS=/^\d{4}-\d{2}-\d{2}$/,H1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(dxS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(cxS).max(uxS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(pxS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),mxS=/^[a-z]{3,4}_[0-9a-f]{24}$/,L1S=e.object({id:e.stringFormat("resource-id",mxS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xxS=2,gxS=5,yxS=2,OxS=5,G1S=e.object({locale:e.string().min(xxS).max(gxS).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(yxS).max(OxS).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.")}),K1S=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.")}),vxS=/^[a-z]{3,4}_[0-9a-f]{24}$/,V1S=e.object({id:e.stringFormat("resource-id",vxS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SxS=2,TxS=5,BxS=2,bxS=5,Z1S=e.object({locale:e.string().min(SxS).max(TxS).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(BxS).max(bxS).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.")}),q1S=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 Nt={};W(Nt,{DownloadUjpPackageHeader:()=>Y1S,DownloadUjpPackageParams:()=>W1S});var W1S=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),Y1S=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 Rt={};W(Rt,{UploadImageBody:()=>J1S,UploadImageHeader:()=>$1S,UploadImageResponse:()=>X1S});var $1S=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.")}),J1S=e.object({file:e.custom(l=>typeof File<"u"&&l instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),X1S=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 _t={};W(_t,{ConfirmPasswordResetBody:()=>N4S,ConfirmPasswordResetResponse:()=>R4S,DisableTwoFactorBody:()=>T4S,DisableTwoFactorResponse:()=>B4S,EnableRequiredTwoFactorBody:()=>m4S,EnableRequiredTwoFactorResponse:()=>x4S,EnableTwoFactorBody:()=>v4S,EnableTwoFactorResponse:()=>S4S,GetAccountTwoFactorPolicyHeader:()=>Q1S,GetAccountTwoFactorPolicyResponse:()=>e4S,GetEntityTwoFactorPolicyHeader:()=>i4S,GetEntityTwoFactorPolicyParams:()=>o4S,GetEntityTwoFactorPolicyResponse:()=>a4S,GetMeResponse:()=>M4S,GetTwoFactorConfigurationResponse:()=>g4S,ListMyAccountsResponse:()=>_4S,LoginBody:()=>z4S,LoginResponse:()=>E4S,PatchMeBody:()=>U4S,PatchMeResponse:()=>C4S,RequestPasswordResetBody:()=>D4S,RequestPasswordResetResponse:()=>h4S,SetupRequiredTwoFactorBody:()=>u4S,SetupRequiredTwoFactorResponse:()=>p4S,SetupTwoFactorBody:()=>y4S,SetupTwoFactorResponse:()=>O4S,SignupBody:()=>I4S,UpdateAccountTwoFactorPolicyBody:()=>n4S,UpdateAccountTwoFactorPolicyHeader:()=>t4S,UpdateAccountTwoFactorPolicyResponse:()=>s4S,UpdateEntityTwoFactorPolicyBody:()=>d4S,UpdateEntityTwoFactorPolicyHeader:()=>l4S,UpdateEntityTwoFactorPolicyParams:()=>r4S,UpdateEntityTwoFactorPolicyResponse:()=>c4S,UpdateUserFinaSettingsBody:()=>k4S,UpdateUserFinaSettingsHeader:()=>F4S,UpdateUserFinaSettingsResponse:()=>j4S,UpdateUserFursSettingsBody:()=>w4S,UpdateUserFursSettingsHeader:()=>P4S,UpdateUserFursSettingsResponse:()=>A4S,VerifyTwoFactorBody:()=>b4S,VerifyTwoFactorResponse:()=>f4S,confirmPasswordResetBodyPasswordMin:()=>NgS,confirmPasswordResetBodyPasswordRegExp:()=>RgS,disableTwoFactorBodyCodeMax:()=>ZxS,disableTwoFactorBodyCodeMin:()=>VxS,disableTwoFactorBodyPasswordMax:()=>KxS,enableRequiredTwoFactorBodyCodeRegExp:()=>_xS,enableRequiredTwoFactorBodyTokenRegExp:()=>RxS,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>wxS,enableRequiredTwoFactorResponseSessionOneIdMax:()=>MxS,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>AxS,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>PxS,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>CxS,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>UxS,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>HxS,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>kxS,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>FxS,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>jxS,enableTwoFactorBodyCodeRegExp:()=>GxS,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>fxS,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>IxS,getEntityTwoFactorPolicyPathIdRegExp:()=>ExS,getMeResponseAccountIdMax:()=>CgS,getMeResponseEmailMax:()=>MgS,getMeResponseIdMax:()=>_gS,getMeResponseNameMax:()=>UgS,loginBodyShopifyReturnUrlMax:()=>lgS,loginBodyShopifyReturnUrlMin:()=>rgS,loginBodyShopifyReturnUrlRegExp:()=>dgS,loginResponseOneEntityIdMax:()=>xgS,loginResponseOneIdMax:()=>cgS,loginResponseOneImpersonatorUserIdMax:()=>ggS,loginResponseOneScopeMax:()=>mgS,loginResponseOneTtlDefault:()=>pgS,loginResponseOneUserIdMax:()=>ugS,loginResponseTwoUserAccountIdMax:()=>SgS,loginResponseTwoUserEmailMax:()=>OgS,loginResponseTwoUserIdMax:()=>ygS,loginResponseTwoUserNameMax:()=>vgS,patchMeBodyNameMin:()=>PgS,patchMeResponseAccountIdMax:()=>kgS,patchMeResponseEmailMax:()=>AgS,patchMeResponseIdMax:()=>wgS,patchMeResponseNameMax:()=>FgS,requestPasswordResetBodyShopifyReturnUrlMax:()=>DgS,requestPasswordResetBodyShopifyReturnUrlMin:()=>IgS,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>hgS,setupRequiredTwoFactorBodyTokenRegExp:()=>NxS,setupTwoFactorBodyPasswordMax:()=>LxS,signupBodyNameMin:()=>TgS,signupBodyPasswordMin:()=>BgS,signupBodyPasswordRegExp:()=>bgS,signupBodySignupAttributionUtmCampaignMax:()=>EgS,signupBodySignupAttributionUtmMediumMax:()=>zgS,signupBodySignupAttributionUtmSourceMax:()=>fgS,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>zxS,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>hxS,updateEntityTwoFactorPolicyPathIdRegExp:()=>DxS,updateUserFinaSettingsResponseAccountIdMax:()=>qgS,updateUserFinaSettingsResponseEmailMax:()=>VgS,updateUserFinaSettingsResponseIdMax:()=>KgS,updateUserFinaSettingsResponseNameMax:()=>ZgS,updateUserFursSettingsResponseAccountIdMax:()=>GgS,updateUserFursSettingsResponseEmailMax:()=>HgS,updateUserFursSettingsResponseIdMax:()=>jgS,updateUserFursSettingsResponseNameMax:()=>LgS,verifyTwoFactorBodyCodeMax:()=>$xS,verifyTwoFactorBodyCodeMin:()=>YxS,verifyTwoFactorBodyTokenMax:()=>qxS,verifyTwoFactorBodyTokenRegExp:()=>WxS,verifyTwoFactorResponseOneEntityIdMax:()=>tgS,verifyTwoFactorResponseOneIdMax:()=>JxS,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>ngS,verifyTwoFactorResponseOneScopeMax:()=>egS,verifyTwoFactorResponseOneTtlDefault:()=>QxS,verifyTwoFactorResponseOneUserIdMax:()=>XxS,verifyTwoFactorResponseTwoUserAccountIdMax:()=>agS,verifyTwoFactorResponseTwoUserEmailMax:()=>ogS,verifyTwoFactorResponseTwoUserIdMax:()=>sgS,verifyTwoFactorResponseTwoUserNameMax:()=>igS});var fxS=/^acc_[0-9a-fA-F]{24}$/,Q1S=e.object({"x-account-id":e.string().regex(fxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),e4S=e.object({required:e.boolean()}),zxS=/^acc_[0-9a-fA-F]{24}$/,t4S=e.object({"x-account-id":e.string().regex(zxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),n4S=e.object({required:e.boolean()}),s4S=e.object({required:e.boolean()}),ExS=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,o4S=e.object({id:e.stringFormat("resource-id",ExS).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),IxS=/^acc_[0-9a-fA-F]{24}$/,i4S=e.object({"x-account-id":e.string().regex(IxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),a4S=e.object({required:e.boolean()}),DxS=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,r4S=e.object({id:e.stringFormat("resource-id",DxS).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),hxS=/^acc_[0-9a-fA-F]{24}$/,l4S=e.object({"x-account-id":e.string().regex(hxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),d4S=e.object({required:e.boolean()}),c4S=e.object({required:e.boolean()}),NxS=/^session_2fa_setup_[a-f0-9]{64}$/,u4S=e.object({token:e.string().regex(NxS)}),p4S=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),RxS=/^session_2fa_setup_[a-f0-9]{64}$/,_xS=/^\d{6}$/,m4S=e.object({token:e.string().regex(RxS),code:e.string().regex(_xS)}),MxS=100,UxS=36,CxS=31536e3,PxS=50,wxS=36,AxS=36,FxS=36,kxS=255,jxS=255,HxS=36,x4S=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(MxS),user_id:e.string().max(UxS),ttl:e.number().default(CxS).describe("Token time-to-live in seconds"),scope:e.string().max(PxS).nullish(),entity_id:e.string().max(wxS).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(AxS).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(FxS),email:e.string().max(kxS),name:e.string().max(jxS).nullish(),email_verified:e.boolean(),account_id:e.string().max(HxS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),g4S=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),LxS=1024,y4S=e.object({password:e.string().max(LxS).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),O4S=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),GxS=/^\d{6}$/,v4S=e.object({code:e.string().regex(GxS)}),S4S=e.object({recovery_codes:e.array(e.string())}),KxS=1024,VxS=6,ZxS=32,T4S=e.object({password:e.string().max(KxS).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(VxS).max(ZxS).describe("Six-digit authenticator code or a single-use recovery code.")}),B4S=e.object({enabled:e.literal(false)}),qxS=100,WxS=/^session_2fa_[a-zA-Z0-9]+$/,YxS=6,$xS=32,b4S=e.object({token:e.string().max(qxS).regex(WxS),code:e.string().min(YxS).max($xS).describe("Six-digit authenticator code or a single-use recovery code.")}),JxS=100,XxS=36,QxS=31536e3,egS=50,tgS=36,ngS=36,sgS=36,ogS=255,igS=255,agS=36,f4S=e.object({id:e.string().max(JxS),user_id:e.string().max(XxS),ttl:e.number().default(QxS).describe("Token time-to-live in seconds"),scope:e.string().max(egS).nullish(),entity_id:e.string().max(tgS).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ngS).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(sgS),email:e.string().max(ogS),name:e.string().max(igS).nullish(),email_verified:e.boolean(),account_id:e.string().max(agS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),rgS=86,lgS=86,dgS=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,z4S=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(rgS).max(lgS).regex(dgS).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.")}),cgS=100,ugS=36,pgS=31536e3,mgS=50,xgS=36,ggS=36,ygS=36,OgS=255,vgS=255,SgS=36,E4S=e.object({id:e.string().max(cgS),user_id:e.string().max(ugS),ttl:e.number().default(pgS).describe("Token time-to-live in seconds"),scope:e.string().max(mgS).nullish(),entity_id:e.string().max(xgS).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ggS).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(ygS),email:e.string().max(OgS),name:e.string().max(vgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(SgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),TgS=2,BgS=8,bgS=/[a-z]/,fgS=150,zgS=150,EgS=150,I4S=e.object({email:e.email(),name:e.string().min(TgS).nullish(),password:e.string().min(BgS).regex(bgS),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(l=>Object.keys(l).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(fgS).nullish(),utm_medium:e.string().min(1).max(zgS).nullish(),utm_campaign:e.string().min(1).max(EgS).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) 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 and kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; invalid values and malformed objects are ignored rather than rejected.")}),IgS=86,DgS=86,hgS=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,D4S=e.object({email:e.email(),shopify_return_url:e.string().min(IgS).max(DgS).regex(hgS).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.")}),h4S=e.object({message:e.string()}),NgS=8,RgS=/[a-z]/,N4S=e.object({token:e.string().min(1),password:e.string().min(NgS).regex(RgS)}),R4S=e.object({message:e.string()}),_4S=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.")}))}),_gS=36,MgS=255,UgS=255,CgS=36,M4S=e.object({id:e.string().max(_gS),email:e.string().max(MgS),name:e.string().max(UgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(CgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),PgS=2,U4S=e.object({name:e.string().min(PgS).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.")}),wgS=36,AgS=255,FgS=255,kgS=36,C4S=e.object({id:e.string().max(wgS),email:e.string().max(AgS),name:e.string().max(FgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(kgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),P4S=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.")}),w4S=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"),jgS=36,HgS=255,LgS=255,GgS=36,A4S=e.object({id:e.string().max(jgS),email:e.string().max(HgS),name:e.string().max(LgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(GgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),F4S=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.")}),k4S=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"),KgS=36,VgS=255,ZgS=255,qgS=36,j4S=e.object({id:e.string().max(KgS),email:e.string().max(VgS),name:e.string().max(ZgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(qgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var Mt={};W(Mt,{CancelVerifactuRecordBody:()=>r3S,CancelVerifactuRecordHeader:()=>a3S,CancelVerifactuRecordParams:()=>i3S,CancelVerifactuRecordResponse:()=>l3S,CorrectVerifactuRecordBody:()=>s3S,CorrectVerifactuRecordHeader:()=>n3S,CorrectVerifactuRecordParams:()=>t3S,CorrectVerifactuRecordResponse:()=>o3S,GetVerifactuEvidenceHeader:()=>$4S,GetVerifactuEvidenceParams:()=>Y4S,GetVerifactuEvidenceResponse:()=>J4S,GetVerifactuSettingsHeader:()=>H4S,GetVerifactuSettingsResponse:()=>L4S,RetryVerifactuRecordHeader:()=>Q4S,RetryVerifactuRecordParams:()=>X4S,RetryVerifactuRecordResponse:()=>e3S,UpdateVerifactuSettingsBody:()=>K4S,UpdateVerifactuSettingsHeader:()=>G4S,UpdateVerifactuSettingsResponse:()=>V4S,UploadVerifactuCertificateBody:()=>q4S,UploadVerifactuCertificateHeader:()=>Z4S,UploadVerifactuCertificateResponse:()=>W4S,cancelVerifactuRecordBodyReasonMax:()=>n0S,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>XgS,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>e0S,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>QgS,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>t0S,correctVerifactuRecordBodyReasonMax:()=>JgS,getVerifactuSettingsResponsePendingRecordsMin:()=>WgS,updateVerifactuSettingsResponsePendingRecordsMin:()=>YgS,uploadVerifactuCertificateResponsePendingRecordsMin:()=>$gS});var H4S=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.")}),WgS=0,L4S=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(WgS).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."),G4S=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.")}),K4S=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."),YgS=0,V4S=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(YgS).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."),Z4S=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.")}),q4S=e.object({file:e.custom(l=>typeof File<"u"&&l 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.")}),$gS=0,W4S=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($gS).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."),Y4S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),$4S=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.")}),J4S=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."),X4S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),Q4S=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.")}),e3S=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."),t3S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),n3S=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.")}),JgS=500,XgS=500,QgS=0,e0S=/^\d{2}$/,t0S=12,s3S=e.object({reason:e.string().min(1).max(JgS).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(XgS).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(QgS).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(e0S).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(t0S).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."),o3S=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."),i3S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),a3S=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.")}),n0S=500,r3S=e.object({reason:e.string().min(1).max(n0S).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),l3S=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 Ut={};W(Ut,{CheckViesBody:()=>d3S,CheckViesResponse:()=>c3S,checkViesBodyCustomerCountryCodeMax:()=>r0S,checkViesBodyCustomerCountryCodeMin:()=>a0S,checkViesBodyIssuerCountryCodeMax:()=>o0S,checkViesBodyIssuerCountryCodeMin:()=>s0S,checkViesBodyIssuerIsTaxSubjectDefault:()=>i0S,checkViesResponseCustomerCountryCodeMax:()=>u0S,checkViesResponseCustomerCountryCodeMin:()=>c0S,checkViesResponseIssuerCountryCodeMax:()=>d0S,checkViesResponseIssuerCountryCodeMin:()=>l0S});var s0S=2,o0S=2,i0S=true,a0S=2,r0S=2,d3S=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(s0S).max(o0S).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(i0S).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(a0S).max(r0S).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")}),l0S=2,d0S=2,c0S=2,u0S=2,c3S=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(l0S).max(d0S).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(c0S).max(u0S).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var Ct={};W(Ct,{CreateWarehouseBody:()=>g3S,CreateWarehouseHeader:()=>x3S,DeleteWarehouseHeader:()=>z3S,DeleteWarehouseParams:()=>f3S,GetWarehouseByIdHeader:()=>O3S,GetWarehouseByIdParams:()=>y3S,GetWarehouseByIdResponse:()=>v3S,GetWarehousesHeader:()=>p3S,GetWarehousesQueryParams:()=>u3S,GetWarehousesResponse:()=>m3S,UpdateWarehouseBody:()=>B3S,UpdateWarehouseHeader:()=>T3S,UpdateWarehouseParams:()=>S3S,UpdateWarehouseResponse:()=>b3S,createWarehouseBodyNameMax:()=>O0S,deleteWarehousePathIdRegExp:()=>D0S,getWarehouseByIdPathIdRegExp:()=>v0S,getWarehouseByIdResponseEntityIdMax:()=>T0S,getWarehouseByIdResponseIdMax:()=>S0S,getWarehouseByIdResponseNameMax:()=>B0S,getWarehousesQueryLimitDefault:()=>p0S,getWarehousesQueryLimitMax:()=>m0S,getWarehousesResponseDataItemEntityIdMax:()=>g0S,getWarehousesResponseDataItemIdMax:()=>x0S,getWarehousesResponseDataItemNameMax:()=>y0S,updateWarehouseBodyNameMax:()=>f0S,updateWarehousePathIdRegExp:()=>b0S,updateWarehouseResponseEntityIdMax:()=>E0S,updateWarehouseResponseIdMax:()=>z0S,updateWarehouseResponseNameMax:()=>I0S});var p0S=10,m0S=100,u3S=e.object({limit:e.number().min(1).max(m0S).default(p0S).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.")}),p3S=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.")}),x0S=36,g0S=36,y0S=200,m3S=e.object({data:e.array(e.object({id:e.string().max(x0S),entity_id:e.string().max(g0S),name:e.string().max(y0S),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")}),x3S=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.")}),O0S=200,g3S=e.object({name:e.string().min(1).max(O0S).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.")}),v0S=/^wh_[0-9a-f]{24}$/,y3S=e.object({id:e.stringFormat("resource-id",v0S).describe("Warehouse identifier (wh_ prefix).")}),O3S=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.")}),S0S=36,T0S=36,B0S=200,v3S=e.object({id:e.string().max(S0S),entity_id:e.string().max(T0S),name:e.string().max(B0S),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."),b0S=/^wh_[0-9a-f]{24}$/,S3S=e.object({id:e.stringFormat("resource-id",b0S).describe("Warehouse identifier (wh_ prefix).")}),T3S=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.")}),f0S=200,B3S=e.object({name:e.string().min(1).max(f0S).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.")}),z0S=36,E0S=36,I0S=200,b3S=e.object({id:e.string().max(z0S),entity_id:e.string().max(E0S),name:e.string().max(I0S),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."),D0S=/^wh_[0-9a-f]{24}$/,f3S=e.object({id:e.stringFormat("resource-id",D0S).describe("Warehouse identifier (wh_ prefix).")}),z3S=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 Pt={};W(Pt,{CreateWebhookBody:()=>I3S,CreateWebhookHeader:()=>E3S,DeleteWebhookHeader:()=>F3S,DeleteWebhookParams:()=>A3S,DeleteWebhookResponse:()=>k3S,GetWebhookByIdHeader:()=>_3S,GetWebhookByIdParams:()=>R3S,GetWebhookByIdResponse:()=>M3S,GetWebhookDeliveriesHeader:()=>V3S,GetWebhookDeliveriesParams:()=>G3S,GetWebhookDeliveriesQueryParams:()=>K3S,GetWebhookDeliveriesResponse:()=>Z3S,GetWebhooksHeader:()=>h3S,GetWebhooksQueryParams:()=>D3S,GetWebhooksResponse:()=>N3S,RotateWebhookSecretHeader:()=>W3S,RotateWebhookSecretParams:()=>q3S,RotateWebhookSecretResponse:()=>Y3S,TestWebhookHeader:()=>H3S,TestWebhookParams:()=>j3S,TestWebhookResponse:()=>L3S,UpdateWebhookBody:()=>P3S,UpdateWebhookHeader:()=>C3S,UpdateWebhookParams:()=>U3S,UpdateWebhookResponse:()=>w3S,createWebhookBodyActiveDefault:()=>R0S,createWebhookBodyDescriptionMax:()=>N0S,createWebhookBodyUrlMax:()=>h0S,deleteWebhookPathIdRegExp:()=>X0S,getWebhookByIdPathIdRegExp:()=>F0S,getWebhookByIdResponseDescriptionMax:()=>L0S,getWebhookByIdResponseEntityIdMax:()=>j0S,getWebhookByIdResponseIdMax:()=>k0S,getWebhookByIdResponseMetadataDefault:()=>G0S,getWebhookByIdResponseUrlMax:()=>H0S,getWebhookDeliveriesPathIdRegExp:()=>xyS,getWebhookDeliveriesQueryLimitDefault:()=>gyS,getWebhookDeliveriesQueryLimitMax:()=>yyS,getWebhookDeliveriesResponseDataItemAttemptMax:()=>IyS,getWebhookDeliveriesResponseDataItemAttemptMin:()=>EyS,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>RyS,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>NyS,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>SyS,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>zyS,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>TyS,getWebhookDeliveriesResponseDataItemIdMax:()=>OyS,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>hyS,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>DyS,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>fyS,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>byS,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>ByS,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>vyS,getWebhooksQueryLimitDefault:()=>_0S,getWebhooksQueryLimitMax:()=>M0S,getWebhooksResponseDataItemDescriptionMax:()=>w0S,getWebhooksResponseDataItemEntityIdMax:()=>C0S,getWebhooksResponseDataItemIdMax:()=>U0S,getWebhooksResponseDataItemMetadataDefault:()=>A0S,getWebhooksResponseDataItemUrlMax:()=>P0S,rotateWebhookSecretPathIdRegExp:()=>_yS,rotateWebhookSecretResponseDescriptionMax:()=>PyS,rotateWebhookSecretResponseEntityIdMax:()=>UyS,rotateWebhookSecretResponseIdMax:()=>MyS,rotateWebhookSecretResponseMetadataDefault:()=>AyS,rotateWebhookSecretResponseSecretMax:()=>wyS,rotateWebhookSecretResponseUrlMax:()=>CyS,testWebhookPathIdRegExp:()=>Q0S,testWebhookResponseAttemptMax:()=>dyS,testWebhookResponseAttemptMin:()=>lyS,testWebhookResponseDurationMsMax:()=>myS,testWebhookResponseDurationMsMin:()=>pyS,testWebhookResponseEntityIdMax:()=>nyS,testWebhookResponseErrorMessageMax:()=>ryS,testWebhookResponseEventTypeMax:()=>syS,testWebhookResponseIdMax:()=>eyS,testWebhookResponseMaxAttemptsMax:()=>uyS,testWebhookResponseMaxAttemptsMin:()=>cyS,testWebhookResponseResponseBodyMax:()=>ayS,testWebhookResponseResponseStatusMax:()=>iyS,testWebhookResponseResponseStatusMin:()=>oyS,testWebhookResponseWebhookIdMax:()=>tyS,updateWebhookBodyDescriptionMax:()=>Z0S,updateWebhookBodyUrlMax:()=>V0S,updateWebhookPathIdRegExp:()=>K0S,updateWebhookResponseDescriptionMax:()=>$0S,updateWebhookResponseEntityIdMax:()=>W0S,updateWebhookResponseIdMax:()=>q0S,updateWebhookResponseMetadataDefault:()=>J0S,updateWebhookResponseUrlMax:()=>Y0S});var E3S=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.")}),h0S=2048,N0S=500,R0S=true,I3S=e.object({url:e.url().max(h0S).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(N0S).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).describe("Events that trigger this webhook"),active:e.boolean().default(R0S).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).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.")}),_0S=10,M0S=100,D3S=e.object({limit:e.number().min(1).max(M0S).default(_0S).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.")}),h3S=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.")}),U0S=36,C0S=36,P0S=2048,w0S=500,A0S={},N3S=e.object({data:e.array(e.object({id:e.string().max(U0S),entity_id:e.string().max(C0S),url:e.string().max(P0S),description:e.string().max(w0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(A0S).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")}),F0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,R3S=e.object({id:e.stringFormat("resource-id",F0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_3S=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.")}),k0S=36,j0S=36,H0S=2048,L0S=500,G0S={},M3S=e.object({id:e.string().max(k0S),entity_id:e.string().max(j0S),url:e.string().max(H0S),description:e.string().max(L0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(G0S).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)"),K0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,U3S=e.object({id:e.stringFormat("resource-id",K0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C3S=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.")}),V0S=2048,Z0S=500,P3S=e.object({url:e.url().max(V0S).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Z0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).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.")}),q0S=36,W0S=36,Y0S=2048,$0S=500,J0S={},w3S=e.object({id:e.string().max(q0S),entity_id:e.string().max(W0S),url:e.string().max(Y0S),description:e.string().max($0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(J0S).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)"),X0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,A3S=e.object({id:e.stringFormat("resource-id",X0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),F3S=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.")}),k3S=e.object({success:e.boolean()}),Q0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3S=e.object({id:e.stringFormat("resource-id",Q0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3S=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.")}),eyS=36,tyS=36,nyS=36,syS=100,oyS=-2147483648,iyS=2147483647,ayS=1e4,ryS=2e3,lyS=-2147483648,dyS=2147483647,cyS=-2147483648,uyS=2147483647,pyS=-2147483648,myS=2147483647,L3S=e.object({id:e.string().max(eyS),webhook_id:e.string().max(tyS),entity_id:e.string().max(nyS),event_type:e.string().max(syS),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(oyS).max(iyS).nullish(),response_body:e.string().max(ayS).nullish(),error_message:e.string().max(ryS).nullish(),attempt:e.number().min(lyS).max(dyS),max_attempts:e.number().min(cyS).max(uyS),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(pyS).max(myS).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),xyS=/^[a-z]{3,4}_[0-9a-f]{24}$/,G3S=e.object({id:e.stringFormat("resource-id",xyS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),gyS=10,yyS=100,K3S=e.object({limit:e.number().min(1).max(yyS).default(gyS).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.")}),V3S=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.")}),OyS=36,vyS=36,SyS=36,TyS=100,ByS=-2147483648,byS=2147483647,fyS=1e4,zyS=2e3,EyS=-2147483648,IyS=2147483647,DyS=-2147483648,hyS=2147483647,NyS=-2147483648,RyS=2147483647,Z3S=e.object({data:e.array(e.object({id:e.string().max(OyS),webhook_id:e.string().max(vyS),entity_id:e.string().max(SyS),event_type:e.string().max(TyS),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(ByS).max(byS).nullish(),response_body:e.string().max(fyS).nullish(),error_message:e.string().max(zyS).nullish(),attempt:e.number().min(EyS).max(IyS),max_attempts:e.number().min(DyS).max(hyS),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(NyS).max(RyS).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")}),_yS=/^[a-z]{3,4}_[0-9a-f]{24}$/,q3S=e.object({id:e.stringFormat("resource-id",_yS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),W3S=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.")}),MyS=36,UyS=36,CyS=2048,PyS=500,wyS=64,AyS={},Y3S=e.object({id:e.string().max(MyS),entity_id:e.string().max(UyS),url:e.string().max(CyS),description:e.string().max(PyS).nullish(),secret:e.string().max(wyS),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(AyS).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 wt={};W(wt,{CheckWLFeatureParams:()=>X3S,CheckWLFeatureResponse:()=>Q3S,CheckWLLimitParams:()=>eGS,CheckWLLimitResponse:()=>tGS,GetCurrentWLSubscriptionResponse:()=>$3S,GetWLSubscriptionPlansResponse:()=>J3S,UpdateWLSubscriptionBillingEmailBody:()=>nGS,UpdateWLSubscriptionBillingEmailResponse:()=>sGS,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>FyS,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>kyS});var FyS=0,kyS=null,$3S=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."),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."),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(FyS).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(kyS).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"),J3S=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."),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"),X3S=e.object({feature:e.string().describe("Feature slug to check")}),Q3S=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"),eGS=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),tGS=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"),nGS=e.object({billing_email:e.email().nullable()}),sGS=e.object({billing_email:e.string().nullable()});var At={};W(At,{GetCurrentWhiteLabelResponse:()=>oGS,GetMyWhiteLabelResponse:()=>iGS});var oGS=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."),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"),iGS=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."),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 aGS=125e3,Ft=null,Ne=null,kt=false;function HyS(l){Ft=l;}function jt(l){Ne=l,l==null&&(kt=false);}function rGS(){kt||(kt=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 lGS(){return Ne}function dGS(){if(!Ft)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return Ft}function cGS(l){if(!l)return {};if(l instanceof Headers){let c={};return l.forEach((x,E)=>{c[E]=x;}),c}if(Array.isArray(l)){let c={};for(let[x,E]of l)c[x]=E;return c}return l}function uGS(l,c){if(c==null||c<=0)return {signal:l??void 0,cleanup:()=>{}};let x=new AbortController,E=()=>{x.abort(l?.reason);};if(l?.aborted)return E(),{signal:x.signal,cleanup:()=>{}};let z=setTimeout(()=>{x.abort(new Error(`SDK request timed out after ${c}ms`));},c),R=()=>{clearTimeout(z),l?.removeEventListener("abort",E);};return l?.addEventListener("abort",E,{once:true}),x.signal.addEventListener("abort",R,{once:true}),{signal:x.signal,cleanup:R}}async function O(l,c){let{timeoutMs:x,sdkConfig:E,...z}=c??{},R=E??dGS(),xe=await Promise.resolve(R.getAccessToken()),ge=`${R.baseUrl}${l}`,ue={...cGS(z.headers)};R.clientName&&Object.assign(ue,Re(R.clientName)),xe&&(ue.Authorization=`Bearer ${xe}`);let Be=ue["x-account-id"]||ue["X-Account-Id"]||R.accountId||null;!Be&&Ne&&(E&&rGS(),Be=Ne),Be&&!ue["x-account-id"]&&!ue["X-Account-Id"]&&(ue["x-account-id"]=Be);let be=uGS(z.signal,x===void 0?R.requestTimeoutMs??aGS:x);try{let Oe=await fetch(ge,{...z,headers:ue,signal:be.signal});Oe.status===401&&R.onUnauthorized&&R.onUnauthorized(Oe);let ze,mES=Oe.headers.get("content-length"),fe=Oe.headers.get("content-type"),xES=Oe.headers.get("content-disposition");if(mES==="0"||Oe.status===204)ze=void 0;else if(fe?.includes("application/pdf")||fe?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||fe?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||fe?.includes("text/csv")||fe?.includes("application/octet-stream")||fe?.includes("application/zip")||fe?.includes("application/x-zip-compressed")||fe?.includes("image/"))ze=await Oe.blob();else if(fe?.includes("application/xml")||fe?.includes("text/xml"))ze=xES?.toLowerCase().includes("attachment")?await Oe.blob():await Oe.text();else if(fe?.includes("text/html"))ze=await Oe.text();else try{ze=await Oe.json();}catch{ze=void 0;}return {data:ze,status:Oe.status,headers:Oe.headers}}finally{be.cleanup();}}var pGS=1e3;function mGS(l){if(!l||typeof l!="object"||Array.isArray(l))return false;let c=l;return Array.isArray(c.data)&&!!c.pagination&&typeof c.pagination=="object"&&!Array.isArray(c.pagination)}function xGS(l){return Array.isArray(l)?"a bare array":l==null?String(l):typeof l!="object"?`a ${typeof l}`:Array.isArray(l.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*gGS(l,c,x){let E=x?`listAll(${x})`:"listAll()",z=c?.next_cursor,R=0;for(;;){if(R>=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.`);R++;let xe=z,ge=await l({...c,next_cursor:xe});if(!mGS(ge))throw new Error(`${E} cannot paginate this method: its response is ${xGS(ge)}, 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 ue of ge.data)yield ue;let Se=ge.pagination.next_cursor;if(!Se)return;if(Se===xe)throw new Error(`${E} received the same cursor it just sent (${xe}) after ${R} 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.`);z=Se;}}var yGS=()=>"/account-webhooks",LyS=async(l,c)=>O(yGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),OGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/account-webhooks?${x}`:"/account-webhooks"},GyS=async(l,c)=>O(OGS(l),{...c,method:"GET"}),vGS=l=>`/account-webhooks/${l}`,KyS=async(l,c)=>O(vGS(l),{...c,method:"GET"}),SGS=l=>`/account-webhooks/${l}`,VyS=async(l,c,x)=>O(SGS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),TGS=l=>`/account-webhooks/${l}`,ZyS=async(l,c)=>O(TGS(l),{...c,method:"DELETE"}),BGS=l=>`/account-webhooks/${l}/test`,qyS=async(l,c)=>O(BGS(l),{...c,method:"POST"});var bGS=l=>`/account-webhooks/${l}/rotate-secret`,WyS=async(l,c)=>O(bGS(l),{...c,method:"POST"});async function fGS(l,c){return l(...c)}function $yS(l){if(!l?.entity_id&&!l?.account_id&&!l?.request_id&&!l?.signal&&l?.timeoutMs===void 0&&!l?.sdkConfig)return;let c={};return (l.entity_id||l.account_id||l.request_id)&&(c.headers={...l.entity_id?{"x-entity-id":l.entity_id}:{},...l.account_id?{"x-account-id":l.account_id}:{},...l.request_id?{"X-Request-Id":l.request_id}:{}}),l.signal&&(c.signal=l.signal),l.timeoutMs!==void 0&&(c.timeoutMs=l.timeoutMs),l.sdkConfig&&(c.sdkConfig=l.sdkConfig),c}function v(l,c){let x=async(...z)=>{let R=z[z.length-1],xe=R&&typeof R=="object"&&("entity_id"in R||"account_id"in R||"request_id"in R||"signal"in R||"timeoutMs"in R||"sdkConfig"in R||Object.keys(R).length===0),ge,Se;xe?(ge=z.slice(0,-1),Se=$yS(R)):ge=[...z];let ue=Math.max(0,l.length-1);for(;ge.length<ue;)ge.push(void 0);ge.push(Se);let Be=await fGS(l,ge);if(Be.status>=200&&Be.status<300)return Be.data;let be=new Error(`API error: ${Be.status}`);throw be.status=Be.status,be.data=Be.data,be};return c===void 0?x:Object.assign(((...z)=>{let R=[...z];return R[c]??={},x(...R)}),{__sdkOptionsIndex:c})}function J(l){return Object.assign(async x=>{let{entity_id:E,account_id:z,request_id:R,signal:xe,timeoutMs:ge,sdkConfig:Se,...ue}=x||{},Be=$yS({entity_id:E,account_id:z,request_id:R,signal:xe,timeoutMs:ge,sdkConfig:Se}),be=await l(ue,Be);if(be.status===200)return be.data;let Oe=new Error(`API error: ${be.status}`);throw Oe.status=be.status,Oe.data=be.data,Oe},{__sdkListMethod:true})}function YyS(l){return !!l&&typeof l=="object"&&("entity_id"in l||"account_id"in l||"request_id"in l||"signal"in l||"timeoutMs"in l||"sdkConfig"in l||Object.keys(l).length===0)}function Z(l,c){let x=Object.entries(l).map(([E,z])=>typeof z!="function"?[E,z]:[E,(...R)=>{let xe=c(),ge=R[R.length-1],Se=z;if(Se.__sdkListMethod){let ue=R[0];R[0]=ue&&typeof ue=="object"?{...ue,sdkConfig:xe}:{sdkConfig:xe};}else if(typeof Se.__sdkOptionsIndex=="number"){let ue=R[Se.__sdkOptionsIndex];R[Se.__sdkOptionsIndex]=YyS(ue)?{...ue,sdkConfig:xe}:{sdkConfig:xe};}else YyS(ge)?R[R.length-1]={...ge,sdkConfig:xe}:R.push({sdkConfig:xe});return z(...R)}]);return Object.fromEntries(x)}var Ht={create:v(LyS,1),list:J(GyS),get:v(KyS,1),update:v(VyS,2),delete:v(ZyS,1),testAccountWebhook:v(qyS,1),rotateAccountWebhookSecret:v(WyS,1)};var zGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/activities?${x}`:"/activities"},JyS=async(l,c)=>O(zGS(l),{...c,method:"GET"});var Lt={list:J(JyS)};var EGS=l=>`/advance-invoices/${l}/nav/retry`,XyS=async(l,c)=>O(EGS(l),{...c,method:"POST"}),IGS=l=>`/advance-invoices/${l}/nav/reconcile`,QyS=async(l,c)=>O(IGS(l),{...c,method:"POST"}),DGS=l=>`/advance-invoices/${l}/nav/annulment`,eOS=async(l,c,x)=>O(DGS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),hGS=l=>`/advance-invoices/shareable/${l}`,tOS=async(l,c)=>O(hGS(l),{...c,method:"GET"}),NGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/advance-invoices/shareable/${l}/html?${E}`:`/advance-invoices/shareable/${l}/html`},nOS=async(l,c,x)=>O(NGS(l,c),{...x,method:"GET"}),RGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/advance-invoices/shareable/${l}/pdf?${E}`:`/advance-invoices/shareable/${l}/pdf`},sOS=async(l,c,x)=>O(RGS(l,c),{...x,method:"GET"}),_GS=l=>`/advance-invoices/shareable/${l}/eslog`,oOS=async(l,c)=>O(_GS(l),{...c,method:"GET"}),MGS=()=>"/advance-invoices",iOS=async(l,c)=>O(MGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),UGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/advance-invoices?${x}`:"/advance-invoices"},aOS=async(l,c)=>O(UGS(l),{...c,method:"GET"}),CGS=()=>"/advance-invoices/custom",rOS=async(l,c)=>O(CGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),PGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/advance-invoices/${l}?${E}`:`/advance-invoices/${l}`},lOS=async(l,c,x)=>O(PGS(l,c),{...x,method:"GET"}),wGS=l=>`/advance-invoices/${l}`,dOS=async(l,c,x)=>O(wGS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),AGS=l=>`/advance-invoices/${l}/versions`,cOS=async(l,c)=>O(AGS(l),{...c,method:"GET"}),FGS=(l,c)=>`/advance-invoices/${l}/versions/${c}`,uOS=async(l,c,x)=>O(FGS(l,c),{...x,method:"GET"}),kGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/advance-invoices/render?${x}`:"/advance-invoices/render"},pOS=async(l,c,x)=>O(kGS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),jGS=l=>`/advance-invoices/${l}/void`,mOS=async(l,c,x)=>O(jGS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var Gt={retryAdvanceInvoiceNav:v(XyS,1),reconcileAdvanceInvoiceNav:v(QyS,1),annulAdvanceInvoiceNav:v(eOS,2),getShareableAdvanceInvoice:v(tOS,1),getShareableAdvanceInvoiceHtml:v(nOS,2),getShareableAdvanceInvoicePdf:v(sOS,2),getShareableAdvanceInvoiceEslog:v(oOS,1),create:v(iOS,1),list:J(aOS),createCustom:v(rOS,1),get:v(lOS,2),update:v(dOS,2),getVersions:v(cOS,1),getVersion:v(uOS,2),renderAdvanceInvoicePreview:v(pOS,2),void:v(mOS,2)};var HGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/business-units?${x}`:"/business-units"},xOS=async(l,c)=>O(HGS(l),{...c,method:"GET"}),LGS=()=>"/business-units",gOS=async(l,c)=>O(LGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),GGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/business-units/${l}?${E}`:`/business-units/${l}`},yOS=async(l,c,x)=>O(GGS(l,c),{...x,method:"GET"}),KGS=l=>`/business-units/${l}`,OOS=async(l,c,x)=>O(KGS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),VGS=l=>`/business-units/${l}`,vOS=async(l,c)=>O(VGS(l),{...c,method:"DELETE"});var Kt={list:J(xOS),create:v(gOS,1),get:v(yOS,2),update:v(OOS,2),delete:v(vOS,1)};var ZGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/company-registry/search?${x}`:"/company-registry/search"},SOS=async(l,c)=>O(ZGS(l),{...c,method:"GET"}),qGS=()=>"/company-registry/countries",TOS=async l=>O(qGS(),{...l,method:"GET"});var Vt={searchCompanyRegistry:v(SOS,1),list:v(TOS,0)};var WGS=l=>`/credit-notes/${l}/nav/retry`,BOS=async(l,c)=>O(WGS(l),{...c,method:"POST"}),YGS=l=>`/credit-notes/${l}/nav/reconcile`,bOS=async(l,c)=>O(YGS(l),{...c,method:"POST"}),$GS=l=>`/credit-notes/${l}/nav/annulment`,fOS=async(l,c,x)=>O($GS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),JGS=l=>`/credit-notes/shareable/${l}`,zOS=async(l,c)=>O(JGS(l),{...c,method:"GET"}),XGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/credit-notes/shareable/${l}/html?${E}`:`/credit-notes/shareable/${l}/html`},EOS=async(l,c,x)=>O(XGS(l,c),{...x,method:"GET"}),QGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/credit-notes/shareable/${l}/pdf?${E}`:`/credit-notes/shareable/${l}/pdf`},IOS=async(l,c,x)=>O(QGS(l,c),{...x,method:"GET"}),eKS=l=>`/credit-notes/shareable/${l}/eslog`,DOS=async(l,c)=>O(eKS(l),{...c,method:"GET"}),tKS=l=>`/credit-notes/${l}/ksef/recover`,hOS=async(l,c)=>O(tKS(l),{...c,method:"POST"}),nKS=l=>`/credit-notes/${l}/ksef`,NOS=async(l,c)=>O(nKS(l),{...c,method:"GET"}),sKS=l=>`/credit-notes/${l}/ksef/submit`,ROS=async(l,c)=>O(sKS(l),{...c,method:"POST"}),oKS=l=>`/credit-notes/${l}/ksef/upo`,_OS=async(l,c)=>O(oKS(l),{...c,method:"GET"}),iKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes?${x}`:"/credit-notes"},MOS=async(l,c,x)=>O(iKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),aKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes?${x}`:"/credit-notes"},UOS=async(l,c)=>O(aKS(l),{...c,method:"GET"}),rKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes/custom?${x}`:"/credit-notes/custom"},COS=async(l,c,x)=>O(rKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),lKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/credit-notes/${l}?${E}`:`/credit-notes/${l}`},POS=async(l,c,x)=>O(lKS(l,c),{...x,method:"GET"}),dKS=l=>`/credit-notes/${l}`,wOS=async(l,c,x)=>O(dKS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),cKS=l=>`/credit-notes/${l}/xrechnung`,AOS=async(l,c)=>O(cKS(l),{...c,method:"GET"}),uKS=l=>`/credit-notes/${l}/zugferd`,FOS=async(l,c)=>O(uKS(l),{...c,method:"GET"}),pKS=l=>`/credit-notes/${l}/versions`,kOS=async(l,c)=>O(pKS(l),{...c,method:"GET"}),mKS=(l,c)=>`/credit-notes/${l}/versions/${c}`,jOS=async(l,c,x)=>O(mKS(l,c),{...x,method:"GET"}),xKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes/render?${x}`:"/credit-notes/render"},HOS=async(l,c,x)=>O(xKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),gKS=l=>`/credit-notes/${l}/fiscalize`,LOS=async(l,c)=>O(gKS(l),{...c,method:"POST"}),yKS=l=>`/credit-notes/${l}/void`,GOS=async(l,c,x)=>O(yKS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});function KOS(l){let c=v(l);function x(E,z,R){let xe=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(ue=>ue in z),ge=xe?void 0:z,Se=xe?{...z,...R}:R;return c(E,ge??{},Se??{})}return Object.assign(x,{__sdkOptionsIndex:2})}var Zt={retryCreditNoteNav:v(BOS,1),reconcileCreditNoteNav:v(bOS,1),annulCreditNoteNav:v(fOS,2),getShareableCreditNote:v(zOS,1),getShareableCreditNoteHtml:v(EOS,2),getShareableCreditNotePdf:v(IOS,2),getShareableCreditNoteEslog:v(DOS,1),recoverCreditNoteFromKsef:v(hOS,1),getCreditNoteKsefState:v(NOS,1),submitCreditNoteToKsef:v(ROS,1),getCreditNoteKsefUpo:v(_OS,1),create:KOS(MOS),list:J(UOS),createCustom:KOS(COS),get:v(POS,2),update:v(wOS,2),downloadCreditNoteXRechnung:v(AOS,1),downloadCreditNoteZugferd:v(FOS,1),getVersions:v(kOS,1),getVersion:v(jOS,2),renderCreditNotePreview:v(HOS,2),fiscalizeCreditNote:v(LOS,1),void:v(GOS,2)};var OKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/currency/exchange-rate?${x}`:"/currency/exchange-rate"},VOS=async(l,c)=>O(OKS(l),{...c,method:"GET"});var qt={getExchangeRate:v(VOS,1)};var vKS=()=>"/customers",ZOS=async(l,c)=>O(vKS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),SKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/customers?${x}`:"/customers"},qOS=async(l,c)=>O(SKS(l),{...c,method:"GET"}),TKS=l=>`/customers/${l}`,WOS=async(l,c)=>O(TKS(l),{...c,method:"GET"}),BKS=l=>`/customers/${l}`,YOS=async(l,c,x)=>O(BKS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),bKS=l=>`/customers/${l}`,$OS=async(l,c)=>O(bKS(l),{...c,method:"DELETE"}),fKS=l=>`/customers/${l}/restore`,JOS=async(l,c)=>O(fKS(l),{...c,method:"POST"}),zKS=l=>`/customers/${l}/permanent`,XOS=async(l,c)=>O(zKS(l),{...c,method:"DELETE"});var Wt={create:v(ZOS,1),list:J(qOS),get:v(WOS,1),update:v(YOS,2),delete:v($OS,1),restoreCustomer:v(JOS,1),permanentDeleteCustomer:v(XOS,1)};var EKS=l=>`/delivery-notes/shareable/${l}`,QOS=async(l,c)=>O(EKS(l),{...c,method:"GET"}),IKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/delivery-notes/shareable/${l}/html?${E}`:`/delivery-notes/shareable/${l}/html`},evS=async(l,c,x)=>O(IKS(l,c),{...x,method:"GET"}),DKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/delivery-notes/shareable/${l}/pdf?${E}`:`/delivery-notes/shareable/${l}/pdf`},tvS=async(l,c,x)=>O(DKS(l,c),{...x,method:"GET"}),hKS=()=>"/delivery-notes",nvS=async(l,c)=>O(hKS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),NKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/delivery-notes?${x}`:"/delivery-notes"},svS=async(l,c)=>O(NKS(l),{...c,method:"GET"}),RKS=()=>"/delivery-notes/custom",ovS=async(l,c)=>O(RKS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),_KS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/delivery-notes/${l}?${E}`:`/delivery-notes/${l}`},ivS=async(l,c,x)=>O(_KS(l,c),{...x,method:"GET"}),MKS=l=>`/delivery-notes/${l}`,avS=async(l,c,x)=>O(MKS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),UKS=l=>`/delivery-notes/${l}/versions`,rvS=async(l,c)=>O(UKS(l),{...c,method:"GET"}),CKS=(l,c)=>`/delivery-notes/${l}/versions/${c}`,lvS=async(l,c,x)=>O(CKS(l,c),{...x,method:"GET"}),PKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/delivery-notes/render?${x}`:"/delivery-notes/render"},dvS=async(l,c,x)=>O(PKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),wKS=l=>`/delivery-notes/${l}/void`,cvS=async(l,c,x)=>O(wKS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var Yt={getShareableDeliveryNote:v(QOS,1),getShareableDeliveryNoteHtml:v(evS,2),getShareableDeliveryNotePdf:v(tvS,2),create:v(nvS,1),list:J(svS),createCustom:v(ovS,1),get:v(ivS,2),update:v(avS,2),getVersions:v(rvS,1),getVersion:v(lvS,2),renderDeliveryNotePreview:v(dvS,2),void:v(cvS,2)};var AKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/next-number?${x}`:"/documents/next-number"},uvS=async(l,c)=>O(AKS(l),{...c,method:"GET"}),FKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/calculate?${x}`:"/documents/calculate"},pvS=async(l,c,x)=>O(FKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),kKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/finalize?${E}`:`/documents/${l}/finalize`},mvS=async(l,c,x,E)=>O(kKS(l,x),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),jKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/fiscalize?${E}`:`/documents/${l}/fiscalize`},xvS=async(l,c,x,E)=>O(jKS(l,x),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),HKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/register-output?${E}`:`/documents/${l}/register-output`},gvS=async(l,c,x)=>O(HKS(l,c),{...x,method:"POST"}),LKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}?${E}`:`/documents/${l}`},yvS=async(l,c,x)=>O(LKS(l,c),{...x,method:"DELETE"}),GKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/restore?${E}`:`/documents/${l}/restore`},OvS=async(l,c,x)=>O(GKS(l,c),{...x,method:"POST"}),KKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/permanent?${E}`:`/documents/${l}/permanent`},vvS=async(l,c,x)=>O(KKS(l,c),{...x,method:"DELETE"}),VKS=l=>`/documents/${l}/send`,SvS=async(l,c,x)=>O(VKS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),ZKS=l=>`/documents/${l}/share`,TvS=async(l,c)=>O(ZKS(l),{...c,method:"POST"}),qKS=l=>`/documents/${l}/share`,BvS=async(l,c)=>O(qKS(l),{...c,method:"GET"}),WKS=l=>`/documents/${l}/share`,bvS=async(l,c)=>O(WKS(l),{...c,method:"DELETE"});var $t=v(xvS,3);function YKS(l){return !!l&&typeof l=="object"&&"type"in l}function Jt(l){return !!l&&typeof l=="object"&&("entity_id"in l||"account_id"in l||"request_id"in l||"signal"in l||"timeoutMs"in l||"sdkConfig"in l||Object.keys(l).length===0)}var $KS=async(l,c,x,E)=>{if(Jt(c))return $t(l,void 0,void 0,c);if(YKS(c))return $t(l,void 0,c,x);let z=Jt(x)?void 0:x,R=Jt(x)?x:E;return $t(l,c,z,R)},Xt={getNextNumber:v(uvS,1),calculateDocumentPreview:v(pvS,2),finalizeDocument:v(mvS,3),fiscalizeDocument:$KS,registerDocumentOutput:v(gvS,2),delete:v(yvS,2),restoreDocument:v(OvS,2),permanentDeleteDocument:v(vvS,2),sendDocument:v(SvS,2),shareDocument:v(TvS,1),getShareableId:v(BvS,1),unshareDocument:v(bvS,1)};var JKS=()=>"/e-invoicing/settings",fvS=async l=>O(JKS(),{...l,method:"GET"}),XKS=()=>"/e-invoicing/settings",zvS=async(l,c)=>O(XKS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),QKS=()=>"/e-invoicing/enrollment/sync",EvS=async l=>O(QKS(),{...l,method:"POST"}),eVS=()=>"/e-invoicing/enrollment/verification-link",IvS=async l=>O(eVS(),{...l,method:"POST"}),tVS=()=>"/e-invoicing/enrollment/authorize",DvS=async(l,c)=>O(tVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),nVS=()=>"/e-invoicing/enrollment/disconnect",hvS=async l=>O(nVS(),{...l,method:"POST"}),sVS=()=>"/e-invoicing/france/directory/lookup",NvS=async(l,c)=>O(sVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),oVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/e-invoicing/received-documents?${x}`:"/e-invoicing/received-documents"},RvS=async(l,c)=>O(oVS(l),{...c,method:"GET"}),iVS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/e-invoicing/received-documents/${l}/download?${E}`:`/e-invoicing/received-documents/${l}/download`},_vS=async(l,c,x)=>O(iVS(l,c),{...x,method:"GET"}),aVS=l=>`/e-invoicing/received-documents/${l}/accept`,MvS=async(l,c)=>O(aVS(l),{...c,method:"POST"}),rVS=l=>`/e-invoicing/received-documents/${l}/lifecycle`,UvS=async(l,c,x)=>O(rVS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),lVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/e-invoicing/reporting-records?${x}`:"/e-invoicing/reporting-records"},CvS=async(l,c)=>O(lVS(l),{...c,method:"GET"}),dVS=l=>`/e-invoicing/reporting-records/${l}/retry`,PvS=async(l,c)=>O(dVS(l),{...c,method:"POST"}),cVS=()=>"/e-invoicing/supplier",wvS=async(l,c)=>O(cVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),uVS=()=>"/e-invoicing/supplier",AvS=async l=>O(uVS(),{...l,method:"GET"});var pVS=()=>"/e-invoicing/recipients/check",FvS=async(l,c)=>O(pVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),mVS=()=>"/e-invoicing/customer-search",kvS=async(l,c)=>O(mVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),xVS=l=>`/e-invoicing/documents/${l}/send`,jvS=async(l,c,x)=>O(xVS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),gVS=(l,c)=>`/e-invoicing/send/${l}/${c}`,HvS=async(l,c,x,E)=>O(gVS(l,c),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(x)}),yVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/e-invoicing/submissions?${x}`:"/e-invoicing/submissions"},LvS=async(l,c)=>O(yVS(l),{...c,method:"GET"}),OVS=l=>`/e-invoicing/submissions/${l}`,Qt=async(l,c)=>O(OVS(l),{...c,method:"GET"}),vVS=l=>`/e-invoicing/submissions/${l}/retry`,en=async(l,c)=>O(vVS(l),{...c,method:"POST"});var tn={getEInvoicingSubmission:v(Qt,1),retryEInvoicingSubmission:v(en,1),list:v(fvS,0),update:v(zvS,1),syncEInvoicingEnrollment:v(EvS,0),create:v(IvS,0),createEInvoicingEnrollmentAuthorization:v(DvS,1),disconnectEInvoicingEnrollment:v(hvS,0),lookupFranceEInvoicingDirectory:v(NvS,1),listReceivedEInvoices:v(RvS,1),downloadReceivedEInvoice:v(_vS,2),acceptReceivedEInvoice:v(MvS,1),sendReceivedEInvoiceLifecycle:v(UvS,2),listFrenchEReportingRecords:v(CvS,1),retryFrenchEReportingRecord:v(PvS,1),registerEInvoicingSupplier:v(wvS,1),getEInvoicingSupplier:v(AvS,0),checkEInvoicingRecipient:v(FvS,1),searchEInvoicingCustomer:v(kvS,1),sendEInvoicingDocument:v(jvS,2),sendEInvoice:v(HvS,3),listEInvoicingSubmissions:v(LvS,1),get:v(Qt,1),retryEInvoicingSubmissionById:v(en,1)};var SVS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/eslog/${l}/validate?${E}`:`/eslog/${l}/validate`},GvS=async(l,c,x)=>O(SVS(l,c),{...x,method:"POST"}),TVS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/eslog/${l}/download?${E}`:`/eslog/${l}/download`},KvS=async(l,c,x)=>O(TVS(l,c),{...x,method:"GET"});var nn={validate:v(GvS,2),download:v(KvS,2)};var BVS=()=>"/email/send",VvS=async(l,c)=>O(BVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var sn={sendEmail:v(VvS,1)};var bVS=l=>`/entities/${l}/nav`,ZvS=async(l,c)=>O(bVS(l),{...c,method:"GET"}),fVS=l=>`/entities/${l}/nav`,qvS=async(l,c,x)=>O(fVS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),zVS=l=>`/entities/${l}/nav/credentials`,WvS=async(l,c,x)=>O(zVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),EVS=l=>`/entities/${l}/nav/credentials`,YvS=async(l,c)=>O(EVS(l),{...c,method:"DELETE"}),IVS=l=>`/entities/${l}/nav/credentials/verify`,$vS=async(l,c)=>O(IVS(l),{...c,method:"POST"}),DVS=l=>`/entities/${l}/ksef`,JvS=async(l,c)=>O(DVS(l),{...c,method:"GET"}),hVS=l=>`/entities/${l}/ksef`,XvS=async(l,c,x)=>O(hVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),NVS=l=>`/entities/${l}/ksef/credentials`,QvS=async(l,c,x)=>O(NVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),RVS=l=>`/entities/${l}/ksef/credentials`,eSS=async(l,c)=>O(RVS(l),{...c,method:"DELETE"}),_VS=()=>"/entities",tSS=async(l,c)=>O(_VS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),MVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/entities?${x}`:"/entities"},nSS=async(l,c)=>O(MVS(l),{...c,method:"GET"}),UVS=l=>`/entities/${l}`,sSS=async(l,c)=>O(UVS(l),{...c,method:"GET"}),CVS=l=>`/entities/${l}`,oSS=async(l,c,x)=>O(CVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),PVS=l=>`/entities/${l}/enable`,iSS=async(l,c)=>O(PVS(l),{...c,method:"POST"}),wVS=l=>`/entities/${l}/disable`,aSS=async(l,c)=>O(wVS(l),{...c,method:"POST"}),AVS=l=>`/entities/${l}/email-sender`,rSS=async(l,c)=>O(AVS(l),{...c,method:"GET"}),FVS=l=>`/entities/${l}/email-sender`,lSS=async(l,c,x)=>O(FVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),kVS=l=>`/entities/${l}/email-sender`,dSS=async(l,c)=>O(kVS(l),{...c,method:"DELETE"}),jVS=l=>`/entities/${l}/email-sender/recheck`,cSS=async(l,c)=>O(jVS(l),{...c,method:"POST"});var on={retrieveEntityNavSettings:v(ZvS,1),modifyEntityNavSettings:v(qvS,2),storeEntityNavCredentials:v(WvS,2),removeEntityNavCredentials:v(YvS,1),verifyEntityNavCredentials:v($vS,1),getEntityKsefSetup:v(JvS,1),putEntityKsefSettings:v(XvS,2),putEntityKsefCredential:v(QvS,2),removeEntityKsefCredential:v(eSS,1),create:v(tSS,1),list:J(nSS),get:v(sSS,1),update:v(oSS,2),enableEntity:v(iSS,1),disableEntity:v(aSS,1),getEntityEmailSender:v(rSS,1),putEntityEmailSender:v(lSS,2),deleteEntityEmailSender:v(dSS),recheckEntityEmailSender:v(cSS,1)};var HVS=()=>"/entities/api-keys",uSS=async l=>O(HVS(),{...l,method:"GET"}),LVS=()=>"/entities/api-keys",pSS=async(l,c)=>O(LVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),GVS=l=>`/entities/api-keys/${l}`,mSS=async(l,c)=>O(GVS(l),{...c,method:"DELETE"});var an={listEntityApiKeys:v(uSS,0),create:v(pSS,1),delete:v(mSS,1)};var KVS=()=>"/entities/invitations",xSS=async l=>O(KVS(),{...l,method:"GET"}),VVS=l=>`/entities/invitations/${l}`,gSS=async(l,c)=>O(VVS(l),{...c,method:"GET"}),ZVS=l=>`/entities/invitations/${l}`,ySS=async(l,c)=>O(ZVS(l),{...c,method:"DELETE"}),qVS=l=>`/entities/invitations/${l}/resend`,OSS=async(l,c)=>O(qVS(l),{...c,method:"POST"}),WVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invitations/preview?${x}`:"/invitations/preview"},vSS=async(l,c)=>O(WVS(l),{...c,method:"GET"}),YVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invitations/accept?${x}`:"/invitations/accept"},SSS=async(l,c,x)=>O(YVS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)});var rn={listEntityInvitations:v(xSS,0),getEntityInvitation:v(gSS,1),cancelEntityInvitation:v(ySS,1),resendEntityInvitation:v(OSS,1),preview:v(vSS,1),acceptEntityInvitation:v(SSS,2)};var $VS=()=>"/stats/query",TSS=async(l,c)=>O($VS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var ln={queryEntityStats:v(TSS,1)};var JVS=()=>"/entities/users",BSS=async l=>O(JVS(),{...l,method:"GET"}),XVS=()=>"/entities/users",bSS=async(l,c)=>O(XVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),QVS=()=>"/entities/users/access",fSS=async l=>O(QVS(),{...l,method:"GET"}),eZS=l=>`/entities/users/${l}`,zSS=async(l,c,x)=>O(eZS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),tZS=l=>`/entities/users/${l}`,ESS=async(l,c)=>O(tZS(l),{...c,method:"DELETE"}),nZS=l=>`/entities/users/${l}/token`,ISS=async(l,c)=>O(nZS(l),{...c,method:"POST"});var dn={list:v(BSS,0),addEntityUser:v(bSS,1),getAccess:v(fSS,0),update:v(zSS,2),removeEntityUser:v(ESS,1),generateEntityUserToken:v(ISS,1)};var sZS=l=>`/estimates/shareable/${l}`,DSS=async(l,c)=>O(sZS(l),{...c,method:"GET"}),oZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/estimates/shareable/${l}/html?${E}`:`/estimates/shareable/${l}/html`},hSS=async(l,c,x)=>O(oZS(l,c),{...x,method:"GET"}),iZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/estimates/shareable/${l}/pdf?${E}`:`/estimates/shareable/${l}/pdf`},NSS=async(l,c,x)=>O(iZS(l,c),{...x,method:"GET"}),aZS=l=>`/estimates/shareable/${l}/eslog`,RSS=async(l,c)=>O(aZS(l),{...c,method:"GET"}),rZS=()=>"/estimates",_SS=async(l,c)=>O(rZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),lZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/estimates?${x}`:"/estimates"},MSS=async(l,c)=>O(lZS(l),{...c,method:"GET"}),dZS=()=>"/estimates/custom",USS=async(l,c)=>O(dZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),cZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/estimates/${l}?${E}`:`/estimates/${l}`},CSS=async(l,c,x)=>O(cZS(l,c),{...x,method:"GET"}),uZS=l=>`/estimates/${l}`,PSS=async(l,c,x)=>O(uZS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),pZS=l=>`/estimates/${l}/versions`,wSS=async(l,c)=>O(pZS(l),{...c,method:"GET"}),mZS=(l,c)=>`/estimates/${l}/versions/${c}`,ASS=async(l,c,x)=>O(mZS(l,c),{...x,method:"GET"}),xZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/estimates/render?${x}`:"/estimates/render"},FSS=async(l,c,x)=>O(xZS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)});var cn={getShareableEstimate:v(DSS,1),getShareableEstimateHtml:v(hSS,2),getShareableEstimatePdf:v(NSS,2),getShareableEstimateEslog:v(RSS,1),create:v(_SS,1),list:J(MSS),createCustom:v(USS,1),get:v(CSS,2),update:v(PSS,2),getVersions:v(wSS,1),getVersion:v(ASS,2),renderEstimatePreview:v(FSS,2)};var gZS=()=>"/expenses",kSS=async(l,c)=>O(gZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),yZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/expenses?${x}`:"/expenses"},jSS=async(l,c)=>O(yZS(l),{...c,method:"GET"}),OZS=()=>"/expenses/custom",HSS=async(l,c)=>O(OZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),vZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/expenses/export?${x}`:"/expenses/export"},LSS=async(l,c)=>O(vZS(l),{...c,method:"GET"}),SZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/expenses/report?${x}`:"/expenses/report"},GSS=async(l,c)=>O(SZS(l),{...c,method:"GET"}),TZS=()=>"/expenses/recognition/settings",KSS=async l=>O(TZS(),{...l,method:"GET"}),BZS=()=>"/expenses/recognition/settings",VSS=async(l,c)=>O(BZS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),bZS=()=>"/expenses/recognition/backfill",ZSS=async(l,c)=>O(bZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),fZS=()=>"/expenses/recognitions",qSS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(fZS(),{...c,method:"POST",body:x})},zZS=l=>`/expenses/recognitions/${l}`,WSS=async(l,c)=>O(zZS(l),{...c,method:"GET"}),EZS=l=>`/expenses/recognitions/${l}/retry`,YSS=async(l,c)=>O(EZS(l),{...c,method:"POST"}),IZS=l=>`/expenses/${l}/recognition`,$SS=async(l,c)=>O(IZS(l),{...c,method:"GET"}),DZS=l=>`/expenses/${l}`,JSS=async(l,c)=>O(DZS(l),{...c,method:"GET"}),hZS=l=>`/expenses/${l}`,XSS=async(l,c,x)=>O(hZS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),NZS=l=>`/expenses/${l}`,QSS=async(l,c)=>O(NZS(l),{...c,method:"DELETE"}),RZS=l=>`/expenses/${l}/void`,eTS=async(l,c)=>O(RZS(l),{...c,method:"POST"}),_ZS=l=>`/expenses/${l}/restore`,tTS=async(l,c)=>O(_ZS(l),{...c,method:"POST"}),MZS=l=>`/expenses/${l}/attachments`,nTS=async(l,c,x)=>{let E=new FormData;return c.file!==void 0&&E.append("file",c.file),O(MZS(l),{...x,method:"POST",body:E})},UZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/expenses/${l}/attachments?${E}`:`/expenses/${l}/attachments`},sTS=async(l,c,x)=>O(UZS(l,c),{...x,method:"GET"}),CZS=(l,c)=>`/expenses/${l}/attachments/${c}`,oTS=async(l,c,x)=>O(CZS(l,c),{...x,method:"DELETE"}),PZS=l=>`/expenses/${l}/payments`,iTS=async(l,c)=>O(PZS(l),{...c,method:"GET"}),wZS=l=>`/expenses/${l}/payments`,aTS=async(l,c,x)=>O(wZS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var un={create:v(kSS,1),list:J(jSS),createCustom:v(HSS,1),exportExpenses:v(LSS,1),getExpenseCategoryReport:v(GSS,1),getRecognitionSettings:v(KSS,0),updateRecognitionSettings:v(VSS,1),backfillExpenseRecognition:v(ZSS,1),createRecognition:v(qSS,1),getRecognition:v(WSS,1),retryRecognition:v(YSS,1),getLatestRecognition:v($SS,1),get:v(JSS,1),update:v(XSS,2),delete:v(QSS,1),void:v(eTS,1),restoreExpense:v(tTS,1),uploadExpenseAttachment:v(nTS,2),getExpenseAttachments:v(sTS,2),deleteExpenseAttachment:v(oTS,2),getExpensePayments:v(iTS,1),createExpensePayment:v(aTS,2)};var AZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export?${x}`:"/documents/export"},rTS=async(l,c)=>O(AZS(l),{...c,method:"GET"}),FZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export/sales-per-item?${x}`:"/documents/export/sales-per-item"},lTS=async(l,c)=>O(FZS(l),{...c,method:"GET"}),kZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export/inventory?${x}`:"/documents/export/inventory"},dTS=async(l,c)=>O(kZS(l),{...c,method:"GET"}),jZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export/revenue-by-category?${x}`:"/documents/export/revenue-by-category"},cTS=async(l,c)=>O(jZS(l),{...c,method:"GET"}),HZS=()=>"/documents/export/pdf",uTS=async(l,c)=>O(HZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),LZS=l=>`/documents/export/pdf/${l}`,pTS=async(l,c)=>O(LZS(l),{...c,method:"GET"}),GZS=l=>`/documents/export/pdf/${l}/download`,mTS=async(l,c)=>O(GZS(l),{...c,method:"GET"}),KZS=()=>"/documents/export/eslog",xTS=async(l,c)=>O(KZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),VZS=l=>`/documents/export/eslog/${l}`,gTS=async(l,c)=>O(VZS(l),{...c,method:"GET"}),ZZS=l=>`/documents/export/eslog/${l}/download`,yTS=async(l,c)=>O(ZZS(l),{...c,method:"GET"});var pn={exportDocuments:v(rTS,1),exportSalesPerItem:v(lTS,1),exportInventory:v(dTS,1),exportRevenueByCategory:v(cTS,1),startPdfExport:v(uTS,1),getPdfStatus:v(pTS,1),downloadPdfExport:v(mTS,1),startEslogExport:v(xTS,1),getEslogStatus:v(gTS,1),downloadEslogExport:v(yTS,1)};var qZS=()=>"/files",OTS=async(l,c)=>{let x=new FormData;return l.file!==void 0&&x.append("file",l.file),x.append("category",l.category),l.account_payable_id!==void 0&&x.append("account_payable_id",l.account_payable_id),l.business_unit_id!==void 0&&x.append("business_unit_id",l.business_unit_id),l.expense_id!==void 0&&x.append("expense_id",l.expense_id),O(qZS(),{...c,method:"POST",body:x})},WZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/files?${x}`:"/files"},vTS=async(l,c)=>O(WZS(l),{...c,method:"GET"}),YZS=l=>`/files/${l}`,STS=async(l,c)=>O(YZS(l),{...c,method:"GET"}),$ZS=l=>`/files/${l}`,TTS=async(l,c)=>O($ZS(l),{...c,method:"DELETE"});var mn={uploadFile:v(OTS,1),list:J(vTS),get:v(STS,1),delete:v(TTS,1)};var JZS=()=>"/fiscalization/fina/settings/certificate",BTS=async(l,c)=>{let x=new FormData;return l.file!==void 0&&x.append("file",l.file),l.passphrase!==void 0&&x.append("passphrase",l.passphrase),O(JZS(),{...c,method:"POST",body:x})},XZS=()=>"/fiscalization/fina/settings/certificate",bTS=async l=>O(XZS(),{...l,method:"GET"}),QZS=()=>"/fiscalization/fina/settings/certificate",fTS=async l=>O(QZS(),{...l,method:"DELETE"});var xn={uploadFinaCertificate:v(BTS,1),getFinaCertificate:v(bTS,0),delete:v(fTS,0)};var eqS=l=>`/fiscalization/fina/premises/${l}/devices`,zTS=async(l,c)=>O(eqS(l),{...c,method:"GET"}),tqS=l=>`/fiscalization/fina/premises/${l}/devices`,ETS=async(l,c,x)=>O(tqS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),nqS=l=>`/fiscalization/fina/devices/${l}`,ITS=async(l,c)=>O(nqS(l),{...c,method:"GET"}),sqS=l=>`/fiscalization/fina/devices/${l}`,DTS=async(l,c,x)=>O(sqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),oqS=l=>`/fiscalization/fina/devices/${l}`,hTS=async(l,c)=>O(oqS(l),{...c,method:"DELETE"});var gn={listFinaDevices:v(zTS,1),registerFinaDevice:v(ETS,2),getFinaDevice:v(ITS,1),update:v(DTS,2),delete:v(hTS,1)};var iqS=()=>"/fiscalization/fina/premises",NTS=async l=>O(iqS(),{...l,method:"GET"}),aqS=()=>"/fiscalization/fina/premises",RTS=async(l,c)=>O(aqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),rqS=l=>`/fiscalization/fina/premises/${l}`,_TS=async(l,c)=>O(rqS(l),{...c,method:"GET"}),lqS=l=>`/fiscalization/fina/premises/${l}`,MTS=async(l,c,x)=>O(lqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),dqS=l=>`/fiscalization/fina/premises/${l}`,UTS=async(l,c)=>O(dqS(l),{...c,method:"DELETE"});var yn={listFinaPremises:v(NTS,0),create:v(RTS,1),getFinaPremise:v(_TS,1),update:v(MTS,2),delete:v(UTS,1)};var cqS=()=>"/fiscalization/fina/settings",CTS=async l=>O(cqS(),{...l,method:"GET"}),uqS=()=>"/fiscalization/fina/settings",PTS=async(l,c)=>O(uqS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var On={list:v(CTS,0),update:v(PTS,1)};var pqS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/financial-categories?${x}`:"/financial-categories"},wTS=async(l,c)=>O(pqS(l),{...c,method:"GET"}),mqS=()=>"/financial-categories",ATS=async(l,c)=>O(mqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),xqS=l=>`/financial-categories/${l}`,FTS=async(l,c,x)=>O(xqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),gqS=l=>`/financial-categories/${l}`,kTS=async(l,c)=>O(gqS(l),{...c,method:"DELETE"}),yqS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/financial-categories/revenue-summary?${x}`:"/financial-categories/revenue-summary"},jTS=async(l,c)=>O(yqS(l),{...c,method:"GET"}),OqS=()=>"/financial-categories/document-items/batch",HTS=async(l,c)=>O(OqS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),vqS=l=>`/financial-categories/document-items/${l}`,LTS=async(l,c,x)=>O(vqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var vn={list:J(wTS),create:v(ATS,1),update:v(FTS,2),delete:v(kTS,1),getRevenueByFinancialCategory:v(jTS,1),updateDocumentItemFinancialCategories:v(HTS,1),updateDocumentItemFinancialCategory:v(LTS,2)};var SqS=()=>"/fiscalization/furs/settings/certificate",GTS=async(l,c)=>{let x=new FormData;return l.file!==void 0&&x.append("file",l.file),l.passphrase!==void 0&&x.append("passphrase",l.passphrase),O(SqS(),{...c,method:"POST",body:x})},TqS=()=>"/fiscalization/furs/settings/certificate",KTS=async l=>O(TqS(),{...l,method:"GET"}),BqS=()=>"/fiscalization/furs/settings/certificate",VTS=async l=>O(BqS(),{...l,method:"DELETE"});var Sn={uploadFursCertificate:v(GTS,1),getFursCertificate:v(KTS,0),delete:v(VTS,0)};var bqS=l=>`/fiscalization/furs/premises/${l}/devices`,ZTS=async(l,c)=>O(bqS(l),{...c,method:"GET"}),fqS=l=>`/fiscalization/furs/premises/${l}/devices`,qTS=async(l,c,x)=>O(fqS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),zqS=l=>`/fiscalization/furs/devices/${l}`,WTS=async(l,c)=>O(zqS(l),{...c,method:"GET"}),EqS=l=>`/fiscalization/furs/devices/${l}`,YTS=async(l,c,x)=>O(EqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var Tn={listFursElectronicDevices:v(ZTS,1),registerFursElectronicDevice:v(qTS,2),getFursElectronicDevice:v(WTS,1),update:v(YTS,2)};var IqS=()=>"/fiscalization/furs/internal-act/report.pdf",$TS=async l=>O(IqS(),{...l,method:"GET"}),DqS=()=>"/fiscalization/furs/internal-act/report.docx",JTS=async l=>O(DqS(),{...l,method:"GET"});var Bn={generateFursInternalActPdf:v($TS,0),generateFursInternalActDocx:v(JTS,0)};var hqS=()=>"/fiscalization/furs/premises",XTS=async l=>O(hqS(),{...l,method:"GET"}),NqS=l=>`/fiscalization/furs/premises/${l}`,QTS=async(l,c)=>O(NqS(l),{...c,method:"GET"}),RqS=l=>`/fiscalization/furs/premises/${l}`,eBS=async(l,c,x)=>O(RqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),_qS=()=>"/fiscalization/furs/premises/real-estate",tBS=async(l,c)=>O(_qS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),MqS=()=>"/fiscalization/furs/premises/movable",nBS=async(l,c)=>O(MqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),UqS=l=>`/fiscalization/furs/premises/${l}/close`,sBS=async(l,c)=>O(UqS(l),{...c,method:"POST"});var bn={listFursBusinessPremises:v(XTS,0),getFursBusinessPremise:v(QTS,1),update:v(eBS,2),registerFursRealEstatePremise:v(tBS,1),registerFursMovablePremise:v(nBS,1),closeFursBusinessPremise:v(sBS,1)};var CqS=()=>"/fiscalization/furs/settings",oBS=async l=>O(CqS(),{...l,method:"GET"}),PqS=()=>"/fiscalization/furs/settings",iBS=async(l,c)=>O(PqS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var fn={list:v(oBS,0),update:v(iBS,1)};var wqS=()=>"/health/live",aBS=async l=>O(wqS(),{...l,method:"GET"}),AqS=()=>"/health/ready",rBS=async l=>O(AqS(),{...l,method:"GET"}),FqS=()=>"/health",lBS=async l=>O(FqS(),{...l,method:"GET"});var zn={livenessCheck:v(aBS,0),readinessCheck:v(rBS,0),healthCheck:v(lBS,0)};var kqS=l=>`/invoices/${l}/nav/retry`,dBS=async(l,c)=>O(kqS(l),{...c,method:"POST"}),jqS=l=>`/invoices/${l}/nav/reconcile`,cBS=async(l,c)=>O(jqS(l),{...c,method:"POST"}),HqS=l=>`/invoices/${l}/nav/annulment`,uBS=async(l,c,x)=>O(HqS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),LqS=l=>`/invoices/shareable/${l}`,pBS=async(l,c)=>O(LqS(l),{...c,method:"GET"}),GqS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/invoices/shareable/${l}/html?${E}`:`/invoices/shareable/${l}/html`},mBS=async(l,c,x)=>O(GqS(l,c),{...x,method:"GET"}),KqS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/invoices/shareable/${l}/pdf?${E}`:`/invoices/shareable/${l}/pdf`},xBS=async(l,c,x)=>O(KqS(l,c),{...x,method:"GET"}),VqS=l=>`/invoices/shareable/${l}/eslog`,gBS=async(l,c)=>O(VqS(l),{...c,method:"GET"}),ZqS=l=>`/invoices/${l}/ksef/recover`,yBS=async(l,c)=>O(ZqS(l),{...c,method:"POST"}),qqS=l=>`/invoices/${l}/ksef`,OBS=async(l,c)=>O(qqS(l),{...c,method:"GET"}),WqS=l=>`/invoices/${l}/ksef/submit`,vBS=async(l,c)=>O(WqS(l),{...c,method:"POST"}),YqS=l=>`/invoices/${l}/ksef/upo`,SBS=async(l,c)=>O(YqS(l),{...c,method:"GET"}),$qS=()=>"/invoices",TBS=async(l,c)=>O($qS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),JqS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invoices?${x}`:"/invoices"},BBS=async(l,c)=>O(JqS(l),{...c,method:"GET"}),XqS=()=>"/invoices/custom",bBS=async(l,c)=>O(XqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),QqS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/invoices/${l}?${E}`:`/invoices/${l}`},fBS=async(l,c,x)=>O(QqS(l,c),{...x,method:"GET"}),e7S=l=>`/invoices/${l}`,zBS=async(l,c,x)=>O(e7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),t7S=l=>`/invoices/${l}/credit-options`,EBS=async(l,c)=>O(t7S(l),{...c,method:"GET"}),n7S=l=>`/invoices/${l}/xrechnung`,IBS=async(l,c)=>O(n7S(l),{...c,method:"GET"}),s7S=l=>`/invoices/${l}/zugferd`,DBS=async(l,c)=>O(s7S(l),{...c,method:"GET"}),o7S=l=>`/invoices/${l}/versions`,hBS=async(l,c)=>O(o7S(l),{...c,method:"GET"}),i7S=(l,c)=>`/invoices/${l}/versions/${c}`,NBS=async(l,c,x)=>O(i7S(l,c),{...x,method:"GET"}),a7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invoices/render?${x}`:"/invoices/render"},RBS=async(l,c,x)=>O(a7S(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),r7S=l=>`/invoices/${l}/void`,_BS=async(l,c,x)=>O(r7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),l7S=l=>`/invoices/${l}/fiscalize`,MBS=async(l,c)=>O(l7S(l),{...c,method:"POST"}),d7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/html?${E}`:`/documents/${l}/html`},UBS=async(l,c,x)=>O(d7S(l,c),{...x,method:"GET"}),c7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/pdf?${E}`:`/documents/${l}/pdf`},CBS=async(l,c,x)=>O(c7S(l,c),{...x,method:"GET"});function En(l,c){let x=URL.createObjectURL(l),E=document.createElement("a");E.href=x,E.download=c,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(x);}var PBS=v(CBS,2),u7S=Object.assign(async(l,c,x,E)=>{let z=await PBS(l,x,E);En(z,c);},{__sdkOptionsIndex:3}),In={retryInvoiceNav:v(dBS,1),reconcileInvoiceNav:v(cBS,1),annulInvoiceNav:v(uBS,2),getShareableInvoice:v(pBS,1),getShareableInvoiceHtml:v(mBS,2),getShareableInvoicePdf:v(xBS,2),getShareableInvoiceEslog:v(gBS,1),recoverInvoiceFromKsef:v(yBS,1),getInvoiceKsefState:v(OBS,1),submitInvoiceToKsef:v(vBS,1),getInvoiceKsefUpo:v(SBS,1),create:v(TBS,1),list:J(BBS),createCustom:v(bBS,1),get:v(fBS,2),update:v(zBS,2),getCreditOptions:v(EBS,1),downloadInvoiceXRechnung:v(IBS,1),downloadInvoiceZugferd:v(DBS,1),getVersions:v(hBS,1),getVersion:v(NBS,2),renderInvoicePreview:v(RBS,2),void:v(_BS,2),fiscalizeInvoice:v(MBS,1),renderHtml:v(UBS,2),renderPdf:PBS,downloadPdf:u7S};var p7S=()=>"/items",wBS=async(l,c)=>O(p7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),m7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/items?${x}`:"/items"},ABS=async(l,c)=>O(m7S(l),{...c,method:"GET"}),x7S=()=>"/items/categories",FBS=async l=>O(x7S(),{...l,method:"GET"}),g7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/items/import/template?${x}`:"/items/import/template"},kBS=async(l,c)=>O(g7S(l),{...c,method:"GET"}),y7S=()=>"/items/import/preview",jBS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(y7S(),{...c,method:"POST",body:x})},O7S=()=>"/items/import",HBS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(O7S(),{...c,method:"POST",body:x})},v7S=l=>`/items/${l}`,LBS=async(l,c,x)=>O(v7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),S7S=l=>`/items/${l}`,GBS=async(l,c)=>O(S7S(l),{...c,method:"DELETE"}),T7S=l=>`/items/${l}/restore`,KBS=async(l,c)=>O(T7S(l),{...c,method:"POST"}),B7S=l=>`/items/${l}/permanent`,VBS=async(l,c)=>O(B7S(l),{...c,method:"DELETE"}),b7S=l=>`/items/${l}/inventory`,ZBS=async(l,c)=>O(b7S(l),{...c,method:"GET"}),f7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/items/${l}/inventory/movements?${E}`:`/items/${l}/inventory/movements`},qBS=async(l,c,x)=>O(f7S(l,c),{...x,method:"GET"}),z7S=l=>`/items/${l}/inventory/movements`,WBS=async(l,c,x)=>O(z7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),E7S=(l,c)=>`/items/${l}/inventory/movements/${c}`,YBS=async(l,c,x)=>O(E7S(l,c),{...x,method:"DELETE"});var Dn={create:v(wBS,1),list:J(ABS),categories:v(FBS,0),getItemsImportTemplate:v(kBS,1),preview:v(jBS,1),importItems:v(HBS,1),update:v(LBS,2),delete:v(GBS,1),restoreItem:v(KBS,1),permanentDeleteItem:v(VBS,1),getItemInventory:v(ZBS,1),getItemInventoryMovements:v(qBS,2),createItemInventoryMovement:v(WBS,2),deleteItemInventoryMovement:v(YBS,2)};var I7S=()=>"/legacy-migration/auth",$BS=async(l,c)=>O(I7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),D7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/legacy-migration/organizations/${l}?${E}`:`/legacy-migration/organizations/${l}`},JBS=async(l,c,x)=>O(D7S(l,c),{...x,method:"GET"}),h7S=()=>"/legacy-migration/jobs",XBS=async(l,c)=>O(h7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),N7S=()=>"/legacy-migration/jobs",QBS=async l=>O(N7S(),{...l,method:"GET"}),R7S=l=>`/legacy-migration/jobs/${l}`,ebS=async(l,c)=>O(R7S(l),{...c,method:"GET"});var hn={legacyMigrationAuth:v($BS,1),getLegacyMigrationOrganization:v(JBS,2),create:v(XBS,1),listMigrationJobs:v(QBS,0),getMigrationJob:v(ebS,1)};var _7S=()=>"/locale/detect",tbS=async l=>O(_7S(),{...l,method:"GET"});var Nn={detectLocale:v(tbS,0)};var M7S=()=>"/order-integrations/shopify/authorize",nbS=async(l,c)=>O(M7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),U7S=()=>"/order-integrations/woocommerce/authorize",sbS=async(l,c)=>O(U7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),C7S=()=>"/order-integrations/shopify/resume-install",obS=async(l,c)=>O(C7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),P7S=l=>`/order-integrations/${l}/promote-shopify-billing`,ibS=async(l,c)=>O(P7S(l),{...c,method:"POST"}),w7S=l=>`/order-integrations/${l}/sync-shopify`,abS=async(l,c,x)=>O(w7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),A7S=l=>`/order-integrations/${l}/sync`,rbS=async(l,c,x)=>O(A7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),F7S=()=>"/order-integrations/custom/connect",lbS=async(l,c)=>O(F7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),k7S=l=>`/order-integrations/${l}/custom/rotate-secret`,dbS=async(l,c)=>O(k7S(l),{...c,method:"POST"}),j7S=l=>`/order-integrations/${l}/orders`,cbS=async(l,c,x)=>O(j7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),H7S=()=>"/order-integrations",ubS=async(l,c)=>O(H7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),L7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/order-integrations?${x}`:"/order-integrations"},pbS=async(l,c)=>O(L7S(l),{...c,method:"GET"}),G7S=l=>`/order-integrations/${l}`,mbS=async(l,c)=>O(G7S(l),{...c,method:"GET"}),K7S=l=>`/order-integrations/${l}`,xbS=async(l,c,x)=>O(K7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),V7S=l=>`/order-integrations/${l}`,gbS=async(l,c)=>O(V7S(l),{...c,method:"DELETE"});var Rn={authorizeShopify:v(nbS,1),authorizeWooCommerce:v(sbS,1),resumeShopifyInstall:v(obS,1),promoteShopifyBilling:v(ibS,1),syncShopifyOrders:v(abS,2),syncOrderIntegration:v(rbS,2),connectCustomStore:v(lbS,1),rotateCustomStoreSecret:v(dbS,1),pushCustomStoreOrder:v(cbS,2),create:v(ubS,1),list:J(pbS),get:v(mbS,1),update:v(xbS,2),delete:v(gbS,1)};var Z7S=()=>"/orders",ybS=async(l,c)=>O(Z7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),q7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/orders?${x}`:"/orders"},ObS=async(l,c)=>O(q7S(l),{...c,method:"GET"}),W7S=l=>`/orders/${l}`,vbS=async(l,c)=>O(W7S(l),{...c,method:"GET"}),Y7S=l=>`/orders/${l}`,SbS=async(l,c,x)=>O(Y7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),$7S=l=>`/orders/${l}`,TbS=async(l,c)=>O($7S(l),{...c,method:"DELETE"}),J7S=l=>`/orders/${l}/process`,BbS=async(l,c)=>O(J7S(l),{...c,method:"POST"}),X7S=l=>`/orders/${l}/cancel`,bbS=async(l,c)=>O(X7S(l),{...c,method:"POST"}),Q7S=l=>`/orders/${l}/reissue`,fbS=async(l,c)=>O(Q7S(l),{...c,method:"POST"});var _n={create:v(ybS,1),list:J(ObS),get:v(vbS,1),update:v(SbS,2),delete:v(TbS,1),processOrder:v(BbS,1),cancelOrder:v(bbS,1),reissueOrder:v(fbS,1)};var eWS=()=>"/payment-reminders/send",zbS=async(l,c)=>O(eWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),tWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/payment-reminders?${x}`:"/payment-reminders"},EbS=async(l,c)=>O(tWS(l),{...c,method:"GET"});var Mn={sendPaymentReminder:v(zbS,1),list:J(EbS)};var nWS=()=>"/payments",IbS=async(l,c)=>O(nWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),sWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/payments?${x}`:"/payments"},DbS=async(l,c)=>O(sWS(l),{...c,method:"GET"}),oWS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/payments/${l}?${E}`:`/payments/${l}`},hbS=async(l,c,x)=>O(oWS(l,c),{...x,method:"GET"}),iWS=l=>`/payments/${l}`,NbS=async(l,c,x)=>O(iWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),aWS=l=>`/payments/${l}`,RbS=async(l,c)=>O(aWS(l),{...c,method:"DELETE"}),rWS=l=>`/payments/${l}/restore`,_bS=async(l,c)=>O(rWS(l),{...c,method:"POST"}),lWS=l=>`/payments/${l}/permanent`,MbS=async(l,c)=>O(lWS(l),{...c,method:"DELETE"});var Un={create:v(IbS,1),list:J(DbS),get:v(hbS,2),update:v(NbS,2),delete:v(RbS,1),restorePayment:v(_bS,1),permanentDeletePayment:v(MbS,1)};var dWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/tables?${x}`:"/pos/tables"},UbS=async(l,c)=>O(dWS(l),{...c,method:"GET"}),cWS=()=>"/pos/tables",CbS=async(l,c)=>O(cWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),uWS=l=>`/pos/tables/${l}`,PbS=async(l,c,x)=>O(uWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),pWS=l=>`/pos/tables/${l}`,wbS=async(l,c)=>O(pWS(l),{...c,method:"DELETE"}),mWS=l=>`/pos/tabs/${l}/items`,AbS=async(l,c,x)=>O(mWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),xWS=l=>`/pos/tabs/${l}/claim`,FbS=async(l,c,x)=>O(xWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),gWS=l=>`/pos/tabs/${l}/release`,kbS=async(l,c,x)=>O(gWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),yWS=l=>`/pos/tabs/${l}/close`,jbS=async(l,c,x)=>O(yWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),OWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/tabs?${x}`:"/pos/tabs"},HbS=async(l,c)=>O(OWS(l),{...c,method:"GET"}),vWS=()=>"/pos/tabs",LbS=async(l,c)=>O(vWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),SWS=l=>`/pos/tabs/${l}`,GbS=async(l,c)=>O(SWS(l),{...c,method:"GET"}),TWS=l=>`/pos/tabs/${l}`,KbS=async(l,c,x)=>O(TWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),BWS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/pos/tabs/${l}?${E}`:`/pos/tabs/${l}`},VbS=async(l,c,x)=>O(BWS(l,c),{...x,method:"DELETE"}),bWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/daily/export?${x}`:"/pos/reports/daily/export"},ZbS=async(l,c)=>O(bWS(l),{...c,method:"GET"}),fWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/monthly/export?${x}`:"/pos/reports/monthly/export"},qbS=async(l,c)=>O(fWS(l),{...c,method:"GET"}),zWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/daily?${x}`:"/pos/reports/daily"},WbS=async(l,c)=>O(zWS(l),{...c,method:"GET"}),EWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/monthly?${x}`:"/pos/reports/monthly"},YbS=async(l,c)=>O(EWS(l),{...c,method:"GET"}),IWS=()=>"/pos/operators",$bS=async l=>O(IWS(),{...l,method:"GET"}),DWS=()=>"/pos/operators/enrol",JbS=async(l,c)=>O(DWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),hWS=()=>"/pos/operators/switch",XbS=async(l,c)=>O(hWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),NWS=l=>`/pos/operators/${l}/pin`,QbS=async(l,c,x)=>O(NWS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),RWS=l=>`/pos/operators/${l}/pin`,efS=async(l,c)=>O(RWS(l),{...c,method:"DELETE"});var _WS=v(VbS,2),Cn={listTables:J(UbS),createTable:v(CbS,1),updateTable:v(PbS,2),deleteTable:v(wbS,1),appendTabItems:v(AbS,2),claimTab:v(FbS,2),releaseTab:v(kbS,2),closeTab:v(jbS,2),listTabs:J(HbS),createTab:v(LbS,1),getTab:v(GbS,1),updateTab:v(KbS,2),cancelTab:Object.assign((...l)=>_WS(l[0],l[1]??{},l[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:v(ZbS,1),exportPosMonthlyReport:v(qbS,1),dailyReport:v(WbS,1),getPosMonthlyReport:v(YbS,1),listOperators:v($bS,0),enrolPosOperator:v(JbS,1),switchOperator:v(XbS,1),setOperatorPin:v(QbS,2),clearOperatorPin:v(efS,1)};var MWS=()=>"/fiscalization/pt/atcud-series",tfS=async(l,c)=>O(MWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),UWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/fiscalization/pt/atcud-series?${x}`:"/fiscalization/pt/atcud-series"},nfS=async(l,c)=>O(UWS(l),{...c,method:"GET"}),CWS=l=>`/fiscalization/pt/atcud-series/${l}`,sfS=async(l,c)=>O(CWS(l),{...c,method:"GET"}),PWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/fiscalization/pt/atcud-series/active?${x}`:"/fiscalization/pt/atcud-series/active"},ofS=async(l,c)=>O(PWS(l),{...c,method:"POST"}),wWS=l=>`/fiscalization/pt/atcud-series/${l}/retire`,ifS=async(l,c)=>O(wWS(l),{...c,method:"POST"});var Pn={create:v(tfS,1),list:J(nfS),get:v(sfS,1),getActive:v(ofS,1),retirePtAtcudSeries:v(ifS,1)};var AWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/fiscalization/pt/saft/report?${x}`:"/fiscalization/pt/saft/report"},afS=async(l,c)=>O(AWS(l),{...c,method:"GET"});var wn={generateReport:v(afS,1)};var FWS=()=>"/recurring-invoices",rfS=async(l,c)=>O(FWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),kWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/recurring-invoices?${x}`:"/recurring-invoices"},lfS=async(l,c)=>O(kWS(l),{...c,method:"GET"}),jWS=l=>`/recurring-invoices/${l}`,dfS=async(l,c)=>O(jWS(l),{...c,method:"GET"}),HWS=l=>`/recurring-invoices/${l}`,cfS=async(l,c,x)=>O(HWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),LWS=l=>`/recurring-invoices/${l}`,ufS=async(l,c)=>O(LWS(l),{...c,method:"DELETE"}),GWS=l=>`/recurring-invoices/${l}/restore`,pfS=async(l,c)=>O(GWS(l),{...c,method:"POST"}),KWS=l=>`/recurring-invoices/${l}/permanent`,mfS=async(l,c)=>O(KWS(l),{...c,method:"DELETE"}),VWS=l=>`/recurring-invoices/${l}/pause`,xfS=async(l,c)=>O(VWS(l),{...c,method:"POST"}),ZWS=l=>`/recurring-invoices/${l}/resume`,gfS=async(l,c)=>O(ZWS(l),{...c,method:"POST"}),qWS=l=>`/recurring-invoices/${l}/trigger`,yfS=async(l,c)=>O(qWS(l),{...c,method:"POST"});var An={create:v(rfS,1),list:J(lfS),get:v(dfS,1),update:v(cfS,2),delete:v(ufS,1),restoreRecurringInvoice:v(pfS,1),permanentDeleteRecurringInvoice:v(mfS,1),pauseRecurringInvoice:v(xfS,1),resumeRecurringInvoice:v(gfS,1),triggerRecurringInvoice:v(yfS,1)};var WWS=()=>"/revenue-recognition/settings",OfS=async l=>O(WWS(),{...l,method:"GET"}),YWS=()=>"/revenue-recognition/settings",vfS=async(l,c)=>O(YWS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),$WS=()=>"/revenue-recognition/backfill",SfS=async(l,c)=>O($WS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),JWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/revenue-recognition/report?${x}`:"/revenue-recognition/report"},TfS=async(l,c)=>O(JWS(l),{...c,method:"GET"}),XWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/revenue-recognition/details?${x}`:"/revenue-recognition/details"},BfS=async(l,c)=>O(XWS(l),{...c,method:"GET"}),QWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/revenue-recognition/lines?${x}`:"/revenue-recognition/lines"},bfS=async(l,c)=>O(QWS(l),{...c,method:"GET"}),e6S=l=>`/revenue-recognition/documents/${l}`,ffS=async(l,c)=>O(e6S(l),{...c,method:"GET"});var Fn={getSettings:v(OfS,0),updateSettings:v(vfS,1),backfill:v(SfS,1),getReport:v(TfS,1),getDetails:v(BfS,1),listLines:v(bfS,1),getDocumentSchedule:v(ffS,1)};var t6S=()=>"/stripe-app/marketplace-authorize",zfS=async(l,c)=>O(t6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),n6S=()=>"/stripe-app/connect",EfS=async(l,c)=>O(n6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),s6S=()=>"/stripe-app/entity-connection",IfS=async l=>O(s6S(),{...l,method:"GET"}),o6S=()=>"/stripe-app/entity-connection",DfS=async l=>O(o6S(),{...l,method:"DELETE"}),i6S=()=>"/stripe-app/entity-settings",hfS=async l=>O(i6S(),{...l,method:"GET"}),a6S=()=>"/stripe-app/entity-settings",NfS=async(l,c)=>O(a6S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var kn={stripeAppMarketplaceAuthorize:v(zfS,1),stripeAppConnect:v(EfS,1),stripeAppEntityGetConnection:v(IfS,0),stripeAppEntityDisconnect:v(DfS,0),stripeAppEntityGetSettings:v(hfS,0),stripeAppEntityUpdateSettings:v(NfS,1)};var r6S=()=>"/subscriptions",RfS=async l=>O(r6S(),{...l,method:"GET"}),l6S=()=>"/subscriptions/spending-limit",_fS=async(l,c)=>O(l6S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),d6S=()=>"/subscriptions/check-entity-limit",MfS=async l=>O(d6S(),{...l,method:"GET"});var jn={getCurrent:v(RfS,0),update:v(_fS,1),checkEntityLimit:v(MfS,0)};var c6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/tax-rate-estimates/us?${x}`:"/tax-rate-estimates/us"},UfS=async(l,c)=>O(c6S(l),{...c,method:"GET"});var Hn={listUsTaxRateEstimates:v(UfS,1)};var u6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/tax-reports/kir?${x}`:"/tax-reports/kir"},CfS=async(l,c)=>O(u6S(l),{...c,method:"POST"}),p6S=()=>"/tax-reports/si/profile",PfS=async l=>O(p6S(),{...l,method:"GET"}),m6S=()=>"/tax-reports/si/profile",wfS=async(l,c)=>O(m6S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),x6S=()=>"/tax-reports/si/yearly/normirani/review",AfS=async(l,c)=>O(x6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),g6S=()=>"/tax-reports/si/yearly/normirani/export",FfS=async(l,c)=>O(g6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),y6S=()=>"/tax-reports/si/accounting/vod/export",kfS=async(l,c)=>O(y6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),O6S=()=>"/tax-reports/si/accounting/minimax/export",jfS=async(l,c)=>O(O6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),v6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/tax-reports/accounting/quickbooks/export?${x}`:"/tax-reports/accounting/quickbooks/export"},HfS=async(l,c)=>O(v6S(l),{...c,method:"GET"});var Ln={generateKirExport:v(CfS,1),getSloveniaTaxProfile:v(PfS,0),updateSloveniaTaxProfile:v(wfS,1),reviewSloveniaYearlyNormiraniReport:v(AfS,1),exportSloveniaYearlyNormiraniReport:v(FfS,1),exportSloveniaVodXml:v(kfS,1),exportSloveniaMinimaxXml:v(jfS,1),exportQuickbooksCsv:v(HfS,1)};var S6S=()=>"/taxes",LfS=async(l,c)=>O(S6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),T6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/taxes?${x}`:"/taxes"},GfS=async(l,c)=>O(T6S(l),{...c,method:"GET"}),B6S=l=>`/taxes/${l}`,KfS=async(l,c,x)=>O(B6S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),b6S=l=>`/taxes/${l}`,VfS=async(l,c,x)=>O(b6S(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),f6S=l=>`/taxes/${l}`,ZfS=async(l,c)=>O(f6S(l),{...c,method:"DELETE"}),z6S=l=>`/taxes/${l}/restore`,qfS=async(l,c)=>O(z6S(l),{...c,method:"POST"}),E6S=l=>`/taxes/${l}/permanent`,WfS=async(l,c)=>O(E6S(l),{...c,method:"DELETE"});var Gn={create:v(LfS,1),list:J(GfS),update:v(KfS,2),replaceTax:v(VfS,2),delete:v(ZfS,1),restoreTax:v(qfS,1),permanentDeleteTax:v(WfS,1)};var I6S=()=>"/fiscalization/ticketbai/settings",YfS=async l=>O(I6S(),{...l,method:"GET"}),D6S=()=>"/fiscalization/ticketbai/settings",$fS=async(l,c)=>O(D6S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),h6S=()=>"/fiscalization/ticketbai/settings/certificate",JfS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),x.append("passphrase",l.passphrase),O(h6S(),{...c,method:"POST",body:x})},N6S=l=>`/fiscalization/ticketbai/records/${l}`,XfS=async(l,c)=>O(N6S(l),{...c,method:"GET"}),R6S=l=>`/fiscalization/ticketbai/records/${l}/xml`,QfS=async(l,c)=>O(R6S(l),{...c,method:"GET"}),_6S=l=>`/fiscalization/ticketbai/records/${l}/retry`,ezS=async(l,c)=>O(_6S(l),{...c,method:"POST"}),M6S=l=>`/fiscalization/ticketbai/records/${l}/reconcile`,tzS=async(l,c)=>O(M6S(l),{...c,method:"POST"});var Kn={getSettings:v(YfS,0),updateSettings:v($fS,1),uploadCertificate:v(JfS,1),getRecord:v(XfS,1),downloadRecordXml:v(QfS,1),retryRecord:v(ezS,1),reconcileRecord:v(tzS,1)};var U6S=()=>"/transaction-type/check",nzS=async(l,c)=>O(U6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var Vn={checkTransactionType:v(nzS,1)};var C6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/travel-orders?${x}`:"/travel-orders"},szS=async(l,c)=>O(C6S(l),{...c,method:"GET"}),P6S=()=>"/travel-orders",ozS=async(l,c)=>O(P6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),w6S=()=>"/travel-orders/preview",izS=async(l,c)=>O(w6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),A6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/travel-orders/render?${x}`:"/travel-orders/render"},azS=async(l,c,x)=>O(A6S(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),F6S=()=>"/travel-orders/route-distance",rzS=async(l,c)=>O(F6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),k6S=l=>`/travel-orders/${l}`,lzS=async(l,c)=>O(k6S(l),{...c,method:"GET"}),j6S=l=>`/travel-orders/${l}`,dzS=async(l,c,x)=>O(j6S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),H6S=l=>`/travel-orders/${l}`,czS=async(l,c)=>O(H6S(l),{...c,method:"DELETE"}),L6S=l=>`/travel-orders/${l}/approve`,uzS=async(l,c)=>O(L6S(l),{...c,method:"POST"}),G6S=l=>`/travel-orders/${l}/settle`,pzS=async(l,c)=>O(G6S(l),{...c,method:"POST"}),K6S=l=>`/travel-orders/${l}/reopen`,mzS=async(l,c,x)=>O(K6S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),V6S=l=>`/travel-orders/${l}/cancel`,xzS=async(l,c)=>O(V6S(l),{...c,method:"POST"}),Z6S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/travel-orders/${l}/pdf?${E}`:`/travel-orders/${l}/pdf`},gzS=async(l,c,x)=>O(Z6S(l,c),{...x,method:"GET"}),q6S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/travel-orders/${l}/html?${E}`:`/travel-orders/${l}/html`},yzS=async(l,c,x)=>O(q6S(l,c),{...x,method:"GET"});var Zn={list:J(szS),create:v(ozS,1),preview:v(izS,1),renderTravelOrderPreview:v(azS,2),calculateTravelOrderRouteDistance:v(rzS,1),get:v(lzS,1),update:v(dzS,2),delete:v(czS,1),approveTravelOrder:v(uzS,1),settleTravelOrder:v(pzS,1),reopenTravelOrder:v(mzS,2),cancelTravelOrder:v(xzS,1),renderPdf:v(gzS,2),renderHtml:v(yzS,2)};var he="https://eu.spaceinvoices.com";var W6S=l=>`/documents/${l}/ujp`,OzS=async(l,c)=>O(W6S(l),{...c,method:"GET"});var qn={download:v(OzS,1)};var Y6S=()=>"/upload/image",vzS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(Y6S(),{...c,method:"POST",body:x})};var Wn={uploadImage:v(vzS,1)};var $6S=()=>"/accounts/two-factor-policy",SzS=async l=>O($6S(),{...l,method:"GET"}),J6S=()=>"/accounts/two-factor-policy",TzS=async(l,c)=>O(J6S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),X6S=l=>`/entities/${l}/two-factor-policy`,BzS=async(l,c)=>O(X6S(l),{...c,method:"GET"}),Q6S=l=>`/entities/${l}/two-factor-policy`,bzS=async(l,c,x)=>O(Q6S(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),e9S=()=>"/users/two-factor/setup",fzS=async(l,c)=>O(e9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),t9S=()=>"/users/two-factor/enable",zzS=async(l,c)=>O(t9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),n9S=()=>"/users/me/two-factor",EzS=async l=>O(n9S(),{...l,method:"GET"}),s9S=()=>"/users/me/two-factor/setup",IzS=async(l,c)=>O(s9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),o9S=()=>"/users/me/two-factor/enable",DzS=async(l,c)=>O(o9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),i9S=()=>"/users/me/two-factor/disable",hzS=async(l,c)=>O(i9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),a9S=()=>"/users/two-factor/verify",NzS=async(l,c)=>O(a9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),r9S=()=>"/users/login",RzS=async(l,c)=>O(r9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),l9S=()=>"/users/signup",_zS=async(l,c)=>O(l9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),d9S=()=>"/users/password-reset",MzS=async(l,c)=>O(d9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),c9S=()=>"/users/password-reset/confirm",UzS=async(l,c)=>O(c9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),u9S=()=>"/users/me/accounts",CzS=async l=>O(u9S(),{...l,method:"GET"}),p9S=()=>"/users/me",PzS=async l=>O(p9S(),{...l,method:"GET"}),m9S=()=>"/users/me",wzS=async(l,c)=>O(m9S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),x9S=()=>"/users/me/account-deletion",AzS=async l=>O(x9S(),{...l,method:"POST"}),g9S=()=>"/users/me/settings/furs",FzS=async(l,c)=>O(g9S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),y9S=()=>"/users/me/settings/fina",kzS=async(l,c)=>O(y9S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var Yn={getAccountTwoFactorPolicy:v(SzS,0),updateAccountTwoFactorPolicy:v(TzS,1),getEntityTwoFactorPolicy:v(BzS,1),updateEntityTwoFactorPolicy:v(bzS,2),setupRequiredTwoFactor:v(fzS,1),enableRequiredTwoFactor:v(zzS,1),getTwoFactorConfiguration:v(EzS,0),setupTwoFactor:v(IzS,1),enableTwoFactor:v(DzS,1),disableTwoFactor:v(hzS,1),verifyTwoFactor:v(NzS,1),login:v(RzS,1),signup:v(_zS,1),requestPasswordReset:v(MzS,1),confirmPasswordReset:v(UzS,1),listMyAccounts:v(CzS,0),getMe:v(PzS,0),update:v(wzS,1),requestAccountDeletion:v(AzS,0),updateFursSettings:v(FzS,1),updateFinaSettings:v(kzS,1)};var O9S=()=>"/fiscalization/verifactu/settings",jzS=async l=>O(O9S(),{...l,method:"GET"}),v9S=()=>"/fiscalization/verifactu/settings",HzS=async(l,c)=>O(v9S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),S9S=()=>"/fiscalization/verifactu/certificate",LzS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),x.append("passphrase",l.passphrase),O(S9S(),{...c,method:"POST",body:x})},T9S=l=>`/fiscalization/verifactu/records/${l}`,GzS=async(l,c)=>O(T9S(l),{...c,method:"GET"}),B9S=l=>`/fiscalization/verifactu/records/${l}/retry`,KzS=async(l,c)=>O(B9S(l),{...c,method:"POST"}),b9S=l=>`/fiscalization/verifactu/records/${l}/correct`,VzS=async(l,c,x)=>O(b9S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),f9S=l=>`/fiscalization/verifactu/records/${l}/cancel`,ZzS=async(l,c,x)=>O(f9S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var $n={getSettings:v(jzS,0),updateSettings:v(HzS,1),uploadCertificate:v(LzS,1),getEvidence:v(GzS,1),retryRecord:v(KzS,1),correctRecord:v(VzS,2),cancelRecord:v(ZzS,2)};var z9S=()=>"/vies/check",qzS=async(l,c)=>O(z9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var Jn={checkVies:v(qzS,1)};var E9S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/warehouses?${x}`:"/warehouses"},WzS=async(l,c)=>O(E9S(l),{...c,method:"GET"}),I9S=()=>"/warehouses",YzS=async(l,c)=>O(I9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),D9S=l=>`/warehouses/${l}`,$zS=async(l,c)=>O(D9S(l),{...c,method:"GET"}),h9S=l=>`/warehouses/${l}`,JzS=async(l,c,x)=>O(h9S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),N9S=l=>`/warehouses/${l}`,XzS=async(l,c)=>O(N9S(l),{...c,method:"DELETE"});var Xn={list:J(WzS),create:v(YzS,1),get:v($zS,1),update:v(JzS,2),delete:v(XzS,1)};var R9S=()=>"/webhooks",QzS=async(l,c)=>O(R9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),_9S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/webhooks?${x}`:"/webhooks"},eES=async(l,c)=>O(_9S(l),{...c,method:"GET"}),M9S=l=>`/webhooks/${l}`,tES=async(l,c)=>O(M9S(l),{...c,method:"GET"}),U9S=l=>`/webhooks/${l}`,nES=async(l,c,x)=>O(U9S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),C9S=l=>`/webhooks/${l}`,sES=async(l,c)=>O(C9S(l),{...c,method:"DELETE"}),P9S=l=>`/webhooks/${l}/test`,oES=async(l,c)=>O(P9S(l),{...c,method:"POST"});var w9S=l=>`/webhooks/${l}/rotate-secret`,iES=async(l,c)=>O(w9S(l),{...c,method:"POST"});var Qn={create:v(QzS,1),list:J(eES),get:v(tES,1),update:v(nES,2),delete:v(sES,1),testWebhook:v(oES,1),rotateWebhookSecret:v(iES,1)};var A9S=()=>"/white-label-subscriptions",aES=async l=>O(A9S(),{...l,method:"GET"}),F9S=()=>"/white-label-subscriptions/plans",rES=async l=>O(F9S(),{...l,method:"GET"}),k9S=l=>`/white-label-subscriptions/check-feature/${l}`,lES=async(l,c)=>O(k9S(l),{...c,method:"GET"}),j9S=l=>`/white-label-subscriptions/check-limit/${l}`,dES=async(l,c)=>O(j9S(l),{...c,method:"GET"}),H9S=()=>"/white-label-subscriptions/billing-email",cES=async(l,c)=>O(H9S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var es={getCurrentWLSubscription:v(aES,0),list:v(rES,0),checkWLFeature:v(lES,1),checkWLLimit:v(dES,1),update:v(cES,1)};var L9S=()=>"/white-labels/current",uES=async l=>O(L9S(),{...l,method:"GET"}),G9S=()=>"/white-labels/me",pES=async l=>O(G9S(),{...l,method:"GET"});var ts={getCurrentWhiteLabel:v(uES,0),getMyWhiteLabel:v(pES,0)};var De=class{sdkConfig;accountWebhooks=Z(Ht,()=>this.sdkConfig);activities=Z(Lt,()=>this.sdkConfig);advanceInvoices=Z(Gt,()=>this.sdkConfig);businessUnits=Z(Kt,()=>this.sdkConfig);companyRegistry=Z(Vt,()=>this.sdkConfig);creditNotes=Z(Zt,()=>this.sdkConfig);currency=Z(qt,()=>this.sdkConfig);customers=Z(Wt,()=>this.sdkConfig);deliveryNotes=Z(Yt,()=>this.sdkConfig);documents=Z(Xt,()=>this.sdkConfig);eInvoicing=Z(tn,()=>this.sdkConfig);eSlog=Z(nn,()=>this.sdkConfig);email=Z(sn,()=>this.sdkConfig);entities=Z(on,()=>this.sdkConfig);entityApiKeys=Z(an,()=>this.sdkConfig);entityInvitations=Z(rn,()=>this.sdkConfig);entityStats=Z(ln,()=>this.sdkConfig);entityUsers=Z(dn,()=>this.sdkConfig);estimates=Z(cn,()=>this.sdkConfig);expenses=Z(un,()=>this.sdkConfig);exports=Z(pn,()=>this.sdkConfig);files=Z(mn,()=>this.sdkConfig);finaCertificate=Z(xn,()=>this.sdkConfig);finaDevices=Z(gn,()=>this.sdkConfig);finaPremises=Z(yn,()=>this.sdkConfig);finaSettings=Z(On,()=>this.sdkConfig);financialCategories=Z(vn,()=>this.sdkConfig);fursCertificate=Z(Sn,()=>this.sdkConfig);fursDevices=Z(Tn,()=>this.sdkConfig);fursInternalAct=Z(Bn,()=>this.sdkConfig);fursPremises=Z(bn,()=>this.sdkConfig);fursSettings=Z(fn,()=>this.sdkConfig);health=Z(zn,()=>this.sdkConfig);invoices=Z(In,()=>this.sdkConfig);items=Z(Dn,()=>this.sdkConfig);legacyMigration=Z(hn,()=>this.sdkConfig);locale=Z(Nn,()=>this.sdkConfig);orderIntegrations=Z(Rn,()=>this.sdkConfig);orders=Z(_n,()=>this.sdkConfig);paymentReminders=Z(Mn,()=>this.sdkConfig);payments=Z(Un,()=>this.sdkConfig);pointOfSale=Z(Cn,()=>this.sdkConfig);ptAtcudSeries=Z(Pn,()=>this.sdkConfig);ptSafT=Z(wn,()=>this.sdkConfig);recurringInvoices=Z(An,()=>this.sdkConfig);revenueRecognition=Z(Fn,()=>this.sdkConfig);stripeApp=Z(kn,()=>this.sdkConfig);subscriptions=Z(jn,()=>this.sdkConfig);taxRateEstimates=Z(Hn,()=>this.sdkConfig);taxReports=Z(Ln,()=>this.sdkConfig);taxes=Z(Gn,()=>this.sdkConfig);ticketBai=Z(Kn,()=>this.sdkConfig);transactionType=Z(Vn,()=>this.sdkConfig);travelOrders=Z(Zn,()=>this.sdkConfig);ujp=Z(qn,()=>this.sdkConfig);upload=Z(Wn,()=>this.sdkConfig);users=Z(Yn,()=>this.sdkConfig);veriFactu=Z($n,()=>this.sdkConfig);vies=Z(Jn,()=>this.sdkConfig);warehouses=Z(Xn,()=>this.sdkConfig);webhooks=Z(Qn,()=>this.sdkConfig);whiteLabelSubscriptions=Z(es,()=>this.sdkConfig);whiteLabels=Z(ts,()=>this.sdkConfig);constructor(c){let x=typeof c=="string"?{accessToken:c}:c,E=typeof x.accessToken=="function"?x.accessToken:()=>x.accessToken;this.sdkConfig={baseUrl:x.basePath??he,getAccessToken:E,clientName:x.clientName??"js-sdk",onUnauthorized:x.onUnauthorized,requestTimeoutMs:x.requestTimeoutMs,accountId:x.accountId??null};}};function K9S(l){let c=typeof l=="string"?{accessToken:l}:l,x=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;HyS({baseUrl:c.basePath??he,getAccessToken:x,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),jt(c.accountId??null);}
|
|
208
|
+
Searches across number, traveler name, purpose, origin, and destination.`)}),r1S=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.")}),LuS=200,GuS=0,KuS=1e6,VuS=/^\d{4}-\d{2}-\d{2}$/,l1S=e.object({data:e.array(e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(LuS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(GuS).max(KuS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(VuS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation.")),pagination:e.object({total:e.number().describe("Total number of items available in the collection"),next_cursor:e.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),d1S=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.")}),ZuS=200,quS=200,WuS=/^\d{4}-\d{2}-\d{2}$/,YuS=500,$uS=500,JuS=500,XuS=/^[A-Za-z]{2}$/,QuS=20,epS=0,tpS=1e5,npS=0,spS=60,opS=0,ipS=1e4,apS=0,rpS=1e6,lpS=200,dpS=0,cpS=1e6,upS=/^\d{4}-\d{2}-\d{2}$/,ppS=100,mpS=2e3,c1S=e.object({traveler_name:e.string().min(1).max(ZuS).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(quS).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(WuS).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(YuS).describe("Business purpose of the trip."),origin:e.string().max($uS).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(JuS).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(XuS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(QuS).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(epS).max(tpS).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(npS).max(spS).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(opS).max(ipS).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(apS).max(rpS).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(lpS).describe("Description of the cost line."),amount:e.number().gt(dpS).max(cpS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(upS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(ppS).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(mpS).nullish().describe("Free-text note. Omit or send null to leave unset.")}),u1S=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.")}),xpS=200,gpS=200,ypS=/^\d{4}-\d{2}-\d{2}$/,OpS=500,vpS=500,SpS=500,TpS=/^[A-Za-z]{2}$/,BpS=20,bpS=0,fpS=1e5,zpS=0,EpS=60,IpS=0,DpS=1e4,hpS=0,NpS=1e6,RpS=200,_pS=0,MpS=1e6,UpS=/^\d{4}-\d{2}-\d{2}$/,CpS=100,PpS=2e3,p1S=e.object({traveler_name:e.string().min(1).max(xpS).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(gpS).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(ypS).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(OpS).describe("Business purpose of the trip."),origin:e.string().max(vpS).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(SpS).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(TpS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(BpS).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(bpS).max(fpS).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min(zpS).max(EpS).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(IpS).max(DpS).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(hpS).max(NpS).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(RpS).describe("Description of the cost line."),amount:e.number().gt(_pS).max(MpS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(UpS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(CpS).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(PpS).nullish().describe("Free-text note. Omit or send null to leave unset.")}),m1S=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.")}),wpS=2,ApS=5,FpS=2,kpS=5,x1S=e.object({locale:e.string().min(wpS).max(ApS).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(FpS).max(kpS).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.")}),g1S=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.")}),jpS=200,HpS=200,LpS=/^\d{4}-\d{2}-\d{2}$/,GpS=500,KpS=500,VpS=500,ZpS=/^[A-Za-z]{2}$/,qpS=20,WpS=0,YpS=1e5,$pS=0,JpS=60,XpS=0,QpS=1e4,emS=0,tmS=1e6,nmS=200,smS=0,omS=1e6,imS=/^\d{4}-\d{2}-\d{2}$/,amS=100,rmS=2e3,y1S=e.object({traveler_name:e.string().min(1).max(jpS).describe("Full name of the traveling employee or contractor."),traveler_position:e.string().max(HpS).nullish().describe("Traveler's job title or position. Omit or send null to leave unset."),date:e.string().regex(LpS).nullish().describe("Document date (YYYY-MM-DD). Defaults to today in Slovenia when omitted or null."),purpose:e.string().min(1).max(GpS).describe("Business purpose of the trip."),origin:e.string().max(KpS).nullish().describe("Trip starting location. Omit or send null to leave unset."),destination:e.string().min(1).max(VpS).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(ZpS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Required (and must not be SI) for foreign trips; must be omitted or null for domestic trips."),departure_at:e.iso.datetime({}).describe("Departure date and time, ISO 8601 with UTC offset."),return_at:e.iso.datetime({}).describe("Return date and time, ISO 8601 with UTC offset. Must be after departure_at, and the trip must not exceed 60 days."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().max(qpS).nullish().describe("Vehicle registration plate. Omit or send null to leave unset."),distance_km:e.number().min(WpS).max(YpS).nullish().describe("Trip distance in kilometers (up to 2 decimals). Required when transport is own_vehicle and the order is settled."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem for this trip. Defaults to true when omitted or null."),breakfasts_provided:e.number().min($pS).max(JpS).nullish().describe("Number of breakfasts already provided during the trip, reducing per diem. Defaults to 0 when omitted or null."),foreign_daily_rate:e.number().gt(XpS).max(QpS).nullish().describe("Caller-supplied foreign daily rate in EUR. Only allowed for foreign trips."),advance_amount:e.number().min(emS).max(tmS).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(nmS).describe("Description of the cost line."),amount:e.number().gt(smS).max(omS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(imS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(amS).nullish().describe("Documented actual-cost expense lines. Defaults to an empty array when omitted or null."),note:e.string().max(rmS).nullish().describe("Free-text note. Omit or send null to leave unset.")}),O1S=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.")}),lmS=3,dmS=300,cmS=3,umS=300,v1S=e.object({from:e.string().min(lmS).max(dmS).describe("Starting address to geocode."),to:e.string().min(cmS).max(umS).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.")}),S1S=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.")}),pmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,T1S=e.object({id:e.stringFormat("resource-id",pmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),B1S=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.")}),mmS=200,xmS=0,gmS=1e6,ymS=/^\d{4}-\d{2}-\d{2}$/,b1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(mmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(xmS).max(gmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(ymS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),OmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,f1S=e.object({id:e.stringFormat("resource-id",OmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),z1S=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.")}),vmS=200,SmS=200,TmS=/^\d{4}-\d{2}-\d{2}$/,BmS=500,bmS=500,fmS=500,zmS=/^[A-Za-z]{2}$/,EmS=20,ImS=0,DmS=1e5,hmS=0,NmS=60,RmS=0,_mS=1e4,MmS=0,UmS=1e6,CmS=200,PmS=0,wmS=1e6,AmS=/^\d{4}-\d{2}-\d{2}$/,FmS=100,kmS=2e3,E1S=e.object({traveler_name:e.string().min(1).max(vmS).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(SmS).nullish().describe("Traveler's job title or position. Omit to leave unchanged, send null to clear."),date:e.string().regex(TmS).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(BmS).nullish().describe("Business purpose of the trip. Omit or send null to leave unchanged; cannot be cleared."),origin:e.string().max(bmS).nullish().describe("Trip starting location. Omit to leave unchanged, send null to clear."),destination:e.string().min(1).max(fmS).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(zmS).nullish().describe("ISO 3166-1 alpha-2 destination country code. Omit to leave unchanged, send null to clear."),departure_at:e.iso.datetime({}).nullish().describe("Departure date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),return_at:e.iso.datetime({}).nullish().describe("Return date and time, ISO 8601 with UTC offset. Omit or send null to leave unchanged; cannot be cleared."),transport:e.union([e.literal("own_vehicle"),e.literal("company_vehicle"),e.literal("public_transport"),e.literal("other"),e.literal(null)]).nullish().describe("Mode of transport. Omit or send null to leave unchanged; cannot be cleared."),vehicle_registration:e.string().max(EmS).nullish().describe("Vehicle registration plate. Omit to leave unchanged, send null to clear."),distance_km:e.number().min(ImS).max(DmS).nullish().describe("Trip distance in kilometers. Omit to leave unchanged, send null to clear."),per_diem_enabled:e.boolean().nullish().describe("Whether to calculate per diem. Omit to leave unchanged, send null to reset to true."),breakfasts_provided:e.number().min(hmS).max(NmS).nullish().describe("Number of breakfasts already provided. Omit to leave unchanged, send null to reset to 0."),foreign_daily_rate:e.number().gt(RmS).max(_mS).nullish().describe("Caller-supplied foreign daily rate in EUR. Omit to leave unchanged, send null to clear."),advance_amount:e.number().min(MmS).max(UmS).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(CmS).describe("Description of the cost line."),amount:e.number().gt(PmS).max(wmS).describe("Documented actual cost in EUR (up to 2 decimals)."),date:e.string().regex(AmS).nullish().describe("Date the cost was incurred (YYYY-MM-DD). Omitted or null if not tracked separately.")})).max(FmS).nullish().describe("Documented actual-cost expense lines. Omit to leave unchanged, send null to reset to an empty array."),note:e.string().max(kmS).nullish().describe("Free-text note. Omit to leave unchanged, send null to clear.")}),jmS=200,HmS=0,LmS=1e6,GmS=/^\d{4}-\d{2}-\d{2}$/,I1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(jmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(HmS).max(LmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(GmS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),KmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,D1S=e.object({id:e.stringFormat("resource-id",KmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),h1S=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.")}),VmS=/^[a-z]{3,4}_[0-9a-f]{24}$/,N1S=e.object({id:e.stringFormat("resource-id",VmS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),R1S=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.")}),ZmS=200,qmS=0,WmS=1e6,YmS=/^\d{4}-\d{2}-\d{2}$/,_1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(ZmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(qmS).max(WmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(YmS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),$mS=/^[a-z]{3,4}_[0-9a-f]{24}$/,M1S=e.object({id:e.stringFormat("resource-id",$mS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),U1S=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.")}),JmS=200,XmS=0,QmS=1e6,exS=/^\d{4}-\d{2}-\d{2}$/,C1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(JmS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(XmS).max(QmS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(exS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),txS=/^[a-z]{3,4}_[0-9a-f]{24}$/,P1S=e.object({id:e.stringFormat("resource-id",txS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),w1S=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.")}),nxS=3,sxS=500,A1S=e.object({reason:e.string().min(nxS).max(sxS).describe("Why this settled travel order is being reopened for correction. Required.")}),oxS=200,ixS=0,axS=1e6,rxS=/^\d{4}-\d{2}-\d{2}$/,F1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(oxS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(ixS).max(axS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(rxS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),lxS=/^[a-z]{3,4}_[0-9a-f]{24}$/,k1S=e.object({id:e.stringFormat("resource-id",lxS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),j1S=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.")}),dxS=200,cxS=0,uxS=1e6,pxS=/^\d{4}-\d{2}-\d{2}$/,H1S=e.object({id:e.string().describe("Unique travel order identifier."),entity_id:e.string().describe("Owning entity ID."),number:e.string().describe("Sequential document number, format PN-{yyyy}-{nnnn}."),status:e.enum(["draft","approved","settled","canceled"]).describe("Lifecycle status. `draft` can be edited or deleted, `approved` can be edited or settled, `settled` and `canceled` are frozen."),date:e.string().describe("Travel order document date (YYYY-MM-DD)."),traveler_name:e.string().describe("Full name of the traveling employee or contractor."),traveler_position:e.string().nullable().describe("Traveler's job title or position, if provided."),purpose:e.string().describe("Business purpose of the trip."),origin:e.string().nullable().describe("Trip starting location, if provided."),destination:e.string().describe("Trip destination location."),trip_type:e.enum(["domestic","foreign"]).describe("Whether the trip stays within Slovenia (`domestic`) or crosses into another country (`foreign`)."),destination_country_code:e.string().nullable().describe("ISO 3166-1 alpha-2 destination country code, required and non-null for foreign trips, null for domestic trips."),departure_at:e.string().describe("Departure date and time (ISO 8601, UTC)."),return_at:e.string().describe("Return date and time (ISO 8601, UTC)."),transport:e.enum(["own_vehicle","company_vehicle","public_transport","other"]).describe("Mode of transport used for the trip. Mileage reimbursement only applies to `own_vehicle`."),vehicle_registration:e.string().nullable().describe("Vehicle registration plate, if provided."),distance_km:e.number().nullable().describe("One-way or total trip distance in kilometers, if provided."),per_diem_enabled:e.boolean().describe("Whether per diem is calculated for this trip."),breakfasts_provided:e.number().describe("Number of breakfasts already provided during the trip, reducing per diem."),foreign_daily_rate:e.number().nullable().describe("Caller-supplied foreign daily rate in EUR, used instead of the statutory table (required when the table entry is in USD or unavailable)."),advance_amount:e.number().describe("Advance payment already given to the traveler, in EUR."),costs:e.array(e.object({type:e.enum(["accommodation","transport","toll","parking","other"]).describe("Category of a documented, actual-cost expense line attached to the travel order."),description:e.string().min(1).max(dxS).describe("Description of the cost line, e.g. the vendor or purpose."),amount:e.number().gt(cxS).max(uxS).describe("Documented actual cost amount in EUR, up to 2 decimals."),date:e.string().regex(pxS).nullable().describe("Date the cost was incurred (YYYY-MM-DD), or null if not tracked separately.")})).describe("Documented actual-cost expense lines (accommodation, tolls, parking, etc.)."),note:e.string().nullable().describe("Free-text note, if provided."),currency_code:e.enum(["EUR"]).describe("Always EUR: all statutory per diem and mileage amounts are fixed in EUR regardless of the entity's bookkeeping currency."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}),settlement_history:e.array(e.object({settled_at:e.string().describe("When this settlement happened (ISO 8601)."),reopened_at:e.string().describe("When this settlement was reopened (ISO 8601)."),reopened_by:e.string().nullable().describe("User ID that reopened the order, or null when an API key reopened it."),reason:e.string().describe("Reason given for reopening this settlement."),calculation:e.object({duration_hours:e.number().describe("Total trip duration in hours (return_at minus departure_at), rounded to 2 decimals for display."),per_diem:e.object({enabled:e.boolean().describe("Whether per diem was requested for this trip."),full_days:e.number().describe("Number of complete 24-hour periods in the trip."),remainder_hours:e.number().describe("Hours remaining after the complete 24-hour periods."),reference_rate:e.object({amount:e.number().describe("Statutory foreign daily rate amount from the reference table."),currency:e.enum(["EUR","USD"]).describe("Currency of the statutory reference rate.")}).nullable().describe("Statutory foreign daily reference rate for the destination country, or null for domestic trips or trips before the foreign table's effective date."),periods:e.array(e.object({index:e.number().describe("1-based sequence number of this per diem period."),hours:e.number().describe("Exact duration in hours covered by this period."),band:e.enum(["over_6_to_8","over_8_to_12","over_12_to_24","over_8_to_14","over_14_to_24"]).describe("Statutory duration band a per diem period falls into. `over_8_to_12` and `over_12_to_24` are domestic-only; `over_8_to_14` and `over_14_to_24` are foreign-only; `over_6_to_8` applies to both."),base_amount:e.number().describe("Per diem amount for this period before any breakfast reduction, in EUR."),breakfast_reduction_percent:e.number().describe("Percentage of the base amount deducted because a breakfast was provided (0 if none)."),breakfast_reduction:e.number().describe("Breakfast reduction amount in EUR, subtracted from base_amount."),amount:e.number().describe("Final per diem amount for this period in EUR (base_amount minus breakfast_reduction).")})).describe("Per diem periods making up the trip (empty when per_diem_enabled is false)."),total:e.number().describe("Sum of all per diem period amounts in EUR (0 when per_diem_enabled is false).")}),mileage:e.object({applicable:e.boolean().describe("True only when transport is own_vehicle."),distance_km:e.number().nullable().describe("Distance in kilometers as provided on the request, echoed back."),rate:e.number().describe("Statutory mileage rate in EUR per kilometer."),total:e.number().describe("Mileage reimbursement total in EUR (0 when not applicable).")}),costs_total:e.number().describe("Sum of all documented cost line amounts in EUR."),total:e.number().describe("Grand total in EUR: per_diem.total + mileage.total + costs_total."),advance_amount:e.number().describe("Advance payment already given to the traveler, echoed back, in EUR."),amount_due:e.number().describe("Amount owed to the traveler (total minus advance_amount). Negative when the advance exceeded the total, meaning the traveler must return the difference."),rates_source:e.string().describe("Citation of the statutory regulation(s) used for this calculation.")}).and(e.unknown().describe("The frozen calculation snapshot exactly as it was stored at settlement time.")),number:e.string().describe("Document number at the time of this settlement.")}).describe("One prior settlement of this travel order, preserved when it was reopened for correction.")).optional().describe("Prior settlements of this order, appended each time a settled order is reopened for correction. Empty when the order has never been settled and reopened."),approved_at:e.string().nullable().describe("When the order was approved (ISO 8601), or null."),settled_at:e.string().nullable().describe("When the order was settled (ISO 8601), or null."),canceled_at:e.string().nullable().describe("When the order was canceled (ISO 8601), or null."),created_at:e.string().describe("When the order was created (ISO 8601)."),updated_at:e.string().describe("When the order was last updated (ISO 8601).")}).describe("Slovenian business travel order (potni nalog) with tax-free per diem and mileage calculation."),mxS=/^[a-z]{3,4}_[0-9a-f]{24}$/,L1S=e.object({id:e.stringFormat("resource-id",mxS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),xxS=2,gxS=5,yxS=2,OxS=5,G1S=e.object({locale:e.string().min(xxS).max(gxS).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(yxS).max(OxS).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.")}),K1S=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.")}),vxS=/^[a-z]{3,4}_[0-9a-f]{24}$/,V1S=e.object({id:e.stringFormat("resource-id",vxS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),SxS=2,TxS=5,BxS=2,bxS=5,Z1S=e.object({locale:e.string().min(SxS).max(TxS).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(BxS).max(bxS).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.")}),q1S=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 Nt={};W(Nt,{DownloadUjpPackageHeader:()=>Y1S,DownloadUjpPackageParams:()=>W1S});var W1S=e.object({id:e.string().describe("Document ID. The document type is detected from the ID prefix.")}),Y1S=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 Rt={};W(Rt,{UploadImageBody:()=>J1S,UploadImageHeader:()=>$1S,UploadImageResponse:()=>X1S});var $1S=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.")}),J1S=e.object({file:e.custom(l=>typeof File<"u"&&l instanceof File,"Input not instance of File").describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),X1S=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 _t={};W(_t,{ConfirmPasswordResetBody:()=>N4S,ConfirmPasswordResetResponse:()=>R4S,DisableTwoFactorBody:()=>T4S,DisableTwoFactorResponse:()=>B4S,EnableRequiredTwoFactorBody:()=>m4S,EnableRequiredTwoFactorResponse:()=>x4S,EnableTwoFactorBody:()=>v4S,EnableTwoFactorResponse:()=>S4S,GetAccountTwoFactorPolicyHeader:()=>Q1S,GetAccountTwoFactorPolicyResponse:()=>e4S,GetEntityTwoFactorPolicyHeader:()=>i4S,GetEntityTwoFactorPolicyParams:()=>o4S,GetEntityTwoFactorPolicyResponse:()=>a4S,GetMeResponse:()=>M4S,GetTwoFactorConfigurationResponse:()=>g4S,ListMyAccountsResponse:()=>_4S,LoginBody:()=>z4S,LoginResponse:()=>E4S,PatchMeBody:()=>U4S,PatchMeResponse:()=>C4S,RequestPasswordResetBody:()=>D4S,RequestPasswordResetResponse:()=>h4S,SetupRequiredTwoFactorBody:()=>u4S,SetupRequiredTwoFactorResponse:()=>p4S,SetupTwoFactorBody:()=>y4S,SetupTwoFactorResponse:()=>O4S,SignupBody:()=>I4S,UpdateAccountTwoFactorPolicyBody:()=>n4S,UpdateAccountTwoFactorPolicyHeader:()=>t4S,UpdateAccountTwoFactorPolicyResponse:()=>s4S,UpdateEntityTwoFactorPolicyBody:()=>d4S,UpdateEntityTwoFactorPolicyHeader:()=>l4S,UpdateEntityTwoFactorPolicyParams:()=>r4S,UpdateEntityTwoFactorPolicyResponse:()=>c4S,UpdateUserFinaSettingsBody:()=>k4S,UpdateUserFinaSettingsHeader:()=>F4S,UpdateUserFinaSettingsResponse:()=>j4S,UpdateUserFursSettingsBody:()=>w4S,UpdateUserFursSettingsHeader:()=>P4S,UpdateUserFursSettingsResponse:()=>A4S,VerifyTwoFactorBody:()=>b4S,VerifyTwoFactorResponse:()=>f4S,confirmPasswordResetBodyPasswordMin:()=>NgS,confirmPasswordResetBodyPasswordRegExp:()=>RgS,disableTwoFactorBodyCodeMax:()=>ZxS,disableTwoFactorBodyCodeMin:()=>VxS,disableTwoFactorBodyPasswordMax:()=>KxS,enableRequiredTwoFactorBodyCodeRegExp:()=>_xS,enableRequiredTwoFactorBodyTokenRegExp:()=>RxS,enableRequiredTwoFactorResponseSessionOneEntityIdMax:()=>wxS,enableRequiredTwoFactorResponseSessionOneIdMax:()=>MxS,enableRequiredTwoFactorResponseSessionOneImpersonatorUserIdMax:()=>AxS,enableRequiredTwoFactorResponseSessionOneScopeMax:()=>PxS,enableRequiredTwoFactorResponseSessionOneTtlDefault:()=>CxS,enableRequiredTwoFactorResponseSessionOneUserIdMax:()=>UxS,enableRequiredTwoFactorResponseSessionTwoUserAccountIdMax:()=>HxS,enableRequiredTwoFactorResponseSessionTwoUserEmailMax:()=>kxS,enableRequiredTwoFactorResponseSessionTwoUserIdMax:()=>FxS,enableRequiredTwoFactorResponseSessionTwoUserNameMax:()=>jxS,enableTwoFactorBodyCodeRegExp:()=>GxS,getAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>fxS,getEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>IxS,getEntityTwoFactorPolicyPathIdRegExp:()=>ExS,getMeResponseAccountIdMax:()=>CgS,getMeResponseEmailMax:()=>MgS,getMeResponseIdMax:()=>_gS,getMeResponseNameMax:()=>UgS,loginBodyShopifyReturnUrlMax:()=>lgS,loginBodyShopifyReturnUrlMin:()=>rgS,loginBodyShopifyReturnUrlRegExp:()=>dgS,loginResponseOneEntityIdMax:()=>xgS,loginResponseOneIdMax:()=>cgS,loginResponseOneImpersonatorUserIdMax:()=>ggS,loginResponseOneScopeMax:()=>mgS,loginResponseOneTtlDefault:()=>pgS,loginResponseOneUserIdMax:()=>ugS,loginResponseTwoUserAccountIdMax:()=>SgS,loginResponseTwoUserEmailMax:()=>OgS,loginResponseTwoUserIdMax:()=>ygS,loginResponseTwoUserNameMax:()=>vgS,patchMeBodyNameMin:()=>PgS,patchMeResponseAccountIdMax:()=>kgS,patchMeResponseEmailMax:()=>AgS,patchMeResponseIdMax:()=>wgS,patchMeResponseNameMax:()=>FgS,requestPasswordResetBodyShopifyReturnUrlMax:()=>DgS,requestPasswordResetBodyShopifyReturnUrlMin:()=>IgS,requestPasswordResetBodyShopifyReturnUrlRegExp:()=>hgS,setupRequiredTwoFactorBodyTokenRegExp:()=>NxS,setupTwoFactorBodyPasswordMax:()=>LxS,signupBodyNameMin:()=>TgS,signupBodyPasswordMin:()=>BgS,signupBodyPasswordRegExp:()=>bgS,signupBodySignupAttributionUtmCampaignMax:()=>EgS,signupBodySignupAttributionUtmMediumMax:()=>zgS,signupBodySignupAttributionUtmSourceMax:()=>fgS,updateAccountTwoFactorPolicyHeaderXAccountIdRegExp:()=>zxS,updateEntityTwoFactorPolicyHeaderXAccountIdRegExp:()=>hxS,updateEntityTwoFactorPolicyPathIdRegExp:()=>DxS,updateUserFinaSettingsResponseAccountIdMax:()=>qgS,updateUserFinaSettingsResponseEmailMax:()=>VgS,updateUserFinaSettingsResponseIdMax:()=>KgS,updateUserFinaSettingsResponseNameMax:()=>ZgS,updateUserFursSettingsResponseAccountIdMax:()=>GgS,updateUserFursSettingsResponseEmailMax:()=>HgS,updateUserFursSettingsResponseIdMax:()=>jgS,updateUserFursSettingsResponseNameMax:()=>LgS,verifyTwoFactorBodyCodeMax:()=>$xS,verifyTwoFactorBodyCodeMin:()=>YxS,verifyTwoFactorBodyTokenMax:()=>qxS,verifyTwoFactorBodyTokenRegExp:()=>WxS,verifyTwoFactorResponseOneEntityIdMax:()=>tgS,verifyTwoFactorResponseOneIdMax:()=>JxS,verifyTwoFactorResponseOneImpersonatorUserIdMax:()=>ngS,verifyTwoFactorResponseOneScopeMax:()=>egS,verifyTwoFactorResponseOneTtlDefault:()=>QxS,verifyTwoFactorResponseOneUserIdMax:()=>XxS,verifyTwoFactorResponseTwoUserAccountIdMax:()=>agS,verifyTwoFactorResponseTwoUserEmailMax:()=>ogS,verifyTwoFactorResponseTwoUserIdMax:()=>sgS,verifyTwoFactorResponseTwoUserNameMax:()=>igS});var fxS=/^acc_[0-9a-fA-F]{24}$/,Q1S=e.object({"x-account-id":e.string().regex(fxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),e4S=e.object({required:e.boolean()}),zxS=/^acc_[0-9a-fA-F]{24}$/,t4S=e.object({"x-account-id":e.string().regex(zxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),n4S=e.object({required:e.boolean()}),s4S=e.object({required:e.boolean()}),ExS=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,o4S=e.object({id:e.stringFormat("resource-id",ExS).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),IxS=/^acc_[0-9a-fA-F]{24}$/,i4S=e.object({"x-account-id":e.string().regex(IxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),a4S=e.object({required:e.boolean()}),DxS=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,r4S=e.object({id:e.stringFormat("resource-id",DxS).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),hxS=/^acc_[0-9a-fA-F]{24}$/,l4S=e.object({"x-account-id":e.string().regex(hxS).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),d4S=e.object({required:e.boolean()}),c4S=e.object({required:e.boolean()}),NxS=/^session_2fa_setup_[a-f0-9]{64}$/,u4S=e.object({token:e.string().regex(NxS)}),p4S=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),RxS=/^session_2fa_setup_[a-f0-9]{64}$/,_xS=/^\d{6}$/,m4S=e.object({token:e.string().regex(RxS),code:e.string().regex(_xS)}),MxS=100,UxS=36,CxS=31536e3,PxS=50,wxS=36,AxS=36,FxS=36,kxS=255,jxS=255,HxS=36,x4S=e.object({recovery_codes:e.array(e.string()),session:e.object({id:e.string().max(MxS),user_id:e.string().max(UxS),ttl:e.number().default(CxS).describe("Token time-to-live in seconds"),scope:e.string().max(PxS).nullish(),entity_id:e.string().max(wxS).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(AxS).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(FxS),email:e.string().max(kxS),name:e.string().max(jxS).nullish(),email_verified:e.boolean(),account_id:e.string().max(HxS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication")}),g4S=e.object({enabled:e.boolean(),has_password:e.boolean(),required:e.boolean(),recovery_codes_remaining:e.number()}),LxS=1024,y4S=e.object({password:e.string().max(LxS).nullish().describe("Current password; required for users who have a password. OAuth-only users must have signed in within ten minutes.")}),O4S=e.object({secret:e.string(),otpauth_uri:e.string(),qr_code:e.string()}),GxS=/^\d{6}$/,v4S=e.object({code:e.string().regex(GxS)}),S4S=e.object({recovery_codes:e.array(e.string())}),KxS=1024,VxS=6,ZxS=32,T4S=e.object({password:e.string().max(KxS).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(VxS).max(ZxS).describe("Six-digit authenticator code or a single-use recovery code.")}),B4S=e.object({enabled:e.literal(false)}),qxS=100,WxS=/^session_2fa_[a-zA-Z0-9]+$/,YxS=6,$xS=32,b4S=e.object({token:e.string().max(qxS).regex(WxS),code:e.string().min(YxS).max($xS).describe("Six-digit authenticator code or a single-use recovery code.")}),JxS=100,XxS=36,QxS=31536e3,egS=50,tgS=36,ngS=36,sgS=36,ogS=255,igS=255,agS=36,f4S=e.object({id:e.string().max(JxS),user_id:e.string().max(XxS),ttl:e.number().default(QxS).describe("Token time-to-live in seconds"),scope:e.string().max(egS).nullish(),entity_id:e.string().max(tgS).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ngS).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(sgS),email:e.string().max(ogS),name:e.string().max(igS).nullish(),email_verified:e.boolean(),account_id:e.string().max(agS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),rgS=86,lgS=86,dgS=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,z4S=e.object({email:e.email(),password:e.string(),shopify_return_url:e.string().min(rgS).max(lgS).regex(dgS).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.")}),cgS=100,ugS=36,pgS=31536e3,mgS=50,xgS=36,ggS=36,ygS=36,OgS=255,vgS=255,SgS=36,E4S=e.object({id:e.string().max(cgS),user_id:e.string().max(ugS),ttl:e.number().default(pgS).describe("Token time-to-live in seconds"),scope:e.string().max(mgS).nullish(),entity_id:e.string().max(xgS).nullish(),created_at:e.iso.datetime({}),impersonator_user_id:e.string().max(ggS).nullish(),updated_at:e.iso.datetime({})}).describe("Access token for authentication").and(e.object({user:e.object({id:e.string().max(ygS),email:e.string().max(OgS),name:e.string().max(vgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(SgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),redirect_origin:e.string().nullish()})).describe("Access token for authentication"),TgS=2,BgS=8,bgS=/[a-z]/,fgS=150,zgS=150,EgS=150,I4S=e.object({email:e.email(),name:e.string().min(TgS).nullish(),password:e.string().min(BgS).regex(bgS),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(l=>Object.keys(l).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(fgS).nullish(),utm_medium:e.string().min(1).max(zgS).nullish(),utm_campaign:e.string().min(1).max(EgS).nullish()}).nullish().describe("Optional campaign parameters (utm_source, utm_medium, utm_campaign) 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 and kept only when it is 1\u2013150 letters, digits, spaces or `_ . - + ~ ( )` and does not look like an email address, URL or secret; invalid values and malformed objects are ignored rather than rejected.")}),IgS=86,DgS=86,hgS=/^[/]shopify[/]apollo#token=[a-f0-9]{64}$/,D4S=e.object({email:e.email(),shopify_return_url:e.string().min(IgS).max(DgS).regex(hgS).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.")}),h4S=e.object({message:e.string()}),NgS=8,RgS=/[a-z]/,N4S=e.object({token:e.string().min(1),password:e.string().min(NgS).regex(RgS)}),R4S=e.object({message:e.string()}),_4S=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.")}))}),_gS=36,MgS=255,UgS=255,CgS=36,M4S=e.object({id:e.string().max(_gS),email:e.string().max(MgS),name:e.string().max(UgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(CgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),PgS=2,U4S=e.object({name:e.string().min(PgS).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.")}),wgS=36,AgS=255,FgS=255,kgS=36,C4S=e.object({id:e.string().max(wgS),email:e.string().max(AgS),name:e.string().max(FgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(kgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),P4S=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.")}),w4S=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"),jgS=36,HgS=255,LgS=255,GgS=36,A4S=e.object({id:e.string().max(jgS),email:e.string().max(HgS),name:e.string().max(LgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(GgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})}),F4S=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.")}),k4S=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"),KgS=36,VgS=255,ZgS=255,qgS=36,j4S=e.object({id:e.string().max(KgS),email:e.string().max(VgS),name:e.string().max(ZgS).nullish(),email_verified:e.boolean(),account_id:e.string().max(qgS).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())]),created_at:e.iso.datetime({}),updated_at:e.iso.datetime({})});var Mt={};W(Mt,{CancelVerifactuRecordBody:()=>r3S,CancelVerifactuRecordHeader:()=>a3S,CancelVerifactuRecordParams:()=>i3S,CancelVerifactuRecordResponse:()=>l3S,CorrectVerifactuRecordBody:()=>s3S,CorrectVerifactuRecordHeader:()=>n3S,CorrectVerifactuRecordParams:()=>t3S,CorrectVerifactuRecordResponse:()=>o3S,GetVerifactuEvidenceHeader:()=>$4S,GetVerifactuEvidenceParams:()=>Y4S,GetVerifactuEvidenceResponse:()=>J4S,GetVerifactuSettingsHeader:()=>H4S,GetVerifactuSettingsResponse:()=>L4S,RetryVerifactuRecordHeader:()=>Q4S,RetryVerifactuRecordParams:()=>X4S,RetryVerifactuRecordResponse:()=>e3S,UpdateVerifactuSettingsBody:()=>K4S,UpdateVerifactuSettingsHeader:()=>G4S,UpdateVerifactuSettingsResponse:()=>V4S,UploadVerifactuCertificateBody:()=>q4S,UploadVerifactuCertificateHeader:()=>Z4S,UploadVerifactuCertificateResponse:()=>W4S,cancelVerifactuRecordBodyReasonMax:()=>n0S,correctVerifactuRecordBodyCorrectionDescriptionMax:()=>XgS,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemRegimeRegExp:()=>e0S,correctVerifactuRecordBodyCorrectionTaxTreatmentsItemTaxIndexMin:()=>QgS,correctVerifactuRecordBodyCorrectionTaxTreatmentsMax:()=>t0S,correctVerifactuRecordBodyReasonMax:()=>JgS,getVerifactuSettingsResponsePendingRecordsMin:()=>WgS,updateVerifactuSettingsResponsePendingRecordsMin:()=>YgS,uploadVerifactuCertificateResponsePendingRecordsMin:()=>$gS});var H4S=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.")}),WgS=0,L4S=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(WgS).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."),G4S=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.")}),K4S=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."),YgS=0,V4S=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(YgS).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."),Z4S=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.")}),q4S=e.object({file:e.custom(l=>typeof File<"u"&&l 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.")}),$gS=0,W4S=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($gS).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."),Y4S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),$4S=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.")}),J4S=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."),X4S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),Q4S=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.")}),e3S=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."),t3S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),n3S=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.")}),JgS=500,XgS=500,QgS=0,e0S=/^\d{2}$/,t0S=12,s3S=e.object({reason:e.string().min(1).max(JgS).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(XgS).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(QgS).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(e0S).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(t0S).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."),o3S=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."),i3S=e.object({id:e.string().min(1).describe("Fiscal record identifier from document.verifactu.record_id.")}),a3S=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.")}),n0S=500,r3S=e.object({reason:e.string().min(1).max(n0S).describe("Operator explanation retained with this fiscal operation.")}).describe("Append an annulment for an unpaid invoice issued in error, retaining the original evidence."),l3S=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 Ut={};W(Ut,{CheckViesBody:()=>d3S,CheckViesResponse:()=>c3S,checkViesBodyCustomerCountryCodeMax:()=>r0S,checkViesBodyCustomerCountryCodeMin:()=>a0S,checkViesBodyIssuerCountryCodeMax:()=>o0S,checkViesBodyIssuerCountryCodeMin:()=>s0S,checkViesBodyIssuerIsTaxSubjectDefault:()=>i0S,checkViesResponseCustomerCountryCodeMax:()=>u0S,checkViesResponseCustomerCountryCodeMin:()=>c0S,checkViesResponseIssuerCountryCodeMax:()=>d0S,checkViesResponseIssuerCountryCodeMin:()=>l0S});var s0S=2,o0S=2,i0S=true,a0S=2,r0S=2,d3S=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(s0S).max(o0S).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:e.boolean().default(i0S).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).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(a0S).max(r0S).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")}),l0S=2,d0S=2,c0S=2,u0S=2,c3S=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(l0S).max(d0S).nullable().describe("Resolved issuer country code"),customer_country_code:e.string().min(c0S).max(u0S).nullable().describe("Resolved customer country code"),vies_valid:e.boolean().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e.string().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:e.boolean().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var Ct={};W(Ct,{CreateWarehouseBody:()=>g3S,CreateWarehouseHeader:()=>x3S,DeleteWarehouseHeader:()=>z3S,DeleteWarehouseParams:()=>f3S,GetWarehouseByIdHeader:()=>O3S,GetWarehouseByIdParams:()=>y3S,GetWarehouseByIdResponse:()=>v3S,GetWarehousesHeader:()=>p3S,GetWarehousesQueryParams:()=>u3S,GetWarehousesResponse:()=>m3S,UpdateWarehouseBody:()=>B3S,UpdateWarehouseHeader:()=>T3S,UpdateWarehouseParams:()=>S3S,UpdateWarehouseResponse:()=>b3S,createWarehouseBodyNameMax:()=>O0S,deleteWarehousePathIdRegExp:()=>D0S,getWarehouseByIdPathIdRegExp:()=>v0S,getWarehouseByIdResponseEntityIdMax:()=>T0S,getWarehouseByIdResponseIdMax:()=>S0S,getWarehouseByIdResponseNameMax:()=>B0S,getWarehousesQueryLimitDefault:()=>p0S,getWarehousesQueryLimitMax:()=>m0S,getWarehousesResponseDataItemEntityIdMax:()=>g0S,getWarehousesResponseDataItemIdMax:()=>x0S,getWarehousesResponseDataItemNameMax:()=>y0S,updateWarehouseBodyNameMax:()=>f0S,updateWarehousePathIdRegExp:()=>b0S,updateWarehouseResponseEntityIdMax:()=>E0S,updateWarehouseResponseIdMax:()=>z0S,updateWarehouseResponseNameMax:()=>I0S});var p0S=10,m0S=100,u3S=e.object({limit:e.number().min(1).max(m0S).default(p0S).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.")}),p3S=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.")}),x0S=36,g0S=36,y0S=200,m3S=e.object({data:e.array(e.object({id:e.string().max(x0S),entity_id:e.string().max(g0S),name:e.string().max(y0S),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")}),x3S=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.")}),O0S=200,g3S=e.object({name:e.string().min(1).max(O0S).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.")}),v0S=/^wh_[0-9a-f]{24}$/,y3S=e.object({id:e.stringFormat("resource-id",v0S).describe("Warehouse identifier (wh_ prefix).")}),O3S=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.")}),S0S=36,T0S=36,B0S=200,v3S=e.object({id:e.string().max(S0S),entity_id:e.string().max(T0S),name:e.string().max(B0S),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."),b0S=/^wh_[0-9a-f]{24}$/,S3S=e.object({id:e.stringFormat("resource-id",b0S).describe("Warehouse identifier (wh_ prefix).")}),T3S=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.")}),f0S=200,B3S=e.object({name:e.string().min(1).max(f0S).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.")}),z0S=36,E0S=36,I0S=200,b3S=e.object({id:e.string().max(z0S),entity_id:e.string().max(E0S),name:e.string().max(I0S),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."),D0S=/^wh_[0-9a-f]{24}$/,f3S=e.object({id:e.stringFormat("resource-id",D0S).describe("Warehouse identifier (wh_ prefix).")}),z3S=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 Pt={};W(Pt,{CreateWebhookBody:()=>I3S,CreateWebhookHeader:()=>E3S,DeleteWebhookHeader:()=>F3S,DeleteWebhookParams:()=>A3S,DeleteWebhookResponse:()=>k3S,GetWebhookByIdHeader:()=>_3S,GetWebhookByIdParams:()=>R3S,GetWebhookByIdResponse:()=>M3S,GetWebhookDeliveriesHeader:()=>V3S,GetWebhookDeliveriesParams:()=>G3S,GetWebhookDeliveriesQueryParams:()=>K3S,GetWebhookDeliveriesResponse:()=>Z3S,GetWebhooksHeader:()=>h3S,GetWebhooksQueryParams:()=>D3S,GetWebhooksResponse:()=>N3S,RotateWebhookSecretHeader:()=>W3S,RotateWebhookSecretParams:()=>q3S,RotateWebhookSecretResponse:()=>Y3S,TestWebhookHeader:()=>H3S,TestWebhookParams:()=>j3S,TestWebhookResponse:()=>L3S,UpdateWebhookBody:()=>P3S,UpdateWebhookHeader:()=>C3S,UpdateWebhookParams:()=>U3S,UpdateWebhookResponse:()=>w3S,createWebhookBodyActiveDefault:()=>R0S,createWebhookBodyDescriptionMax:()=>N0S,createWebhookBodyUrlMax:()=>h0S,deleteWebhookPathIdRegExp:()=>X0S,getWebhookByIdPathIdRegExp:()=>F0S,getWebhookByIdResponseDescriptionMax:()=>L0S,getWebhookByIdResponseEntityIdMax:()=>j0S,getWebhookByIdResponseIdMax:()=>k0S,getWebhookByIdResponseMetadataDefault:()=>G0S,getWebhookByIdResponseUrlMax:()=>H0S,getWebhookDeliveriesPathIdRegExp:()=>xyS,getWebhookDeliveriesQueryLimitDefault:()=>gyS,getWebhookDeliveriesQueryLimitMax:()=>yyS,getWebhookDeliveriesResponseDataItemAttemptMax:()=>IyS,getWebhookDeliveriesResponseDataItemAttemptMin:()=>EyS,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>RyS,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>NyS,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>SyS,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>zyS,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>TyS,getWebhookDeliveriesResponseDataItemIdMax:()=>OyS,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>hyS,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>DyS,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>fyS,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>byS,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>ByS,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>vyS,getWebhooksQueryLimitDefault:()=>_0S,getWebhooksQueryLimitMax:()=>M0S,getWebhooksResponseDataItemDescriptionMax:()=>w0S,getWebhooksResponseDataItemEntityIdMax:()=>C0S,getWebhooksResponseDataItemIdMax:()=>U0S,getWebhooksResponseDataItemMetadataDefault:()=>A0S,getWebhooksResponseDataItemUrlMax:()=>P0S,rotateWebhookSecretPathIdRegExp:()=>_yS,rotateWebhookSecretResponseDescriptionMax:()=>PyS,rotateWebhookSecretResponseEntityIdMax:()=>UyS,rotateWebhookSecretResponseIdMax:()=>MyS,rotateWebhookSecretResponseMetadataDefault:()=>AyS,rotateWebhookSecretResponseSecretMax:()=>wyS,rotateWebhookSecretResponseUrlMax:()=>CyS,testWebhookPathIdRegExp:()=>Q0S,testWebhookResponseAttemptMax:()=>dyS,testWebhookResponseAttemptMin:()=>lyS,testWebhookResponseDurationMsMax:()=>myS,testWebhookResponseDurationMsMin:()=>pyS,testWebhookResponseEntityIdMax:()=>nyS,testWebhookResponseErrorMessageMax:()=>ryS,testWebhookResponseEventTypeMax:()=>syS,testWebhookResponseIdMax:()=>eyS,testWebhookResponseMaxAttemptsMax:()=>uyS,testWebhookResponseMaxAttemptsMin:()=>cyS,testWebhookResponseResponseBodyMax:()=>ayS,testWebhookResponseResponseStatusMax:()=>iyS,testWebhookResponseResponseStatusMin:()=>oyS,testWebhookResponseWebhookIdMax:()=>tyS,updateWebhookBodyDescriptionMax:()=>Z0S,updateWebhookBodyUrlMax:()=>V0S,updateWebhookPathIdRegExp:()=>K0S,updateWebhookResponseDescriptionMax:()=>$0S,updateWebhookResponseEntityIdMax:()=>W0S,updateWebhookResponseIdMax:()=>q0S,updateWebhookResponseMetadataDefault:()=>J0S,updateWebhookResponseUrlMax:()=>Y0S});var E3S=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.")}),h0S=2048,N0S=500,R0S=true,I3S=e.object({url:e.url().max(h0S).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(N0S).optional().describe("Optional description for this webhook"),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).describe("Events that trigger this webhook"),active:e.boolean().default(R0S).describe("Whether webhook is active"),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).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.")}),_0S=10,M0S=100,D3S=e.object({limit:e.number().min(1).max(M0S).default(_0S).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.")}),h3S=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.")}),U0S=36,C0S=36,P0S=2048,w0S=500,A0S={},N3S=e.object({data:e.array(e.object({id:e.string().max(U0S),entity_id:e.string().max(C0S),url:e.string().max(P0S),description:e.string().max(w0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(A0S).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")}),F0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,R3S=e.object({id:e.stringFormat("resource-id",F0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_3S=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.")}),k0S=36,j0S=36,H0S=2048,L0S=500,G0S={},M3S=e.object({id:e.string().max(k0S),entity_id:e.string().max(j0S),url:e.string().max(H0S),description:e.string().max(L0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(G0S).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)"),K0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,U3S=e.object({id:e.stringFormat("resource-id",K0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),C3S=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.")}),V0S=2048,Z0S=500,P3S=e.object({url:e.url().max(V0S).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e.string().max(Z0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])).min(1).optional(),active:e.boolean().optional(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).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.")}),q0S=36,W0S=36,Y0S=2048,$0S=500,J0S={},w3S=e.object({id:e.string().max(q0S),entity_id:e.string().max(W0S),url:e.string().max(Y0S),description:e.string().max($0S).nullish(),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(J0S).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)"),X0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,A3S=e.object({id:e.stringFormat("resource-id",X0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),F3S=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.")}),k3S=e.object({success:e.boolean()}),Q0S=/^[a-z]{3,4}_[0-9a-f]{24}$/,j3S=e.object({id:e.stringFormat("resource-id",Q0S).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),H3S=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.")}),eyS=36,tyS=36,nyS=36,syS=100,oyS=-2147483648,iyS=2147483647,ayS=1e4,ryS=2e3,lyS=-2147483648,dyS=2147483647,cyS=-2147483648,uyS=2147483647,pyS=-2147483648,myS=2147483647,L3S=e.object({id:e.string().max(eyS),webhook_id:e.string().max(tyS),entity_id:e.string().max(nyS),event_type:e.string().max(syS),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(oyS).max(iyS).nullish(),response_body:e.string().max(ayS).nullish(),error_message:e.string().max(ryS).nullish(),attempt:e.number().min(lyS).max(dyS),max_attempts:e.number().min(cyS).max(uyS),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(pyS).max(myS).nullish(),created_at:e.iso.datetime({}),completed_at:e.iso.datetime({}).nullish()}).describe("Webhook delivery attempt record"),xyS=/^[a-z]{3,4}_[0-9a-f]{24}$/,G3S=e.object({id:e.stringFormat("resource-id",xyS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),gyS=10,yyS=100,K3S=e.object({limit:e.number().min(1).max(yyS).default(gyS).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.")}),V3S=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.")}),OyS=36,vyS=36,SyS=36,TyS=100,ByS=-2147483648,byS=2147483647,fyS=1e4,zyS=2e3,EyS=-2147483648,IyS=2147483647,DyS=-2147483648,hyS=2147483647,NyS=-2147483648,RyS=2147483647,Z3S=e.object({data:e.array(e.object({id:e.string().max(OyS),webhook_id:e.string().max(vyS),entity_id:e.string().max(SyS),event_type:e.string().max(TyS),status:e.enum(["pending","success","failed"]),request_body:e.record(e.string(),e.unknown()),response_status:e.number().min(ByS).max(byS).nullish(),response_body:e.string().max(fyS).nullish(),error_message:e.string().max(zyS).nullish(),attempt:e.number().min(EyS).max(IyS),max_attempts:e.number().min(DyS).max(hyS),next_retry_at:e.iso.datetime({}).nullish(),duration_ms:e.number().min(NyS).max(RyS).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")}),_yS=/^[a-z]{3,4}_[0-9a-f]{24}$/,q3S=e.object({id:e.stringFormat("resource-id",_yS).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),W3S=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.")}),MyS=36,UyS=36,CyS=2048,PyS=500,wyS=64,AyS={},Y3S=e.object({id:e.string().max(MyS),entity_id:e.string().max(UyS),url:e.string().max(CyS),description:e.string().max(PyS).nullish(),secret:e.string().max(wyS),events:e.array(e.enum(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.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.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.updated","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored","expense.created","expense.updated","expense.finalized","expense.voided","expense.deleted","e_invoicing.submission.created","e_invoicing.submission.delivered","e_invoicing.submission.failed","e_invoicing.enrollment.verified","e_invoicing.enrollment.rejected","e_invoicing.supplier.onboarded","e_invoicing.supplier.rejected"])),active:e.boolean(),metadata:e.record(e.string(),e.string()).refine(l=>Object.keys(l).length<=50,"Metadata can have maximum 50 properties").default(AyS).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 wt={};W(wt,{CheckWLFeatureParams:()=>X3S,CheckWLFeatureResponse:()=>Q3S,CheckWLLimitParams:()=>eGS,CheckWLLimitResponse:()=>tGS,GetCurrentWLSubscriptionResponse:()=>$3S,GetWLSubscriptionPlansResponse:()=>J3S,UpdateWLSubscriptionBillingEmailBody:()=>nGS,UpdateWLSubscriptionBillingEmailResponse:()=>sGS,getCurrentWLSubscriptionResponseUsageEInvoicingSendCountDefault:()=>FyS,getCurrentWLSubscriptionResponseUsageEInvoicingSendsIncludedDefault:()=>kyS});var FyS=0,kyS=null,$3S=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."),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."),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(FyS).describe("Peppol/e-invoicing sends this period."),e_invoicing_sends_included:e.number().nullish().default(kyS).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"),J3S=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."),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"),X3S=e.object({feature:e.string().describe("Feature slug to check")}),Q3S=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"),eGS=e.object({resource:e.string().describe("Resource type to check (e.g., 'documents')")}),tGS=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"),nGS=e.object({billing_email:e.email().nullable()}),sGS=e.object({billing_email:e.string().nullable()});var At={};W(At,{GetCurrentWhiteLabelResponse:()=>oGS,GetMyWhiteLabelResponse:()=>iGS});var oGS=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"),iGS=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 aGS=125e3,Ft=null,Ne=null,kt=false;function HyS(l){Ft=l;}function jt(l){Ne=l,l==null&&(kt=false);}function rGS(){kt||(kt=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 lGS(){return Ne}function dGS(){if(!Ft)throw new Error("SDK not initialized. Call new SpaceInvoices() first.");return Ft}function cGS(l){if(!l)return {};if(l instanceof Headers){let c={};return l.forEach((x,E)=>{c[E]=x;}),c}if(Array.isArray(l)){let c={};for(let[x,E]of l)c[x]=E;return c}return l}function uGS(l,c){if(c==null||c<=0)return {signal:l??void 0,cleanup:()=>{}};let x=new AbortController,E=()=>{x.abort(l?.reason);};if(l?.aborted)return E(),{signal:x.signal,cleanup:()=>{}};let z=setTimeout(()=>{x.abort(new Error(`SDK request timed out after ${c}ms`));},c),R=()=>{clearTimeout(z),l?.removeEventListener("abort",E);};return l?.addEventListener("abort",E,{once:true}),x.signal.addEventListener("abort",R,{once:true}),{signal:x.signal,cleanup:R}}async function O(l,c){let{timeoutMs:x,sdkConfig:E,...z}=c??{},R=E??dGS(),xe=await Promise.resolve(R.getAccessToken()),ge=`${R.baseUrl}${l}`,ue={...cGS(z.headers)};R.clientName&&Object.assign(ue,Re(R.clientName)),xe&&(ue.Authorization=`Bearer ${xe}`);let Be=ue["x-account-id"]||ue["X-Account-Id"]||R.accountId||null;!Be&&Ne&&(E&&rGS(),Be=Ne),Be&&!ue["x-account-id"]&&!ue["X-Account-Id"]&&(ue["x-account-id"]=Be);let be=uGS(z.signal,x===void 0?R.requestTimeoutMs??aGS:x);try{let Oe=await fetch(ge,{...z,headers:ue,signal:be.signal});Oe.status===401&&R.onUnauthorized&&R.onUnauthorized(Oe);let ze,mES=Oe.headers.get("content-length"),fe=Oe.headers.get("content-type"),xES=Oe.headers.get("content-disposition");if(mES==="0"||Oe.status===204)ze=void 0;else if(fe?.includes("application/pdf")||fe?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||fe?.includes("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")||fe?.includes("text/csv")||fe?.includes("application/octet-stream")||fe?.includes("application/zip")||fe?.includes("application/x-zip-compressed")||fe?.includes("image/"))ze=await Oe.blob();else if(fe?.includes("application/xml")||fe?.includes("text/xml"))ze=xES?.toLowerCase().includes("attachment")?await Oe.blob():await Oe.text();else if(fe?.includes("text/html"))ze=await Oe.text();else try{ze=await Oe.json();}catch{ze=void 0;}return {data:ze,status:Oe.status,headers:Oe.headers}}finally{be.cleanup();}}var pGS=1e3;function mGS(l){if(!l||typeof l!="object"||Array.isArray(l))return false;let c=l;return Array.isArray(c.data)&&!!c.pagination&&typeof c.pagination=="object"&&!Array.isArray(c.pagination)}function xGS(l){return Array.isArray(l)?"a bare array":l==null?String(l):typeof l!="object"?`a ${typeof l}`:Array.isArray(l.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*gGS(l,c,x){let E=x?`listAll(${x})`:"listAll()",z=c?.next_cursor,R=0;for(;;){if(R>=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.`);R++;let xe=z,ge=await l({...c,next_cursor:xe});if(!mGS(ge))throw new Error(`${E} cannot paginate this method: its response is ${xGS(ge)}, 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 ue of ge.data)yield ue;let Se=ge.pagination.next_cursor;if(!Se)return;if(Se===xe)throw new Error(`${E} received the same cursor it just sent (${xe}) after ${R} 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.`);z=Se;}}var yGS=()=>"/account-webhooks",LyS=async(l,c)=>O(yGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),OGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/account-webhooks?${x}`:"/account-webhooks"},GyS=async(l,c)=>O(OGS(l),{...c,method:"GET"}),vGS=l=>`/account-webhooks/${l}`,KyS=async(l,c)=>O(vGS(l),{...c,method:"GET"}),SGS=l=>`/account-webhooks/${l}`,VyS=async(l,c,x)=>O(SGS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),TGS=l=>`/account-webhooks/${l}`,ZyS=async(l,c)=>O(TGS(l),{...c,method:"DELETE"}),BGS=l=>`/account-webhooks/${l}/test`,qyS=async(l,c)=>O(BGS(l),{...c,method:"POST"});var bGS=l=>`/account-webhooks/${l}/rotate-secret`,WyS=async(l,c)=>O(bGS(l),{...c,method:"POST"});async function fGS(l,c){return l(...c)}function $yS(l){if(!l?.entity_id&&!l?.account_id&&!l?.request_id&&!l?.signal&&l?.timeoutMs===void 0&&!l?.sdkConfig)return;let c={};return (l.entity_id||l.account_id||l.request_id)&&(c.headers={...l.entity_id?{"x-entity-id":l.entity_id}:{},...l.account_id?{"x-account-id":l.account_id}:{},...l.request_id?{"X-Request-Id":l.request_id}:{}}),l.signal&&(c.signal=l.signal),l.timeoutMs!==void 0&&(c.timeoutMs=l.timeoutMs),l.sdkConfig&&(c.sdkConfig=l.sdkConfig),c}function v(l,c){let x=async(...z)=>{let R=z[z.length-1],xe=R&&typeof R=="object"&&("entity_id"in R||"account_id"in R||"request_id"in R||"signal"in R||"timeoutMs"in R||"sdkConfig"in R||Object.keys(R).length===0),ge,Se;xe?(ge=z.slice(0,-1),Se=$yS(R)):ge=[...z];let ue=Math.max(0,l.length-1);for(;ge.length<ue;)ge.push(void 0);ge.push(Se);let Be=await fGS(l,ge);if(Be.status>=200&&Be.status<300)return Be.data;let be=new Error(`API error: ${Be.status}`);throw be.status=Be.status,be.data=Be.data,be};return c===void 0?x:Object.assign(((...z)=>{let R=[...z];return R[c]??={},x(...R)}),{__sdkOptionsIndex:c})}function J(l){return Object.assign(async x=>{let{entity_id:E,account_id:z,request_id:R,signal:xe,timeoutMs:ge,sdkConfig:Se,...ue}=x||{},Be=$yS({entity_id:E,account_id:z,request_id:R,signal:xe,timeoutMs:ge,sdkConfig:Se}),be=await l(ue,Be);if(be.status===200)return be.data;let Oe=new Error(`API error: ${be.status}`);throw Oe.status=be.status,Oe.data=be.data,Oe},{__sdkListMethod:true})}function YyS(l){return !!l&&typeof l=="object"&&("entity_id"in l||"account_id"in l||"request_id"in l||"signal"in l||"timeoutMs"in l||"sdkConfig"in l||Object.keys(l).length===0)}function Z(l,c){let x=Object.entries(l).map(([E,z])=>typeof z!="function"?[E,z]:[E,(...R)=>{let xe=c(),ge=R[R.length-1],Se=z;if(Se.__sdkListMethod){let ue=R[0];R[0]=ue&&typeof ue=="object"?{...ue,sdkConfig:xe}:{sdkConfig:xe};}else if(typeof Se.__sdkOptionsIndex=="number"){let ue=R[Se.__sdkOptionsIndex];R[Se.__sdkOptionsIndex]=YyS(ue)?{...ue,sdkConfig:xe}:{sdkConfig:xe};}else YyS(ge)?R[R.length-1]={...ge,sdkConfig:xe}:R.push({sdkConfig:xe});return z(...R)}]);return Object.fromEntries(x)}var Ht={create:v(LyS,1),list:J(GyS),get:v(KyS,1),update:v(VyS,2),delete:v(ZyS,1),testAccountWebhook:v(qyS,1),rotateAccountWebhookSecret:v(WyS,1)};var zGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/activities?${x}`:"/activities"},JyS=async(l,c)=>O(zGS(l),{...c,method:"GET"});var Lt={list:J(JyS)};var EGS=l=>`/advance-invoices/${l}/nav/retry`,XyS=async(l,c)=>O(EGS(l),{...c,method:"POST"}),IGS=l=>`/advance-invoices/${l}/nav/reconcile`,QyS=async(l,c)=>O(IGS(l),{...c,method:"POST"}),DGS=l=>`/advance-invoices/${l}/nav/annulment`,eOS=async(l,c,x)=>O(DGS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),hGS=l=>`/advance-invoices/shareable/${l}`,tOS=async(l,c)=>O(hGS(l),{...c,method:"GET"}),NGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/advance-invoices/shareable/${l}/html?${E}`:`/advance-invoices/shareable/${l}/html`},nOS=async(l,c,x)=>O(NGS(l,c),{...x,method:"GET"}),RGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/advance-invoices/shareable/${l}/pdf?${E}`:`/advance-invoices/shareable/${l}/pdf`},sOS=async(l,c,x)=>O(RGS(l,c),{...x,method:"GET"}),_GS=l=>`/advance-invoices/shareable/${l}/eslog`,oOS=async(l,c)=>O(_GS(l),{...c,method:"GET"}),MGS=()=>"/advance-invoices",iOS=async(l,c)=>O(MGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),UGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/advance-invoices?${x}`:"/advance-invoices"},aOS=async(l,c)=>O(UGS(l),{...c,method:"GET"}),CGS=()=>"/advance-invoices/custom",rOS=async(l,c)=>O(CGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),PGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/advance-invoices/${l}?${E}`:`/advance-invoices/${l}`},lOS=async(l,c,x)=>O(PGS(l,c),{...x,method:"GET"}),wGS=l=>`/advance-invoices/${l}`,dOS=async(l,c,x)=>O(wGS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),AGS=l=>`/advance-invoices/${l}/versions`,cOS=async(l,c)=>O(AGS(l),{...c,method:"GET"}),FGS=(l,c)=>`/advance-invoices/${l}/versions/${c}`,uOS=async(l,c,x)=>O(FGS(l,c),{...x,method:"GET"}),kGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/advance-invoices/render?${x}`:"/advance-invoices/render"},pOS=async(l,c,x)=>O(kGS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),jGS=l=>`/advance-invoices/${l}/void`,mOS=async(l,c,x)=>O(jGS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var Gt={retryAdvanceInvoiceNav:v(XyS,1),reconcileAdvanceInvoiceNav:v(QyS,1),annulAdvanceInvoiceNav:v(eOS,2),getShareableAdvanceInvoice:v(tOS,1),getShareableAdvanceInvoiceHtml:v(nOS,2),getShareableAdvanceInvoicePdf:v(sOS,2),getShareableAdvanceInvoiceEslog:v(oOS,1),create:v(iOS,1),list:J(aOS),createCustom:v(rOS,1),get:v(lOS,2),update:v(dOS,2),getVersions:v(cOS,1),getVersion:v(uOS,2),renderAdvanceInvoicePreview:v(pOS,2),void:v(mOS,2)};var HGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/business-units?${x}`:"/business-units"},xOS=async(l,c)=>O(HGS(l),{...c,method:"GET"}),LGS=()=>"/business-units",gOS=async(l,c)=>O(LGS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),GGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/business-units/${l}?${E}`:`/business-units/${l}`},yOS=async(l,c,x)=>O(GGS(l,c),{...x,method:"GET"}),KGS=l=>`/business-units/${l}`,OOS=async(l,c,x)=>O(KGS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),VGS=l=>`/business-units/${l}`,vOS=async(l,c)=>O(VGS(l),{...c,method:"DELETE"});var Kt={list:J(xOS),create:v(gOS,1),get:v(yOS,2),update:v(OOS,2),delete:v(vOS,1)};var ZGS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/company-registry/search?${x}`:"/company-registry/search"},SOS=async(l,c)=>O(ZGS(l),{...c,method:"GET"}),qGS=()=>"/company-registry/countries",TOS=async l=>O(qGS(),{...l,method:"GET"});var Vt={searchCompanyRegistry:v(SOS,1),list:v(TOS,0)};var WGS=l=>`/credit-notes/${l}/nav/retry`,BOS=async(l,c)=>O(WGS(l),{...c,method:"POST"}),YGS=l=>`/credit-notes/${l}/nav/reconcile`,bOS=async(l,c)=>O(YGS(l),{...c,method:"POST"}),$GS=l=>`/credit-notes/${l}/nav/annulment`,fOS=async(l,c,x)=>O($GS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),JGS=l=>`/credit-notes/shareable/${l}`,zOS=async(l,c)=>O(JGS(l),{...c,method:"GET"}),XGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/credit-notes/shareable/${l}/html?${E}`:`/credit-notes/shareable/${l}/html`},EOS=async(l,c,x)=>O(XGS(l,c),{...x,method:"GET"}),QGS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/credit-notes/shareable/${l}/pdf?${E}`:`/credit-notes/shareable/${l}/pdf`},IOS=async(l,c,x)=>O(QGS(l,c),{...x,method:"GET"}),eKS=l=>`/credit-notes/shareable/${l}/eslog`,DOS=async(l,c)=>O(eKS(l),{...c,method:"GET"}),tKS=l=>`/credit-notes/${l}/ksef/recover`,hOS=async(l,c)=>O(tKS(l),{...c,method:"POST"}),nKS=l=>`/credit-notes/${l}/ksef`,NOS=async(l,c)=>O(nKS(l),{...c,method:"GET"}),sKS=l=>`/credit-notes/${l}/ksef/submit`,ROS=async(l,c)=>O(sKS(l),{...c,method:"POST"}),oKS=l=>`/credit-notes/${l}/ksef/upo`,_OS=async(l,c)=>O(oKS(l),{...c,method:"GET"}),iKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes?${x}`:"/credit-notes"},MOS=async(l,c,x)=>O(iKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),aKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes?${x}`:"/credit-notes"},UOS=async(l,c)=>O(aKS(l),{...c,method:"GET"}),rKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes/custom?${x}`:"/credit-notes/custom"},COS=async(l,c,x)=>O(rKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),lKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/credit-notes/${l}?${E}`:`/credit-notes/${l}`},POS=async(l,c,x)=>O(lKS(l,c),{...x,method:"GET"}),dKS=l=>`/credit-notes/${l}`,wOS=async(l,c,x)=>O(dKS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),cKS=l=>`/credit-notes/${l}/xrechnung`,AOS=async(l,c)=>O(cKS(l),{...c,method:"GET"}),uKS=l=>`/credit-notes/${l}/zugferd`,FOS=async(l,c)=>O(uKS(l),{...c,method:"GET"}),pKS=l=>`/credit-notes/${l}/versions`,kOS=async(l,c)=>O(pKS(l),{...c,method:"GET"}),mKS=(l,c)=>`/credit-notes/${l}/versions/${c}`,jOS=async(l,c,x)=>O(mKS(l,c),{...x,method:"GET"}),xKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/credit-notes/render?${x}`:"/credit-notes/render"},HOS=async(l,c,x)=>O(xKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),gKS=l=>`/credit-notes/${l}/fiscalize`,LOS=async(l,c)=>O(gKS(l),{...c,method:"POST"}),yKS=l=>`/credit-notes/${l}/void`,GOS=async(l,c,x)=>O(yKS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});function KOS(l){let c=v(l);function x(E,z,R){let xe=z&&typeof z=="object"&&["entity_id","account_id","request_id","signal","timeoutMs","sdkConfig"].some(ue=>ue in z),ge=xe?void 0:z,Se=xe?{...z,...R}:R;return c(E,ge??{},Se??{})}return Object.assign(x,{__sdkOptionsIndex:2})}var Zt={retryCreditNoteNav:v(BOS,1),reconcileCreditNoteNav:v(bOS,1),annulCreditNoteNav:v(fOS,2),getShareableCreditNote:v(zOS,1),getShareableCreditNoteHtml:v(EOS,2),getShareableCreditNotePdf:v(IOS,2),getShareableCreditNoteEslog:v(DOS,1),recoverCreditNoteFromKsef:v(hOS,1),getCreditNoteKsefState:v(NOS,1),submitCreditNoteToKsef:v(ROS,1),getCreditNoteKsefUpo:v(_OS,1),create:KOS(MOS),list:J(UOS),createCustom:KOS(COS),get:v(POS,2),update:v(wOS,2),downloadCreditNoteXRechnung:v(AOS,1),downloadCreditNoteZugferd:v(FOS,1),getVersions:v(kOS,1),getVersion:v(jOS,2),renderCreditNotePreview:v(HOS,2),fiscalizeCreditNote:v(LOS,1),void:v(GOS,2)};var OKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/currency/exchange-rate?${x}`:"/currency/exchange-rate"},VOS=async(l,c)=>O(OKS(l),{...c,method:"GET"});var qt={getExchangeRate:v(VOS,1)};var vKS=()=>"/customers",ZOS=async(l,c)=>O(vKS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),SKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/customers?${x}`:"/customers"},qOS=async(l,c)=>O(SKS(l),{...c,method:"GET"}),TKS=l=>`/customers/${l}`,WOS=async(l,c)=>O(TKS(l),{...c,method:"GET"}),BKS=l=>`/customers/${l}`,YOS=async(l,c,x)=>O(BKS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),bKS=l=>`/customers/${l}`,$OS=async(l,c)=>O(bKS(l),{...c,method:"DELETE"}),fKS=l=>`/customers/${l}/restore`,JOS=async(l,c)=>O(fKS(l),{...c,method:"POST"}),zKS=l=>`/customers/${l}/permanent`,XOS=async(l,c)=>O(zKS(l),{...c,method:"DELETE"});var Wt={create:v(ZOS,1),list:J(qOS),get:v(WOS,1),update:v(YOS,2),delete:v($OS,1),restoreCustomer:v(JOS,1),permanentDeleteCustomer:v(XOS,1)};var EKS=l=>`/delivery-notes/shareable/${l}`,QOS=async(l,c)=>O(EKS(l),{...c,method:"GET"}),IKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/delivery-notes/shareable/${l}/html?${E}`:`/delivery-notes/shareable/${l}/html`},evS=async(l,c,x)=>O(IKS(l,c),{...x,method:"GET"}),DKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/delivery-notes/shareable/${l}/pdf?${E}`:`/delivery-notes/shareable/${l}/pdf`},tvS=async(l,c,x)=>O(DKS(l,c),{...x,method:"GET"}),hKS=()=>"/delivery-notes",nvS=async(l,c)=>O(hKS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),NKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/delivery-notes?${x}`:"/delivery-notes"},svS=async(l,c)=>O(NKS(l),{...c,method:"GET"}),RKS=()=>"/delivery-notes/custom",ovS=async(l,c)=>O(RKS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),_KS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/delivery-notes/${l}?${E}`:`/delivery-notes/${l}`},ivS=async(l,c,x)=>O(_KS(l,c),{...x,method:"GET"}),MKS=l=>`/delivery-notes/${l}`,avS=async(l,c,x)=>O(MKS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),UKS=l=>`/delivery-notes/${l}/versions`,rvS=async(l,c)=>O(UKS(l),{...c,method:"GET"}),CKS=(l,c)=>`/delivery-notes/${l}/versions/${c}`,lvS=async(l,c,x)=>O(CKS(l,c),{...x,method:"GET"}),PKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/delivery-notes/render?${x}`:"/delivery-notes/render"},dvS=async(l,c,x)=>O(PKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),wKS=l=>`/delivery-notes/${l}/void`,cvS=async(l,c,x)=>O(wKS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var Yt={getShareableDeliveryNote:v(QOS,1),getShareableDeliveryNoteHtml:v(evS,2),getShareableDeliveryNotePdf:v(tvS,2),create:v(nvS,1),list:J(svS),createCustom:v(ovS,1),get:v(ivS,2),update:v(avS,2),getVersions:v(rvS,1),getVersion:v(lvS,2),renderDeliveryNotePreview:v(dvS,2),void:v(cvS,2)};var AKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/next-number?${x}`:"/documents/next-number"},uvS=async(l,c)=>O(AKS(l),{...c,method:"GET"}),FKS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/calculate?${x}`:"/documents/calculate"},pvS=async(l,c,x)=>O(FKS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),kKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/finalize?${E}`:`/documents/${l}/finalize`},mvS=async(l,c,x,E)=>O(kKS(l,x),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),jKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/fiscalize?${E}`:`/documents/${l}/fiscalize`},xvS=async(l,c,x,E)=>O(jKS(l,x),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(c)}),HKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/register-output?${E}`:`/documents/${l}/register-output`},gvS=async(l,c,x)=>O(HKS(l,c),{...x,method:"POST"}),LKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}?${E}`:`/documents/${l}`},yvS=async(l,c,x)=>O(LKS(l,c),{...x,method:"DELETE"}),GKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/restore?${E}`:`/documents/${l}/restore`},OvS=async(l,c,x)=>O(GKS(l,c),{...x,method:"POST"}),KKS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/permanent?${E}`:`/documents/${l}/permanent`},vvS=async(l,c,x)=>O(KKS(l,c),{...x,method:"DELETE"}),VKS=l=>`/documents/${l}/send`,SvS=async(l,c,x)=>O(VKS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),ZKS=l=>`/documents/${l}/share`,TvS=async(l,c)=>O(ZKS(l),{...c,method:"POST"}),qKS=l=>`/documents/${l}/share`,BvS=async(l,c)=>O(qKS(l),{...c,method:"GET"}),WKS=l=>`/documents/${l}/share`,bvS=async(l,c)=>O(WKS(l),{...c,method:"DELETE"});var $t=v(xvS,3);function YKS(l){return !!l&&typeof l=="object"&&"type"in l}function Jt(l){return !!l&&typeof l=="object"&&("entity_id"in l||"account_id"in l||"request_id"in l||"signal"in l||"timeoutMs"in l||"sdkConfig"in l||Object.keys(l).length===0)}var $KS=async(l,c,x,E)=>{if(Jt(c))return $t(l,void 0,void 0,c);if(YKS(c))return $t(l,void 0,c,x);let z=Jt(x)?void 0:x,R=Jt(x)?x:E;return $t(l,c,z,R)},Xt={getNextNumber:v(uvS,1),calculateDocumentPreview:v(pvS,2),finalizeDocument:v(mvS,3),fiscalizeDocument:$KS,registerDocumentOutput:v(gvS,2),delete:v(yvS,2),restoreDocument:v(OvS,2),permanentDeleteDocument:v(vvS,2),sendDocument:v(SvS,2),shareDocument:v(TvS,1),getShareableId:v(BvS,1),unshareDocument:v(bvS,1)};var JKS=()=>"/e-invoicing/settings",fvS=async l=>O(JKS(),{...l,method:"GET"}),XKS=()=>"/e-invoicing/settings",zvS=async(l,c)=>O(XKS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),QKS=()=>"/e-invoicing/enrollment/sync",EvS=async l=>O(QKS(),{...l,method:"POST"}),eVS=()=>"/e-invoicing/enrollment/verification-link",IvS=async l=>O(eVS(),{...l,method:"POST"}),tVS=()=>"/e-invoicing/enrollment/authorize",DvS=async(l,c)=>O(tVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),nVS=()=>"/e-invoicing/enrollment/disconnect",hvS=async l=>O(nVS(),{...l,method:"POST"}),sVS=()=>"/e-invoicing/france/directory/lookup",NvS=async(l,c)=>O(sVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),oVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/e-invoicing/received-documents?${x}`:"/e-invoicing/received-documents"},RvS=async(l,c)=>O(oVS(l),{...c,method:"GET"}),iVS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/e-invoicing/received-documents/${l}/download?${E}`:`/e-invoicing/received-documents/${l}/download`},_vS=async(l,c,x)=>O(iVS(l,c),{...x,method:"GET"}),aVS=l=>`/e-invoicing/received-documents/${l}/accept`,MvS=async(l,c)=>O(aVS(l),{...c,method:"POST"}),rVS=l=>`/e-invoicing/received-documents/${l}/lifecycle`,UvS=async(l,c,x)=>O(rVS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),lVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/e-invoicing/reporting-records?${x}`:"/e-invoicing/reporting-records"},CvS=async(l,c)=>O(lVS(l),{...c,method:"GET"}),dVS=l=>`/e-invoicing/reporting-records/${l}/retry`,PvS=async(l,c)=>O(dVS(l),{...c,method:"POST"}),cVS=()=>"/e-invoicing/supplier",wvS=async(l,c)=>O(cVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),uVS=()=>"/e-invoicing/supplier",AvS=async l=>O(uVS(),{...l,method:"GET"});var pVS=()=>"/e-invoicing/recipients/check",FvS=async(l,c)=>O(pVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),mVS=()=>"/e-invoicing/customer-search",kvS=async(l,c)=>O(mVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),xVS=l=>`/e-invoicing/documents/${l}/send`,jvS=async(l,c,x)=>O(xVS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),gVS=(l,c)=>`/e-invoicing/send/${l}/${c}`,HvS=async(l,c,x,E)=>O(gVS(l,c),{...E,method:"POST",headers:{"Content-Type":"application/json",...E?.headers},body:JSON.stringify(x)}),yVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/e-invoicing/submissions?${x}`:"/e-invoicing/submissions"},LvS=async(l,c)=>O(yVS(l),{...c,method:"GET"}),OVS=l=>`/e-invoicing/submissions/${l}`,Qt=async(l,c)=>O(OVS(l),{...c,method:"GET"}),vVS=l=>`/e-invoicing/submissions/${l}/retry`,en=async(l,c)=>O(vVS(l),{...c,method:"POST"});var tn={getEInvoicingSubmission:v(Qt,1),retryEInvoicingSubmission:v(en,1),list:v(fvS,0),update:v(zvS,1),syncEInvoicingEnrollment:v(EvS,0),create:v(IvS,0),createEInvoicingEnrollmentAuthorization:v(DvS,1),disconnectEInvoicingEnrollment:v(hvS,0),lookupFranceEInvoicingDirectory:v(NvS,1),listReceivedEInvoices:v(RvS,1),downloadReceivedEInvoice:v(_vS,2),acceptReceivedEInvoice:v(MvS,1),sendReceivedEInvoiceLifecycle:v(UvS,2),listFrenchEReportingRecords:v(CvS,1),retryFrenchEReportingRecord:v(PvS,1),registerEInvoicingSupplier:v(wvS,1),getEInvoicingSupplier:v(AvS,0),checkEInvoicingRecipient:v(FvS,1),searchEInvoicingCustomer:v(kvS,1),sendEInvoicingDocument:v(jvS,2),sendEInvoice:v(HvS,3),listEInvoicingSubmissions:v(LvS,1),get:v(Qt,1),retryEInvoicingSubmissionById:v(en,1)};var SVS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/eslog/${l}/validate?${E}`:`/eslog/${l}/validate`},GvS=async(l,c,x)=>O(SVS(l,c),{...x,method:"POST"}),TVS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/eslog/${l}/download?${E}`:`/eslog/${l}/download`},KvS=async(l,c,x)=>O(TVS(l,c),{...x,method:"GET"});var nn={validate:v(GvS,2),download:v(KvS,2)};var BVS=()=>"/email/send",VvS=async(l,c)=>O(BVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var sn={sendEmail:v(VvS,1)};var bVS=l=>`/entities/${l}/nav`,ZvS=async(l,c)=>O(bVS(l),{...c,method:"GET"}),fVS=l=>`/entities/${l}/nav`,qvS=async(l,c,x)=>O(fVS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),zVS=l=>`/entities/${l}/nav/credentials`,WvS=async(l,c,x)=>O(zVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),EVS=l=>`/entities/${l}/nav/credentials`,YvS=async(l,c)=>O(EVS(l),{...c,method:"DELETE"}),IVS=l=>`/entities/${l}/nav/credentials/verify`,$vS=async(l,c)=>O(IVS(l),{...c,method:"POST"}),DVS=l=>`/entities/${l}/ksef`,JvS=async(l,c)=>O(DVS(l),{...c,method:"GET"}),hVS=l=>`/entities/${l}/ksef`,XvS=async(l,c,x)=>O(hVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),NVS=l=>`/entities/${l}/ksef/credentials`,QvS=async(l,c,x)=>O(NVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),RVS=l=>`/entities/${l}/ksef/credentials`,eSS=async(l,c)=>O(RVS(l),{...c,method:"DELETE"}),_VS=()=>"/entities",tSS=async(l,c)=>O(_VS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),MVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/entities?${x}`:"/entities"},nSS=async(l,c)=>O(MVS(l),{...c,method:"GET"}),UVS=l=>`/entities/${l}`,sSS=async(l,c)=>O(UVS(l),{...c,method:"GET"}),CVS=l=>`/entities/${l}`,oSS=async(l,c,x)=>O(CVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),PVS=l=>`/entities/${l}/enable`,iSS=async(l,c)=>O(PVS(l),{...c,method:"POST"}),wVS=l=>`/entities/${l}/disable`,aSS=async(l,c)=>O(wVS(l),{...c,method:"POST"}),AVS=l=>`/entities/${l}/email-sender`,rSS=async(l,c)=>O(AVS(l),{...c,method:"GET"}),FVS=l=>`/entities/${l}/email-sender`,lSS=async(l,c,x)=>O(FVS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),kVS=l=>`/entities/${l}/email-sender`,dSS=async(l,c)=>O(kVS(l),{...c,method:"DELETE"}),jVS=l=>`/entities/${l}/email-sender/recheck`,cSS=async(l,c)=>O(jVS(l),{...c,method:"POST"});var on={retrieveEntityNavSettings:v(ZvS,1),modifyEntityNavSettings:v(qvS,2),storeEntityNavCredentials:v(WvS,2),removeEntityNavCredentials:v(YvS,1),verifyEntityNavCredentials:v($vS,1),getEntityKsefSetup:v(JvS,1),putEntityKsefSettings:v(XvS,2),putEntityKsefCredential:v(QvS,2),removeEntityKsefCredential:v(eSS,1),create:v(tSS,1),list:J(nSS),get:v(sSS,1),update:v(oSS,2),enableEntity:v(iSS,1),disableEntity:v(aSS,1),getEntityEmailSender:v(rSS,1),putEntityEmailSender:v(lSS,2),deleteEntityEmailSender:v(dSS),recheckEntityEmailSender:v(cSS,1)};var HVS=()=>"/entities/api-keys",uSS=async l=>O(HVS(),{...l,method:"GET"}),LVS=()=>"/entities/api-keys",pSS=async(l,c)=>O(LVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),GVS=l=>`/entities/api-keys/${l}`,mSS=async(l,c)=>O(GVS(l),{...c,method:"DELETE"});var an={listEntityApiKeys:v(uSS,0),create:v(pSS,1),delete:v(mSS,1)};var KVS=()=>"/entities/invitations",xSS=async l=>O(KVS(),{...l,method:"GET"}),VVS=l=>`/entities/invitations/${l}`,gSS=async(l,c)=>O(VVS(l),{...c,method:"GET"}),ZVS=l=>`/entities/invitations/${l}`,ySS=async(l,c)=>O(ZVS(l),{...c,method:"DELETE"}),qVS=l=>`/entities/invitations/${l}/resend`,OSS=async(l,c)=>O(qVS(l),{...c,method:"POST"}),WVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invitations/preview?${x}`:"/invitations/preview"},vSS=async(l,c)=>O(WVS(l),{...c,method:"GET"}),YVS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invitations/accept?${x}`:"/invitations/accept"},SSS=async(l,c,x)=>O(YVS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)});var rn={listEntityInvitations:v(xSS,0),getEntityInvitation:v(gSS,1),cancelEntityInvitation:v(ySS,1),resendEntityInvitation:v(OSS,1),preview:v(vSS,1),acceptEntityInvitation:v(SSS,2)};var $VS=()=>"/stats/query",TSS=async(l,c)=>O($VS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var ln={queryEntityStats:v(TSS,1)};var JVS=()=>"/entities/users",BSS=async l=>O(JVS(),{...l,method:"GET"}),XVS=()=>"/entities/users",bSS=async(l,c)=>O(XVS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),QVS=()=>"/entities/users/access",fSS=async l=>O(QVS(),{...l,method:"GET"}),eZS=l=>`/entities/users/${l}`,zSS=async(l,c,x)=>O(eZS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),tZS=l=>`/entities/users/${l}`,ESS=async(l,c)=>O(tZS(l),{...c,method:"DELETE"}),nZS=l=>`/entities/users/${l}/token`,ISS=async(l,c)=>O(nZS(l),{...c,method:"POST"});var dn={list:v(BSS,0),addEntityUser:v(bSS,1),getAccess:v(fSS,0),update:v(zSS,2),removeEntityUser:v(ESS,1),generateEntityUserToken:v(ISS,1)};var sZS=l=>`/estimates/shareable/${l}`,DSS=async(l,c)=>O(sZS(l),{...c,method:"GET"}),oZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/estimates/shareable/${l}/html?${E}`:`/estimates/shareable/${l}/html`},hSS=async(l,c,x)=>O(oZS(l,c),{...x,method:"GET"}),iZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/estimates/shareable/${l}/pdf?${E}`:`/estimates/shareable/${l}/pdf`},NSS=async(l,c,x)=>O(iZS(l,c),{...x,method:"GET"}),aZS=l=>`/estimates/shareable/${l}/eslog`,RSS=async(l,c)=>O(aZS(l),{...c,method:"GET"}),rZS=()=>"/estimates",_SS=async(l,c)=>O(rZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),lZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/estimates?${x}`:"/estimates"},MSS=async(l,c)=>O(lZS(l),{...c,method:"GET"}),dZS=()=>"/estimates/custom",USS=async(l,c)=>O(dZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),cZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/estimates/${l}?${E}`:`/estimates/${l}`},CSS=async(l,c,x)=>O(cZS(l,c),{...x,method:"GET"}),uZS=l=>`/estimates/${l}`,PSS=async(l,c,x)=>O(uZS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),pZS=l=>`/estimates/${l}/versions`,wSS=async(l,c)=>O(pZS(l),{...c,method:"GET"}),mZS=(l,c)=>`/estimates/${l}/versions/${c}`,ASS=async(l,c,x)=>O(mZS(l,c),{...x,method:"GET"}),xZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/estimates/render?${x}`:"/estimates/render"},FSS=async(l,c,x)=>O(xZS(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)});var cn={getShareableEstimate:v(DSS,1),getShareableEstimateHtml:v(hSS,2),getShareableEstimatePdf:v(NSS,2),getShareableEstimateEslog:v(RSS,1),create:v(_SS,1),list:J(MSS),createCustom:v(USS,1),get:v(CSS,2),update:v(PSS,2),getVersions:v(wSS,1),getVersion:v(ASS,2),renderEstimatePreview:v(FSS,2)};var gZS=()=>"/expenses",kSS=async(l,c)=>O(gZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),yZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/expenses?${x}`:"/expenses"},jSS=async(l,c)=>O(yZS(l),{...c,method:"GET"}),OZS=()=>"/expenses/custom",HSS=async(l,c)=>O(OZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),vZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/expenses/export?${x}`:"/expenses/export"},LSS=async(l,c)=>O(vZS(l),{...c,method:"GET"}),SZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/expenses/report?${x}`:"/expenses/report"},GSS=async(l,c)=>O(SZS(l),{...c,method:"GET"}),TZS=()=>"/expenses/recognition/settings",KSS=async l=>O(TZS(),{...l,method:"GET"}),BZS=()=>"/expenses/recognition/settings",VSS=async(l,c)=>O(BZS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),bZS=()=>"/expenses/recognition/backfill",ZSS=async(l,c)=>O(bZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),fZS=()=>"/expenses/recognitions",qSS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(fZS(),{...c,method:"POST",body:x})},zZS=l=>`/expenses/recognitions/${l}`,WSS=async(l,c)=>O(zZS(l),{...c,method:"GET"}),EZS=l=>`/expenses/recognitions/${l}/retry`,YSS=async(l,c)=>O(EZS(l),{...c,method:"POST"}),IZS=l=>`/expenses/${l}/recognition`,$SS=async(l,c)=>O(IZS(l),{...c,method:"GET"}),DZS=l=>`/expenses/${l}`,JSS=async(l,c)=>O(DZS(l),{...c,method:"GET"}),hZS=l=>`/expenses/${l}`,XSS=async(l,c,x)=>O(hZS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),NZS=l=>`/expenses/${l}`,QSS=async(l,c)=>O(NZS(l),{...c,method:"DELETE"}),RZS=l=>`/expenses/${l}/void`,eTS=async(l,c)=>O(RZS(l),{...c,method:"POST"}),_ZS=l=>`/expenses/${l}/restore`,tTS=async(l,c)=>O(_ZS(l),{...c,method:"POST"}),MZS=l=>`/expenses/${l}/attachments`,nTS=async(l,c,x)=>{let E=new FormData;return c.file!==void 0&&E.append("file",c.file),O(MZS(l),{...x,method:"POST",body:E})},UZS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/expenses/${l}/attachments?${E}`:`/expenses/${l}/attachments`},sTS=async(l,c,x)=>O(UZS(l,c),{...x,method:"GET"}),CZS=(l,c)=>`/expenses/${l}/attachments/${c}`,oTS=async(l,c,x)=>O(CZS(l,c),{...x,method:"DELETE"}),PZS=l=>`/expenses/${l}/payments`,iTS=async(l,c)=>O(PZS(l),{...c,method:"GET"}),wZS=l=>`/expenses/${l}/payments`,aTS=async(l,c,x)=>O(wZS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var un={create:v(kSS,1),list:J(jSS),createCustom:v(HSS,1),exportExpenses:v(LSS,1),getExpenseCategoryReport:v(GSS,1),getRecognitionSettings:v(KSS,0),updateRecognitionSettings:v(VSS,1),backfillExpenseRecognition:v(ZSS,1),createRecognition:v(qSS,1),getRecognition:v(WSS,1),retryRecognition:v(YSS,1),getLatestRecognition:v($SS,1),get:v(JSS,1),update:v(XSS,2),delete:v(QSS,1),void:v(eTS,1),restoreExpense:v(tTS,1),uploadExpenseAttachment:v(nTS,2),getExpenseAttachments:v(sTS,2),deleteExpenseAttachment:v(oTS,2),getExpensePayments:v(iTS,1),createExpensePayment:v(aTS,2)};var AZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export?${x}`:"/documents/export"},rTS=async(l,c)=>O(AZS(l),{...c,method:"GET"}),FZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export/sales-per-item?${x}`:"/documents/export/sales-per-item"},lTS=async(l,c)=>O(FZS(l),{...c,method:"GET"}),kZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export/inventory?${x}`:"/documents/export/inventory"},dTS=async(l,c)=>O(kZS(l),{...c,method:"GET"}),jZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/documents/export/revenue-by-category?${x}`:"/documents/export/revenue-by-category"},cTS=async(l,c)=>O(jZS(l),{...c,method:"GET"}),HZS=()=>"/documents/export/pdf",uTS=async(l,c)=>O(HZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),LZS=l=>`/documents/export/pdf/${l}`,pTS=async(l,c)=>O(LZS(l),{...c,method:"GET"}),GZS=l=>`/documents/export/pdf/${l}/download`,mTS=async(l,c)=>O(GZS(l),{...c,method:"GET"}),KZS=()=>"/documents/export/eslog",xTS=async(l,c)=>O(KZS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),VZS=l=>`/documents/export/eslog/${l}`,gTS=async(l,c)=>O(VZS(l),{...c,method:"GET"}),ZZS=l=>`/documents/export/eslog/${l}/download`,yTS=async(l,c)=>O(ZZS(l),{...c,method:"GET"});var pn={exportDocuments:v(rTS,1),exportSalesPerItem:v(lTS,1),exportInventory:v(dTS,1),exportRevenueByCategory:v(cTS,1),startPdfExport:v(uTS,1),getPdfStatus:v(pTS,1),downloadPdfExport:v(mTS,1),startEslogExport:v(xTS,1),getEslogStatus:v(gTS,1),downloadEslogExport:v(yTS,1)};var qZS=()=>"/files",OTS=async(l,c)=>{let x=new FormData;return l.file!==void 0&&x.append("file",l.file),x.append("category",l.category),l.account_payable_id!==void 0&&x.append("account_payable_id",l.account_payable_id),l.business_unit_id!==void 0&&x.append("business_unit_id",l.business_unit_id),l.expense_id!==void 0&&x.append("expense_id",l.expense_id),O(qZS(),{...c,method:"POST",body:x})},WZS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/files?${x}`:"/files"},vTS=async(l,c)=>O(WZS(l),{...c,method:"GET"}),YZS=l=>`/files/${l}`,STS=async(l,c)=>O(YZS(l),{...c,method:"GET"}),$ZS=l=>`/files/${l}`,TTS=async(l,c)=>O($ZS(l),{...c,method:"DELETE"});var mn={uploadFile:v(OTS,1),list:J(vTS),get:v(STS,1),delete:v(TTS,1)};var JZS=()=>"/fiscalization/fina/settings/certificate",BTS=async(l,c)=>{let x=new FormData;return l.file!==void 0&&x.append("file",l.file),l.passphrase!==void 0&&x.append("passphrase",l.passphrase),O(JZS(),{...c,method:"POST",body:x})},XZS=()=>"/fiscalization/fina/settings/certificate",bTS=async l=>O(XZS(),{...l,method:"GET"}),QZS=()=>"/fiscalization/fina/settings/certificate",fTS=async l=>O(QZS(),{...l,method:"DELETE"});var xn={uploadFinaCertificate:v(BTS,1),getFinaCertificate:v(bTS,0),delete:v(fTS,0)};var eqS=l=>`/fiscalization/fina/premises/${l}/devices`,zTS=async(l,c)=>O(eqS(l),{...c,method:"GET"}),tqS=l=>`/fiscalization/fina/premises/${l}/devices`,ETS=async(l,c,x)=>O(tqS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),nqS=l=>`/fiscalization/fina/devices/${l}`,ITS=async(l,c)=>O(nqS(l),{...c,method:"GET"}),sqS=l=>`/fiscalization/fina/devices/${l}`,DTS=async(l,c,x)=>O(sqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),oqS=l=>`/fiscalization/fina/devices/${l}`,hTS=async(l,c)=>O(oqS(l),{...c,method:"DELETE"});var gn={listFinaDevices:v(zTS,1),registerFinaDevice:v(ETS,2),getFinaDevice:v(ITS,1),update:v(DTS,2),delete:v(hTS,1)};var iqS=()=>"/fiscalization/fina/premises",NTS=async l=>O(iqS(),{...l,method:"GET"}),aqS=()=>"/fiscalization/fina/premises",RTS=async(l,c)=>O(aqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),rqS=l=>`/fiscalization/fina/premises/${l}`,_TS=async(l,c)=>O(rqS(l),{...c,method:"GET"}),lqS=l=>`/fiscalization/fina/premises/${l}`,MTS=async(l,c,x)=>O(lqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),dqS=l=>`/fiscalization/fina/premises/${l}`,UTS=async(l,c)=>O(dqS(l),{...c,method:"DELETE"});var yn={listFinaPremises:v(NTS,0),create:v(RTS,1),getFinaPremise:v(_TS,1),update:v(MTS,2),delete:v(UTS,1)};var cqS=()=>"/fiscalization/fina/settings",CTS=async l=>O(cqS(),{...l,method:"GET"}),uqS=()=>"/fiscalization/fina/settings",PTS=async(l,c)=>O(uqS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var On={list:v(CTS,0),update:v(PTS,1)};var pqS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/financial-categories?${x}`:"/financial-categories"},wTS=async(l,c)=>O(pqS(l),{...c,method:"GET"}),mqS=()=>"/financial-categories",ATS=async(l,c)=>O(mqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),xqS=l=>`/financial-categories/${l}`,FTS=async(l,c,x)=>O(xqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),gqS=l=>`/financial-categories/${l}`,kTS=async(l,c)=>O(gqS(l),{...c,method:"DELETE"}),yqS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/financial-categories/revenue-summary?${x}`:"/financial-categories/revenue-summary"},jTS=async(l,c)=>O(yqS(l),{...c,method:"GET"}),OqS=()=>"/financial-categories/document-items/batch",HTS=async(l,c)=>O(OqS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),vqS=l=>`/financial-categories/document-items/${l}`,LTS=async(l,c,x)=>O(vqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var vn={list:J(wTS),create:v(ATS,1),update:v(FTS,2),delete:v(kTS,1),getRevenueByFinancialCategory:v(jTS,1),updateDocumentItemFinancialCategories:v(HTS,1),updateDocumentItemFinancialCategory:v(LTS,2)};var SqS=()=>"/fiscalization/furs/settings/certificate",GTS=async(l,c)=>{let x=new FormData;return l.file!==void 0&&x.append("file",l.file),l.passphrase!==void 0&&x.append("passphrase",l.passphrase),O(SqS(),{...c,method:"POST",body:x})},TqS=()=>"/fiscalization/furs/settings/certificate",KTS=async l=>O(TqS(),{...l,method:"GET"}),BqS=()=>"/fiscalization/furs/settings/certificate",VTS=async l=>O(BqS(),{...l,method:"DELETE"});var Sn={uploadFursCertificate:v(GTS,1),getFursCertificate:v(KTS,0),delete:v(VTS,0)};var bqS=l=>`/fiscalization/furs/premises/${l}/devices`,ZTS=async(l,c)=>O(bqS(l),{...c,method:"GET"}),fqS=l=>`/fiscalization/furs/premises/${l}/devices`,qTS=async(l,c,x)=>O(fqS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),zqS=l=>`/fiscalization/furs/devices/${l}`,WTS=async(l,c)=>O(zqS(l),{...c,method:"GET"}),EqS=l=>`/fiscalization/furs/devices/${l}`,YTS=async(l,c,x)=>O(EqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var Tn={listFursElectronicDevices:v(ZTS,1),registerFursElectronicDevice:v(qTS,2),getFursElectronicDevice:v(WTS,1),update:v(YTS,2)};var IqS=()=>"/fiscalization/furs/internal-act/report.pdf",$TS=async l=>O(IqS(),{...l,method:"GET"}),DqS=()=>"/fiscalization/furs/internal-act/report.docx",JTS=async l=>O(DqS(),{...l,method:"GET"});var Bn={generateFursInternalActPdf:v($TS,0),generateFursInternalActDocx:v(JTS,0)};var hqS=()=>"/fiscalization/furs/premises",XTS=async l=>O(hqS(),{...l,method:"GET"}),NqS=l=>`/fiscalization/furs/premises/${l}`,QTS=async(l,c)=>O(NqS(l),{...c,method:"GET"}),RqS=l=>`/fiscalization/furs/premises/${l}`,eBS=async(l,c,x)=>O(RqS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),_qS=()=>"/fiscalization/furs/premises/real-estate",tBS=async(l,c)=>O(_qS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),MqS=()=>"/fiscalization/furs/premises/movable",nBS=async(l,c)=>O(MqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),UqS=l=>`/fiscalization/furs/premises/${l}/close`,sBS=async(l,c)=>O(UqS(l),{...c,method:"POST"});var bn={listFursBusinessPremises:v(XTS,0),getFursBusinessPremise:v(QTS,1),update:v(eBS,2),registerFursRealEstatePremise:v(tBS,1),registerFursMovablePremise:v(nBS,1),closeFursBusinessPremise:v(sBS,1)};var CqS=()=>"/fiscalization/furs/settings",oBS=async l=>O(CqS(),{...l,method:"GET"}),PqS=()=>"/fiscalization/furs/settings",iBS=async(l,c)=>O(PqS(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var fn={list:v(oBS,0),update:v(iBS,1)};var wqS=()=>"/health/live",aBS=async l=>O(wqS(),{...l,method:"GET"}),AqS=()=>"/health/ready",rBS=async l=>O(AqS(),{...l,method:"GET"}),FqS=()=>"/health",lBS=async l=>O(FqS(),{...l,method:"GET"});var zn={livenessCheck:v(aBS,0),readinessCheck:v(rBS,0),healthCheck:v(lBS,0)};var kqS=l=>`/invoices/${l}/nav/retry`,dBS=async(l,c)=>O(kqS(l),{...c,method:"POST"}),jqS=l=>`/invoices/${l}/nav/reconcile`,cBS=async(l,c)=>O(jqS(l),{...c,method:"POST"}),HqS=l=>`/invoices/${l}/nav/annulment`,uBS=async(l,c,x)=>O(HqS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),LqS=l=>`/invoices/shareable/${l}`,pBS=async(l,c)=>O(LqS(l),{...c,method:"GET"}),GqS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/invoices/shareable/${l}/html?${E}`:`/invoices/shareable/${l}/html`},mBS=async(l,c,x)=>O(GqS(l,c),{...x,method:"GET"}),KqS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/invoices/shareable/${l}/pdf?${E}`:`/invoices/shareable/${l}/pdf`},xBS=async(l,c,x)=>O(KqS(l,c),{...x,method:"GET"}),VqS=l=>`/invoices/shareable/${l}/eslog`,gBS=async(l,c)=>O(VqS(l),{...c,method:"GET"}),ZqS=l=>`/invoices/${l}/ksef/recover`,yBS=async(l,c)=>O(ZqS(l),{...c,method:"POST"}),qqS=l=>`/invoices/${l}/ksef`,OBS=async(l,c)=>O(qqS(l),{...c,method:"GET"}),WqS=l=>`/invoices/${l}/ksef/submit`,vBS=async(l,c)=>O(WqS(l),{...c,method:"POST"}),YqS=l=>`/invoices/${l}/ksef/upo`,SBS=async(l,c)=>O(YqS(l),{...c,method:"GET"}),$qS=()=>"/invoices",TBS=async(l,c)=>O($qS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),JqS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invoices?${x}`:"/invoices"},BBS=async(l,c)=>O(JqS(l),{...c,method:"GET"}),XqS=()=>"/invoices/custom",bBS=async(l,c)=>O(XqS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),QqS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/invoices/${l}?${E}`:`/invoices/${l}`},fBS=async(l,c,x)=>O(QqS(l,c),{...x,method:"GET"}),e7S=l=>`/invoices/${l}`,zBS=async(l,c,x)=>O(e7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),t7S=l=>`/invoices/${l}/credit-options`,EBS=async(l,c)=>O(t7S(l),{...c,method:"GET"}),n7S=l=>`/invoices/${l}/xrechnung`,IBS=async(l,c)=>O(n7S(l),{...c,method:"GET"}),s7S=l=>`/invoices/${l}/zugferd`,DBS=async(l,c)=>O(s7S(l),{...c,method:"GET"}),o7S=l=>`/invoices/${l}/versions`,hBS=async(l,c)=>O(o7S(l),{...c,method:"GET"}),i7S=(l,c)=>`/invoices/${l}/versions/${c}`,NBS=async(l,c,x)=>O(i7S(l,c),{...x,method:"GET"}),a7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/invoices/render?${x}`:"/invoices/render"},RBS=async(l,c,x)=>O(a7S(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),r7S=l=>`/invoices/${l}/void`,_BS=async(l,c,x)=>O(r7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),l7S=l=>`/invoices/${l}/fiscalize`,MBS=async(l,c)=>O(l7S(l),{...c,method:"POST"}),d7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/html?${E}`:`/documents/${l}/html`},UBS=async(l,c,x)=>O(d7S(l,c),{...x,method:"GET"}),c7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/documents/${l}/pdf?${E}`:`/documents/${l}/pdf`},CBS=async(l,c,x)=>O(c7S(l,c),{...x,method:"GET"});function En(l,c){let x=URL.createObjectURL(l),E=document.createElement("a");E.href=x,E.download=c,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(x);}var PBS=v(CBS,2),u7S=Object.assign(async(l,c,x,E)=>{let z=await PBS(l,x,E);En(z,c);},{__sdkOptionsIndex:3}),In={retryInvoiceNav:v(dBS,1),reconcileInvoiceNav:v(cBS,1),annulInvoiceNav:v(uBS,2),getShareableInvoice:v(pBS,1),getShareableInvoiceHtml:v(mBS,2),getShareableInvoicePdf:v(xBS,2),getShareableInvoiceEslog:v(gBS,1),recoverInvoiceFromKsef:v(yBS,1),getInvoiceKsefState:v(OBS,1),submitInvoiceToKsef:v(vBS,1),getInvoiceKsefUpo:v(SBS,1),create:v(TBS,1),list:J(BBS),createCustom:v(bBS,1),get:v(fBS,2),update:v(zBS,2),getCreditOptions:v(EBS,1),downloadInvoiceXRechnung:v(IBS,1),downloadInvoiceZugferd:v(DBS,1),getVersions:v(hBS,1),getVersion:v(NBS,2),renderInvoicePreview:v(RBS,2),void:v(_BS,2),fiscalizeInvoice:v(MBS,1),renderHtml:v(UBS,2),renderPdf:PBS,downloadPdf:u7S};var p7S=()=>"/items",wBS=async(l,c)=>O(p7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),m7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/items?${x}`:"/items"},ABS=async(l,c)=>O(m7S(l),{...c,method:"GET"}),x7S=()=>"/items/categories",FBS=async l=>O(x7S(),{...l,method:"GET"}),g7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/items/import/template?${x}`:"/items/import/template"},kBS=async(l,c)=>O(g7S(l),{...c,method:"GET"}),y7S=()=>"/items/import/preview",jBS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(y7S(),{...c,method:"POST",body:x})},O7S=()=>"/items/import",HBS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(O7S(),{...c,method:"POST",body:x})},v7S=l=>`/items/${l}`,LBS=async(l,c,x)=>O(v7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),S7S=l=>`/items/${l}`,GBS=async(l,c)=>O(S7S(l),{...c,method:"DELETE"}),T7S=l=>`/items/${l}/restore`,KBS=async(l,c)=>O(T7S(l),{...c,method:"POST"}),B7S=l=>`/items/${l}/permanent`,VBS=async(l,c)=>O(B7S(l),{...c,method:"DELETE"}),b7S=l=>`/items/${l}/inventory`,ZBS=async(l,c)=>O(b7S(l),{...c,method:"GET"}),f7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/items/${l}/inventory/movements?${E}`:`/items/${l}/inventory/movements`},qBS=async(l,c,x)=>O(f7S(l,c),{...x,method:"GET"}),z7S=l=>`/items/${l}/inventory/movements`,WBS=async(l,c,x)=>O(z7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),E7S=(l,c)=>`/items/${l}/inventory/movements/${c}`,YBS=async(l,c,x)=>O(E7S(l,c),{...x,method:"DELETE"});var Dn={create:v(wBS,1),list:J(ABS),categories:v(FBS,0),getItemsImportTemplate:v(kBS,1),preview:v(jBS,1),importItems:v(HBS,1),update:v(LBS,2),delete:v(GBS,1),restoreItem:v(KBS,1),permanentDeleteItem:v(VBS,1),getItemInventory:v(ZBS,1),getItemInventoryMovements:v(qBS,2),createItemInventoryMovement:v(WBS,2),deleteItemInventoryMovement:v(YBS,2)};var I7S=()=>"/legacy-migration/auth",$BS=async(l,c)=>O(I7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),D7S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/legacy-migration/organizations/${l}?${E}`:`/legacy-migration/organizations/${l}`},JBS=async(l,c,x)=>O(D7S(l,c),{...x,method:"GET"}),h7S=()=>"/legacy-migration/jobs",XBS=async(l,c)=>O(h7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),N7S=()=>"/legacy-migration/jobs",QBS=async l=>O(N7S(),{...l,method:"GET"}),R7S=l=>`/legacy-migration/jobs/${l}`,ebS=async(l,c)=>O(R7S(l),{...c,method:"GET"});var hn={legacyMigrationAuth:v($BS,1),getLegacyMigrationOrganization:v(JBS,2),create:v(XBS,1),listMigrationJobs:v(QBS,0),getMigrationJob:v(ebS,1)};var _7S=()=>"/locale/detect",tbS=async l=>O(_7S(),{...l,method:"GET"});var Nn={detectLocale:v(tbS,0)};var M7S=()=>"/order-integrations/shopify/authorize",nbS=async(l,c)=>O(M7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),U7S=()=>"/order-integrations/woocommerce/authorize",sbS=async(l,c)=>O(U7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),C7S=()=>"/order-integrations/shopify/resume-install",obS=async(l,c)=>O(C7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),P7S=l=>`/order-integrations/${l}/promote-shopify-billing`,ibS=async(l,c)=>O(P7S(l),{...c,method:"POST"}),w7S=l=>`/order-integrations/${l}/sync-shopify`,abS=async(l,c,x)=>O(w7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),A7S=l=>`/order-integrations/${l}/sync`,rbS=async(l,c,x)=>O(A7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),F7S=()=>"/order-integrations/custom/connect",lbS=async(l,c)=>O(F7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),k7S=l=>`/order-integrations/${l}/custom/rotate-secret`,dbS=async(l,c)=>O(k7S(l),{...c,method:"POST"}),j7S=l=>`/order-integrations/${l}/orders`,cbS=async(l,c,x)=>O(j7S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),H7S=()=>"/order-integrations",ubS=async(l,c)=>O(H7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),L7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/order-integrations?${x}`:"/order-integrations"},pbS=async(l,c)=>O(L7S(l),{...c,method:"GET"}),G7S=l=>`/order-integrations/${l}`,mbS=async(l,c)=>O(G7S(l),{...c,method:"GET"}),K7S=l=>`/order-integrations/${l}`,xbS=async(l,c,x)=>O(K7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),V7S=l=>`/order-integrations/${l}`,gbS=async(l,c)=>O(V7S(l),{...c,method:"DELETE"});var Rn={authorizeShopify:v(nbS,1),authorizeWooCommerce:v(sbS,1),resumeShopifyInstall:v(obS,1),promoteShopifyBilling:v(ibS,1),syncShopifyOrders:v(abS,2),syncOrderIntegration:v(rbS,2),connectCustomStore:v(lbS,1),rotateCustomStoreSecret:v(dbS,1),pushCustomStoreOrder:v(cbS,2),create:v(ubS,1),list:J(pbS),get:v(mbS,1),update:v(xbS,2),delete:v(gbS,1)};var Z7S=()=>"/orders",ybS=async(l,c)=>O(Z7S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),q7S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/orders?${x}`:"/orders"},ObS=async(l,c)=>O(q7S(l),{...c,method:"GET"}),W7S=l=>`/orders/${l}`,vbS=async(l,c)=>O(W7S(l),{...c,method:"GET"}),Y7S=l=>`/orders/${l}`,SbS=async(l,c,x)=>O(Y7S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),$7S=l=>`/orders/${l}`,TbS=async(l,c)=>O($7S(l),{...c,method:"DELETE"}),J7S=l=>`/orders/${l}/process`,BbS=async(l,c)=>O(J7S(l),{...c,method:"POST"}),X7S=l=>`/orders/${l}/cancel`,bbS=async(l,c)=>O(X7S(l),{...c,method:"POST"}),Q7S=l=>`/orders/${l}/reissue`,fbS=async(l,c)=>O(Q7S(l),{...c,method:"POST"});var _n={create:v(ybS,1),list:J(ObS),get:v(vbS,1),update:v(SbS,2),delete:v(TbS,1),processOrder:v(BbS,1),cancelOrder:v(bbS,1),reissueOrder:v(fbS,1)};var eWS=()=>"/payment-reminders/send",zbS=async(l,c)=>O(eWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),tWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/payment-reminders?${x}`:"/payment-reminders"},EbS=async(l,c)=>O(tWS(l),{...c,method:"GET"});var Mn={sendPaymentReminder:v(zbS,1),list:J(EbS)};var nWS=()=>"/payments",IbS=async(l,c)=>O(nWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),sWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/payments?${x}`:"/payments"},DbS=async(l,c)=>O(sWS(l),{...c,method:"GET"}),oWS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/payments/${l}?${E}`:`/payments/${l}`},hbS=async(l,c,x)=>O(oWS(l,c),{...x,method:"GET"}),iWS=l=>`/payments/${l}`,NbS=async(l,c,x)=>O(iWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),aWS=l=>`/payments/${l}`,RbS=async(l,c)=>O(aWS(l),{...c,method:"DELETE"}),rWS=l=>`/payments/${l}/restore`,_bS=async(l,c)=>O(rWS(l),{...c,method:"POST"}),lWS=l=>`/payments/${l}/permanent`,MbS=async(l,c)=>O(lWS(l),{...c,method:"DELETE"});var Un={create:v(IbS,1),list:J(DbS),get:v(hbS,2),update:v(NbS,2),delete:v(RbS,1),restorePayment:v(_bS,1),permanentDeletePayment:v(MbS,1)};var dWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/tables?${x}`:"/pos/tables"},UbS=async(l,c)=>O(dWS(l),{...c,method:"GET"}),cWS=()=>"/pos/tables",CbS=async(l,c)=>O(cWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),uWS=l=>`/pos/tables/${l}`,PbS=async(l,c,x)=>O(uWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),pWS=l=>`/pos/tables/${l}`,wbS=async(l,c)=>O(pWS(l),{...c,method:"DELETE"}),mWS=l=>`/pos/tabs/${l}/items`,AbS=async(l,c,x)=>O(mWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),xWS=l=>`/pos/tabs/${l}/claim`,FbS=async(l,c,x)=>O(xWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),gWS=l=>`/pos/tabs/${l}/release`,kbS=async(l,c,x)=>O(gWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),yWS=l=>`/pos/tabs/${l}/close`,jbS=async(l,c,x)=>O(yWS(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),OWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/tabs?${x}`:"/pos/tabs"},HbS=async(l,c)=>O(OWS(l),{...c,method:"GET"}),vWS=()=>"/pos/tabs",LbS=async(l,c)=>O(vWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),SWS=l=>`/pos/tabs/${l}`,GbS=async(l,c)=>O(SWS(l),{...c,method:"GET"}),TWS=l=>`/pos/tabs/${l}`,KbS=async(l,c,x)=>O(TWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),BWS=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/pos/tabs/${l}?${E}`:`/pos/tabs/${l}`},VbS=async(l,c,x)=>O(BWS(l,c),{...x,method:"DELETE"}),bWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/daily/export?${x}`:"/pos/reports/daily/export"},ZbS=async(l,c)=>O(bWS(l),{...c,method:"GET"}),fWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/monthly/export?${x}`:"/pos/reports/monthly/export"},qbS=async(l,c)=>O(fWS(l),{...c,method:"GET"}),zWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/daily?${x}`:"/pos/reports/daily"},WbS=async(l,c)=>O(zWS(l),{...c,method:"GET"}),EWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/pos/reports/monthly?${x}`:"/pos/reports/monthly"},YbS=async(l,c)=>O(EWS(l),{...c,method:"GET"}),IWS=()=>"/pos/operators",$bS=async l=>O(IWS(),{...l,method:"GET"}),DWS=()=>"/pos/operators/enrol",JbS=async(l,c)=>O(DWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),hWS=()=>"/pos/operators/switch",XbS=async(l,c)=>O(hWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),NWS=l=>`/pos/operators/${l}/pin`,QbS=async(l,c,x)=>O(NWS(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),RWS=l=>`/pos/operators/${l}/pin`,efS=async(l,c)=>O(RWS(l),{...c,method:"DELETE"});var _WS=v(VbS,2),Cn={listTables:J(UbS),createTable:v(CbS,1),updateTable:v(PbS,2),deleteTable:v(wbS,1),appendTabItems:v(AbS,2),claimTab:v(FbS,2),releaseTab:v(kbS,2),closeTab:v(jbS,2),listTabs:J(HbS),createTab:v(LbS,1),getTab:v(GbS,1),updateTab:v(KbS,2),cancelTab:Object.assign((...l)=>_WS(l[0],l[1]??{},l[2]),{__sdkOptionsIndex:2}),exportPosDailyReport:v(ZbS,1),exportPosMonthlyReport:v(qbS,1),dailyReport:v(WbS,1),getPosMonthlyReport:v(YbS,1),listOperators:v($bS,0),enrolPosOperator:v(JbS,1),switchOperator:v(XbS,1),setOperatorPin:v(QbS,2),clearOperatorPin:v(efS,1)};var MWS=()=>"/fiscalization/pt/atcud-series",tfS=async(l,c)=>O(MWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),UWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/fiscalization/pt/atcud-series?${x}`:"/fiscalization/pt/atcud-series"},nfS=async(l,c)=>O(UWS(l),{...c,method:"GET"}),CWS=l=>`/fiscalization/pt/atcud-series/${l}`,sfS=async(l,c)=>O(CWS(l),{...c,method:"GET"}),PWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/fiscalization/pt/atcud-series/active?${x}`:"/fiscalization/pt/atcud-series/active"},ofS=async(l,c)=>O(PWS(l),{...c,method:"POST"}),wWS=l=>`/fiscalization/pt/atcud-series/${l}/retire`,ifS=async(l,c)=>O(wWS(l),{...c,method:"POST"});var Pn={create:v(tfS,1),list:J(nfS),get:v(sfS,1),getActive:v(ofS,1),retirePtAtcudSeries:v(ifS,1)};var AWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/fiscalization/pt/saft/report?${x}`:"/fiscalization/pt/saft/report"},afS=async(l,c)=>O(AWS(l),{...c,method:"GET"});var wn={generateReport:v(afS,1)};var FWS=()=>"/recurring-invoices",rfS=async(l,c)=>O(FWS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),kWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/recurring-invoices?${x}`:"/recurring-invoices"},lfS=async(l,c)=>O(kWS(l),{...c,method:"GET"}),jWS=l=>`/recurring-invoices/${l}`,dfS=async(l,c)=>O(jWS(l),{...c,method:"GET"}),HWS=l=>`/recurring-invoices/${l}`,cfS=async(l,c,x)=>O(HWS(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),LWS=l=>`/recurring-invoices/${l}`,ufS=async(l,c)=>O(LWS(l),{...c,method:"DELETE"}),GWS=l=>`/recurring-invoices/${l}/restore`,pfS=async(l,c)=>O(GWS(l),{...c,method:"POST"}),KWS=l=>`/recurring-invoices/${l}/permanent`,mfS=async(l,c)=>O(KWS(l),{...c,method:"DELETE"}),VWS=l=>`/recurring-invoices/${l}/pause`,xfS=async(l,c)=>O(VWS(l),{...c,method:"POST"}),ZWS=l=>`/recurring-invoices/${l}/resume`,gfS=async(l,c)=>O(ZWS(l),{...c,method:"POST"}),qWS=l=>`/recurring-invoices/${l}/trigger`,yfS=async(l,c)=>O(qWS(l),{...c,method:"POST"});var An={create:v(rfS,1),list:J(lfS),get:v(dfS,1),update:v(cfS,2),delete:v(ufS,1),restoreRecurringInvoice:v(pfS,1),permanentDeleteRecurringInvoice:v(mfS,1),pauseRecurringInvoice:v(xfS,1),resumeRecurringInvoice:v(gfS,1),triggerRecurringInvoice:v(yfS,1)};var WWS=()=>"/revenue-recognition/settings",OfS=async l=>O(WWS(),{...l,method:"GET"}),YWS=()=>"/revenue-recognition/settings",vfS=async(l,c)=>O(YWS(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),$WS=()=>"/revenue-recognition/backfill",SfS=async(l,c)=>O($WS(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),JWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/revenue-recognition/report?${x}`:"/revenue-recognition/report"},TfS=async(l,c)=>O(JWS(l),{...c,method:"GET"}),XWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/revenue-recognition/details?${x}`:"/revenue-recognition/details"},BfS=async(l,c)=>O(XWS(l),{...c,method:"GET"}),QWS=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/revenue-recognition/lines?${x}`:"/revenue-recognition/lines"},bfS=async(l,c)=>O(QWS(l),{...c,method:"GET"}),e6S=l=>`/revenue-recognition/documents/${l}`,ffS=async(l,c)=>O(e6S(l),{...c,method:"GET"});var Fn={getSettings:v(OfS,0),updateSettings:v(vfS,1),backfill:v(SfS,1),getReport:v(TfS,1),getDetails:v(BfS,1),listLines:v(bfS,1),getDocumentSchedule:v(ffS,1)};var t6S=()=>"/stripe-app/marketplace-authorize",zfS=async(l,c)=>O(t6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),n6S=()=>"/stripe-app/connect",EfS=async(l,c)=>O(n6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),s6S=()=>"/stripe-app/entity-connection",IfS=async l=>O(s6S(),{...l,method:"GET"}),o6S=()=>"/stripe-app/entity-connection",DfS=async l=>O(o6S(),{...l,method:"DELETE"}),i6S=()=>"/stripe-app/entity-settings",hfS=async l=>O(i6S(),{...l,method:"GET"}),a6S=()=>"/stripe-app/entity-settings",NfS=async(l,c)=>O(a6S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var kn={stripeAppMarketplaceAuthorize:v(zfS,1),stripeAppConnect:v(EfS,1),stripeAppEntityGetConnection:v(IfS,0),stripeAppEntityDisconnect:v(DfS,0),stripeAppEntityGetSettings:v(hfS,0),stripeAppEntityUpdateSettings:v(NfS,1)};var r6S=()=>"/subscriptions",RfS=async l=>O(r6S(),{...l,method:"GET"}),l6S=()=>"/subscriptions/spending-limit",_fS=async(l,c)=>O(l6S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),d6S=()=>"/subscriptions/check-entity-limit",MfS=async l=>O(d6S(),{...l,method:"GET"});var jn={getCurrent:v(RfS,0),update:v(_fS,1),checkEntityLimit:v(MfS,0)};var c6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/tax-rate-estimates/us?${x}`:"/tax-rate-estimates/us"},UfS=async(l,c)=>O(c6S(l),{...c,method:"GET"});var Hn={listUsTaxRateEstimates:v(UfS,1)};var u6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/tax-reports/kir?${x}`:"/tax-reports/kir"},CfS=async(l,c)=>O(u6S(l),{...c,method:"POST"}),p6S=()=>"/tax-reports/si/profile",PfS=async l=>O(p6S(),{...l,method:"GET"}),m6S=()=>"/tax-reports/si/profile",wfS=async(l,c)=>O(m6S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),x6S=()=>"/tax-reports/si/yearly/normirani/review",AfS=async(l,c)=>O(x6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),g6S=()=>"/tax-reports/si/yearly/normirani/export",FfS=async(l,c)=>O(g6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),y6S=()=>"/tax-reports/si/accounting/vod/export",kfS=async(l,c)=>O(y6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),O6S=()=>"/tax-reports/si/accounting/minimax/export",jfS=async(l,c)=>O(O6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),v6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/tax-reports/accounting/quickbooks/export?${x}`:"/tax-reports/accounting/quickbooks/export"},HfS=async(l,c)=>O(v6S(l),{...c,method:"GET"});var Ln={generateKirExport:v(CfS,1),getSloveniaTaxProfile:v(PfS,0),updateSloveniaTaxProfile:v(wfS,1),reviewSloveniaYearlyNormiraniReport:v(AfS,1),exportSloveniaYearlyNormiraniReport:v(FfS,1),exportSloveniaVodXml:v(kfS,1),exportSloveniaMinimaxXml:v(jfS,1),exportQuickbooksCsv:v(HfS,1)};var S6S=()=>"/taxes",LfS=async(l,c)=>O(S6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),T6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/taxes?${x}`:"/taxes"},GfS=async(l,c)=>O(T6S(l),{...c,method:"GET"}),B6S=l=>`/taxes/${l}`,KfS=async(l,c,x)=>O(B6S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),b6S=l=>`/taxes/${l}`,VfS=async(l,c,x)=>O(b6S(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),f6S=l=>`/taxes/${l}`,ZfS=async(l,c)=>O(f6S(l),{...c,method:"DELETE"}),z6S=l=>`/taxes/${l}/restore`,qfS=async(l,c)=>O(z6S(l),{...c,method:"POST"}),E6S=l=>`/taxes/${l}/permanent`,WfS=async(l,c)=>O(E6S(l),{...c,method:"DELETE"});var Gn={create:v(LfS,1),list:J(GfS),update:v(KfS,2),replaceTax:v(VfS,2),delete:v(ZfS,1),restoreTax:v(qfS,1),permanentDeleteTax:v(WfS,1)};var I6S=()=>"/fiscalization/ticketbai/settings",YfS=async l=>O(I6S(),{...l,method:"GET"}),D6S=()=>"/fiscalization/ticketbai/settings",$fS=async(l,c)=>O(D6S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),h6S=()=>"/fiscalization/ticketbai/settings/certificate",JfS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),x.append("passphrase",l.passphrase),O(h6S(),{...c,method:"POST",body:x})},N6S=l=>`/fiscalization/ticketbai/records/${l}`,XfS=async(l,c)=>O(N6S(l),{...c,method:"GET"}),R6S=l=>`/fiscalization/ticketbai/records/${l}/xml`,QfS=async(l,c)=>O(R6S(l),{...c,method:"GET"}),_6S=l=>`/fiscalization/ticketbai/records/${l}/retry`,ezS=async(l,c)=>O(_6S(l),{...c,method:"POST"}),M6S=l=>`/fiscalization/ticketbai/records/${l}/reconcile`,tzS=async(l,c)=>O(M6S(l),{...c,method:"POST"});var Kn={getSettings:v(YfS,0),updateSettings:v($fS,1),uploadCertificate:v(JfS,1),getRecord:v(XfS,1),downloadRecordXml:v(QfS,1),retryRecord:v(ezS,1),reconcileRecord:v(tzS,1)};var U6S=()=>"/transaction-type/check",nzS=async(l,c)=>O(U6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var Vn={checkTransactionType:v(nzS,1)};var C6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/travel-orders?${x}`:"/travel-orders"},szS=async(l,c)=>O(C6S(l),{...c,method:"GET"}),P6S=()=>"/travel-orders",ozS=async(l,c)=>O(P6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),w6S=()=>"/travel-orders/preview",izS=async(l,c)=>O(w6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),A6S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/travel-orders/render?${x}`:"/travel-orders/render"},azS=async(l,c,x)=>O(A6S(c),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(l)}),F6S=()=>"/travel-orders/route-distance",rzS=async(l,c)=>O(F6S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),k6S=l=>`/travel-orders/${l}`,lzS=async(l,c)=>O(k6S(l),{...c,method:"GET"}),j6S=l=>`/travel-orders/${l}`,dzS=async(l,c,x)=>O(j6S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),H6S=l=>`/travel-orders/${l}`,czS=async(l,c)=>O(H6S(l),{...c,method:"DELETE"}),L6S=l=>`/travel-orders/${l}/approve`,uzS=async(l,c)=>O(L6S(l),{...c,method:"POST"}),G6S=l=>`/travel-orders/${l}/settle`,pzS=async(l,c)=>O(G6S(l),{...c,method:"POST"}),K6S=l=>`/travel-orders/${l}/reopen`,mzS=async(l,c,x)=>O(K6S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),V6S=l=>`/travel-orders/${l}/cancel`,xzS=async(l,c)=>O(V6S(l),{...c,method:"POST"}),Z6S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/travel-orders/${l}/pdf?${E}`:`/travel-orders/${l}/pdf`},gzS=async(l,c,x)=>O(Z6S(l,c),{...x,method:"GET"}),q6S=(l,c)=>{let x=new URLSearchParams;Object.entries(c||{}).forEach(([z,R])=>{R!==void 0&&x.append(z,R===null?"null":R.toString());});let E=x.toString();return E.length>0?`/travel-orders/${l}/html?${E}`:`/travel-orders/${l}/html`},yzS=async(l,c,x)=>O(q6S(l,c),{...x,method:"GET"});var Zn={list:J(szS),create:v(ozS,1),preview:v(izS,1),renderTravelOrderPreview:v(azS,2),calculateTravelOrderRouteDistance:v(rzS,1),get:v(lzS,1),update:v(dzS,2),delete:v(czS,1),approveTravelOrder:v(uzS,1),settleTravelOrder:v(pzS,1),reopenTravelOrder:v(mzS,2),cancelTravelOrder:v(xzS,1),renderPdf:v(gzS,2),renderHtml:v(yzS,2)};var he="https://eu.spaceinvoices.com";var W6S=l=>`/documents/${l}/ujp`,OzS=async(l,c)=>O(W6S(l),{...c,method:"GET"});var qn={download:v(OzS,1)};var Y6S=()=>"/upload/image",vzS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),O(Y6S(),{...c,method:"POST",body:x})};var Wn={uploadImage:v(vzS,1)};var $6S=()=>"/accounts/two-factor-policy",SzS=async l=>O($6S(),{...l,method:"GET"}),J6S=()=>"/accounts/two-factor-policy",TzS=async(l,c)=>O(J6S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),X6S=l=>`/entities/${l}/two-factor-policy`,BzS=async(l,c)=>O(X6S(l),{...c,method:"GET"}),Q6S=l=>`/entities/${l}/two-factor-policy`,bzS=async(l,c,x)=>O(Q6S(l),{...x,method:"PUT",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),e9S=()=>"/users/two-factor/setup",fzS=async(l,c)=>O(e9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),t9S=()=>"/users/two-factor/enable",zzS=async(l,c)=>O(t9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),n9S=()=>"/users/me/two-factor",EzS=async l=>O(n9S(),{...l,method:"GET"}),s9S=()=>"/users/me/two-factor/setup",IzS=async(l,c)=>O(s9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),o9S=()=>"/users/me/two-factor/enable",DzS=async(l,c)=>O(o9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),i9S=()=>"/users/me/two-factor/disable",hzS=async(l,c)=>O(i9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),a9S=()=>"/users/two-factor/verify",NzS=async(l,c)=>O(a9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),r9S=()=>"/users/login",RzS=async(l,c)=>O(r9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),l9S=()=>"/users/signup",_zS=async(l,c)=>O(l9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),d9S=()=>"/users/password-reset",MzS=async(l,c)=>O(d9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),c9S=()=>"/users/password-reset/confirm",UzS=async(l,c)=>O(c9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),u9S=()=>"/users/me/accounts",CzS=async l=>O(u9S(),{...l,method:"GET"}),p9S=()=>"/users/me",PzS=async l=>O(p9S(),{...l,method:"GET"}),m9S=()=>"/users/me",wzS=async(l,c)=>O(m9S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),x9S=()=>"/users/me/account-deletion",AzS=async l=>O(x9S(),{...l,method:"POST"}),g9S=()=>"/users/me/settings/furs",FzS=async(l,c)=>O(g9S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),y9S=()=>"/users/me/settings/fina",kzS=async(l,c)=>O(y9S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var Yn={getAccountTwoFactorPolicy:v(SzS,0),updateAccountTwoFactorPolicy:v(TzS,1),getEntityTwoFactorPolicy:v(BzS,1),updateEntityTwoFactorPolicy:v(bzS,2),setupRequiredTwoFactor:v(fzS,1),enableRequiredTwoFactor:v(zzS,1),getTwoFactorConfiguration:v(EzS,0),setupTwoFactor:v(IzS,1),enableTwoFactor:v(DzS,1),disableTwoFactor:v(hzS,1),verifyTwoFactor:v(NzS,1),login:v(RzS,1),signup:v(_zS,1),requestPasswordReset:v(MzS,1),confirmPasswordReset:v(UzS,1),listMyAccounts:v(CzS,0),getMe:v(PzS,0),update:v(wzS,1),requestAccountDeletion:v(AzS,0),updateFursSettings:v(FzS,1),updateFinaSettings:v(kzS,1)};var O9S=()=>"/fiscalization/verifactu/settings",jzS=async l=>O(O9S(),{...l,method:"GET"}),v9S=()=>"/fiscalization/verifactu/settings",HzS=async(l,c)=>O(v9S(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),S9S=()=>"/fiscalization/verifactu/certificate",LzS=async(l,c)=>{let x=new FormData;return x.append("file",l.file),x.append("passphrase",l.passphrase),O(S9S(),{...c,method:"POST",body:x})},T9S=l=>`/fiscalization/verifactu/records/${l}`,GzS=async(l,c)=>O(T9S(l),{...c,method:"GET"}),B9S=l=>`/fiscalization/verifactu/records/${l}/retry`,KzS=async(l,c)=>O(B9S(l),{...c,method:"POST"}),b9S=l=>`/fiscalization/verifactu/records/${l}/correct`,VzS=async(l,c,x)=>O(b9S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),f9S=l=>`/fiscalization/verifactu/records/${l}/cancel`,ZzS=async(l,c,x)=>O(f9S(l),{...x,method:"POST",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)});var $n={getSettings:v(jzS,0),updateSettings:v(HzS,1),uploadCertificate:v(LzS,1),getEvidence:v(GzS,1),retryRecord:v(KzS,1),correctRecord:v(VzS,2),cancelRecord:v(ZzS,2)};var z9S=()=>"/vies/check",qzS=async(l,c)=>O(z9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var Jn={checkVies:v(qzS,1)};var E9S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/warehouses?${x}`:"/warehouses"},WzS=async(l,c)=>O(E9S(l),{...c,method:"GET"}),I9S=()=>"/warehouses",YzS=async(l,c)=>O(I9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),D9S=l=>`/warehouses/${l}`,$zS=async(l,c)=>O(D9S(l),{...c,method:"GET"}),h9S=l=>`/warehouses/${l}`,JzS=async(l,c,x)=>O(h9S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),N9S=l=>`/warehouses/${l}`,XzS=async(l,c)=>O(N9S(l),{...c,method:"DELETE"});var Xn={list:J(WzS),create:v(YzS,1),get:v($zS,1),update:v(JzS,2),delete:v(XzS,1)};var R9S=()=>"/webhooks",QzS=async(l,c)=>O(R9S(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)}),_9S=l=>{let c=new URLSearchParams;Object.entries(l||{}).forEach(([E,z])=>{z!==void 0&&c.append(E,z===null?"null":z.toString());});let x=c.toString();return x.length>0?`/webhooks?${x}`:"/webhooks"},eES=async(l,c)=>O(_9S(l),{...c,method:"GET"}),M9S=l=>`/webhooks/${l}`,tES=async(l,c)=>O(M9S(l),{...c,method:"GET"}),U9S=l=>`/webhooks/${l}`,nES=async(l,c,x)=>O(U9S(l),{...x,method:"PATCH",headers:{"Content-Type":"application/json",...x?.headers},body:JSON.stringify(c)}),C9S=l=>`/webhooks/${l}`,sES=async(l,c)=>O(C9S(l),{...c,method:"DELETE"}),P9S=l=>`/webhooks/${l}/test`,oES=async(l,c)=>O(P9S(l),{...c,method:"POST"});var w9S=l=>`/webhooks/${l}/rotate-secret`,iES=async(l,c)=>O(w9S(l),{...c,method:"POST"});var Qn={create:v(QzS,1),list:J(eES),get:v(tES,1),update:v(nES,2),delete:v(sES,1),testWebhook:v(oES,1),rotateWebhookSecret:v(iES,1)};var A9S=()=>"/white-label-subscriptions",aES=async l=>O(A9S(),{...l,method:"GET"}),F9S=()=>"/white-label-subscriptions/plans",rES=async l=>O(F9S(),{...l,method:"GET"}),k9S=l=>`/white-label-subscriptions/check-feature/${l}`,lES=async(l,c)=>O(k9S(l),{...c,method:"GET"}),j9S=l=>`/white-label-subscriptions/check-limit/${l}`,dES=async(l,c)=>O(j9S(l),{...c,method:"GET"}),H9S=()=>"/white-label-subscriptions/billing-email",cES=async(l,c)=>O(H9S(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(l)});var es={getCurrentWLSubscription:v(aES,0),list:v(rES,0),checkWLFeature:v(lES,1),checkWLLimit:v(dES,1),update:v(cES,1)};var L9S=()=>"/white-labels/current",uES=async l=>O(L9S(),{...l,method:"GET"}),G9S=()=>"/white-labels/me",pES=async l=>O(G9S(),{...l,method:"GET"});var ts={getCurrentWhiteLabel:v(uES,0),getMyWhiteLabel:v(pES,0)};var De=class{sdkConfig;accountWebhooks=Z(Ht,()=>this.sdkConfig);activities=Z(Lt,()=>this.sdkConfig);advanceInvoices=Z(Gt,()=>this.sdkConfig);businessUnits=Z(Kt,()=>this.sdkConfig);companyRegistry=Z(Vt,()=>this.sdkConfig);creditNotes=Z(Zt,()=>this.sdkConfig);currency=Z(qt,()=>this.sdkConfig);customers=Z(Wt,()=>this.sdkConfig);deliveryNotes=Z(Yt,()=>this.sdkConfig);documents=Z(Xt,()=>this.sdkConfig);eInvoicing=Z(tn,()=>this.sdkConfig);eSlog=Z(nn,()=>this.sdkConfig);email=Z(sn,()=>this.sdkConfig);entities=Z(on,()=>this.sdkConfig);entityApiKeys=Z(an,()=>this.sdkConfig);entityInvitations=Z(rn,()=>this.sdkConfig);entityStats=Z(ln,()=>this.sdkConfig);entityUsers=Z(dn,()=>this.sdkConfig);estimates=Z(cn,()=>this.sdkConfig);expenses=Z(un,()=>this.sdkConfig);exports=Z(pn,()=>this.sdkConfig);files=Z(mn,()=>this.sdkConfig);finaCertificate=Z(xn,()=>this.sdkConfig);finaDevices=Z(gn,()=>this.sdkConfig);finaPremises=Z(yn,()=>this.sdkConfig);finaSettings=Z(On,()=>this.sdkConfig);financialCategories=Z(vn,()=>this.sdkConfig);fursCertificate=Z(Sn,()=>this.sdkConfig);fursDevices=Z(Tn,()=>this.sdkConfig);fursInternalAct=Z(Bn,()=>this.sdkConfig);fursPremises=Z(bn,()=>this.sdkConfig);fursSettings=Z(fn,()=>this.sdkConfig);health=Z(zn,()=>this.sdkConfig);invoices=Z(In,()=>this.sdkConfig);items=Z(Dn,()=>this.sdkConfig);legacyMigration=Z(hn,()=>this.sdkConfig);locale=Z(Nn,()=>this.sdkConfig);orderIntegrations=Z(Rn,()=>this.sdkConfig);orders=Z(_n,()=>this.sdkConfig);paymentReminders=Z(Mn,()=>this.sdkConfig);payments=Z(Un,()=>this.sdkConfig);pointOfSale=Z(Cn,()=>this.sdkConfig);ptAtcudSeries=Z(Pn,()=>this.sdkConfig);ptSafT=Z(wn,()=>this.sdkConfig);recurringInvoices=Z(An,()=>this.sdkConfig);revenueRecognition=Z(Fn,()=>this.sdkConfig);stripeApp=Z(kn,()=>this.sdkConfig);subscriptions=Z(jn,()=>this.sdkConfig);taxRateEstimates=Z(Hn,()=>this.sdkConfig);taxReports=Z(Ln,()=>this.sdkConfig);taxes=Z(Gn,()=>this.sdkConfig);ticketBai=Z(Kn,()=>this.sdkConfig);transactionType=Z(Vn,()=>this.sdkConfig);travelOrders=Z(Zn,()=>this.sdkConfig);ujp=Z(qn,()=>this.sdkConfig);upload=Z(Wn,()=>this.sdkConfig);users=Z(Yn,()=>this.sdkConfig);veriFactu=Z($n,()=>this.sdkConfig);vies=Z(Jn,()=>this.sdkConfig);warehouses=Z(Xn,()=>this.sdkConfig);webhooks=Z(Qn,()=>this.sdkConfig);whiteLabelSubscriptions=Z(es,()=>this.sdkConfig);whiteLabels=Z(ts,()=>this.sdkConfig);constructor(c){let x=typeof c=="string"?{accessToken:c}:c,E=typeof x.accessToken=="function"?x.accessToken:()=>x.accessToken;this.sdkConfig={baseUrl:x.basePath??he,getAccessToken:E,clientName:x.clientName??"js-sdk",onUnauthorized:x.onUnauthorized,requestTimeoutMs:x.requestTimeoutMs,accountId:x.accountId??null};}};function K9S(l){let c=typeof l=="string"?{accessToken:l}:l,x=typeof c.accessToken=="function"?c.accessToken:()=>c.accessToken;HyS({baseUrl:c.basePath??he,getAccessToken:x,clientName:c.clientName??"js-sdk",onUnauthorized:c.onUnauthorized,requestTimeoutMs:c.requestTimeoutMs}),jt(c.accountId??null);}
|
|
209
209
|
export{q9S as AccountInfoRole,Y9S as AccountWebhookDeliveryStatus,J9S as AccountWebhookResponseEventsItem,Q9S as AccountWebhookWithSecretEventsItem,t8S as AddEntityUserBodyRole,s8S as AdvanceInvoiceCalculationMode,i8S as AdvanceInvoiceItemClassification,r8S as AdvanceInvoiceItemType,d8S as AdvanceInvoiceTransactionType,u8S as AuthorizeShopifyBodyAutoProcessOn,m8S as AvailablePlansAllowedPaymentProvidersItem,g8S as AvailablePlansBillingProfile,O8S as AvailablePlansCurrencyCode,S8S as AvailablePlansStripePublishableKeyKind,B8S as BusinessUnitSettingsPdfTemplate,ns as CLIENT_HEADER_NAME,E8S as CalculateDocumentPreviewCalculationMode,D8S as CalculateDocumentPreviewType,N8S as CalculateTravelOrderRouteDistance422Field,f8S as CalculatedItemType,_8S as CalculationSettingsDefaultMode,U8S as CheckEInvoicingRecipientRequestDocumentType,P8S as CompanyRegistryResultSettingsSloveniaVatProfile,A8S as CompleteAdvanceInvoicePreviewCalculationMode,k8S as CompleteAdvanceInvoicePreviewCreationSource,H8S as CompleteCreditNotePreviewCalculationMode,G8S as CompleteCreditNotePreviewCreationSource,V8S as CompleteDeliveryNotePreviewCalculationMode,q8S as CompleteDeliveryNotePreviewCreationSource,Y8S as CompleteEstimatePreviewCalculationMode,J8S as CompleteEstimatePreviewCreationSource,Q8S as CompleteEstimatePreviewTitleType,tYS as CompleteInvoicePreviewCalculationMode,sYS as CompleteInvoicePreviewCreationSource,iYS as CreateAccountWebhookBodyEventsItem,rYS as CreateAdvanceInvoiceCalculationMode,dYS as CreateCheckoutRequestBillingInterval,uYS as CreateCreditNoteCalculationMode,mYS as CreateCustomerBodyContactType,gYS as CreateDeliveryNoteCalculationMode,OYS as CreateDocumentItemClassification,SYS as CreateDocumentItemType,BYS as CreateDocumentPaymentType,fYS as CreateEntityBodyEnvironment,EYS as CreateEntityBodySettingsPdfTemplate,DYS as CreateEstimateCalculationMode,NYS as CreateEstimateTitleType,_YS as CreateExpenseBodyCalculationMode,UYS as CreateExpenseBodyPaymentsItemType,PYS as CreateExpenseBodyTransactionType,AYS as CreateExpenseBodyType,kYS as CreateExpenseItemClassification,HYS as CreateExpenseItemType,GYS as CreateExpensePaymentBodyType,VYS as CreateFinaInvoiceDataPaymentType,qYS as CreateInvoiceCalculationMode,YYS as CreateItemBodyClassification,JYS as CreateItemInventoryMovementBodyType,QYS as CreateMigrationJobRequestEnvironment,t$S as CreateMigrationJobResponseStatus,s$S as CreateOrderBodyPaymentStatus,i$S as CreateOrderBodySource,r$S as CreateOrderIntegrationBodySource,d$S as CreatePaymentBodyType,u$S as CreatePtAtcudSeriesBodyDocumentType,m$S as CreateRecurringInvoiceBodyFrequency,g$S as CreateTravelOrderBodyTripType,O$S as CreateWebhookBodyEventsItem,S$S as CreationSource,B$S as CreditNoteCalculationMode,f$S as CreditNoteItemClassification,E$S as CreditNoteItemType,D$S as CreditNoteTransactionType,N$S as CurrentSubscriptionAllowedPaymentProvidersItem,_$S as CurrentSubscriptionBillingProfile,U$S as CurrentSubscriptionCurrencyCode,P$S as CurrentSubscriptionPaymentProvider,A$S as CurrentSubscriptionStripePublishableKeyKind,k$S as CustomCreateAdvanceInvoiceCalculationMode,H$S as CustomCreateCreditNoteCalculationMode,G$S as CustomCreateDeliveryNoteCalculationMode,V$S as CustomCreateEstimateCalculationMode,q$S as CustomCreateEstimateTitleType,Y$S as CustomCreateExpenseTransactionType,J$S as CustomCreateExpenseType,Q$S as CustomCreateInvoiceCalculationMode,tJS as CustomDocumentItemClassification,sJS as CustomDocumentItemType,iJS as CustomExpenseItemClassification,rJS as CustomExpenseItemType,dJS as CustomExpenseWriteCalculationMode,uJS as CustomExpenseWritePaymentsItemType,mJS as CustomExpenseWriteTransactionType,gJS as CustomExpenseWriteType,OJS as CustomStoreConnectRequestAutoProcessOn,SJS as CustomStoreOrderItemsItemKind,BJS as CustomStoreOrderResultAction,he as DEFAULT_BASE_URL,fJS as DeleteDocumentType,EJS as DeliveryNoteCalculationMode,DJS as DeliveryNoteItemClassification,NJS as DeliveryNoteItemType,_JS as DeliveryNoteTransactionType,UJS as DocumentCalculationCalculationMode,PJS as DocumentCalculationTransactionType,AJS as DocumentItemRevenueRecognitionMethod,kJS as DocumentRelationRelatedDocumentTitleType,HJS as DocumentRelationRelatedDocumentType,GJS as DocumentRelationSourceType,VJS as DocumentRelationTargetType,qJS as DocumentVersionDocumentType,YJS as DownloadDocumentEslogType,JJS as DownloadReceivedEInvoiceFormat,QJS as EInvoicingEnrollmentChannel,tXS as EInvoicingEnrollmentEnvironment,sXS as EInvoicingEnrollmentState,iXS as EInvoicingRecipientCheckResponseDocumentType,rXS as EmailSenderDomainVerificationStatus,dXS as EmailSenderEffectiveSource,uXS as EmailSenderEmailVerificationStatus,mXS as EmailSenderVerificationStatus,gXS as EntityApiKeyEnvironment,OXS as EntityApiKeyListItemEnvironment,SXS as EntityBankAccountType,BXS as EntityEnvironment,fXS as EntityInvitationPreviewRole,EXS as EntityInvitationPreviewStatus,DXS as EntityInvitationRole,NXS as EntityInvitationStatus,_XS as EntitySettingsPdfTemplate,UXS as EntitySettingsUpdatePdfTemplate,PXS as EntityUserRole,AXS as EntityUsersAccessAccountRole,kXS as EntityUsersAccessEntityRole,HXS as EslogDataValidationStatus,GXS as EslogExportByDateRangeTypesItem,VXS as EstimateCalculationMode,qXS as EstimateItemClassification,YXS as EstimateItemType,JXS as EstimateTitleType,QXS as EstimateTransactionType,tQS as ExpenseCategoryReportResponseBasis,sQS as ExpenseCategoryReportResponseCalculationMode,iQS as ExpenseCategoryReportResponseGroupBy,rQS as ExpenseItemClassification,dQS as ExpenseItemRecognitionMethod,uQS as ExpenseItemType,mQS as ExpenseRecognitionJobSimulationMode,gQS as ExpenseRecognitionJobStatus,OQS as ExpenseRecognitionJobWarningsItemCode,SQS as ExpenseRecognitionSettingsDefaultMethod,BQS as ExpenseRecognitionSettingsResponseDefaultMethod,fQS as ExpenseSummaryClassification,EQS as ExpenseType,DQS as ExportDocumentsFormat,NQS as ExportDocumentsLanguage,_QS as ExportDocumentsType,UQS as ExportExpensesDateBasis,PQS as ExportExpensesFormat,AQS as ExportExpensesLanguage,kQS as ExportInventoryFormat,HQS as ExportInventoryLanguage,GQS as ExportPosDailyReportFormat,VQS as ExportPosDailyReportLanguage,qQS as ExportPosMonthlyReportFormat,YQS as ExportPosMonthlyReportLanguage,JQS as ExportRevenueByCategoryFormat,QQS as ExportRevenueByCategoryLanguage,teT as ExportSalesPerItemFormat,seT as ExportSalesPerItemLanguage,ieT as FinaFiscalizationResponseDataPaymentChangeUnconfirmedReason,reT as FinaFiscalizationResponseStatus,deT as FinalizeDocumentType,BeT as FiscalRecoveryErrorCauseCode,ueT as FiscalizationProviderErrorCauseProvider,meT as FiscalizationProviderErrorCauseType,geT as FiscalizationProviderErrorCode,OeT as FiscalizeDocumentType,SeT as FiscalizedOutputRegistrationFiscalizationProvider,feT as FrenchEReportingRecordKind,EeT as FrenchEReportingRecordStatus,DeT as FursFiscalizationResponseStatus,NeT as FursPremiseSuccessResponseEnvironment,_eT as GeneratePtSaftReportMode,UeT as GermanEInvoicingDataValidationStatus,PeT as GetActivePtAtcudSeriesDocumentType,AeT as GetActivities200DataItemActorType,keT as GetEntitiesEnvironment,HeT as GetEslogExportStatus200Status,GeT as GetExpenseCategoryReportBasis,VeT as GetExpenseCategoryReportGroupBy,qeT as GetFilesCategory,YeT as GetFinaSettings200CertificateStatus,JeT as GetFinaSettings200NumberingSequence,QeT as GetFursSettings200CertificateStatus,ttT as GetFursSettings200NumberingStrategy,stT as GetItemsImportTemplateFormat,itT as GetItemsImportTemplateLanguage,rtT as GetLegacyMigrationOrganization200UnsupportedItemCode,dtT as GetNextDocumentNumberType,utT as GetPaymentRemindersStatus,mtT as GetPaymentRemindersTrigger,gtT as GetPdfExportStatus200Status,OtT as GetRevenueRecognitionDetailsBasis,StT as GetRevenueRecognitionDetailsGroupBy,BtT as GetRevenueRecognitionReportBasis,ftT as GetRevenueRecognitionReportGroupBy,EtT as GetShareableAdvanceInvoiceHtmlLanguage,DtT as GetShareableAdvanceInvoiceHtmlLocale,NtT as GetShareableAdvanceInvoicePdfLanguage,_tT as GetShareableAdvanceInvoicePdfLocale,UtT as GetShareableCreditNoteHtmlLanguage,PtT as GetShareableCreditNoteHtmlLocale,AtT as GetShareableCreditNotePdfLanguage,ktT as GetShareableCreditNotePdfLocale,HtT as GetShareableDeliveryNoteHtmlLanguage,GtT as GetShareableDeliveryNoteHtmlLocale,VtT as GetShareableDeliveryNotePdfLanguage,qtT as GetShareableDeliveryNotePdfLocale,YtT as GetShareableEstimateHtmlLanguage,JtT as GetShareableEstimateHtmlLocale,QtT as GetShareableEstimatePdfLanguage,tnT as GetShareableEstimatePdfLocale,snT as GetShareableInvoiceHtmlLanguage,inT as GetShareableInvoiceHtmlLocale,rnT as GetShareableInvoicePdfLanguage,dnT as GetShareableInvoicePdfLocale,unT as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,mnT as GetSloveniaTaxProfile200BusinessForm,gnT as GetSloveniaTaxProfile200BusinessFormSource,OnT as GetSloveniaTaxProfile200IncomeTaxRegime,SnT as GetSloveniaTaxProfile200InferredBusinessForm,BnT as GetSloveniaTaxProfile200TaxResidency,fnT as GetSloveniaTaxProfile200VatProfile,EnT as GetSloveniaTaxProfile200YearlyReportingAccountingType,DnT as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,NnT as InventoryMovementResponseType,_nT as InvoiceCalculationMode,UnT as InvoiceItemClassification,PnT as InvoiceItemType,AnT as InvoiceTransactionType,knT as ItalyLineTaxDataNature,HnT as ItemClassification,GnT as ItemsImportReportRowsItemAction,VnT as ItemsImportReportRowsItemStock,qnT as KsefDocumentDataStatus,YnT as KsefEntitySettingsObligation,JnT as KsefSettingsResponseEnvironment,QnT as KsefSettingsResponseObligation,tsT as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,ssT as LegalDetailsLegalForm,isT as LineDiscountType,rsT as ListPtAtcudSeriesDocumentType,dsT as ListReceivedEInvoicesState,usT as ListRevenueRecognitionLinesBasis,msT as ListRevenueRecognitionLinesGroupBy,pGS as MAX_LIST_ALL_PAGES,gsT as MigrationJobResponseStatus,OsT as NavAnnulmentRequestAnnulmentCode,SsT as NavDocumentDataOperation,BsT as NavDocumentMessageSeverity,fsT as NavDocumentStatus,EsT as NavEnvironment,DsT as NavErrorBodyConflictsItemSource,NsT as NavErrorBodyConflictsItemTypesItem0,_sT as NavErrorBodyConflictsItemTypesItem1,UsT as NavInvoiceAppearance,PsT as NavObligation,AsT as NavVatTreatmentDomesticReverseChargeType,ksT as NavVatTreatmentExemptionCase,HsT as NavVatTreatmentExemptionType,GsT as NavVatTreatmentNoVatChargeType,VsT as NavVatTreatmentOutOfScopeCase,qsT as NavVatTreatmentOutOfScopeType,YsT as OrderBasePaymentStatus,JsT as OrderBaseSource,QsT as OrderBaseStatus,toT as OrderIntegrationBaseAutoProcessOn,soT as OrderIntegrationBaseSource,ioT as OrderItemKind,roT as PartialAdvanceInvoicePreviewCalculationMode,doT as PartialAdvanceInvoicePreviewCreationSource,uoT as PartialAdvanceInvoicePreviewItemsItemClassification,moT as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,goT as PartialAdvanceInvoicePreviewItemsItemType,OoT as PartialCreditNotePreviewCalculationMode,SoT as PartialCreditNotePreviewCreationSource,BoT as PartialCreditNotePreviewItemsItemClassification,foT as PartialCreditNotePreviewItemsItemDiscountsItemType,EoT as PartialCreditNotePreviewItemsItemType,DoT as PartialDeliveryNotePreviewCalculationMode,NoT as PartialDeliveryNotePreviewCreationSource,_oT as PartialDeliveryNotePreviewItemsItemClassification,UoT as PartialDeliveryNotePreviewItemsItemDiscountsItemType,PoT as PartialDeliveryNotePreviewItemsItemType,AoT as PartialEstimatePreviewCalculationMode,koT as PartialEstimatePreviewCreationSource,HoT as PartialEstimatePreviewItemsItemClassification,GoT as PartialEstimatePreviewItemsItemDiscountsItemType,VoT as PartialEstimatePreviewItemsItemType,qoT as PartialEstimatePreviewTitleType,YoT as PartialInvoicePreviewCalculationMode,JoT as PartialInvoicePreviewCreationSource,QoT as PartialInvoicePreviewItemsItemClassification,tiT as PartialInvoicePreviewItemsItemDiscountsItemType,siT as PartialInvoicePreviewItemsItemType,iiT as PatchEntityBodySettingsPdfTemplate,riT as PatchMeBodyLocale,diT as PaymentReminderStatus,uiT as PaymentReminderTrigger,miT as PaymentType,giT as PdfExportByDateRangeLanguage,OiT as PdfExportByDateRangeLocale,SiT as PdfExportByDateRangeTypesItem,BiT as PdfExportByDocumentIdsLanguage,fiT as PdfExportByDocumentIdsLocale,EiT as PermanentDeleteDocumentType,DiT as PosTabConflictCode,NiT as PosTabResponseStatus,_iT as PreviewTravelOrderBodyTripType,UiT as PtAtcudSeriesDocumentType,PiT as PutKsefCredentialEnvironment,AiT as ReceivedEInvoiceAttachmentStatus,kiT as ReceivedEInvoiceLifecycleRequestAction,HiT as ReceivedEInvoiceLifecycleRequestReasonCode,GiT as ReceivedEInvoiceState,ViT as RecurringInvoiceBaseFrequency,qiT as RecurringInvoiceBaseStatus,YiT as RegisterDocumentOutputType,JiT as RegisterFursMovablePremiseBodyMovablePremisePremiseType,QiT as RenderAdvanceInvoicePreviewEpcQrEnabled,taT as RenderAdvanceInvoicePreviewHub3QrEnabled,saT as RenderAdvanceInvoicePreviewPartial,iaT as RenderAdvanceInvoicePreviewTemplate,raT as RenderAdvanceInvoicePreviewUpnQrDisplayMode,daT as RenderAdvanceInvoicePreviewUpnQrEnabled,uaT as RenderCreditNotePreviewEpcQrEnabled,maT as RenderCreditNotePreviewHub3QrEnabled,gaT as RenderCreditNotePreviewPartial,OaT as RenderCreditNotePreviewTemplate,SaT as RenderCreditNotePreviewUpnQrDisplayMode,BaT as RenderCreditNotePreviewUpnQrEnabled,faT as RenderDeliveryNotePreviewEpcQrEnabled,EaT as RenderDeliveryNotePreviewHub3QrEnabled,DaT as RenderDeliveryNotePreviewPartial,NaT as RenderDeliveryNotePreviewTemplate,_aT as RenderDeliveryNotePreviewUpnQrDisplayMode,UaT as RenderDeliveryNotePreviewUpnQrEnabled,PaT as RenderDocumentHtmlTemplate,AaT as RenderDocumentPdfTemplate,kaT as RenderEstimatePreviewEpcQrEnabled,HaT as RenderEstimatePreviewHub3QrEnabled,GaT as RenderEstimatePreviewPartial,VaT as RenderEstimatePreviewTemplate,qaT as RenderEstimatePreviewUpnQrDisplayMode,YaT as RenderEstimatePreviewUpnQrEnabled,JaT as RenderInvoicePreviewEpcQrEnabled,QaT as RenderInvoicePreviewHub3QrEnabled,trT as RenderInvoicePreviewPartial,srT as RenderInvoicePreviewTemplate,irT as RenderInvoicePreviewUpnQrDisplayMode,rrT as RenderInvoicePreviewUpnQrEnabled,drT as RenderTravelOrderPreviewBodyTripType,urT as RestoreDocumentType,mrT as RevenueRecognitionDetailsResponseCalculationMode,grT as RevenueRecognitionLinesResponseCalculationMode,OrT as RevenueRecognitionReportResponseBasis,SrT as RevenueRecognitionReportResponseCalculationMode,BrT as RevenueRecognitionReportResponseGroupBy,frT as RevenueRecognitionSettingsDefaultMethod,ErT as RevenueRecognitionSettingsResponseDefaultMethod,DrT as ReviewSloveniaYearlyNormiraniReport200FilingKind,NrT as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,_rT as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,UrT as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,PrT as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,ArT as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,krT as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,HrT as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,GrT as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,VrT as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,qrT as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,YrT as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,JrT as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,QrT as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,tlT as SdiLifecycleDataCountryCode,slT as SdiLifecycleDataStatus,ilT as SendDocument200Status,rlT as SendEmail200Status,dlT as SendEmailBodyLanguage,ulT as SendEmailBodyLocale,mlT as SendPaymentReminderBodyLocale,glT as SendPaymentReminderResponseStatus,OlT as SloveniaAccountingExportsSettingsPreferredFormat,SlT as SloveniaEntitySettingsBusinessForm,BlT as SloveniaEntitySettingsIncomeTaxRegime,flT as SloveniaEntitySettingsTaxResidency,ElT as SloveniaEntitySettingsVatProfile,DlT as SloveniaYearlyReportingSettingsAccountingType,NlT as SloveniaYearlyReportingSettingsNormiranecInsuranceBasis,De as SpaceInvoices,_lT as StartEslogExport202Status,UlT as StartPdfExport202Status,PlT as StatsQueryRequestMetricsItemType,AlT as StatsQueryRequestOrderByItemDirection,klT as StatsQueryRequestTable,HlT as StripeAppConnectionEntityEnvironment,GlT as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,VlT as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,qlT as SubscriptionTier,YlT as SyncOrderIntegrationResponseCompletionState,JlT as SyncShopifyOrdersResponseCompletionState,QlT as TicketBaiDocumentDataExemptionCause,tdT as TicketBaiDocumentDataNonSubjectCause,sdT as TicketBaiDocumentDataOperationType,idT as TicketBaiDocumentDataRecipientIdType,rdT as TicketBaiDocumentDataRectificationCode,ddT as TicketBaiDocumentDataStatus,udT as TicketBaiDocumentDataTaxTreatment,mdT as TicketBaiDocumentDataVatRegime,gdT as TicketBaiDocumentInputExemptionCause,OdT as TicketBaiDocumentInputNonSubjectCause,SdT as TicketBaiDocumentInputOperationType,BdT as TicketBaiDocumentInputRecipientIdType,fdT as TicketBaiDocumentInputRectificationCode,EdT as TicketBaiDocumentInputTaxTreatment,DdT as TicketBaiDocumentInputVatRegime,NdT as TicketBaiRecordDocumentType,_dT as TicketBaiRecordEnvironment,UdT as TicketBaiRecordOperation,PdT as TicketBaiRecordRecentAttemptsItemKind,AdT as TicketBaiRecordRecentAttemptsItemStatus,kdT as TicketBaiRecordStatus,HdT as TicketBaiRecordTerritory,GdT as TicketBaiSettingsBlockersItem,VdT as TicketBaiSettingsEnvironment,qdT as TicketBaiSettingsLroeModel,YdT as TicketBaiSettingsTerritory,JdT as TransactionTypeCheckResponseTransactionType,QdT as TravelOrderCostType,tcT as TravelOrderCurrencyCode,scT as TravelOrderPerDiemBand,icT as TravelOrderRouteDistanceProvider,rcT as TravelOrderStatus,dcT as TravelOrderTransport,ucT as TravelOrderTripType,mcT as UjpDataValidationStatus,gcT as UpdateAccountWebhookBodyEventsItem,OcT as UpdateCustomerBodyContactType,ScT as UpdateEntityUserRoleBodyRole,BcT as UpdateEstimateTitleType,fcT as UpdateExpenseBodyCalculationMode,EcT as UpdateExpenseBodyTransactionType,DcT as UpdateExpenseBodyType,NcT as UpdateExpenseRecognitionSettingsDefaultMethod,_cT as UpdateFinaSettings200CertificateStatus,UcT as UpdateFinaSettings200NumberingSequence,PcT as UpdateFinaSettingsBodyNumberingSequence,AcT as UpdateFursSettings200CertificateStatus,kcT as UpdateFursSettings200NumberingStrategy,HcT as UpdateFursSettingsBodyNumberingStrategy,GcT as UpdateItemBodyClassification,VcT as UpdateKsefSettingsObligation,qcT as UpdateNavSettingsInvoiceAppearance,YcT as UpdateNavSettingsObligation,JcT as UpdateOrderBodyPaymentStatus,QcT as UpdateOrderIntegrationBodyAutoProcessOn,tuT as UpdatePaymentBodyType,suT as UpdateRecurringInvoiceBodyFrequency,iuT as UpdateRevenueRecognitionSettingsDefaultMethod,ruT as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,duT as UpdateSloveniaTaxProfile200BusinessForm,uuT as UpdateSloveniaTaxProfile200BusinessFormSource,muT as UpdateSloveniaTaxProfile200IncomeTaxRegime,guT as UpdateSloveniaTaxProfile200InferredBusinessForm,OuT as UpdateSloveniaTaxProfile200TaxResidency,SuT as UpdateSloveniaTaxProfile200VatProfile,BuT as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,fuT as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,EuT as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,DuT as UpdateSloveniaTaxProfileBodyBusinessForm,NuT as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,_uT as UpdateSloveniaTaxProfileBodyTaxResidency,UuT as UpdateSloveniaTaxProfileBodyVatProfile,PuT as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,AuT as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,kuT as UpdateTicketBaiSettingsLroeModel,HuT as UpdateTicketBaiSettingsTerritory,GuT as UpdateTravelOrderBodyTransport,VuT as UpdateTravelOrderBodyTripType,quT as UpdateVerifactuSettingsTerritory,YuT as UpdateWebhookBodyEventsItem,JuT as UploadFileBodyCategory,QuT as UpnQrSettingsDisplayMode,tpT as ValidateDocumentEslogType,spT as ValidationErrorConflictsItemSource,ipT as ValidationErrorConflictsItemTypesItem0,rpT as ValidationErrorConflictsItemTypesItem1,dpT as VerifactuDocumentInputCustomerIdType,upT as VerifactuDocumentInputInvoiceType,mpT as VerifactuDocumentInputTaxTreatmentsItemQualification,gpT as VerifactuDocumentInputTaxTreatmentsItemTax,OpT as VerifactuDocumentStatus,SpT as VerifactuEvidenceKind,BpT as VerifactuSettingsEligibility,fpT as VerifactuSettingsEnvironment,EpT as VerifactuSettingsTerritory,DpT as WebhookDeliveryStatus,NpT as WebhookResponseEventsItem,_pT as WebhookWithSecretEventsItem,UpT as WhiteLabelConfigEnvironment,PpT as WhiteLabelPlanCurrencyCode,ApT as WooCommerceAuthorizeRequestAutoProcessOn,Ht as accountWebhooks,Lt as activities,Gt as advanceInvoices,Kt as businessUnits,Vt as companyRegistry,Zt as creditNotes,qt as currency,Wt as customers,De as default,Yt as deliveryNotes,Xt as documents,En as downloadBlob,tn as eInvoicing,nn as eSlog,sn as email,on as entities,an as entityApiKeys,rn as entityInvitations,ln as entityStats,dn as entityUsers,cn as estimates,un as expenses,pn as exports,mn as files,xn as finaCertificate,gn as finaDevices,yn as finaPremises,On as finaSettings,vn as financialCategories,Sn as fursCertificate,Tn as fursDevices,Bn as fursInternalAct,bn as fursPremises,fn as fursSettings,lGS as getAccountId,Re as getClientHeaders,zn as health,K9S as initSDK,In as invoices,Dn as items,hn as legacyMigration,gGS as listAll,Nn as locale,Rn as orderIntegrations,_n as orders,Mn as paymentReminders,Un as payments,Cn as pointOfSale,Pn as ptAtcudSeries,wn as ptSafT,An as recurringInvoices,Fn as revenueRecognition,jt as setAccountId,kn as stripeApp,jn as subscriptions,Hn as taxRateEstimates,Ln as taxReports,Gn as taxes,Kn as ticketBai,Vn as transactionType,Zn as travelOrders,qn as ujp,Wn as upload,Yn as users,$n as veriFactu,Jn as vies,Xn as warehouses,Qn as webhooks,es as whiteLabelSubscriptions,ts as whiteLabels,jyS as zod};
|