ksef-client-ts 0.9.0 → 0.10.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.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { ZodType } from 'zod';
2
+ import { C as ContextIdentifier, T as TokenInfo, O as OperationStatusInfo, F as FormCode, E as EncryptionInfo, a as CompressionType, b as FileMetadata, S as SessionStatus, I as InvoicingMode, P as PermissionSubjectIdentifierType, c as InvoiceType, d as SessionType, e as InvoiceResult, f as InvoiceQueryFilters, g as SortOrder, Q as QueryInvoicesMetadataResponse, h as InvoiceExportRequest, i as OperationResponse, j as InvoiceExportStatusResponse, k as InvoiceSubjectType, l as InvoiceQueryDateType, A as AmountType, B as BuyerIdentifierType, m as FormType, n as OfflineInvoiceInputData, o as OfflineInvoiceOptions, p as OfflineInvoiceMetadata, q as OfflineInvoiceStorage, r as OfflineBatchResult, s as OfflineCertificate, t as OfflineSubmissionResult, u as ContinuationPoints, H as HwmStore, v as InvoiceMetadata, w as OfflineMode, M as MaintenanceWindow, x as OfflineReason } from './hwm-storage-DQ4PCfBN.js';
3
+ export { y as ContextIdentifierType, z as InMemoryHwmStore, D as InMemoryOfflineInvoiceStorage, G as InvoiceExportPackage, J as InvoiceExportPackagePart, K as InvoiceMetadataAuthorizedSubject, L as InvoiceMetadataBuyer, N as InvoiceMetadataBuyerIdentifier, R as InvoiceMetadataSeller, U as InvoiceMetadataThirdSubject, V as InvoiceMetadataThirdSubjectIdentifier, W as InvoiceQueryAmount, X as InvoiceQueryBuyerIdentifier, Y as InvoiceQueryDateRange, Z as OfflineInvoiceFilter, _ as OfflineInvoiceStatus, $ as OfflineInvoiceUpdates, a0 as ThirdSubjectIdentifierType, a1 as deduplicateByKsefNumber, a2 as getEffectiveStartDate, a3 as updateContinuationPoint } from './hwm-storage-DQ4PCfBN.js';
2
4
  import * as crypto from 'node:crypto';
3
5
 
