ksef-client-ts 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -129,6 +129,12 @@ interface KSeFClientOptions {
129
129
  circuitBreaker?: Partial<CircuitBreakerConfig> | null;
130
130
  presignedUrlHosts?: string[];
131
131
  authManager?: AuthManager;
132
+ /**
133
+ * Invoked with the raw `X-System-Warning` response header value when present
134
+ * (KSeF API v2.6.0). Advisory only — does not affect the operation result.
135
+ * When omitted, warnings are logged at warn level.
136
+ */
137
+ onSystemWarning?: (warning: string) => void;
132
138
  /**
133
139
  * Request format for server-returned error bodies. Defaults to
134
140
  * `'problem-details'` (RFC 7807, KSeF API v2.4.0+). Set to `'legacy'`
@@ -320,6 +326,21 @@ declare class KSeFBatchTimeoutError extends KSeFApiError {
320
326
  static fromResponse(statusCode: number, body?: ApiErrorResponse): KSeFBatchTimeoutError;
321
327
  }
322
328
 
329
+ /**
330
+ * KSeF rejected an encryption request because the supplied `publicKeyId` is unknown
331
+ * or points to a revoked key (HTTP 400, error code 21470, KSeF API v2.5.0).
332
+ *
333
+ * Encryption-bearing operations recover by refreshing the certificate cache and
334
+ * retrying once with a freshly selected key.
335
+ */
336
+ declare class KSeFUnknownPublicKeyError extends KSeFApiError {
337
+ readonly statusCode: 400;
338
+ readonly errorCode: 21470;
339
+ constructor(message: string, errorResponse?: ApiErrorResponse);
340
+ static fromLegacy(body?: ApiErrorResponse): KSeFUnknownPublicKeyError;
341
+ static fromProblem(problem: BadRequestProblemDetails): KSeFUnknownPublicKeyError;
342
+ }
343
+
323
344
  declare class KSeFCircuitOpenError extends KSeFError {
324
345
  readonly endpoint: string;
325
346
  readonly openedAt: number;
@@ -336,6 +357,8 @@ declare class KSeFXsdValidationError extends KSeFError {
336
357
  declare const KSeFErrorCode: {
337
358
  readonly BatchTimeout: 21208;
338
359
  readonly DuplicateInvoice: 440;
360
+ /** The supplied public key identifier is unknown or points to a revoked key (KSeF API v2.5.0). */
361
+ readonly UnknownPublicKeyId: 21470;
339
362
  };
340
363
  type KSeFErrorCode = (typeof KSeFErrorCode)[keyof typeof KSeFErrorCode];
341
364
 
@@ -399,6 +422,12 @@ interface RestClientConfig {
399
422
  circuitBreakerPolicy?: CircuitBreakerPolicy | null;
400
423
  authManager?: AuthManager;
401
424
  presignedUrlPolicy?: PresignedUrlPolicy;
425
+ /**
426
+ * Invoked with the raw `X-System-Warning` response header value when present
427
+ * (KSeF API v2.6.0). Advisory only — does not affect the operation result.
428
+ * When omitted, warnings are logged at warn level.
429
+ */
430
+ onSystemWarning?: (warning: string) => void;
402
431
  }
403
432
  declare class RestClient {
404
433
  private readonly options;
@@ -409,10 +438,13 @@ declare class RestClient {
409
438
  private readonly circuitBreakerPolicy;
410
439
  private readonly authManager?;
411
440
  private readonly presignedUrlPolicy?;
441
+ private readonly onSystemWarning?;
412
442
  constructor(options: ResolvedOptions, config?: RestClientConfig);
413
443
  execute<T>(request: RestRequest): Promise<RestResponse<T>>;
414
444
  executeVoid(request: RestRequest): Promise<void>;
415
445
  executeRaw(request: RestRequest): Promise<RestResponse<ArrayBuffer>>;
446
+ /** Surface the optional `X-System-Warning` response header (KSeF API v2.6.0). */
447
+ private handleSystemWarning;
416
448
  private sendRequest;
417
449
  private recordCircuitOutcome;
418
450
  private doRequest;
@@ -633,7 +665,7 @@ interface XmlConversionResult {
633
665
  declare function xmlToObject(xml: string): XmlConversionResult;
634
666
 
635
667
  /** Schema type identifiers */
636
- type SchemaType = 'FA3' | 'FA2' | 'RR1_V11E' | 'RR1_V10E' | 'PEF3' | 'PEF_KOR3';
668
+ type SchemaType = 'FA3' | 'FA2' | 'FA_RR1' | 'PEF3' | 'PEF_KOR3';
637
669
 
638
670
  /**
639
671
  * Schema Registry — lazy-loads generated Zod schemas and provides
@@ -811,6 +843,8 @@ interface FormCode {
811
843
  interface EncryptionInfo {
812
844
  encryptedSymmetricKey: string;
813
845
  initializationVector: string;
846
+ /** Identifier of the public key used to encrypt the symmetric key — key-rotation selector (KSeF API v2.5.0). */
847
+ publicKeyId?: string;
814
848
  }
815
849
  interface FileMetadata {
816
850
  hashSHA: string;
@@ -821,6 +855,8 @@ interface ContextIdentifier {
821
855
  type: ContextIdentifierType;
822
856
  value: string;
823
857
  }
858
+ /** Archive compression for batch upload / invoice export packages (KSeF API v2.6.0). Defaults to `Zip`. */
859
+ type CompressionType = 'Zip' | 'TarGz';
824
860
  type SessionType = 'Online' | 'Batch';
825
861
  type SessionStatus = 'Succeeded' | 'InProgress' | 'Failed' | 'Cancelled';
826
862
  type SortOrder = 'Asc' | 'Desc';
@@ -888,6 +924,8 @@ interface AuthKsefTokenRequest {
888
924
  challenge: string;
889
925
  contextIdentifier: ContextIdentifier;
890
926
  encryptedToken: string;
927
+ /** Identifier of the public key used to encrypt the token — key-rotation selector (KSeF API v2.5.0). */
928
+ publicKeyId?: string;
891
929
  authorizationPolicy?: AuthorizationPolicy;
892
930
  }
893
931
  type AuthenticationMethod = 'Token' | 'TrustedProfile' | 'InternalCertificate' | 'QualifiedSignature' | 'QualifiedSeal' | 'PersonalSignature' | 'PeppolSignature';
@@ -938,6 +976,8 @@ interface BatchFilePartInfo {
938
976
  interface BatchFileInfo {
939
977
  fileSize: number;
940
978
  fileHash: string;
979
+ /** Archive compression type (KSeF API v2.6.0). Omitted/`Zip` keeps the legacy behavior. */
980
+ compressionType?: CompressionType;
941
981
  fileParts: BatchFilePartInfo[];
942
982
  }
943
983
  interface OpenBatchSessionRequest {
@@ -1083,7 +1123,7 @@ type InvoiceQueryDateType = 'Issue' | 'Invoicing' | 'PermanentStorage';
1083
1123
  type AmountType = 'Brutto' | 'Netto' | 'Vat';
1084
1124
  type BuyerIdentifierType = 'Nip' | 'VatUe' | 'Other' | 'None';
1085
1125
  type ThirdSubjectIdentifierType = 'Nip' | 'InternalId' | 'VatUe' | 'Other' | 'None';
1086
- type FormType = 'FA' | 'PEF' | 'RR' | 'FA_RR';
1126
+ type FormType = 'FA' | 'PEF' | 'FA_RR';
1087
1127
  type InvoiceType = 'Vat' | 'Zal' | 'Kor' | 'Roz' | 'Upr' | 'KorZal' | 'KorRoz' | 'VatPef' | 'VatPefSp' | 'KorPef' | 'VatRr' | 'KorVatRr';
1088
1128
  interface InvoiceQueryDateRange {
1089
1129
  dateType: InvoiceQueryDateType;
@@ -1179,6 +1219,8 @@ interface InvoiceExportRequest {
1179
1219
  encryption: EncryptionInfo;
1180
1220
  filters: InvoiceQueryFilters;
1181
1221
  onlyMetadata?: boolean;
1222
+ /** Archive compression type for the export package (KSeF API v2.6.0). Omitted/`Zip` keeps the legacy behavior. */
1223
+ compressionType?: CompressionType;
1182
1224
  }
1183
1225
  interface InvoiceExportPackagePart {
1184
1226
  ordinalNumber: number;
@@ -1970,6 +2012,10 @@ interface UnblockContextAuthenticationRequest {
1970
2012
  type PublicKeyCertificateUsage = 'KsefTokenEncryption' | 'SymmetricKeyEncryption';
1971
2013
  interface PublicKeyCertificate {
1972
2014
  certificate: string;
2015
+ /** SHA-256 of the DER certificate, Base64-encoded (KSeF API v2.5.0). */
2016
+ certificateId: string;
2017
+ /** SHA-256 of the certificate's SubjectPublicKeyInfo, Base64 (44 chars) — key-rotation selector (KSeF API v2.5.0). */
2018
+ publicKeyId: string;
1973
2019
  validFrom: string;
1974
2020
  validTo: string;
1975
2021
  usage: PublicKeyCertificateUsage[];
@@ -2295,6 +2341,7 @@ declare class AuthKsefTokenRequestBuilder {
2295
2341
  private challenge?;
2296
2342
  private contextIdentifier?;
2297
2343
  private encryptedToken?;
2344
+ private publicKeyId?;
2298
2345
  private authorizationPolicy?;
2299
2346
  withChallenge(challenge: string): this;
2300
2347
  withContextNip(nip: string): this;
@@ -2302,6 +2349,7 @@ declare class AuthKsefTokenRequestBuilder {
2302
2349
  withContextNipVatUe(value: string): this;
2303
2350
  withContextPeppolId(id: string): this;
2304
2351
  withEncryptedToken(token: string): this;
2352
+ withPublicKeyId(publicKeyId: string): this;
2305
2353
  withAuthorizationPolicy(policy: AuthorizationPolicy): this;
2306
2354
  build(): AuthKsefTokenRequest;
2307
2355
  private withContext;
@@ -2385,6 +2433,8 @@ declare const BATCH_MAX_PARTS = 50;
2385
2433
  interface BatchFileBuildOptions {
2386
2434
  /** Max unencrypted part size in bytes. Default: 100 MB. */
2387
2435
  maxPartSize?: number;
2436
+ /** Compression type of the supplied archive bytes (KSeF API v2.6.0). Default: `Zip`. */
2437
+ compressionType?: CompressionType;
2388
2438
  }
2389
2439
  interface BatchFileBuildResult {
2390
2440
  /** Metadata for OpenBatchSessionRequest.batchFile. */
@@ -2426,17 +2476,43 @@ declare class BatchFileBuilder {
2426
2476
  static buildFromStream(zipStreamFactory: () => ReadableStream<Uint8Array>, zipSize: number, encryptStreamFn: (stream: ReadableStream<Uint8Array>) => ReadableStream<Uint8Array>, hashStreamFn: (stream: ReadableStream<Uint8Array>) => Promise<FileMetadata>, options?: BatchFileBuildOptions): Promise<BatchStreamBuildResult>;
2427
2477
  }
2428
2478
 
2479
+ /** A selected encryption certificate: its PEM plus the key-rotation selector. */
2480
+ interface SelectedCertificate {
2481
+ readonly pem: string;
2482
+ readonly publicKeyId: string;
2483
+ }
2429
2484
  declare class CertificateFetcher {
2430
2485
  private readonly restClient;
2431
- private symmetricKeyPem;
2432
- private ksefTokenPem;
2486
+ private symmetricKey;
2487
+ private ksefToken;
2433
2488
  private initialized;
2434
2489
  constructor(restClient: RestClient);
2435
2490
  init(): Promise<void>;
2436
2491
  refresh(): Promise<void>;
2492
+ /**
2493
+ * Immutable snapshot ({@link SelectedCertificate}) of the selected
2494
+ * SymmetricKeyEncryption certificate. The stored object is replaced wholesale
2495
+ * by {@link refresh}, never mutated, so holding the returned reference yields a
2496
+ * consistent pem + publicKeyId pair even if a concurrent refresh swaps the cache.
2497
+ */
2498
+ getSymmetricKeyEncryption(): Readonly<SelectedCertificate>;
2499
+ /** Immutable snapshot of the selected KsefTokenEncryption certificate. See {@link getSymmetricKeyEncryption}. */
2500
+ getKsefTokenEncryption(): Readonly<SelectedCertificate>;
2437
2501
  getSymmetricKeyEncryptionPem(): string;
2438
2502
  getKsefTokenEncryptionPem(): string;
2503
+ /** Public key identifier of the selected SymmetricKeyEncryption certificate (KSeF API v2.5.0). */
2504
+ getSymmetricKeyPublicKeyId(): string;
2505
+ /** Public key identifier of the selected KsefTokenEncryption certificate (KSeF API v2.5.0). */
2506
+ getKsefTokenPublicKeyId(): string;
2507
+ private requireSelected;
2439
2508
  private fetchCertificates;
2509
+ /**
2510
+ * Select the certificate to use for a given usage under key rotation:
2511
+ * filter to currently-valid certificates (validFrom ≤ now < validTo) and pick
2512
+ * the newest by validFrom. If none are currently valid, fall back to the newest
2513
+ * overall so the server can reject it with a clear error rather than sending nothing.
2514
+ */
2515
+ private select;
2440
2516
  private derBase64ToPem;
2441
2517
  }
2442
2518
 
@@ -2452,6 +2528,10 @@ declare class CryptographyService {
2452
2528
  constructor(fetcher: CertificateFetcher);
2453
2529
  /** Initialise the underlying certificate fetcher. */
2454
2530
  init(): Promise<void>;
2531
+ /** Re-fetch KSeF public certificates, discarding the cached selection (used for key-rotation recovery). */
2532
+ refresh(): Promise<void>;
2533
+ /** Identifier of the KsefTokenEncryption public key used by {@link encryptKsefToken} (KSeF API v2.5.0). */
2534
+ getKsefTokenPublicKeyId(): string;
2455
2535
  /** Encrypt with AES-256-CBC (PKCS7 padding is automatic in Node). */
2456
2536
  encryptAES256(content: Uint8Array, key: Uint8Array, iv: Uint8Array): Uint8Array;
2457
2537
  /**
@@ -2480,6 +2560,20 @@ declare class CryptographyService {
2480
2560
  * `[ephemeralSPKI | nonce(12) | ciphertext+tag]`.
2481
2561
  */
2482
2562
  encryptKsefToken(token: string, challengeTimestamp: string): Promise<Uint8Array>;
2563
+ /**
2564
+ * Encrypt a KSeF token and return it together with the public key id of the
2565
+ * exact certificate used.
2566
+ *
2567
+ * Both values come from a single certificate snapshot taken before any
2568
+ * `await`, so a concurrent {@link refresh} cannot tag the ciphertext with a
2569
+ * different key than it was encrypted under (KSeF API v2.5.0). Prefer this over
2570
+ * pairing {@link encryptKsefToken} with a separate {@link getKsefTokenPublicKeyId}.
2571
+ */
2572
+ encryptKsefTokenWithKeyId(token: string, challengeTimestamp: string): Promise<{
2573
+ encryptedToken: Uint8Array;
2574
+ publicKeyId: string;
2575
+ }>;
2576
+ private encryptKsefTokenWithCertPem;
2483
2577
  /** Compute SHA-256 hash (base64) and byte length. */
2484
2578
  getFileMetadata(file: Uint8Array): FileMetadata;
2485
2579
  /** Compute SHA-256 hash (base64) and byte length from a ReadableStream. */
@@ -2608,6 +2702,30 @@ interface UnzipOptions {
2608
2702
  declare function createZip(entries: ZipEntryInput[]): Promise<Buffer>;
2609
2703
  declare function unzip(buffer: Buffer, options?: UnzipOptions): Promise<Map<string, Buffer>>;
2610
2704
 
2705
+ type TarGzLimits = Pick<UnzipOptions, 'maxFiles' | 'maxTotalUncompressedSize' | 'maxFileUncompressedSize' | 'maxCompressionRatio'>;
2706
+ /**
2707
+ * Build a gzip-compressed tar archive from in-memory entries (KSeF API v2.6.0 `TarGz`).
2708
+ * Mirrors {@link createZip} so callers can swap compression by type.
2709
+ */
2710
+ declare function createTarGz(entries: ZipEntryInput[]): Promise<Buffer>;
2711
+ /**
2712
+ * Extract a gzip-compressed tar archive into a map of file name → contents.
2713
+ *
2714
+ * The gzip layer is decompressed in a STREAMING fashion: the source buffer is
2715
+ * piped through `createGunzip()` into a tar extractor, and the running count of
2716
+ * decompressed bytes is checked incrementally. The pipeline is destroyed and the
2717
+ * promise rejected as soon as a limit is exceeded — well before a malicious
2718
+ * archive (e.g. a gzip bomb) can fully inflate into memory. The
2719
+ * `maxTotalUncompressedSize` limit is enforced both at the raw gunzip-chunk
2720
+ * level (so an archive that inflates massively before the tar layer even sees a
2721
+ * full entry is stopped) and per-entry; `maxFileUncompressedSize` is enforced
2722
+ * incrementally while an individual entry streams in; `maxFiles` caps the entry
2723
+ * count. `maxCompressionRatio` caps the ratio of total decompressed bytes to the
2724
+ * compressed archive size (gzip is a single stream, so the ratio is measured over
2725
+ * the whole archive rather than per entry); pass `null` to disable it.
2726
+ */
2727
+ declare function extractTarGz(buffer: Buffer, options?: TarGzLimits): Promise<Map<string, Buffer>>;
2728
+
2611
2729
  interface KSeFTokenContext {
2612
2730
  type?: string;
2613
2731
  contextIdentifierType?: string;
@@ -3115,6 +3233,8 @@ interface BatchUploadOptions {
3115
3233
  validate?: boolean;
3116
3234
  /** Number of concurrent part uploads. Omit for default behavior (buffer: all parallel, stream: sequential). */
3117
3235
  parallelism?: number;
3236
+ /** Compression type of the supplied archive (KSeF API v2.6.0). Default: `Zip`. The caller is responsible for producing matching archive bytes. */
3237
+ compressionType?: CompressionType;
3118
3238
  }
3119
3239
  declare function uploadBatch(client: KSeFClient, zipData: Uint8Array, options?: BatchUploadOptions): Promise<BatchUploadResult>;
3120
3240
 
@@ -3125,6 +3245,8 @@ declare function uploadBatchParsed(client: KSeFClient, zipData: Uint8Array, opti
3125
3245
  interface ExportOptions {
3126
3246
  onlyMetadata?: boolean;
3127
3247
  pollOptions?: PollOptions;
3248
+ /** Compression type for the export package (KSeF API v2.6.0). Default: `Zip`. */
3249
+ compressionType?: CompressionType;
3128
3250
  }
3129
3251
  interface ExportAndDownloadOptions extends ExportOptions {
3130
3252
  /** Custom fetch function for downloading parts (defaults to global fetch). */
@@ -3313,4 +3435,4 @@ declare class FileOfflineInvoiceStorage implements OfflineInvoiceStorage {
3313
3435
  delete(id: string): Promise<void>;
3314
3436
  }
3315
3437
 
3316
- export { ActiveSessionsService, type AllowedIps, type AmountType, type ApiErrorResponse, type ApiRateLimitValuesOverride, type ApiRateLimitsOverride, type AttachmentPermissionGrantRequest, type AttachmentPermissionRevokeRequest, type AuthChallengeResponse, type AuthKsefTokenRequest, AuthKsefTokenRequestBuilder, type AuthManager, type AuthResult, AuthService, type AuthSessionInfo, type AuthTokenRequest, AuthTokenRequestBuilder, type AuthTokenRequestXmlOptions, type AuthenticationInitResponse, type AuthenticationKsefToken, type AuthenticationListResponse, type AuthenticationMethod, type AuthenticationMethodInfo, type AuthenticationMethodInfoCategory, type AuthenticationOperationStatusResponse, type AuthenticationTokenRefreshResponse, type AuthenticationTokensResponse, type AuthorizationGrant, AuthorizationPermissionGrantBuilder, type AuthorizationPolicy, BATCH_MAX_PARTS, BATCH_MAX_PART_SIZE, BATCH_MAX_TOTAL_SIZE, type BadRequestErrorDetail, type BadRequestProblemDetails, Base64String, type BatchFileBuildOptions, type BatchFileBuildResult, BatchFileBuilder, type BatchFileInfo, type BatchFilePartInfo, type BatchPartSendingInfo, type BatchPartStreamSendingInfo, type BatchSessionContextLimitsOverride, type BatchSessionEffectiveContextLimits, type BatchSessionFormCode, BatchSessionService, type BatchSessionState, type BatchStreamBuildResult, type BatchUploadOptions, type BatchUploadResult, type BatchValidationResult, type BlockContextAuthenticationRequest, type BuildFakturaOptions, type BuildPefOptions, type BuyerIdentifierType, CERTIFICATE_NAME_MAX_LENGTH, CERTIFICATE_NAME_MIN_LENGTH, CertificateApiService, type CertificateAuthOptions, type CertificateEffectiveSubjectLimits, type CertificateEnrollmentDataResponse, type CertificateEnrollmentStatusResponse, CertificateFetcher, CertificateFingerprint, type CertificateLimit, type CertificateLimitsResponse, type CertificateListItem, CertificateName, type CertificateRevocationReason, CertificateService, type CertificateStatus, type CertificateSubjectIdentifier, type CertificateSubjectIdentifierType, type CertificateSubjectLimitsOverride, type CertificateType, type CircuitBreakerConfig, CircuitBreakerPolicy, type ContextIdentifier, type ContextIdentifierType, type ContinuationPoints, type CryptoEncryptionMethod, CryptographyService, type CsrResult, DEFAULT_FORM_CODE, DISCOURAGED_UNICODE_RANGES, DefaultAuthManager, type ECDigestCurve, ENFORCE_XADES_COMPLIANCE, ETD_NAMESPACE, type EffectiveApiRateLimitValues, type EffectiveApiRateLimits, type EffectiveContextLimits, type EffectiveSubjectLimits, type EncryptionData, type EncryptionInfo, type EnrollCertificateRequest, type EnrollCertificateResponse, type EnrollmentEffectiveSubjectLimits, type EnrollmentSubjectLimitsOverride, type EntityAuthorizationGrant, type EntityAuthorizationPermissionType, type EntityAuthorizationPermissionsSubjectIdentifierType, type EntityAuthorizationSubjectIdentifier, type EntityAuthorizationsAuthorIdentifier, type EntityAuthorizationsAuthorIdentifierType, type EntityAuthorizationsAuthorizedEntityIdentifier, type EntityAuthorizationsAuthorizedEntityIdentifierType, type EntityAuthorizationsAuthorizingEntityIdentifier, type EntityAuthorizationsAuthorizingEntityIdentifierType, type EntityAuthorizationsQueryType, type EntityByFingerprintDetails, type EntityDetails, type EntityPermission, EntityPermissionGrantBuilder, type EntityPermissionItem, type EntityPermissionItemType, type EntityPermissionsContextIdentifier, type EntityPermissionsContextIdentifierType, type EntityRole, type EntityRoleType, type EntityRolesParentEntityIdentifier, type EntityRolesParentEntityIdentifierType, type EntitySubjectByFingerprintDetailsType, type EntitySubjectByIdentifierDetailsType, type EntitySubjectDetailsType, type EntitySubjectIdentifier, Environment, type EnvironmentConfig, type EnvironmentName, type EuEntityAdministrationContextIdentifier, type EuEntityAdministrationPermissionsContextIdentifierType, type EuEntityAdministrationPermissionsSubjectIdentifierType, type EuEntityAdministrationSubjectIdentifier, type EuEntityDetails, type EuEntityPermission, type EuEntityPermissionSubjectDetails, type EuEntityPermissionSubjectDetailsType, type EuEntityPermissionType, type EuEntityPermissionsAuthorIdentifier, type EuEntityPermissionsAuthorIdentifierType, type EuEntityPermissionsQueryPermissionType, type EuEntityPermissionsSubjectIdentifier, type EuEntityPermissionsSubjectIdentifierType, type ExceptionDetails, type ExportAndDownloadOptions, type ExportDownloadResult, type ExportExtractedResult, type ExportOptions, type ExportResult, type ExternalSignatureAuthOptions, FAKTURA_NAMESPACE, FA_XSD_PATHS, FORM_CODES, FORM_CODE_KEYS, type FakturaInput, type FakturaSchema, FileHwmStore, type FileMetadata, FileOfflineInvoiceStorage, type ForbiddenProblemDetails, type ForbiddenReasonCode, type ForbiddenSecurityInfo, type FormCode, type FormType, type GoneProblemDetails, type GrantPermissionsAuthorizationRequest, type GrantPermissionsEntityRequest, type GrantPermissionsEuEntityAdminRequest, type GrantPermissionsEuEntityRepresentativeRequest, type GrantPermissionsEuEntityRequest, type GrantPermissionsIndirectRequest, type GrantPermissionsPersonRequest, type GrantPermissionsSubunitRequest, type HttpMethod, type HwmStore, INVOICE_TYPES_BY_SYSTEM_CODE, type IdDocument, InMemoryHwmStore, InMemoryOfflineInvoiceStorage, type IncrementalExportOptions, type IncrementalExportResult, type IndirectPermissionType, type IndirectPermissionsSubjectIdentifier, type IndirectPermissionsSubjectIdentifierType, type IndirectPermissionsTargetIdentifier, type IndirectPermissionsTargetIdentifierType, InternalId, InvoiceDownloadService, type InvoiceExportPackage, type InvoiceExportPackagePart, type InvoiceExportRequest, type InvoiceExportStatusResponse, type InvoiceFields, type InvoiceMetadata, type InvoiceMetadataAuthorizedSubject, type InvoiceMetadataBuyer, type InvoiceMetadataBuyerIdentifier, type InvoiceMetadataSeller, type InvoiceMetadataThirdSubject, type InvoiceMetadataThirdSubjectIdentifier, type InvoicePermissionType, type InvoiceQueryAmount, type InvoiceQueryBuyerIdentifier, type InvoiceQueryDateRange, type InvoiceQueryDateType, InvoiceQueryFilterBuilder, type InvoiceQueryFilters, type InvoiceResult, type InvoiceSchema, type InvoiceSchemaId, type InvoiceSerializerInput, type InvoiceStatusInfo, type InvoiceSubjectType, type InvoiceType, type InvoiceValidationError, type InvoiceValidationErrorCode, type InvoiceValidationResult, type InvoicingMode, Ip4Address, Ip4Mask, Ip4Range, KSEF_FEATURE_HEADER, KSeFApiError, type KSeFApiProblem, KSeFAuthStatusError, KSeFBadRequestError, KSeFBatchTimeoutError, KSeFCircuitOpenError, KSeFClient, type KSeFClientOptions, KSeFError, KSeFErrorCode, KSeFForbiddenError, KSeFGoneError, KSeFRateLimitError, KSeFSessionExpiredError, type KSeFTokenContext, KSeFUnauthorizedError, KSeFValidationError, KSeFXsdValidationError, type KsefMessagesResponse, KsefNumber, KsefNumberV35, KsefNumberV36, type KsefStatusResponse, type KsefSystemStatus, type KsefTokenPermissionType, type KsefTokenRequest, type KsefTokenResponse, type KsefTokenStatus, type LighthouseMessage, LighthouseService, LimitsService, type LoginResult, type MaintenanceWindow, Nip, NipVatUe, ORDER_MAP, type OfflineBatchResult, type OfflineCertificate, type OfflineInvoiceFilter, type OfflineInvoiceInputData, type OfflineInvoiceMetadata, type OfflineInvoiceOptions, type OfflineInvoiceStatus, type OfflineInvoiceStorage, type OfflineInvoiceUpdates, OfflineInvoiceWorkflow, type OfflineMode, type OfflineReason, type OfflineSubmissionResult, type OnlineSessionContextLimitsOverride, type OnlineSessionEffectiveContextLimits, type OnlineSessionFormCode, type OnlineSessionHandle, OnlineSessionService, type OnlineSessionState, type OpenBatchSessionRequest, type OpenBatchSessionResponse, type OpenOnlineSessionOptions, type OpenOnlineSessionRequest, type OpenOnlineSessionResponse, type OperationResponse, type OperationStatusInfo, PEF_NAMESPACE, PEF_XSD_PATHS, PERMISSION_DESCRIPTION_MAX_LENGTH, PERMISSION_DESCRIPTION_MIN_LENGTH, type PagedAuthorizationsResponse, type PagedPermissionsResponse, type PagedRolesResponse, type ParsedBatchUploadResult, type ParsedUpoInfo, type PartUploadRequest, type PefSchema, type PefUblCreditNoteInput, type PefUblDocumentInput, type PefUblInvoiceInput, PeppolId, type PeppolProvider, PeppolService, type PermissionState, type PermissionSubjectIdentifierType, type PermissionWithDelegate, type PermissionsAttachmentAllowedResponse, type PermissionsEuEntityDetails, type PermissionsOperationStatusResponse, PermissionsService, type PermissionsSubjectEntityByFingerprintDetails, type PermissionsSubjectEntityByIdentifierDetails, type PermissionsSubjectEntityDetails, type PermissionsSubjectPersonByFingerprintDetails, type PermissionsSubjectPersonDetails, type PersonByFingerprintWithIdentifierDetails, type PersonByFingerprintWithoutIdentifierDetails, type PersonByIdentifierDetails, type PersonCreateRequest, type PersonIdentifier, type PersonIdentifierType, type PersonPermission, PersonPermissionGrantBuilder, type PersonPermissionSubjectDetails, type PersonPermissionType, type PersonPermissionsAuthorIdentifier, type PersonPermissionsAuthorIdentifierType, type PersonPermissionsAuthorizedIdentifier, type PersonPermissionsAuthorizedIdentifierType, type PersonPermissionsContextIdentifier, type PersonPermissionsContextIdentifierType, type PersonPermissionsQueryType, type PersonPermissionsTargetIdentifier, type PersonPermissionsTargetIdentifierType, type PersonRemoveRequest, type PersonSubjectByFingerprintDetailsType, type PersonSubjectDetailsType, type PersonSubjectIdentifier, type PersonalPermission, type PersonalPermissionScopeType, type PersonalPermissionsAuthorizedIdentifier, type PersonalPermissionsAuthorizedIdentifierType, type PersonalPermissionsContextIdentifier, type PersonalPermissionsContextIdentifierType, type PersonalPermissionsTargetIdentifier, type PersonalPermissionsTargetIdentifierType, Pesel, type Pkcs12AuthOptions, Pkcs12Loader, type Pkcs12Result, type PollOptions, type PresignedUrlPolicy, type ProblemFields, type PublicKeyCertificate, type PublicKeyCertificateUsage, type QRCodeContextIdentifierType, type QrCodeOptions, type QrCodeResult, QrCodeService, type QueryAuthorizationsGrantsRequest, type QueryCertificatesRequest, type QueryCertificatesResponse, type QueryEntitiesGrantsRequest, type QueryEntitiesRolesRequest, type QueryEuEntitiesGrantsRequest, type QueryInvoicesMetadataResponse, type QueryKsefTokensOptions, type QueryKsefTokensResponse, type QueryPeppolProvidersResponse, type QueryPersonalGrantsRequest, type QueryPersonsGrantsRequest, type QuerySubordinateEntitiesRolesRequest, type QuerySubunitsGrantsRequest, type QueryTokensResponseItem, REQUIRED_CHALLENGE_LENGTH, type RateLimitConfig, RateLimitPolicy, ReferenceNumber, type ResolvedOptions, RestClient, RestRequest, type RestResponse, type RetrieveCertificatesListItem, type RetrieveCertificatesRequest, type RetrieveCertificatesResponse, type RetryPolicy, type RevokeCertificateRequest, RouteBuilder, Routes, SUBUNIT_NAME_MAX_LENGTH, SUBUNIT_NAME_MIN_LENGTH, SchemaRegistry, type SelfSignedCertificateResult, type SendAndCloseOptions, type SendInvoiceRequest, type SendInvoiceResponse, type SerializeInvoiceOptions, type SessionInvoiceStatusResponse, type SessionInvoicesResponse, type SessionStatus, type SessionStatusResponse, SessionStatusService, type SessionType, type SessionsFilter, type SessionsQueryResponse, type SessionsQueryResponseItem, type SetRateLimitsRequest, type SetSessionLimitsRequest, type SetSubjectLimitsRequest, Sha256Base64, SignatureService, type SortOrder, type StatusInfo, type SubjectCreateRequest, type SubjectRemoveRequest, type SubjectType, type SubmitOfflineInvoicesOptions, type SubordinateEntityRole, type SubordinateEntityRoleType, type SubordinateRoleSubordinateEntityIdentifier, type SubordinateRoleSubordinateEntityIdentifierType, type Subunit, type SubunitPermission, type SubunitPermissionScope, type SubunitPermissionsAuthorIdentifier, type SubunitPermissionsAuthorIdentifierType, type SubunitPermissionsAuthorizedIdentifier, type SubunitPermissionsContextIdentifier, type SubunitPermissionsContextIdentifierType, type SubunitPermissionsSubjectIdentifier, type SubunitPermissionsSubjectIdentifierType, type SubunitPermissionsSubunitIdentifier, type SubunitPermissionsSubunitIdentifierType, SystemCode, type TechnicalCorrectionOptions, type TestDataAuthenticationContextIdentifier, type TestDataAuthenticationContextIdentifierType, type TestDataAuthorizedIdentifier, type TestDataAuthorizedIdentifierType, type TestDataContextIdentifier, type TestDataContextIdentifierType, type TestDataPermission, type TestDataPermissionType, type TestDataPermissionsGrantRequest, type TestDataPermissionsRevokeRequest, TestDataService, type ThirdSubjectIdentifierType, type TokenAuthOptions, type TokenAuthorIdentifier, type TokenAuthorIdentifierType, type TokenContextIdentifier, type TokenContextIdentifierType, type TokenInfo, TokenService, type TokenStatusResponse, type TooManyRequestsProblemDetails, type TransportFn, type UnauthorizedProblemDetails, type UnblockContextAuthenticationRequest, type UnzipOptions, type UpoAuthProof, type UpoContextId, type UpoDokument, type UpoInfo, type UpoOpisPotwierdzenia, type UpoPage, type UpoPotwierdzenie, type UpoResponse, type UpoResult, type UpoUwierzytelnienie, UpoVersion, UpoVersion as UpoVersionType, type ValidateAgainstXsdResult, type ValidateOptions, type ValidationDetail, VatUe, VerificationLinkService, type X500NameFields, type XadesSubjectIdentifierType, type XmlConversionResult, type XmlDocument, type XmlObject, type XmlValue, type ZipEntryInput, addBusinessDays, assertNever, authenticateWithCertificate, authenticateWithExternalSignature, authenticateWithPkcs12, authenticateWithToken, batchValidationDetails, buildFakturaXml, buildPefXml, buildRawXmlString, buildUnsignedAuthTokenRequestXml, buildXml, buildXmlFromObject, calculateBackoff, calculateOfflineDeadline, comparePKey, createZip, decodeJwtPayload, deduplicateByKsefNumber, defaultCircuitBreakerPolicy, defaultPresignedUrlPolicy, defaultRateLimitPolicy, defaultRetryPolicy, defaultTransport, exportAndDownload, exportInvoices, extendDeadlineForMaintenance, extractInvoiceFields, getDefaultReason, getEffectiveStartDate, getFormCode, getPolishHolidays, getTimeUntilDeadline, incrementalExportAndDownload, isExpired, isFakturaInput, isFormCodeShape, isMissingLibxmljsError, isPefUblDocumentInput, isPolishHoliday, isRetryableError, isRetryableStatus, isValidBase64, isValidCertificateFingerprint, isValidCertificateName, isValidInternalId, isValidIp4Address, isValidKsefNumber, isValidKsefNumberV35, isValidKsefNumberV36, isValidNip, isValidNipVatUe, isValidPeppolId, isValidPesel, isValidReferenceNumber, isValidSha256Base64, isValidVatUe, libxmljsAvailable, nextBusinessDay, openOnlineSession, openSendAndClose, orderXmlObject, parseFormCode, parseKSeFTokenContext, parseRetryAfter, parseUpoXml, parseXml, pollUntil, resolveOptions, resolveXsdFor, resumeOnlineSession, runWithConcurrency, serializeInvoiceXml, sha256Base64, sleep, stripBom, toKodFormularza, unzip, updateContinuationPoint, uploadBatch, uploadBatchParsed, uploadBatchStream, uploadBatchStreamParsed, validate, validateAgainstXsd, validateBatch, validateBusinessRules, validateCharValidity, validateFormCodeForSession, validatePresignedUrl, validateSchema, validateWellFormedness, verifyHash, xmlToObject };
3438
+ export { ActiveSessionsService, type AllowedIps, type AmountType, type ApiErrorResponse, type ApiRateLimitValuesOverride, type ApiRateLimitsOverride, type AttachmentPermissionGrantRequest, type AttachmentPermissionRevokeRequest, type AuthChallengeResponse, type AuthKsefTokenRequest, AuthKsefTokenRequestBuilder, type AuthManager, type AuthResult, AuthService, type AuthSessionInfo, type AuthTokenRequest, AuthTokenRequestBuilder, type AuthTokenRequestXmlOptions, type AuthenticationInitResponse, type AuthenticationKsefToken, type AuthenticationListResponse, type AuthenticationMethod, type AuthenticationMethodInfo, type AuthenticationMethodInfoCategory, type AuthenticationOperationStatusResponse, type AuthenticationTokenRefreshResponse, type AuthenticationTokensResponse, type AuthorizationGrant, AuthorizationPermissionGrantBuilder, type AuthorizationPolicy, BATCH_MAX_PARTS, BATCH_MAX_PART_SIZE, BATCH_MAX_TOTAL_SIZE, type BadRequestErrorDetail, type BadRequestProblemDetails, Base64String, type BatchFileBuildOptions, type BatchFileBuildResult, BatchFileBuilder, type BatchFileInfo, type BatchFilePartInfo, type BatchPartSendingInfo, type BatchPartStreamSendingInfo, type BatchSessionContextLimitsOverride, type BatchSessionEffectiveContextLimits, type BatchSessionFormCode, BatchSessionService, type BatchSessionState, type BatchStreamBuildResult, type BatchUploadOptions, type BatchUploadResult, type BatchValidationResult, type BlockContextAuthenticationRequest, type BuildFakturaOptions, type BuildPefOptions, type BuyerIdentifierType, CERTIFICATE_NAME_MAX_LENGTH, CERTIFICATE_NAME_MIN_LENGTH, CertificateApiService, type CertificateAuthOptions, type CertificateEffectiveSubjectLimits, type CertificateEnrollmentDataResponse, type CertificateEnrollmentStatusResponse, CertificateFetcher, CertificateFingerprint, type CertificateLimit, type CertificateLimitsResponse, type CertificateListItem, CertificateName, type CertificateRevocationReason, CertificateService, type CertificateStatus, type CertificateSubjectIdentifier, type CertificateSubjectIdentifierType, type CertificateSubjectLimitsOverride, type CertificateType, type CircuitBreakerConfig, CircuitBreakerPolicy, type CompressionType, type ContextIdentifier, type ContextIdentifierType, type ContinuationPoints, type CryptoEncryptionMethod, CryptographyService, type CsrResult, DEFAULT_FORM_CODE, DISCOURAGED_UNICODE_RANGES, DefaultAuthManager, type ECDigestCurve, ENFORCE_XADES_COMPLIANCE, ETD_NAMESPACE, type EffectiveApiRateLimitValues, type EffectiveApiRateLimits, type EffectiveContextLimits, type EffectiveSubjectLimits, type EncryptionData, type EncryptionInfo, type EnrollCertificateRequest, type EnrollCertificateResponse, type EnrollmentEffectiveSubjectLimits, type EnrollmentSubjectLimitsOverride, type EntityAuthorizationGrant, type EntityAuthorizationPermissionType, type EntityAuthorizationPermissionsSubjectIdentifierType, type EntityAuthorizationSubjectIdentifier, type EntityAuthorizationsAuthorIdentifier, type EntityAuthorizationsAuthorIdentifierType, type EntityAuthorizationsAuthorizedEntityIdentifier, type EntityAuthorizationsAuthorizedEntityIdentifierType, type EntityAuthorizationsAuthorizingEntityIdentifier, type EntityAuthorizationsAuthorizingEntityIdentifierType, type EntityAuthorizationsQueryType, type EntityByFingerprintDetails, type EntityDetails, type EntityPermission, EntityPermissionGrantBuilder, type EntityPermissionItem, type EntityPermissionItemType, type EntityPermissionsContextIdentifier, type EntityPermissionsContextIdentifierType, type EntityRole, type EntityRoleType, type EntityRolesParentEntityIdentifier, type EntityRolesParentEntityIdentifierType, type EntitySubjectByFingerprintDetailsType, type EntitySubjectByIdentifierDetailsType, type EntitySubjectDetailsType, type EntitySubjectIdentifier, Environment, type EnvironmentConfig, type EnvironmentName, type EuEntityAdministrationContextIdentifier, type EuEntityAdministrationPermissionsContextIdentifierType, type EuEntityAdministrationPermissionsSubjectIdentifierType, type EuEntityAdministrationSubjectIdentifier, type EuEntityDetails, type EuEntityPermission, type EuEntityPermissionSubjectDetails, type EuEntityPermissionSubjectDetailsType, type EuEntityPermissionType, type EuEntityPermissionsAuthorIdentifier, type EuEntityPermissionsAuthorIdentifierType, type EuEntityPermissionsQueryPermissionType, type EuEntityPermissionsSubjectIdentifier, type EuEntityPermissionsSubjectIdentifierType, type ExceptionDetails, type ExportAndDownloadOptions, type ExportDownloadResult, type ExportExtractedResult, type ExportOptions, type ExportResult, type ExternalSignatureAuthOptions, FAKTURA_NAMESPACE, FA_XSD_PATHS, FORM_CODES, FORM_CODE_KEYS, type FakturaInput, type FakturaSchema, FileHwmStore, type FileMetadata, FileOfflineInvoiceStorage, type ForbiddenProblemDetails, type ForbiddenReasonCode, type ForbiddenSecurityInfo, type FormCode, type FormType, type GoneProblemDetails, type GrantPermissionsAuthorizationRequest, type GrantPermissionsEntityRequest, type GrantPermissionsEuEntityAdminRequest, type GrantPermissionsEuEntityRepresentativeRequest, type GrantPermissionsEuEntityRequest, type GrantPermissionsIndirectRequest, type GrantPermissionsPersonRequest, type GrantPermissionsSubunitRequest, type HttpMethod, type HwmStore, INVOICE_TYPES_BY_SYSTEM_CODE, type IdDocument, InMemoryHwmStore, InMemoryOfflineInvoiceStorage, type IncrementalExportOptions, type IncrementalExportResult, type IndirectPermissionType, type IndirectPermissionsSubjectIdentifier, type IndirectPermissionsSubjectIdentifierType, type IndirectPermissionsTargetIdentifier, type IndirectPermissionsTargetIdentifierType, InternalId, InvoiceDownloadService, type InvoiceExportPackage, type InvoiceExportPackagePart, type InvoiceExportRequest, type InvoiceExportStatusResponse, type InvoiceFields, type InvoiceMetadata, type InvoiceMetadataAuthorizedSubject, type InvoiceMetadataBuyer, type InvoiceMetadataBuyerIdentifier, type InvoiceMetadataSeller, type InvoiceMetadataThirdSubject, type InvoiceMetadataThirdSubjectIdentifier, type InvoicePermissionType, type InvoiceQueryAmount, type InvoiceQueryBuyerIdentifier, type InvoiceQueryDateRange, type InvoiceQueryDateType, InvoiceQueryFilterBuilder, type InvoiceQueryFilters, type InvoiceResult, type InvoiceSchema, type InvoiceSchemaId, type InvoiceSerializerInput, type InvoiceStatusInfo, type InvoiceSubjectType, type InvoiceType, type InvoiceValidationError, type InvoiceValidationErrorCode, type InvoiceValidationResult, type InvoicingMode, Ip4Address, Ip4Mask, Ip4Range, KSEF_FEATURE_HEADER, KSeFApiError, type KSeFApiProblem, KSeFAuthStatusError, KSeFBadRequestError, KSeFBatchTimeoutError, KSeFCircuitOpenError, KSeFClient, type KSeFClientOptions, KSeFError, KSeFErrorCode, KSeFForbiddenError, KSeFGoneError, KSeFRateLimitError, KSeFSessionExpiredError, type KSeFTokenContext, KSeFUnauthorizedError, KSeFUnknownPublicKeyError, KSeFValidationError, KSeFXsdValidationError, type KsefMessagesResponse, KsefNumber, KsefNumberV35, KsefNumberV36, type KsefStatusResponse, type KsefSystemStatus, type KsefTokenPermissionType, type KsefTokenRequest, type KsefTokenResponse, type KsefTokenStatus, type LighthouseMessage, LighthouseService, LimitsService, type LoginResult, type MaintenanceWindow, Nip, NipVatUe, ORDER_MAP, type OfflineBatchResult, type OfflineCertificate, type OfflineInvoiceFilter, type OfflineInvoiceInputData, type OfflineInvoiceMetadata, type OfflineInvoiceOptions, type OfflineInvoiceStatus, type OfflineInvoiceStorage, type OfflineInvoiceUpdates, OfflineInvoiceWorkflow, type OfflineMode, type OfflineReason, type OfflineSubmissionResult, type OnlineSessionContextLimitsOverride, type OnlineSessionEffectiveContextLimits, type OnlineSessionFormCode, type OnlineSessionHandle, OnlineSessionService, type OnlineSessionState, type OpenBatchSessionRequest, type OpenBatchSessionResponse, type OpenOnlineSessionOptions, type OpenOnlineSessionRequest, type OpenOnlineSessionResponse, type OperationResponse, type OperationStatusInfo, PEF_NAMESPACE, PEF_XSD_PATHS, PERMISSION_DESCRIPTION_MAX_LENGTH, PERMISSION_DESCRIPTION_MIN_LENGTH, type PagedAuthorizationsResponse, type PagedPermissionsResponse, type PagedRolesResponse, type ParsedBatchUploadResult, type ParsedUpoInfo, type PartUploadRequest, type PefSchema, type PefUblCreditNoteInput, type PefUblDocumentInput, type PefUblInvoiceInput, PeppolId, type PeppolProvider, PeppolService, type PermissionState, type PermissionSubjectIdentifierType, type PermissionWithDelegate, type PermissionsAttachmentAllowedResponse, type PermissionsEuEntityDetails, type PermissionsOperationStatusResponse, PermissionsService, type PermissionsSubjectEntityByFingerprintDetails, type PermissionsSubjectEntityByIdentifierDetails, type PermissionsSubjectEntityDetails, type PermissionsSubjectPersonByFingerprintDetails, type PermissionsSubjectPersonDetails, type PersonByFingerprintWithIdentifierDetails, type PersonByFingerprintWithoutIdentifierDetails, type PersonByIdentifierDetails, type PersonCreateRequest, type PersonIdentifier, type PersonIdentifierType, type PersonPermission, PersonPermissionGrantBuilder, type PersonPermissionSubjectDetails, type PersonPermissionType, type PersonPermissionsAuthorIdentifier, type PersonPermissionsAuthorIdentifierType, type PersonPermissionsAuthorizedIdentifier, type PersonPermissionsAuthorizedIdentifierType, type PersonPermissionsContextIdentifier, type PersonPermissionsContextIdentifierType, type PersonPermissionsQueryType, type PersonPermissionsTargetIdentifier, type PersonPermissionsTargetIdentifierType, type PersonRemoveRequest, type PersonSubjectByFingerprintDetailsType, type PersonSubjectDetailsType, type PersonSubjectIdentifier, type PersonalPermission, type PersonalPermissionScopeType, type PersonalPermissionsAuthorizedIdentifier, type PersonalPermissionsAuthorizedIdentifierType, type PersonalPermissionsContextIdentifier, type PersonalPermissionsContextIdentifierType, type PersonalPermissionsTargetIdentifier, type PersonalPermissionsTargetIdentifierType, Pesel, type Pkcs12AuthOptions, Pkcs12Loader, type Pkcs12Result, type PollOptions, type PresignedUrlPolicy, type ProblemFields, type PublicKeyCertificate, type PublicKeyCertificateUsage, type QRCodeContextIdentifierType, type QrCodeOptions, type QrCodeResult, QrCodeService, type QueryAuthorizationsGrantsRequest, type QueryCertificatesRequest, type QueryCertificatesResponse, type QueryEntitiesGrantsRequest, type QueryEntitiesRolesRequest, type QueryEuEntitiesGrantsRequest, type QueryInvoicesMetadataResponse, type QueryKsefTokensOptions, type QueryKsefTokensResponse, type QueryPeppolProvidersResponse, type QueryPersonalGrantsRequest, type QueryPersonsGrantsRequest, type QuerySubordinateEntitiesRolesRequest, type QuerySubunitsGrantsRequest, type QueryTokensResponseItem, REQUIRED_CHALLENGE_LENGTH, type RateLimitConfig, RateLimitPolicy, ReferenceNumber, type ResolvedOptions, RestClient, RestRequest, type RestResponse, type RetrieveCertificatesListItem, type RetrieveCertificatesRequest, type RetrieveCertificatesResponse, type RetryPolicy, type RevokeCertificateRequest, RouteBuilder, Routes, SUBUNIT_NAME_MAX_LENGTH, SUBUNIT_NAME_MIN_LENGTH, SchemaRegistry, type SelfSignedCertificateResult, type SendAndCloseOptions, type SendInvoiceRequest, type SendInvoiceResponse, type SerializeInvoiceOptions, type SessionInvoiceStatusResponse, type SessionInvoicesResponse, type SessionStatus, type SessionStatusResponse, SessionStatusService, type SessionType, type SessionsFilter, type SessionsQueryResponse, type SessionsQueryResponseItem, type SetRateLimitsRequest, type SetSessionLimitsRequest, type SetSubjectLimitsRequest, Sha256Base64, SignatureService, type SortOrder, type StatusInfo, type SubjectCreateRequest, type SubjectRemoveRequest, type SubjectType, type SubmitOfflineInvoicesOptions, type SubordinateEntityRole, type SubordinateEntityRoleType, type SubordinateRoleSubordinateEntityIdentifier, type SubordinateRoleSubordinateEntityIdentifierType, type Subunit, type SubunitPermission, type SubunitPermissionScope, type SubunitPermissionsAuthorIdentifier, type SubunitPermissionsAuthorIdentifierType, type SubunitPermissionsAuthorizedIdentifier, type SubunitPermissionsContextIdentifier, type SubunitPermissionsContextIdentifierType, type SubunitPermissionsSubjectIdentifier, type SubunitPermissionsSubjectIdentifierType, type SubunitPermissionsSubunitIdentifier, type SubunitPermissionsSubunitIdentifierType, SystemCode, type TechnicalCorrectionOptions, type TestDataAuthenticationContextIdentifier, type TestDataAuthenticationContextIdentifierType, type TestDataAuthorizedIdentifier, type TestDataAuthorizedIdentifierType, type TestDataContextIdentifier, type TestDataContextIdentifierType, type TestDataPermission, type TestDataPermissionType, type TestDataPermissionsGrantRequest, type TestDataPermissionsRevokeRequest, TestDataService, type ThirdSubjectIdentifierType, type TokenAuthOptions, type TokenAuthorIdentifier, type TokenAuthorIdentifierType, type TokenContextIdentifier, type TokenContextIdentifierType, type TokenInfo, TokenService, type TokenStatusResponse, type TooManyRequestsProblemDetails, type TransportFn, type UnauthorizedProblemDetails, type UnblockContextAuthenticationRequest, type UnzipOptions, type UpoAuthProof, type UpoContextId, type UpoDokument, type UpoInfo, type UpoOpisPotwierdzenia, type UpoPage, type UpoPotwierdzenie, type UpoResponse, type UpoResult, type UpoUwierzytelnienie, UpoVersion, UpoVersion as UpoVersionType, type ValidateAgainstXsdResult, type ValidateOptions, type ValidationDetail, VatUe, VerificationLinkService, type X500NameFields, type XadesSubjectIdentifierType, type XmlConversionResult, type XmlDocument, type XmlObject, type XmlValue, type ZipEntryInput, addBusinessDays, assertNever, authenticateWithCertificate, authenticateWithExternalSignature, authenticateWithPkcs12, authenticateWithToken, batchValidationDetails, buildFakturaXml, buildPefXml, buildRawXmlString, buildUnsignedAuthTokenRequestXml, buildXml, buildXmlFromObject, calculateBackoff, calculateOfflineDeadline, comparePKey, createTarGz, createZip, decodeJwtPayload, deduplicateByKsefNumber, defaultCircuitBreakerPolicy, defaultPresignedUrlPolicy, defaultRateLimitPolicy, defaultRetryPolicy, defaultTransport, exportAndDownload, exportInvoices, extendDeadlineForMaintenance, extractInvoiceFields, extractTarGz, getDefaultReason, getEffectiveStartDate, getFormCode, getPolishHolidays, getTimeUntilDeadline, incrementalExportAndDownload, isExpired, isFakturaInput, isFormCodeShape, isMissingLibxmljsError, isPefUblDocumentInput, isPolishHoliday, isRetryableError, isRetryableStatus, isValidBase64, isValidCertificateFingerprint, isValidCertificateName, isValidInternalId, isValidIp4Address, isValidKsefNumber, isValidKsefNumberV35, isValidKsefNumberV36, isValidNip, isValidNipVatUe, isValidPeppolId, isValidPesel, isValidReferenceNumber, isValidSha256Base64, isValidVatUe, libxmljsAvailable, nextBusinessDay, openOnlineSession, openSendAndClose, orderXmlObject, parseFormCode, parseKSeFTokenContext, parseRetryAfter, parseUpoXml, parseXml, pollUntil, resolveOptions, resolveXsdFor, resumeOnlineSession, runWithConcurrency, serializeInvoiceXml, sha256Base64, sleep, stripBom, toKodFormularza, unzip, updateContinuationPoint, uploadBatch, uploadBatchParsed, uploadBatchStream, uploadBatchStreamParsed, validate, validateAgainstXsd, validateBatch, validateBusinessRules, validateCharValidity, validateFormCodeForSession, validatePresignedUrl, validateSchema, validateWellFormedness, verifyHash, xmlToObject };