ksef-client-ts 0.9.1 → 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 {
@@ -819,64 +821,6 @@ declare const DISCOURAGED_UNICODE_RANGES: ReadonlyArray<readonly [number, number
819
821
  */
820
822
  declare function validateCharValidity(xml: string): InvoiceValidationError[];
821
823
 
822
- type InvoiceSchemaId = 'FA2' | 'FA3' | 'PEF' | 'PEF_KOR';
823
- declare const FA_XSD_PATHS: {
824
- readonly FA2: string;
825
- readonly FA3: string;
826
- };
827
- declare const PEF_XSD_PATHS: {
828
- readonly PEF: string;
829
- readonly PEF_KOR: string;
830
- };
831
- declare function resolveXsdFor(schema: InvoiceSchemaId): string;
832
- interface ValidateAgainstXsdResult {
833
- valid: boolean;
834
- errors: string[];
835
- }
836
- declare const libxmljsAvailable: boolean;
837
- declare function isMissingLibxmljsError(err: unknown): boolean;
838
- declare function validateAgainstXsd(xml: string, xsdPath: string): ValidateAgainstXsdResult;
839
-
840
- interface OperationResponse {
841
- referenceNumber: string;
842
- }
843
- interface OperationStatusInfo {
844
- code: number;
845
- description: string;
846
- details?: string[] | null;
847
- }
848
- interface TokenInfo {
849
- token: string;
850
- validUntil: string;
851
- }
852
- interface FormCode {
853
- systemCode: string;
854
- schemaVersion: string;
855
- value: string;
856
- }
857
- interface EncryptionInfo {
858
- encryptedSymmetricKey: string;
859
- initializationVector: string;
860
- /** Identifier of the public key used to encrypt the symmetric key — key-rotation selector (KSeF API v2.5.0). */
861
- publicKeyId?: string;
862
- }
863
- interface FileMetadata {
864
- hashSHA: string;
865
- fileSize: number;
866
- }
867
- type ContextIdentifierType = 'Nip' | 'InternalId' | 'NipVatUe' | 'PeppolId';
868
- interface ContextIdentifier {
869
- type: ContextIdentifierType;
870
- value: string;
871
- }
872
- /** Archive compression for batch upload / invoice export packages (KSeF API v2.6.0). Defaults to `Zip`. */
873
- type CompressionType = 'Zip' | 'TarGz';
874
- type SessionType = 'Online' | 'Batch';
875
- type SessionStatus = 'Succeeded' | 'InProgress' | 'Failed' | 'Cancelled';
876
- type SortOrder = 'Asc' | 'Desc';
877
- type InvoicingMode = 'Online' | 'Offline';
878
- type PermissionSubjectIdentifierType = 'Nip' | 'Pesel' | 'Fingerprint';
879
-
880
824
  interface AuthChallengeResponse {
881
825
  challenge: string;
882
826
  timestamp: string;
@@ -1125,145 +1069,6 @@ interface BatchSessionState {
1125
1069
  partUploadRequests: PartUploadRequest[];
1126
1070
  }
1127
1071
 
1128
- /**
1129
- * Invoice subject type — defines the taxpayer's role in the invoice.
1130
- * - `Subject1` — seller (invoices issued by us)
1131
- * - `Subject2` — buyer (invoices received by us)
1132
- * - `Subject3` — third party (e.g. intermediary)
1133
- * - `SubjectAuthorized` — authorized subject acting on behalf of seller/buyer
1134
- */
1135
- type InvoiceSubjectType = 'Subject1' | 'Subject2' | 'Subject3' | 'SubjectAuthorized';
1136
- type InvoiceQueryDateType = 'Issue' | 'Invoicing' | 'PermanentStorage';
1137
- type AmountType = 'Brutto' | 'Netto' | 'Vat';
1138
- type BuyerIdentifierType = 'Nip' | 'VatUe' | 'Other' | 'None';
1139
- type ThirdSubjectIdentifierType = 'Nip' | 'InternalId' | 'VatUe' | 'Other' | 'None';
1140
- type FormType = 'FA' | 'PEF' | 'FA_RR';
1141
- type InvoiceType = 'Vat' | 'Zal' | 'Kor' | 'Roz' | 'Upr' | 'KorZal' | 'KorRoz' | 'VatPef' | 'VatPefSp' | 'KorPef' | 'VatRr' | 'KorVatRr';
1142
- interface InvoiceQueryDateRange {
1143
- dateType: InvoiceQueryDateType;
1144
- from: string;
1145
- to?: string;
1146
- restrictToPermanentStorageHwmDate?: boolean;
1147
- }
1148
- interface InvoiceQueryAmount {
1149
- type: AmountType;
1150
- from?: number;
1151
- to?: number;
1152
- }
1153
- interface InvoiceQueryBuyerIdentifier {
1154
- type: BuyerIdentifierType;
1155
- value?: string;
1156
- }
1157
- interface InvoiceQueryFilters {
1158
- subjectType: InvoiceSubjectType;
1159
- dateRange: InvoiceQueryDateRange;
1160
- ksefNumber?: string;
1161
- invoiceNumber?: string;
1162
- amount?: InvoiceQueryAmount;
1163
- sellerNip?: string;
1164
- buyerIdentifier?: InvoiceQueryBuyerIdentifier;
1165
- currencyCodes?: string[];
1166
- invoicingMode?: InvoicingMode;
1167
- isSelfInvoicing?: boolean;
1168
- formType?: FormType;
1169
- invoiceTypes?: InvoiceType[];
1170
- hasAttachment?: boolean;
1171
- }
1172
- interface InvoiceMetadataSeller {
1173
- nip: string;
1174
- name?: string;
1175
- }
1176
- interface InvoiceMetadataBuyerIdentifier {
1177
- type: BuyerIdentifierType;
1178
- value?: string;
1179
- }
1180
- interface InvoiceMetadataBuyer {
1181
- identifier: InvoiceMetadataBuyerIdentifier;
1182
- name?: string;
1183
- }
1184
- interface InvoiceMetadataThirdSubjectIdentifier {
1185
- type: ThirdSubjectIdentifierType;
1186
- value?: string | null;
1187
- }
1188
- interface InvoiceMetadataThirdSubject {
1189
- identifier: InvoiceMetadataThirdSubjectIdentifier;
1190
- name?: string | null;
1191
- role: number;
1192
- }
1193
- interface InvoiceMetadataAuthorizedSubject {
1194
- nip: string;
1195
- name?: string;
1196
- role: number;
1197
- }
1198
- interface InvoiceMetadata {
1199
- ksefNumber: string;
1200
- invoiceNumber: string;
1201
- issueDate: string;
1202
- invoicingDate: string;
1203
- acquisitionDate: string;
1204
- permanentStorageDate: string;
1205
- seller: InvoiceMetadataSeller;
1206
- buyer: InvoiceMetadataBuyer;
1207
- netAmount: number;
1208
- grossAmount: number;
1209
- vatAmount: number;
1210
- currency: string;
1211
- invoicingMode: InvoicingMode;
1212
- invoiceType: InvoiceType;
1213
- formCode: FormCode;
1214
- isSelfInvoicing: boolean;
1215
- hasAttachment: boolean;
1216
- invoiceHash: string;
1217
- hashOfCorrectedInvoice?: string;
1218
- thirdSubjects?: InvoiceMetadataThirdSubject[];
1219
- authorizedSubject?: InvoiceMetadataAuthorizedSubject;
1220
- }
1221
- interface QueryInvoicesMetadataResponse {
1222
- hasMore: boolean;
1223
- isTruncated: boolean;
1224
- invoices: InvoiceMetadata[];
1225
- permanentStorageHwmDate?: string;
1226
- }
1227
- interface InvoiceResult {
1228
- xml: string;
1229
- /** SHA-256 base64 hash from the `x-ms-meta-hash` response header, if present. */
1230
- hash?: string;
1231
- }
1232
- interface InvoiceExportRequest {
1233
- encryption: EncryptionInfo;
1234
- filters: InvoiceQueryFilters;
1235
- onlyMetadata?: boolean;
1236
- /** Archive compression type for the export package (KSeF API v2.6.0). Omitted/`Zip` keeps the legacy behavior. */
1237
- compressionType?: CompressionType;
1238
- }
1239
- interface InvoiceExportPackagePart {
1240
- ordinalNumber: number;
1241
- partName: string;
1242
- method: string;
1243
- url: string;
1244
- partSize: number;
1245
- partHash: string;
1246
- encryptedPartSize: number;
1247
- encryptedPartHash: string;
1248
- expirationDate: string;
1249
- }
1250
- interface InvoiceExportPackage {
1251
- invoiceCount: number;
1252
- size: number;
1253
- parts: InvoiceExportPackagePart[];
1254
- isTruncated: boolean;
1255
- lastIssueDate?: string;
1256
- lastInvoicingDate?: string;
1257
- lastPermanentStorageDate?: string;
1258
- permanentStorageHwmDate?: string;
1259
- }
1260
- interface InvoiceExportStatusResponse {
1261
- status: OperationStatusInfo;
1262
- completedDate?: string;
1263
- packageExpirationDate?: string;
1264
- package?: InvoiceExportPackage;
1265
- }
1266
-
1267
1072
  type PersonPermissionType = 'InvoiceRead' | 'InvoiceWrite' | 'CredentialsRead' | 'CredentialsManage' | 'EnforcementOperations' | 'SubunitManage' | 'Introspection';
1268
1073
  type SubunitPermissionScope = 'CredentialsManage';
1269
1074
  type EuEntityPermissionType = 'InvoiceRead' | 'InvoiceWrite';
@@ -3057,119 +2862,6 @@ declare function pollUntil<T>(action: () => Promise<T>, condition: (result: T) =
3057
2862
  description?: string;
3058
2863
  }): Promise<T>;
3059
2864
 
3060
- interface OfflineInvoiceFilter {
3061
- status?: OfflineInvoiceStatus | OfflineInvoiceStatus[];
3062
- mode?: OfflineMode;
3063
- expiringBefore?: Date | string;
3064
- sellerNip?: string;
3065
- }
3066
- type OfflineInvoiceUpdates = Omit<Partial<OfflineInvoiceMetadata>, 'id'>;
3067
- interface OfflineInvoiceStorage {
3068
- save(invoice: OfflineInvoiceMetadata): Promise<void>;
3069
- get(id: string): Promise<OfflineInvoiceMetadata | null>;
3070
- list(filter?: OfflineInvoiceFilter): Promise<OfflineInvoiceMetadata[]>;
3071
- update(id: string, updates: OfflineInvoiceUpdates): Promise<void>;
3072
- delete(id: string): Promise<void>;
3073
- }
3074
- declare class InMemoryOfflineInvoiceStorage implements OfflineInvoiceStorage {
3075
- private readonly store;
3076
- save(invoice: OfflineInvoiceMetadata): Promise<void>;
3077
- get(id: string): Promise<OfflineInvoiceMetadata | null>;
3078
- list(filter?: OfflineInvoiceFilter): Promise<OfflineInvoiceMetadata[]>;
3079
- update(id: string, updates: OfflineInvoiceUpdates): Promise<void>;
3080
- delete(id: string): Promise<void>;
3081
- }
3082
-
3083
- /** Offline invoice modes per KSeF docs (art. 106nda/106nh/106nf) */
3084
- type OfflineMode = 'offline24' | 'offline' | 'awaryjny' | 'awaria_calkowita';
3085
- /** Why this invoice was issued offline */
3086
- type OfflineReason = 'PLANNED' | 'SYSTEM_UNAVAILABLE' | 'EMERGENCY' | 'TOTAL_FAILURE';
3087
- /**
3088
- * Offline invoice lifecycle state machine:
3089
- * GENERATED → QUEUED → SUBMITTED → ACCEPTED | REJECTED
3090
- * Any non-terminal → EXPIRED
3091
- */
3092
- type OfflineInvoiceStatus = 'GENERATED' | 'QUEUED' | 'SUBMITTED' | 'ACCEPTED' | 'REJECTED' | 'CORRECTED' | 'EXPIRED';
3093
- interface OfflineInvoiceInputData {
3094
- invoiceNumber: string;
3095
- invoiceDate: string;
3096
- invoiceXml: string;
3097
- sellerNip: string;
3098
- sellerIdentifier: ContextIdentifier;
3099
- buyerIdentifier?: ContextIdentifier;
3100
- totalAmount?: number;
3101
- currency?: string;
3102
- }
3103
- interface OfflineCertificate {
3104
- privateKeyPem: string;
3105
- certificateSerial: string;
3106
- password?: string;
3107
- }
3108
- interface MaintenanceWindow {
3109
- id: string;
3110
- startTime: string;
3111
- endTime?: string;
3112
- active: boolean;
3113
- planned: boolean;
3114
- reason?: string;
3115
- }
3116
- interface OfflineInvoiceMetadata {
3117
- id: string;
3118
- mode: OfflineMode;
3119
- reason: OfflineReason;
3120
- status: OfflineInvoiceStatus;
3121
- invoiceNumber: string;
3122
- invoiceDate: string;
3123
- invoiceXml: string;
3124
- sellerNip: string;
3125
- sellerIdentifier: ContextIdentifier;
3126
- buyerIdentifier?: ContextIdentifier;
3127
- totalAmount?: number;
3128
- currency?: string;
3129
- kod1Url: string;
3130
- kod2Url?: string;
3131
- generatedAt: string;
3132
- submitBy: string;
3133
- submittedAt?: string;
3134
- acceptedAt?: string;
3135
- ksefReferenceNumber?: string;
3136
- error?: {
3137
- code: number;
3138
- message: string;
3139
- details?: string[];
3140
- };
3141
- maintenanceWindowId?: string;
3142
- correctedInvoiceId?: string;
3143
- correctedBy?: string;
3144
- }
3145
- interface OfflineInvoiceOptions {
3146
- mode?: OfflineMode;
3147
- certificate?: OfflineCertificate;
3148
- maintenanceWindow?: MaintenanceWindow;
3149
- customDeadline?: Date | string;
3150
- storage?: OfflineInvoiceStorage;
3151
- }
3152
- interface OfflineBatchResult {
3153
- total: number;
3154
- submitted: number;
3155
- accepted: number;
3156
- rejected: number;
3157
- failed: number;
3158
- expired: number;
3159
- results: OfflineSubmissionResult[];
3160
- }
3161
- interface OfflineSubmissionResult {
3162
- invoiceId: string;
3163
- invoiceNumber: string;
3164
- status: OfflineInvoiceStatus;
3165
- ksefReferenceNumber?: string;
3166
- error?: {
3167
- code: number;
3168
- message: string;
3169
- details?: string[];
3170
- };
3171
- }
3172
-
3173
2865
  interface SubmitOfflineInvoicesOptions {
3174
2866
  storage: OfflineInvoiceStorage;
3175
2867
  invoiceIds?: string[];
@@ -3278,29 +2970,6 @@ declare function exportAndDownload(client: KSeFClient, filters: InvoiceQueryFilt
3278
2970
  }): Promise<ExportExtractedResult>;
3279
2971
  declare function exportAndDownload(client: KSeFClient, filters: InvoiceQueryFilters, options?: ExportAndDownloadOptions): Promise<ExportDownloadResult>;
3280
2972
 
3281
- type ContinuationPoints = Record<string, string | undefined>;
3282
- declare function updateContinuationPoint(points: ContinuationPoints, subjectType: string, pkg: Pick<InvoiceExportPackage, 'isTruncated' | 'lastPermanentStorageDate' | 'permanentStorageHwmDate'>): void;
3283
- declare function getEffectiveStartDate(points: ContinuationPoints, subjectType: string, windowFrom: string): string;
3284
- declare function deduplicateByKsefNumber<T extends {
3285
- ksefNumber: string;
3286
- }>(entries: T[]): T[];
3287
-
3288
- interface HwmStore {
3289
- load(): Promise<ContinuationPoints>;
3290
- save(points: ContinuationPoints): Promise<void>;
3291
- }
3292
- declare class InMemoryHwmStore implements HwmStore {
3293
- private points;
3294
- load(): Promise<ContinuationPoints>;
3295
- save(points: ContinuationPoints): Promise<void>;
3296
- }
3297
- declare class FileHwmStore implements HwmStore {
3298
- private readonly filePath;
3299
- constructor(filePath: string);
3300
- load(): Promise<ContinuationPoints>;
3301
- save(points: ContinuationPoints): Promise<void>;
3302
- }
3303
-
3304
2973
  interface IncrementalExportOptions {
3305
2974
  subjectType: InvoiceSubjectType;
3306
2975
  windowFrom: string;
@@ -3469,23 +3138,4 @@ declare function getPolishHolidays(year: number): ReadonlySet<string>;
3469
3138
  */
3470
3139
  declare function isPolishHoliday(date: Date): boolean;
3471
3140
 
3472
- declare class FileOfflineInvoiceStorage implements OfflineInvoiceStorage {
3473
- private readonly dir;
3474
- constructor(directory?: string);
3475
- private ensureDir;
3476
- private filePath;
3477
- save(invoice: OfflineInvoiceMetadata): Promise<void>;
3478
- get(id: string): Promise<OfflineInvoiceMetadata | null>;
3479
- list(filter?: OfflineInvoiceFilter): Promise<OfflineInvoiceMetadata[]>;
3480
- /**
3481
- * Update invoice metadata (read-modify-write).
3482
- *
3483
- * Note: No file locking — concurrent updates to the same ID may cause
3484
- * lost writes. Acceptable for CLI (single process). Library consumers
3485
- * running parallel operations should use external locking.
3486
- */
3487
- update(id: string, updates: OfflineInvoiceUpdates): Promise<void>;
3488
- delete(id: string): Promise<void>;
3489
- }
3490
-
3491
- 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, CertificateSerialNumber, 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, 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, type MaintenanceWindow, type MetadataQueryClient, 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 QueryAllMetadataOptions, 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, collectAllInvoiceMetadata, 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, isValidCertificateSerialNumber, isValidInternalId, isValidIp4Address, isValidKsefNumber, isValidKsefNumberV35, isValidKsefNumberV36, isValidNip, isValidNipVatUe, isValidPeppolId, isValidPesel, isValidReferenceNumber, isValidSha256Base64, isValidVatUe, libxmljsAvailable, nextBusinessDay, openOnlineSession, openSendAndClose, orderXmlObject, parseFormCode, parseKSeFTokenContext, parseRetryAfter, parseUpoXml, parseXml, pollUntil, queryAllInvoiceMetadata, 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 };