4
6
  interface EnvironmentConfig {
@@ -320,6 +322,18 @@ declare class KSeFSessionExpiredError extends KSeFError {
320
322
  constructor(message?: string);
321
323
  }
322
324
 
325
+ /**
326
+ * Thrown when the metadata-query paging helper cannot make forward progress
327
+ * across an `isTruncated` boundary — e.g. a capped window whose entire result
328
+ * set shares the same boundary date, so re-narrowing the date range never
329
+ * advances. Raised instead of looping forever.
330
+ */
331
+ declare class KSeFMetadataPaginationError extends KSeFError {
332
+ /** The boundary date value that failed to advance. */
333
+ readonly boundaryValue: string;
334
+ constructor(message: string, boundaryValue: string);
335
+ }
336
+
323
337
  declare class KSeFBatchTimeoutError extends KSeFApiError {
324
338
  readonly errorCode: 21208;
325
339
  constructor(message: string, statusCode: number, errorResponse?: ApiErrorResponse);
@@ -605,6 +619,7 @@ declare const KsefNumberV36: RegExp;
605
619
  declare const CertificateName: RegExp;
606
620
  declare const Pesel: RegExp;
607
621
  declare const CertificateFingerprint: RegExp;
622
+ declare const CertificateSerialNumber: RegExp;
608
623
  declare const Base64String: RegExp;
609
624
  declare const Ip4Address: RegExp;
610
625
  declare const Ip4Range: RegExp;
@@ -622,6 +637,7 @@ declare function isValidKsefNumberV36(value: string): boolean;
622
637
  declare function isValidPesel(value: string): boolean;
623
638
  declare function isValidCertificateName(value: string): boolean;
624
639
  declare function isValidCertificateFingerprint(value: string): boolean;
640
+ declare function isValidCertificateSerialNumber(value: string): boolean;
625
641
  declare function isValidBase64(value: string): boolean;
626
642
  declare function isValidIp4Address(value: string): boolean;
627
643
  declare function isValidSha256Base64(value: string): boolean;
@@ -805,64 +821,6 @@ declare const DISCOURAGED_UNICODE_RANGES: ReadonlyArray<readonly [number, number
805
821
  */
806
822
  declare function validateCharValidity(xml: string): InvoiceValidationError[];
807
823
 
808
- type InvoiceSchemaId = 'FA2' | 'FA3' | 'PEF' | 'PEF_KOR';
809
- declare const FA_XSD_PATHS: {
810
- readonly FA2: string;
811
- readonly FA3: string;
812
- };
813
- declare const PEF_XSD_PATHS: {
814
- readonly PEF: string;
815
- readonly PEF_KOR: string;
816
- };
817
- declare function resolveXsdFor(schema: InvoiceSchemaId): string;
818
- interface ValidateAgainstXsdResult {
819
- valid: boolean;
820
- errors: string[];
821
- }
822
- declare const libxmljsAvailable: boolean;
823
- declare function isMissingLibxmljsError(err: unknown): boolean;
824
- declare function validateAgainstXsd(xml: string, xsdPath: string): ValidateAgainstXsdResult;
825
-
826
- interface OperationResponse {
827
- referenceNumber: string;
828
- }
829
- interface OperationStatusInfo {
830
- code: number;
831
- description: string;
832
- details?: string[] | null;
833
- }
834
- interface TokenInfo {
835
- token: string;
836
- validUntil: string;
837
- }
838
- interface FormCode {
839
- systemCode: string;
840
- schemaVersion: string;
841
- value: string;
842
- }
843
- interface EncryptionInfo {
844
- encryptedSymmetricKey: string;
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;
848
- }
849
- interface FileMetadata {
850
- hashSHA: string;
851
- fileSize: number;
852
- }
853
- type ContextIdentifierType = 'Nip' | 'InternalId' | 'NipVatUe' | 'PeppolId';
854
- interface ContextIdentifier {
855
- type: ContextIdentifierType;
856
- value: string;
857
- }
858
- /** Archive compression for batch upload / invoice export packages (KSeF API v2.6.0). Defaults to `Zip`. */
859
- type CompressionType = 'Zip' | 'TarGz';
860
- type SessionType = 'Online' | 'Batch';
861
- type SessionStatus = 'Succeeded' | 'InProgress' | 'Failed' | 'Cancelled';
862
- type SortOrder = 'Asc' | 'Desc';
863
- type InvoicingMode = 'Online' | 'Offline';
864
- type PermissionSubjectIdentifierType = 'Nip' | 'Pesel' | 'Fingerprint';
865
-
866
824
  interface AuthChallengeResponse {
867
825
  challenge: string;
868
826
  timestamp: string;
@@ -1111,145 +1069,6 @@ interface BatchSessionState {
1111
1069
  partUploadRequests: PartUploadRequest[];
1112
1070
  }
1113
1071
 
1114
- /**
1115
- * Invoice subject type — defines the taxpayer's role in the invoice.
1116
- * - `Subject1` — seller (invoices issued by us)
1117
- * - `Subject2` — buyer (invoices received by us)
1118
- * - `Subject3` — third party (e.g. intermediary)
1119
- * - `SubjectAuthorized` — authorized subject acting on behalf of seller/buyer
1120
- */
1121
- type InvoiceSubjectType = 'Subject1' | 'Subject2' | 'Subject3' | 'SubjectAuthorized';
1122
- type InvoiceQueryDateType = 'Issue' | 'Invoicing' | 'PermanentStorage';
1123
- type AmountType = 'Brutto' | 'Netto' | 'Vat';
1124
- type BuyerIdentifierType = 'Nip' | 'VatUe' | 'Other' | 'None';
1125
- type ThirdSubjectIdentifierType = 'Nip' | 'InternalId' | 'VatUe' | 'Other' | 'None';
1126
- type FormType = 'FA' | 'PEF' | 'FA_RR';
1127
- type InvoiceType = 'Vat' | 'Zal' | 'Kor' | 'Roz' | 'Upr' | 'KorZal' | 'KorRoz' | 'VatPef' | 'VatPefSp' | 'KorPef' | 'VatRr' | 'KorVatRr';
1128
- interface InvoiceQueryDateRange {
1129
- dateType: InvoiceQueryDateType;
1130
- from: string;
1131
- to?: string;
1132
- restrictToPermanentStorageHwmDate?: boolean;
1133
- }
1134
- interface InvoiceQueryAmount {
1135
- type: AmountType;
1136
- from?: number;
1137
- to?: number;
1138
- }
1139
- interface InvoiceQueryBuyerIdentifier {
1140
- type: BuyerIdentifierType;
1141
- value?: string;
1142
- }
1143
- interface InvoiceQueryFilters {
1144
- subjectType: InvoiceSubjectType;
1145
- dateRange: InvoiceQueryDateRange;
1146
- ksefNumber?: string;
1147
- invoiceNumber?: string;
1148
- amount?: InvoiceQueryAmount;
1149
- sellerNip?: string;
1150
- buyerIdentifier?: InvoiceQueryBuyerIdentifier;
1151
- currencyCodes?: string[];
1152
- invoicingMode?: InvoicingMode;
1153
- isSelfInvoicing?: boolean;
1154
- formType?: FormType;
1155
- invoiceTypes?: InvoiceType[];
1156
- hasAttachment?: boolean;
1157
- }
1158
- interface InvoiceMetadataSeller {
1159
- nip: string;
1160
- name?: string;
1161
- }
1162
- interface InvoiceMetadataBuyerIdentifier {
1163
- type: BuyerIdentifierType;
1164
- value?: string;
1165
- }
1166
- interface InvoiceMetadataBuyer {
1167
- identifier: InvoiceMetadataBuyerIdentifier;
1168
- name?: string;
1169
- }
1170
- interface InvoiceMetadataThirdSubjectIdentifier {
1171
- type: ThirdSubjectIdentifierType;
1172
- value?: string | null;
1173
- }
1174
- interface InvoiceMetadataThirdSubject {
1175
- identifier: InvoiceMetadataThirdSubjectIdentifier;
1176
- name?: string | null;
1177
- role: number;
1178
- }
1179
- interface InvoiceMetadataAuthorizedSubject {
1180
- nip: string;
1181
- name?: string;
1182
- role: number;
1183
- }
1184
- interface InvoiceMetadata {
1185
- ksefNumber: string;
1186
- invoiceNumber: string;
1187
- issueDate: string;
1188
- invoicingDate: string;
1189
- acquisitionDate: string;
1190
- permanentStorageDate: string;
1191
- seller: InvoiceMetadataSeller;
1192
- buyer: InvoiceMetadataBuyer;
1193
- netAmount: number;
1194
- grossAmount: number;
1195
- vatAmount: number;
1196
- currency: string;
1197
- invoicingMode: InvoicingMode;
1198
- invoiceType: InvoiceType;
1199
- formCode: FormCode;
1200
- isSelfInvoicing: boolean;
1201
- hasAttachment: boolean;
1202
- invoiceHash: string;
1203
- hashOfCorrectedInvoice?: string;
1204
- thirdSubjects?: InvoiceMetadataThirdSubject[];
1205
- authorizedSubject?: InvoiceMetadataAuthorizedSubject;
1206
- }
1207
- interface QueryInvoicesMetadataResponse {
1208
- hasMore: boolean;
1209
- isTruncated: boolean;
1210
- invoices: InvoiceMetadata[];
1211
- permanentStorageHwmDate?: string;
1212
- }
1213
- interface InvoiceResult {
1214
- xml: string;
1215
- /** SHA-256 base64 hash from the `x-ms-meta-hash` response header, if present. */
1216
- hash?: string;
1217
- }
1218
- interface InvoiceExportRequest {
1219
- encryption: EncryptionInfo;
1220
- filters: InvoiceQueryFilters;
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;
1224
- }
1225
- interface InvoiceExportPackagePart {
1226
- ordinalNumber: number;
1227
- partName: string;
1228
- method: string;
1229
- url: string;
1230
- partSize: number;
1231
- partHash: string;
1232
- encryptedPartSize: number;
1233
- encryptedPartHash: string;
1234
- expirationDate: string;
1235
- }
1236
- interface InvoiceExportPackage {
1237
- invoiceCount: number;
1238
- size: number;
1239
- parts: InvoiceExportPackagePart[];
1240
- isTruncated: boolean;
1241
- lastIssueDate?: string;
1242
- lastInvoicingDate?: string;
1243
- lastPermanentStorageDate?: string;
1244
- permanentStorageHwmDate?: string;
1245
- }
1246
- interface InvoiceExportStatusResponse {
1247
- status: OperationStatusInfo;
1248
- completedDate?: string;
1249
- packageExpirationDate?: string;
1250
- package?: InvoiceExportPackage;
1251
- }
1252
-
1253
1072
  type PersonPermissionType = 'InvoiceRead' | 'InvoiceWrite' | 'CredentialsRead' | 'CredentialsManage' | 'EnforcementOperations' | 'SubunitManage' | 'Introspection';
1254
1073
  type SubunitPermissionScope = 'CredentialsManage';
1255
1074
  type EuEntityPermissionType = 'InvoiceRead' | 'InvoiceWrite';
@@ -3043,119 +2862,6 @@ declare function pollUntil<T>(action: () => Promise<T>, condition: (result: T) =
3043
2862
  description?: string;
3044
2863
  }): Promise<T>;
3045
2864
 
3046
- interface OfflineInvoiceFilter {
3047
- status?: OfflineInvoiceStatus | OfflineInvoiceStatus[];
3048
- mode?: OfflineMode;
3049
- expiringBefore?: Date | string;
3050
- sellerNip?: string;
3051
- }
3052
- type OfflineInvoiceUpdates = Omit<Partial<OfflineInvoiceMetadata>, 'id'>;
3053
- interface OfflineInvoiceStorage {
3054
- save(invoice: OfflineInvoiceMetadata): Promise<void>;
3055
- get(id: string): Promise<OfflineInvoiceMetadata | null>;
3056
- list(filter?: OfflineInvoiceFilter): Promise<OfflineInvoiceMetadata[]>;
3057
- update(id: string, updates: OfflineInvoiceUpdates): Promise<void>;
3058
- delete(id: string): Promise<void>;
3059
- }
3060
- declare class InMemoryOfflineInvoiceStorage implements OfflineInvoiceStorage {
3061
- private readonly store;
3062
- save(invoice: OfflineInvoiceMetadata): Promise<void>;
3063
- get(id: string): Promise<OfflineInvoiceMetadata | null>;
3064
- list(filter?: OfflineInvoiceFilter): Promise<OfflineInvoiceMetadata[]>;
3065
- update(id: string, updates: OfflineInvoiceUpdates): Promise<void>;
3066
- delete(id: string): Promise<void>;
3067
- }
3068
-
3069
- /** Offline invoice modes per KSeF docs (art. 106nda/106nh/106nf) */
3070
- type OfflineMode = 'offline24' | 'offline' | 'awaryjny' | 'awaria_calkowita';
3071
- /** Why this invoice was issued offline */
3072
- type OfflineReason = 'PLANNED' | 'SYSTEM_UNAVAILABLE' | 'EMERGENCY' | 'TOTAL_FAILURE';
3073
- /**
3074
- * Offline invoice lifecycle state machine:
3075
- * GENERATED → QUEUED → SUBMITTED → ACCEPTED | REJECTED
3076
- * Any non-terminal → EXPIRED
3077
- */
3078
- type OfflineInvoiceStatus = 'GENERATED' | 'QUEUED' | 'SUBMITTED' | 'ACCEPTED' | 'REJECTED' | 'CORRECTED' | 'EXPIRED';
3079
- interface OfflineInvoiceInputData {
3080
- invoiceNumber: string;
3081
- invoiceDate: string;
3082
- invoiceXml: string;
3083
- sellerNip: string;
3084
- sellerIdentifier: ContextIdentifier;
3085
- buyerIdentifier?: ContextIdentifier;
3086
- totalAmount?: number;
3087
- currency?: string;
3088
- }
3089
- interface OfflineCertificate {
3090
- privateKeyPem: string;
3091
- certificateSerial: string;
3092
- password?: string;
3093
- }
3094
- interface MaintenanceWindow {
3095
- id: string;
3096
- startTime: string;
3097
- endTime?: string;
3098
- active: boolean;
3099
- planned: boolean;
3100
- reason?: string;
3101
- }
3102
- interface OfflineInvoiceMetadata {
3103
- id: string;
3104
- mode: OfflineMode;
3105
- reason: OfflineReason;
3106
- status: OfflineInvoiceStatus;
3107
- invoiceNumber: string;
3108
- invoiceDate: string;
3109
- invoiceXml: string;
3110
- sellerNip: string;
3111
- sellerIdentifier: ContextIdentifier;
3112
- buyerIdentifier?: ContextIdentifier;
3113
- totalAmount?: number;
3114
- currency?: string;
3115
- kod1Url: string;
3116
- kod2Url?: string;
3117
- generatedAt: string;
3118
- submitBy: string;
3119
- submittedAt?: string;
3120
- acceptedAt?: string;
3121
- ksefReferenceNumber?: string;
3122
- error?: {
3123
- code: number;
3124
- message: string;
3125
- details?: string[];
3126
- };
3127
- maintenanceWindowId?: string;
3128
- correctedInvoiceId?: string;
3129
- correctedBy?: string;
3130
- }
3131
- interface OfflineInvoiceOptions {
3132
- mode?: OfflineMode;
3133
- certificate?: OfflineCertificate;
3134
- maintenanceWindow?: MaintenanceWindow;
3135
- customDeadline?: Date | string;
3136
- storage?: OfflineInvoiceStorage;
3137
- }
3138
- interface OfflineBatchResult {
3139
- total: number;
3140
- submitted: number;
3141
- accepted: number;
3142
- rejected: number;
3143
- failed: number;
3144
- expired: number;
3145
- results: OfflineSubmissionResult[];
3146
- }
3147
- interface OfflineSubmissionResult {
3148
- invoiceId: string;
3149
- invoiceNumber: string;
3150
- status: OfflineInvoiceStatus;
3151
- ksefReferenceNumber?: string;
3152
- error?: {
3153
- code: number;
3154
- message: string;
3155
- details?: string[];
3156
- };
3157
- }
3158
-
3159
2865
  interface SubmitOfflineInvoicesOptions {
3160
2866
  storage: OfflineInvoiceStorage;
3161
2867
  invoiceIds?: string[];
@@ -3264,29 +2970,6 @@ declare function exportAndDownload(client: KSeFClient, filters: InvoiceQueryFilt
3264
2970
  }): Promise<ExportExtractedResult>;
3265
2971
  declare function exportAndDownload(client: KSeFClient, filters: InvoiceQueryFilters, options?: ExportAndDownloadOptions): Promise<ExportDownloadResult>;
3266
2972
 
3267
- type ContinuationPoints = Record<string, string | undefined>;
3268
- declare function updateContinuationPoint(points: ContinuationPoints, subjectType: string, pkg: Pick<InvoiceExportPackage, 'isTruncated' | 'lastPermanentStorageDate' | 'permanentStorageHwmDate'>): void;
3269
- declare function getEffectiveStartDate(points: ContinuationPoints, subjectType: string, windowFrom: string): string;
3270
- declare function deduplicateByKsefNumber<T extends {
3271
- ksefNumber: string;
3272
- }>(entries: T[]): T[];
3273
-
3274
- interface HwmStore {
3275
- load(): Promise<ContinuationPoints>;
3276
- save(points: ContinuationPoints): Promise<void>;
3277
- }
3278
- declare class InMemoryHwmStore implements HwmStore {
3279
- private points;
3280
- load(): Promise<ContinuationPoints>;
3281
- save(points: ContinuationPoints): Promise<void>;
3282
- }
3283
- declare class FileHwmStore implements HwmStore {
3284
- private readonly filePath;
3285
- constructor(filePath: string);
3286
- load(): Promise<ContinuationPoints>;
3287
- save(points: ContinuationPoints): Promise<void>;
3288
- }
3289
-
3290
2973
  interface IncrementalExportOptions {
3291
2974
  subjectType: InvoiceSubjectType;
3292
2975
  windowFrom: string;
@@ -3353,6 +3036,45 @@ interface ExternalSignatureAuthOptions {
3353
3036
  declare function authenticateWithExternalSignature(client: KSeFClient, options: ExternalSignatureAuthOptions): Promise<AuthResult>;
3354
3037
  declare function authenticateWithPkcs12(client: KSeFClient, options: Pkcs12AuthOptions): Promise<AuthResult>;
3355
3038
 
3039
+ /** Minimal surface of {@link KSeFClient} the paging helper depends on. */
3040
+ type MetadataQueryClient = Pick<KSeFClient, 'invoices'>;
3041
+ interface QueryAllMetadataOptions {
3042
+ /** Sort direction. Defaults to `'Asc'`. Determines which date boundary is re-narrowed on truncation. */
3043
+ sortOrder?: SortOrder;
3044
+ /** Page size per request. Defaults to 100. */
3045
+ pageSize?: number;
3046
+ /**
3047
+ * Safety cap on the number of `isTruncated` boundaries crossed. Defaults to 1000.
3048
+ * Exceeding it throws {@link KSeFMetadataPaginationError}.
3049
+ */
3050
+ maxBoundaryCrossings?: number;
3051
+ }
3052
+ /**
3053
+ * Async iterator over `POST /invoices/query/metadata` that reads a match of any
3054
+ * size, transparently crossing the server's ~10k truncation cap.
3055
+ *
3056
+ * Two layers of paging are handled:
3057
+ * 1. **Normal paging** — advances `pageOffset` while `hasMore` is true.
3058
+ * 2. **Truncation boundary** — when `isTruncated` is true the window was capped;
3059
+ * the date range is re-narrowed to the last invoice's boundary (sort `Asc`
3060
+ * pushes `from` forward, `Desc` pulls `to` backward), offset resets to 0,
3061
+ * and paging resumes.
3062
+ *
3063
+ * Invoices are de-duplicated by KSeF number across boundaries (the boundary
3064
+ * invoice appears in both windows). If a re-narrowed window makes no progress
3065
+ * (its boundary equals the previous one), {@link KSeFMetadataPaginationError}
3066
+ * is thrown rather than looping forever.
3067
+ *
3068
+ * The caller's `filters` object is not mutated.
3069
+ */
3070
+ declare function queryAllInvoiceMetadata(client: MetadataQueryClient, filters: InvoiceQueryFilters, options?: QueryAllMetadataOptions): AsyncGenerator<InvoiceMetadata, void, undefined>;
3071
+ /**
3072
+ * Convenience wrapper that drains {@link queryAllInvoiceMetadata} into a single
3073
+ * de-duplicated array. Use the generator directly for large result sets to keep
3074
+ * memory bounded.
3075
+ */
3076
+ declare function collectAllInvoiceMetadata(client: MetadataQueryClient, filters: InvoiceQueryFilters, options?: QueryAllMetadataOptions): Promise<InvoiceMetadata[]>;
3077
+
3356
3078
  /**
3357
3079
  * Offline invoice deadline calculation.
3358
3080
  *
@@ -3416,23 +3138,4 @@ declare function getPolishHolidays(year: number): ReadonlySet<string>;
3416
3138
  */
3417
3139
  declare function isPolishHoliday(date: Date): boolean;
3418
3140
 
3419
- declare class FileOfflineInvoiceStorage implements OfflineInvoiceStorage {
3420
- private readonly dir;
3421
- constructor(directory?: string);
3422
- private ensureDir;
3423
- private filePath;
3424
- save(invoice: OfflineInvoiceMetadata): Promise<void>;
3425
- get(id: string): Promise<OfflineInvoiceMetadata | null>;
3426
- list(filter?: OfflineInvoiceFilter): Promise<OfflineInvoiceMetadata[]>;
3427
- /**
3428
- * Update invoice metadata (read-modify-write).
3429
- *
3430
- * Note: No file locking — concurrent updates to the same ID may cause
3431
- * lost writes. Acceptable for CLI (single process). Library consumers
3432
- * running parallel operations should use external locking.
3433
- */
3434
- update(id: string, updates: OfflineInvoiceUpdates): Promise<void>;
3435
- delete(id: string): Promise<void>;
3436
- }
3437
-
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 };
3141
+ export { ActiveSessionsService, type AllowedIps, 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, 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, CertificateSerialNumber, CertificateService, type CertificateStatus, type CertificateSubjectIdentifier, type CertificateSubjectIdentifierType, type CertificateSubjectLimitsOverride, type CertificateType, type CircuitBreakerConfig, CircuitBreakerPolicy, CompressionType, ContextIdentifier, 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, 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, FORM_CODES, FORM_CODE_KEYS, type FakturaInput, type FakturaSchema, FileMetadata, type ForbiddenProblemDetails, type ForbiddenReasonCode, type ForbiddenSecurityInfo, FormCode, FormType, type GoneProblemDetails, type GrantPermissionsAuthorizationRequest, type GrantPermissionsEntityRequest, type GrantPermissionsEuEntityAdminRequest, type GrantPermissionsEuEntityRepresentativeRequest, type GrantPermissionsEuEntityRequest, type GrantPermissionsIndirectRequest, type GrantPermissionsPersonRequest, type GrantPermissionsSubunitRequest, type HttpMethod, HwmStore, INVOICE_TYPES_BY_SYSTEM_CODE, type IdDocument, type IncrementalExportOptions, type IncrementalExportResult, type IndirectPermissionType, type IndirectPermissionsSubjectIdentifier, type IndirectPermissionsSubjectIdentifierType, type IndirectPermissionsTargetIdentifier, type IndirectPermissionsTargetIdentifierType, InternalId, InvoiceDownloadService, InvoiceExportRequest, InvoiceExportStatusResponse, type InvoiceFields, InvoiceMetadata, type InvoicePermissionType, InvoiceQueryDateType, InvoiceQueryFilterBuilder, InvoiceQueryFilters, InvoiceResult, type InvoiceSchema, type InvoiceSerializerInput, type InvoiceStatusInfo, InvoiceSubjectType, InvoiceType, type InvoiceValidationError, type InvoiceValidationErrorCode, type InvoiceValidationResult, InvoicingMode, Ip4Address, Ip4Mask, Ip4Range, KSEF_FEATURE_HEADER, KSeFApiError, type KSeFApiProblem, KSeFAuthStatusError, KSeFBadRequestError, KSeFBatchTimeoutError, KSeFCircuitOpenError, KSeFClient, type KSeFClientOptions, KSeFError, KSeFErrorCode, KSeFForbiddenError, KSeFGoneError, KSeFMetadataPaginationError, 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, MaintenanceWindow, type MetadataQueryClient, Nip, NipVatUe, ORDER_MAP, OfflineBatchResult, OfflineCertificate, OfflineInvoiceInputData, OfflineInvoiceMetadata, OfflineInvoiceOptions, OfflineInvoiceStorage, OfflineInvoiceWorkflow, OfflineMode, OfflineReason, OfflineSubmissionResult, type OnlineSessionContextLimitsOverride, type OnlineSessionEffectiveContextLimits, type OnlineSessionFormCode, type OnlineSessionHandle, OnlineSessionService, type OnlineSessionState, type OpenBatchSessionRequest, type OpenBatchSessionResponse, type OpenOnlineSessionOptions, type OpenOnlineSessionRequest, type OpenOnlineSessionResponse, OperationResponse, OperationStatusInfo, PEF_NAMESPACE, 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, 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 QueryAllMetadataOptions, type QueryAuthorizationsGrantsRequest, type QueryCertificatesRequest, type QueryCertificatesResponse, type QueryEntitiesGrantsRequest, type QueryEntitiesRolesRequest, type QueryEuEntitiesGrantsRequest, 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, SessionStatus, type SessionStatusResponse, SessionStatusService, SessionType, type SessionsFilter, type SessionsQueryResponse, type SessionsQueryResponseItem, type SetRateLimitsRequest, type SetSessionLimitsRequest, type SetSubjectLimitsRequest, Sha256Base64, SignatureService, 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 TokenAuthOptions, type TokenAuthorIdentifier, type TokenAuthorIdentifierType, type TokenContextIdentifier, type TokenContextIdentifierType, 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 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, collectAllInvoiceMetadata, comparePKey, createTarGz, createZip, decodeJwtPayload, defaultCircuitBreakerPolicy, defaultPresignedUrlPolicy, defaultRateLimitPolicy, defaultRetryPolicy, defaultTransport, exportAndDownload, exportInvoices, extendDeadlineForMaintenance, extractInvoiceFields, extractTarGz, getDefaultReason, getFormCode, getPolishHolidays, getTimeUntilDeadline, incrementalExportAndDownload, isExpired, isFakturaInput, isFormCodeShape, isPefUblDocumentInput, isPolishHoliday, isRetryableError, isRetryableStatus, isValidBase64, isValidCertificateFingerprint, isValidCertificateName, isValidCertificateSerialNumber, isValidInternalId, isValidIp4Address, isValidKsefNumber, isValidKsefNumberV35, isValidKsefNumberV36, isValidNip, isValidNipVatUe, isValidPeppolId, isValidPesel, isValidReferenceNumber, isValidSha256Base64, isValidVatUe, nextBusinessDay, openOnlineSession, openSendAndClose, orderXmlObject, parseFormCode, parseKSeFTokenContext, parseRetryAfter, parseUpoXml, parseXml, pollUntil, queryAllInvoiceMetadata, resolveOptions, resumeOnlineSession, runWithConcurrency, serializeInvoiceXml, sha256Base64, sleep, stripBom, toKodFormularza, unzip, uploadBatch, uploadBatchParsed, uploadBatchStream, uploadBatchStreamParsed, validate, validateBatch, validateBusinessRules, validateCharValidity, validateFormCodeForSession, validatePresignedUrl, validateSchema, validateWellFormedness, verifyHash, xmlToObject };