ksef-client-ts 0.8.0 → 0.9.1
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/README.md +2 -2
- package/dist/cli.js +589 -443
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +663 -431
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +180 -5
- package/dist/index.d.ts +180 -5
- package/dist/index.js +655 -431
- package/dist/index.js.map +1 -1
- package/package.json +8 -2
- package/docs/schemas/RR/schemat_RR(1)_v1-0E.xsd +0 -2188
- package/docs/schemas/RR/schemat_RR(1)_v1-1E.xsd +0 -2188
package/dist/index.d.ts
CHANGED
|
@@ -129,6 +129,12 @@ interface KSeFClientOptions {
|
|
|
129
129
|
circuitBreaker?: Partial<CircuitBreakerConfig> | null;
|
|
130
130
|
presignedUrlHosts?: string[];
|
|
131
131
|
authManager?: AuthManager;
|
|
132
|
+
/**
|
|
133
|
+
* Invoked with the raw `X-System-Warning` response header value when present
|
|
134
|
+
* (KSeF API v2.6.0). Advisory only — does not affect the operation result.
|
|
135
|
+
* When omitted, warnings are logged at warn level.
|
|
136
|
+
*/
|
|
137
|
+
onSystemWarning?: (warning: string) => void;
|
|
132
138
|
/**
|
|
133
139
|
* Request format for server-returned error bodies. Defaults to
|
|
134
140
|
* `'problem-details'` (RFC 7807, KSeF API v2.4.0+). Set to `'legacy'`
|
|
@@ -314,12 +320,39 @@ declare class KSeFSessionExpiredError extends KSeFError {
|
|
|
314
320
|
constructor(message?: string);
|
|
315
321
|
}
|
|
316
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Thrown when the metadata-query paging helper cannot make forward progress
|
|
325
|
+
* across an `isTruncated` boundary — e.g. a capped window whose entire result
|
|
326
|
+
* set shares the same boundary date, so re-narrowing the date range never
|
|
327
|
+
* advances. Raised instead of looping forever.
|
|
328
|
+
*/
|
|
329
|
+
declare class KSeFMetadataPaginationError extends KSeFError {
|
|
330
|
+
/** The boundary date value that failed to advance. */
|
|
331
|
+
readonly boundaryValue: string;
|
|
332
|
+
constructor(message: string, boundaryValue: string);
|
|
333
|
+
}
|
|
334
|
+
|
|
317
335
|
declare class KSeFBatchTimeoutError extends KSeFApiError {
|
|
318
336
|
readonly errorCode: 21208;
|
|
319
337
|
constructor(message: string, statusCode: number, errorResponse?: ApiErrorResponse);
|
|
320
338
|
static fromResponse(statusCode: number, body?: ApiErrorResponse): KSeFBatchTimeoutError;
|
|
321
339
|
}
|
|
322
340
|
|
|
341
|
+
/**
|
|
342
|
+
* KSeF rejected an encryption request because the supplied `publicKeyId` is unknown
|
|
343
|
+
* or points to a revoked key (HTTP 400, error code 21470, KSeF API v2.5.0).
|
|
344
|
+
*
|
|
345
|
+
* Encryption-bearing operations recover by refreshing the certificate cache and
|
|
346
|
+
* retrying once with a freshly selected key.
|
|
347
|
+
*/
|
|
348
|
+
declare class KSeFUnknownPublicKeyError extends KSeFApiError {
|
|
349
|
+
readonly statusCode: 400;
|
|
350
|
+
readonly errorCode: 21470;
|
|
351
|
+
constructor(message: string, errorResponse?: ApiErrorResponse);
|
|
352
|
+
static fromLegacy(body?: ApiErrorResponse): KSeFUnknownPublicKeyError;
|
|
353
|
+
static fromProblem(problem: BadRequestProblemDetails): KSeFUnknownPublicKeyError;
|
|
354
|
+
}
|
|
355
|
+
|
|
323
356
|
declare class KSeFCircuitOpenError extends KSeFError {
|
|
324
357
|
readonly endpoint: string;
|
|
325
358
|
readonly openedAt: number;
|
|
@@ -336,6 +369,8 @@ declare class KSeFXsdValidationError extends KSeFError {
|
|
|
336
369
|
declare const KSeFErrorCode: {
|
|
337
370
|
readonly BatchTimeout: 21208;
|
|
338
371
|
readonly DuplicateInvoice: 440;
|
|
372
|
+
/** The supplied public key identifier is unknown or points to a revoked key (KSeF API v2.5.0). */
|
|
373
|
+
readonly UnknownPublicKeyId: 21470;
|
|
339
374
|
};
|
|
340
375
|
type KSeFErrorCode = (typeof KSeFErrorCode)[keyof typeof KSeFErrorCode];
|
|
341
376
|
|
|
@@ -399,6 +434,12 @@ interface RestClientConfig {
|
|
|
399
434
|
circuitBreakerPolicy?: CircuitBreakerPolicy | null;
|
|
400
435
|
authManager?: AuthManager;
|
|
401
436
|
presignedUrlPolicy?: PresignedUrlPolicy;
|
|
437
|
+
/**
|
|
438
|
+
* Invoked with the raw `X-System-Warning` response header value when present
|
|
439
|
+
* (KSeF API v2.6.0). Advisory only — does not affect the operation result.
|
|
440
|
+
* When omitted, warnings are logged at warn level.
|
|
441
|
+
*/
|
|
442
|
+
onSystemWarning?: (warning: string) => void;
|
|
402
443
|
}
|
|
403
444
|
declare class RestClient {
|
|
404
445
|
private readonly options;
|
|
@@ -409,10 +450,13 @@ declare class RestClient {
|
|
|
409
450
|
private readonly circuitBreakerPolicy;
|
|
410
451
|
private readonly authManager?;
|
|
411
452
|
private readonly presignedUrlPolicy?;
|
|
453
|
+
private readonly onSystemWarning?;
|
|
412
454
|
constructor(options: ResolvedOptions, config?: RestClientConfig);
|
|
413
455
|
execute<T>(request: RestRequest): Promise<RestResponse<T>>;
|
|
414
456
|
executeVoid(request: RestRequest): Promise<void>;
|
|
415
457
|
executeRaw(request: RestRequest): Promise<RestResponse<ArrayBuffer>>;
|
|
458
|
+
/** Surface the optional `X-System-Warning` response header (KSeF API v2.6.0). */
|
|
459
|
+
private handleSystemWarning;
|
|
416
460
|
private sendRequest;
|
|
417
461
|
private recordCircuitOutcome;
|
|
418
462
|
private doRequest;
|
|
@@ -573,6 +617,7 @@ declare const KsefNumberV36: RegExp;
|
|
|
573
617
|
declare const CertificateName: RegExp;
|
|
574
618
|
declare const Pesel: RegExp;
|
|
575
619
|
declare const CertificateFingerprint: RegExp;
|
|
620
|
+
declare const CertificateSerialNumber: RegExp;
|
|
576
621
|
declare const Base64String: RegExp;
|
|
577
622
|
declare const Ip4Address: RegExp;
|
|
578
623
|
declare const Ip4Range: RegExp;
|
|
@@ -590,6 +635,7 @@ declare function isValidKsefNumberV36(value: string): boolean;
|
|
|
590
635
|
declare function isValidPesel(value: string): boolean;
|
|
591
636
|
declare function isValidCertificateName(value: string): boolean;
|
|
592
637
|
declare function isValidCertificateFingerprint(value: string): boolean;
|
|
638
|
+
declare function isValidCertificateSerialNumber(value: string): boolean;
|
|
593
639
|
declare function isValidBase64(value: string): boolean;
|
|
594
640
|
declare function isValidIp4Address(value: string): boolean;
|
|
595
641
|
declare function isValidSha256Base64(value: string): boolean;
|
|
@@ -633,7 +679,7 @@ interface XmlConversionResult {
|
|
|
633
679
|
declare function xmlToObject(xml: string): XmlConversionResult;
|
|
634
680
|
|
|
635
681
|
/** Schema type identifiers */
|
|
636
|
-
type SchemaType = 'FA3' | 'FA2' | '
|
|
682
|
+
type SchemaType = 'FA3' | 'FA2' | 'FA_RR1' | 'PEF3' | 'PEF_KOR3';
|
|
637
683
|
|
|
638
684
|
/**
|
|
639
685
|
* Schema Registry — lazy-loads generated Zod schemas and provides
|
|
@@ -811,6 +857,8 @@ interface FormCode {
|
|
|
811
857
|
interface EncryptionInfo {
|
|
812
858
|
encryptedSymmetricKey: string;
|
|
813
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;
|
|
814
862
|
}
|
|
815
863
|
interface FileMetadata {
|
|
816
864
|
hashSHA: string;
|
|
@@ -821,6 +869,8 @@ interface ContextIdentifier {
|
|
|
821
869
|
type: ContextIdentifierType;
|
|
822
870
|
value: string;
|
|
823
871
|
}
|
|
872
|
+
/** Archive compression for batch upload / invoice export packages (KSeF API v2.6.0). Defaults to `Zip`. */
|
|
873
|
+
type CompressionType = 'Zip' | 'TarGz';
|
|
824
874
|
type SessionType = 'Online' | 'Batch';
|
|
825
875
|
type SessionStatus = 'Succeeded' | 'InProgress' | 'Failed' | 'Cancelled';
|
|
826
876
|
type SortOrder = 'Asc' | 'Desc';
|
|
@@ -888,6 +938,8 @@ interface AuthKsefTokenRequest {
|
|
|
888
938
|
challenge: string;
|
|
889
939
|
contextIdentifier: ContextIdentifier;
|
|
890
940
|
encryptedToken: string;
|
|
941
|
+
/** Identifier of the public key used to encrypt the token — key-rotation selector (KSeF API v2.5.0). */
|
|
942
|
+
publicKeyId?: string;
|
|
891
943
|
authorizationPolicy?: AuthorizationPolicy;
|
|
892
944
|
}
|
|
893
945
|
type AuthenticationMethod = 'Token' | 'TrustedProfile' | 'InternalCertificate' | 'QualifiedSignature' | 'QualifiedSeal' | 'PersonalSignature' | 'PeppolSignature';
|
|
@@ -938,6 +990,8 @@ interface BatchFilePartInfo {
|
|
|
938
990
|
interface BatchFileInfo {
|
|
939
991
|
fileSize: number;
|
|
940
992
|
fileHash: string;
|
|
993
|
+
/** Archive compression type (KSeF API v2.6.0). Omitted/`Zip` keeps the legacy behavior. */
|
|
994
|
+
compressionType?: CompressionType;
|
|
941
995
|
fileParts: BatchFilePartInfo[];
|
|
942
996
|
}
|
|
943
997
|
interface OpenBatchSessionRequest {
|
|
@@ -1083,7 +1137,7 @@ type InvoiceQueryDateType = 'Issue' | 'Invoicing' | 'PermanentStorage';
|
|
|
1083
1137
|
type AmountType = 'Brutto' | 'Netto' | 'Vat';
|
|
1084
1138
|
type BuyerIdentifierType = 'Nip' | 'VatUe' | 'Other' | 'None';
|
|
1085
1139
|
type ThirdSubjectIdentifierType = 'Nip' | 'InternalId' | 'VatUe' | 'Other' | 'None';
|
|
1086
|
-
type FormType = 'FA' | 'PEF' | '
|
|
1140
|
+
type FormType = 'FA' | 'PEF' | 'FA_RR';
|
|
1087
1141
|
type InvoiceType = 'Vat' | 'Zal' | 'Kor' | 'Roz' | 'Upr' | 'KorZal' | 'KorRoz' | 'VatPef' | 'VatPefSp' | 'KorPef' | 'VatRr' | 'KorVatRr';
|
|
1088
1142
|
interface InvoiceQueryDateRange {
|
|
1089
1143
|
dateType: InvoiceQueryDateType;
|
|
@@ -1179,6 +1233,8 @@ interface InvoiceExportRequest {
|
|
|
1179
1233
|
encryption: EncryptionInfo;
|
|
1180
1234
|
filters: InvoiceQueryFilters;
|
|
1181
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;
|
|
1182
1238
|
}
|
|
1183
1239
|
interface InvoiceExportPackagePart {
|
|
1184
1240
|
ordinalNumber: number;
|
|
@@ -1970,6 +2026,10 @@ interface UnblockContextAuthenticationRequest {
|
|
|
1970
2026
|
type PublicKeyCertificateUsage = 'KsefTokenEncryption' | 'SymmetricKeyEncryption';
|
|
1971
2027
|
interface PublicKeyCertificate {
|
|
1972
2028
|
certificate: string;
|
|
2029
|
+
/** SHA-256 of the DER certificate, Base64-encoded (KSeF API v2.5.0). */
|
|
2030
|
+
certificateId: string;
|
|
2031
|
+
/** SHA-256 of the certificate's SubjectPublicKeyInfo, Base64 (44 chars) — key-rotation selector (KSeF API v2.5.0). */
|
|
2032
|
+
publicKeyId: string;
|
|
1973
2033
|
validFrom: string;
|
|
1974
2034
|
validTo: string;
|
|
1975
2035
|
usage: PublicKeyCertificateUsage[];
|
|
@@ -2295,6 +2355,7 @@ declare class AuthKsefTokenRequestBuilder {
|
|
|
2295
2355
|
private challenge?;
|
|
2296
2356
|
private contextIdentifier?;
|
|
2297
2357
|
private encryptedToken?;
|
|
2358
|
+
private publicKeyId?;
|
|
2298
2359
|
private authorizationPolicy?;
|
|
2299
2360
|
withChallenge(challenge: string): this;
|
|
2300
2361
|
withContextNip(nip: string): this;
|
|
@@ -2302,6 +2363,7 @@ declare class AuthKsefTokenRequestBuilder {
|
|
|
2302
2363
|
withContextNipVatUe(value: string): this;
|
|
2303
2364
|
withContextPeppolId(id: string): this;
|
|
2304
2365
|
withEncryptedToken(token: string): this;
|
|
2366
|
+
withPublicKeyId(publicKeyId: string): this;
|
|
2305
2367
|
withAuthorizationPolicy(policy: AuthorizationPolicy): this;
|
|
2306
2368
|
build(): AuthKsefTokenRequest;
|
|
2307
2369
|
private withContext;
|
|
@@ -2385,6 +2447,8 @@ declare const BATCH_MAX_PARTS = 50;
|
|
|
2385
2447
|
interface BatchFileBuildOptions {
|
|
2386
2448
|
/** Max unencrypted part size in bytes. Default: 100 MB. */
|
|
2387
2449
|
maxPartSize?: number;
|
|
2450
|
+
/** Compression type of the supplied archive bytes (KSeF API v2.6.0). Default: `Zip`. */
|
|
2451
|
+
compressionType?: CompressionType;
|
|
2388
2452
|
}
|
|
2389
2453
|
interface BatchFileBuildResult {
|
|
2390
2454
|
/** Metadata for OpenBatchSessionRequest.batchFile. */
|
|
@@ -2426,17 +2490,43 @@ declare class BatchFileBuilder {
|
|
|
2426
2490
|
static buildFromStream(zipStreamFactory: () => ReadableStream<Uint8Array>, zipSize: number, encryptStreamFn: (stream: ReadableStream<Uint8Array>) => ReadableStream<Uint8Array>, hashStreamFn: (stream: ReadableStream<Uint8Array>) => Promise<FileMetadata>, options?: BatchFileBuildOptions): Promise<BatchStreamBuildResult>;
|
|
2427
2491
|
}
|
|
2428
2492
|
|
|
2493
|
+
/** A selected encryption certificate: its PEM plus the key-rotation selector. */
|
|
2494
|
+
interface SelectedCertificate {
|
|
2495
|
+
readonly pem: string;
|
|
2496
|
+
readonly publicKeyId: string;
|
|
2497
|
+
}
|
|
2429
2498
|
declare class CertificateFetcher {
|
|
2430
2499
|
private readonly restClient;
|
|
2431
|
-
private
|
|
2432
|
-
private
|
|
2500
|
+
private symmetricKey;
|
|
2501
|
+
private ksefToken;
|
|
2433
2502
|
private initialized;
|
|
2434
2503
|
constructor(restClient: RestClient);
|
|
2435
2504
|
init(): Promise<void>;
|
|
2436
2505
|
refresh(): Promise<void>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Immutable snapshot ({@link SelectedCertificate}) of the selected
|
|
2508
|
+
* SymmetricKeyEncryption certificate. The stored object is replaced wholesale
|
|
2509
|
+
* by {@link refresh}, never mutated, so holding the returned reference yields a
|
|
2510
|
+
* consistent pem + publicKeyId pair even if a concurrent refresh swaps the cache.
|
|
2511
|
+
*/
|
|
2512
|
+
getSymmetricKeyEncryption(): Readonly<SelectedCertificate>;
|
|
2513
|
+
/** Immutable snapshot of the selected KsefTokenEncryption certificate. See {@link getSymmetricKeyEncryption}. */
|
|
2514
|
+
getKsefTokenEncryption(): Readonly<SelectedCertificate>;
|
|
2437
2515
|
getSymmetricKeyEncryptionPem(): string;
|
|
2438
2516
|
getKsefTokenEncryptionPem(): string;
|
|
2517
|
+
/** Public key identifier of the selected SymmetricKeyEncryption certificate (KSeF API v2.5.0). */
|
|
2518
|
+
getSymmetricKeyPublicKeyId(): string;
|
|
2519
|
+
/** Public key identifier of the selected KsefTokenEncryption certificate (KSeF API v2.5.0). */
|
|
2520
|
+
getKsefTokenPublicKeyId(): string;
|
|
2521
|
+
private requireSelected;
|
|
2439
2522
|
private fetchCertificates;
|
|
2523
|
+
/**
|
|
2524
|
+
* Select the certificate to use for a given usage under key rotation:
|
|
2525
|
+
* filter to currently-valid certificates (validFrom ≤ now < validTo) and pick
|
|
2526
|
+
* the newest by validFrom. If none are currently valid, fall back to the newest
|
|
2527
|
+
* overall so the server can reject it with a clear error rather than sending nothing.
|
|
2528
|
+
*/
|
|
2529
|
+
private select;
|
|
2440
2530
|
private derBase64ToPem;
|
|
2441
2531
|
}
|
|
2442
2532
|
|
|
@@ -2452,6 +2542,10 @@ declare class CryptographyService {
|
|
|
2452
2542
|
constructor(fetcher: CertificateFetcher);
|
|
2453
2543
|
/** Initialise the underlying certificate fetcher. */
|
|
2454
2544
|
init(): Promise<void>;
|
|
2545
|
+
/** Re-fetch KSeF public certificates, discarding the cached selection (used for key-rotation recovery). */
|
|
2546
|
+
refresh(): Promise<void>;
|
|
2547
|
+
/** Identifier of the KsefTokenEncryption public key used by {@link encryptKsefToken} (KSeF API v2.5.0). */
|
|
2548
|
+
getKsefTokenPublicKeyId(): string;
|
|
2455
2549
|
/** Encrypt with AES-256-CBC (PKCS7 padding is automatic in Node). */
|
|
2456
2550
|
encryptAES256(content: Uint8Array, key: Uint8Array, iv: Uint8Array): Uint8Array;
|
|
2457
2551
|
/**
|
|
@@ -2480,6 +2574,20 @@ declare class CryptographyService {
|
|
|
2480
2574
|
* `[ephemeralSPKI | nonce(12) | ciphertext+tag]`.
|
|
2481
2575
|
*/
|
|
2482
2576
|
encryptKsefToken(token: string, challengeTimestamp: string): Promise<Uint8Array>;
|
|
2577
|
+
/**
|
|
2578
|
+
* Encrypt a KSeF token and return it together with the public key id of the
|
|
2579
|
+
* exact certificate used.
|
|
2580
|
+
*
|
|
2581
|
+
* Both values come from a single certificate snapshot taken before any
|
|
2582
|
+
* `await`, so a concurrent {@link refresh} cannot tag the ciphertext with a
|
|
2583
|
+
* different key than it was encrypted under (KSeF API v2.5.0). Prefer this over
|
|
2584
|
+
* pairing {@link encryptKsefToken} with a separate {@link getKsefTokenPublicKeyId}.
|
|
2585
|
+
*/
|
|
2586
|
+
encryptKsefTokenWithKeyId(token: string, challengeTimestamp: string): Promise<{
|
|
2587
|
+
encryptedToken: Uint8Array;
|
|
2588
|
+
publicKeyId: string;
|
|
2589
|
+
}>;
|
|
2590
|
+
private encryptKsefTokenWithCertPem;
|
|
2483
2591
|
/** Compute SHA-256 hash (base64) and byte length. */
|
|
2484
2592
|
getFileMetadata(file: Uint8Array): FileMetadata;
|
|
2485
2593
|
/** Compute SHA-256 hash (base64) and byte length from a ReadableStream. */
|
|
@@ -2608,6 +2716,30 @@ interface UnzipOptions {
|
|
|
2608
2716
|
declare function createZip(entries: ZipEntryInput[]): Promise<Buffer>;
|
|
2609
2717
|
declare function unzip(buffer: Buffer, options?: UnzipOptions): Promise<Map<string, Buffer>>;
|
|
2610
2718
|
|
|
2719
|
+
type TarGzLimits = Pick<UnzipOptions, 'maxFiles' | 'maxTotalUncompressedSize' | 'maxFileUncompressedSize' | 'maxCompressionRatio'>;
|
|
2720
|
+
/**
|
|
2721
|
+
* Build a gzip-compressed tar archive from in-memory entries (KSeF API v2.6.0 `TarGz`).
|
|
2722
|
+
* Mirrors {@link createZip} so callers can swap compression by type.
|
|
2723
|
+
*/
|
|
2724
|
+
declare function createTarGz(entries: ZipEntryInput[]): Promise<Buffer>;
|
|
2725
|
+
/**
|
|
2726
|
+
* Extract a gzip-compressed tar archive into a map of file name → contents.
|
|
2727
|
+
*
|
|
2728
|
+
* The gzip layer is decompressed in a STREAMING fashion: the source buffer is
|
|
2729
|
+
* piped through `createGunzip()` into a tar extractor, and the running count of
|
|
2730
|
+
* decompressed bytes is checked incrementally. The pipeline is destroyed and the
|
|
2731
|
+
* promise rejected as soon as a limit is exceeded — well before a malicious
|
|
2732
|
+
* archive (e.g. a gzip bomb) can fully inflate into memory. The
|
|
2733
|
+
* `maxTotalUncompressedSize` limit is enforced both at the raw gunzip-chunk
|
|
2734
|
+
* level (so an archive that inflates massively before the tar layer even sees a
|
|
2735
|
+
* full entry is stopped) and per-entry; `maxFileUncompressedSize` is enforced
|
|
2736
|
+
* incrementally while an individual entry streams in; `maxFiles` caps the entry
|
|
2737
|
+
* count. `maxCompressionRatio` caps the ratio of total decompressed bytes to the
|
|
2738
|
+
* compressed archive size (gzip is a single stream, so the ratio is measured over
|
|
2739
|
+
* the whole archive rather than per entry); pass `null` to disable it.
|
|
2740
|
+
*/
|
|
2741
|
+
declare function extractTarGz(buffer: Buffer, options?: TarGzLimits): Promise<Map<string, Buffer>>;
|
|
2742
|
+
|
|
2611
2743
|
interface KSeFTokenContext {
|
|
2612
2744
|
type?: string;
|
|
2613
2745
|
contextIdentifierType?: string;
|
|
@@ -3115,6 +3247,8 @@ interface BatchUploadOptions {
|
|
|
3115
3247
|
validate?: boolean;
|
|
3116
3248
|
/** Number of concurrent part uploads. Omit for default behavior (buffer: all parallel, stream: sequential). */
|
|
3117
3249
|
parallelism?: number;
|
|
3250
|
+
/** Compression type of the supplied archive (KSeF API v2.6.0). Default: `Zip`. The caller is responsible for producing matching archive bytes. */
|
|
3251
|
+
compressionType?: CompressionType;
|
|
3118
3252
|
}
|
|
3119
3253
|
declare function uploadBatch(client: KSeFClient, zipData: Uint8Array, options?: BatchUploadOptions): Promise<BatchUploadResult>;
|
|
3120
3254
|
|
|
@@ -3125,6 +3259,8 @@ declare function uploadBatchParsed(client: KSeFClient, zipData: Uint8Array, opti
|
|
|
3125
3259
|
interface ExportOptions {
|
|
3126
3260
|
onlyMetadata?: boolean;
|
|
3127
3261
|
pollOptions?: PollOptions;
|
|
3262
|
+
/** Compression type for the export package (KSeF API v2.6.0). Default: `Zip`. */
|
|
3263
|
+
compressionType?: CompressionType;
|
|
3128
3264
|
}
|
|
3129
3265
|
interface ExportAndDownloadOptions extends ExportOptions {
|
|
3130
3266
|
/** Custom fetch function for downloading parts (defaults to global fetch). */
|
|
@@ -3231,6 +3367,45 @@ interface ExternalSignatureAuthOptions {
|
|
|
3231
3367
|
declare function authenticateWithExternalSignature(client: KSeFClient, options: ExternalSignatureAuthOptions): Promise<AuthResult>;
|
|
3232
3368
|
declare function authenticateWithPkcs12(client: KSeFClient, options: Pkcs12AuthOptions): Promise<AuthResult>;
|
|
3233
3369
|
|
|
3370
|
+
/** Minimal surface of {@link KSeFClient} the paging helper depends on. */
|
|
3371
|
+
type MetadataQueryClient = Pick<KSeFClient, 'invoices'>;
|
|
3372
|
+
interface QueryAllMetadataOptions {
|
|
3373
|
+
/** Sort direction. Defaults to `'Asc'`. Determines which date boundary is re-narrowed on truncation. */
|
|
3374
|
+
sortOrder?: SortOrder;
|
|
3375
|
+
/** Page size per request. Defaults to 100. */
|
|
3376
|
+
pageSize?: number;
|
|
3377
|
+
/**
|
|
3378
|
+
* Safety cap on the number of `isTruncated` boundaries crossed. Defaults to 1000.
|
|
3379
|
+
* Exceeding it throws {@link KSeFMetadataPaginationError}.
|
|
3380
|
+
*/
|
|
3381
|
+
maxBoundaryCrossings?: number;
|
|
3382
|
+
}
|
|
3383
|
+
/**
|
|
3384
|
+
* Async iterator over `POST /invoices/query/metadata` that reads a match of any
|
|
3385
|
+
* size, transparently crossing the server's ~10k truncation cap.
|
|
3386
|
+
*
|
|
3387
|
+
* Two layers of paging are handled:
|
|
3388
|
+
* 1. **Normal paging** — advances `pageOffset` while `hasMore` is true.
|
|
3389
|
+
* 2. **Truncation boundary** — when `isTruncated` is true the window was capped;
|
|
3390
|
+
* the date range is re-narrowed to the last invoice's boundary (sort `Asc`
|
|
3391
|
+
* pushes `from` forward, `Desc` pulls `to` backward), offset resets to 0,
|
|
3392
|
+
* and paging resumes.
|
|
3393
|
+
*
|
|
3394
|
+
* Invoices are de-duplicated by KSeF number across boundaries (the boundary
|
|
3395
|
+
* invoice appears in both windows). If a re-narrowed window makes no progress
|
|
3396
|
+
* (its boundary equals the previous one), {@link KSeFMetadataPaginationError}
|
|
3397
|
+
* is thrown rather than looping forever.
|
|
3398
|
+
*
|
|
3399
|
+
* The caller's `filters` object is not mutated.
|
|
3400
|
+
*/
|
|
3401
|
+
declare function queryAllInvoiceMetadata(client: MetadataQueryClient, filters: InvoiceQueryFilters, options?: QueryAllMetadataOptions): AsyncGenerator<InvoiceMetadata, void, undefined>;
|
|
3402
|
+
/**
|
|
3403
|
+
* Convenience wrapper that drains {@link queryAllInvoiceMetadata} into a single
|
|
3404
|
+
* de-duplicated array. Use the generator directly for large result sets to keep
|
|
3405
|
+
* memory bounded.
|
|
3406
|
+
*/
|
|
3407
|
+
declare function collectAllInvoiceMetadata(client: MetadataQueryClient, filters: InvoiceQueryFilters, options?: QueryAllMetadataOptions): Promise<InvoiceMetadata[]>;
|
|
3408
|
+
|
|
3234
3409
|
/**
|
|
3235
3410
|
* Offline invoice deadline calculation.
|
|
3236
3411
|
*
|
|
@@ -3313,4 +3488,4 @@ declare class FileOfflineInvoiceStorage implements OfflineInvoiceStorage {
|
|
|
3313
3488
|
delete(id: string): Promise<void>;
|
|
3314
3489
|
}
|
|
3315
3490
|
|
|
3316
|
-
export { ActiveSessionsService, type AllowedIps, type AmountType, type ApiErrorResponse, type ApiRateLimitValuesOverride, type ApiRateLimitsOverride, type AttachmentPermissionGrantRequest, type AttachmentPermissionRevokeRequest, type AuthChallengeResponse, type AuthKsefTokenRequest, AuthKsefTokenRequestBuilder, type AuthManager, type AuthResult, AuthService, type AuthSessionInfo, type AuthTokenRequest, AuthTokenRequestBuilder, type AuthTokenRequestXmlOptions, type AuthenticationInitResponse, type AuthenticationKsefToken, type AuthenticationListResponse, type AuthenticationMethod, type AuthenticationMethodInfo, type AuthenticationMethodInfoCategory, type AuthenticationOperationStatusResponse, type AuthenticationTokenRefreshResponse, type AuthenticationTokensResponse, type AuthorizationGrant, AuthorizationPermissionGrantBuilder, type AuthorizationPolicy, BATCH_MAX_PARTS, BATCH_MAX_PART_SIZE, BATCH_MAX_TOTAL_SIZE, type BadRequestErrorDetail, type BadRequestProblemDetails, Base64String, type BatchFileBuildOptions, type BatchFileBuildResult, BatchFileBuilder, type BatchFileInfo, type BatchFilePartInfo, type BatchPartSendingInfo, type BatchPartStreamSendingInfo, type BatchSessionContextLimitsOverride, type BatchSessionEffectiveContextLimits, type BatchSessionFormCode, BatchSessionService, type BatchSessionState, type BatchStreamBuildResult, type BatchUploadOptions, type BatchUploadResult, type BatchValidationResult, type BlockContextAuthenticationRequest, type BuildFakturaOptions, type BuildPefOptions, type BuyerIdentifierType, CERTIFICATE_NAME_MAX_LENGTH, CERTIFICATE_NAME_MIN_LENGTH, CertificateApiService, type CertificateAuthOptions, type CertificateEffectiveSubjectLimits, type CertificateEnrollmentDataResponse, type CertificateEnrollmentStatusResponse, CertificateFetcher, CertificateFingerprint, type CertificateLimit, type CertificateLimitsResponse, type CertificateListItem, CertificateName, type CertificateRevocationReason, CertificateService, type CertificateStatus, type CertificateSubjectIdentifier, type CertificateSubjectIdentifierType, type CertificateSubjectLimitsOverride, type CertificateType, type CircuitBreakerConfig, CircuitBreakerPolicy, type ContextIdentifier, type ContextIdentifierType, type ContinuationPoints, type CryptoEncryptionMethod, CryptographyService, type CsrResult, DEFAULT_FORM_CODE, DISCOURAGED_UNICODE_RANGES, DefaultAuthManager, type ECDigestCurve, ENFORCE_XADES_COMPLIANCE, ETD_NAMESPACE, type EffectiveApiRateLimitValues, type EffectiveApiRateLimits, type EffectiveContextLimits, type EffectiveSubjectLimits, type EncryptionData, type EncryptionInfo, type EnrollCertificateRequest, type EnrollCertificateResponse, type EnrollmentEffectiveSubjectLimits, type EnrollmentSubjectLimitsOverride, type EntityAuthorizationGrant, type EntityAuthorizationPermissionType, type EntityAuthorizationPermissionsSubjectIdentifierType, type EntityAuthorizationSubjectIdentifier, type EntityAuthorizationsAuthorIdentifier, type EntityAuthorizationsAuthorIdentifierType, type EntityAuthorizationsAuthorizedEntityIdentifier, type EntityAuthorizationsAuthorizedEntityIdentifierType, type EntityAuthorizationsAuthorizingEntityIdentifier, type EntityAuthorizationsAuthorizingEntityIdentifierType, type EntityAuthorizationsQueryType, type EntityByFingerprintDetails, type EntityDetails, type EntityPermission, EntityPermissionGrantBuilder, type EntityPermissionItem, type EntityPermissionItemType, type EntityPermissionsContextIdentifier, type EntityPermissionsContextIdentifierType, type EntityRole, type EntityRoleType, type EntityRolesParentEntityIdentifier, type EntityRolesParentEntityIdentifierType, type EntitySubjectByFingerprintDetailsType, type EntitySubjectByIdentifierDetailsType, type EntitySubjectDetailsType, type EntitySubjectIdentifier, Environment, type EnvironmentConfig, type EnvironmentName, type EuEntityAdministrationContextIdentifier, type EuEntityAdministrationPermissionsContextIdentifierType, type EuEntityAdministrationPermissionsSubjectIdentifierType, type EuEntityAdministrationSubjectIdentifier, type EuEntityDetails, type EuEntityPermission, type EuEntityPermissionSubjectDetails, type EuEntityPermissionSubjectDetailsType, type EuEntityPermissionType, type EuEntityPermissionsAuthorIdentifier, type EuEntityPermissionsAuthorIdentifierType, type EuEntityPermissionsQueryPermissionType, type EuEntityPermissionsSubjectIdentifier, type EuEntityPermissionsSubjectIdentifierType, type ExceptionDetails, type ExportAndDownloadOptions, type ExportDownloadResult, type ExportExtractedResult, type ExportOptions, type ExportResult, type ExternalSignatureAuthOptions, FAKTURA_NAMESPACE, FA_XSD_PATHS, FORM_CODES, FORM_CODE_KEYS, type FakturaInput, type FakturaSchema, FileHwmStore, type FileMetadata, FileOfflineInvoiceStorage, type ForbiddenProblemDetails, type ForbiddenReasonCode, type ForbiddenSecurityInfo, type FormCode, type FormType, type GoneProblemDetails, type GrantPermissionsAuthorizationRequest, type GrantPermissionsEntityRequest, type GrantPermissionsEuEntityAdminRequest, type GrantPermissionsEuEntityRepresentativeRequest, type GrantPermissionsEuEntityRequest, type GrantPermissionsIndirectRequest, type GrantPermissionsPersonRequest, type GrantPermissionsSubunitRequest, type HttpMethod, type HwmStore, INVOICE_TYPES_BY_SYSTEM_CODE, type IdDocument, InMemoryHwmStore, InMemoryOfflineInvoiceStorage, type IncrementalExportOptions, type IncrementalExportResult, type IndirectPermissionType, type IndirectPermissionsSubjectIdentifier, type IndirectPermissionsSubjectIdentifierType, type IndirectPermissionsTargetIdentifier, type IndirectPermissionsTargetIdentifierType, InternalId, InvoiceDownloadService, type InvoiceExportPackage, type InvoiceExportPackagePart, type InvoiceExportRequest, type InvoiceExportStatusResponse, type InvoiceFields, type InvoiceMetadata, type InvoiceMetadataAuthorizedSubject, type InvoiceMetadataBuyer, type InvoiceMetadataBuyerIdentifier, type InvoiceMetadataSeller, type InvoiceMetadataThirdSubject, type InvoiceMetadataThirdSubjectIdentifier, type InvoicePermissionType, type InvoiceQueryAmount, type InvoiceQueryBuyerIdentifier, type InvoiceQueryDateRange, type InvoiceQueryDateType, InvoiceQueryFilterBuilder, type InvoiceQueryFilters, type InvoiceResult, type InvoiceSchema, type InvoiceSchemaId, type InvoiceSerializerInput, type InvoiceStatusInfo, type InvoiceSubjectType, type InvoiceType, type InvoiceValidationError, type InvoiceValidationErrorCode, type InvoiceValidationResult, type InvoicingMode, Ip4Address, Ip4Mask, Ip4Range, KSEF_FEATURE_HEADER, KSeFApiError, type KSeFApiProblem, KSeFAuthStatusError, KSeFBadRequestError, KSeFBatchTimeoutError, KSeFCircuitOpenError, KSeFClient, type KSeFClientOptions, KSeFError, KSeFErrorCode, KSeFForbiddenError, KSeFGoneError, KSeFRateLimitError, KSeFSessionExpiredError, type KSeFTokenContext, KSeFUnauthorizedError, KSeFValidationError, KSeFXsdValidationError, type KsefMessagesResponse, KsefNumber, KsefNumberV35, KsefNumberV36, type KsefStatusResponse, type KsefSystemStatus, type KsefTokenPermissionType, type KsefTokenRequest, type KsefTokenResponse, type KsefTokenStatus, type LighthouseMessage, LighthouseService, LimitsService, type LoginResult, type MaintenanceWindow, Nip, NipVatUe, ORDER_MAP, type OfflineBatchResult, type OfflineCertificate, type OfflineInvoiceFilter, type OfflineInvoiceInputData, type OfflineInvoiceMetadata, type OfflineInvoiceOptions, type OfflineInvoiceStatus, type OfflineInvoiceStorage, type OfflineInvoiceUpdates, OfflineInvoiceWorkflow, type OfflineMode, type OfflineReason, type OfflineSubmissionResult, type OnlineSessionContextLimitsOverride, type OnlineSessionEffectiveContextLimits, type OnlineSessionFormCode, type OnlineSessionHandle, OnlineSessionService, type OnlineSessionState, type OpenBatchSessionRequest, type OpenBatchSessionResponse, type OpenOnlineSessionOptions, type OpenOnlineSessionRequest, type OpenOnlineSessionResponse, type OperationResponse, type OperationStatusInfo, PEF_NAMESPACE, PEF_XSD_PATHS, PERMISSION_DESCRIPTION_MAX_LENGTH, PERMISSION_DESCRIPTION_MIN_LENGTH, type PagedAuthorizationsResponse, type PagedPermissionsResponse, type PagedRolesResponse, type ParsedBatchUploadResult, type ParsedUpoInfo, type PartUploadRequest, type PefSchema, type PefUblCreditNoteInput, type PefUblDocumentInput, type PefUblInvoiceInput, PeppolId, type PeppolProvider, PeppolService, type PermissionState, type PermissionSubjectIdentifierType, type PermissionWithDelegate, type PermissionsAttachmentAllowedResponse, type PermissionsEuEntityDetails, type PermissionsOperationStatusResponse, PermissionsService, type PermissionsSubjectEntityByFingerprintDetails, type PermissionsSubjectEntityByIdentifierDetails, type PermissionsSubjectEntityDetails, type PermissionsSubjectPersonByFingerprintDetails, type PermissionsSubjectPersonDetails, type PersonByFingerprintWithIdentifierDetails, type PersonByFingerprintWithoutIdentifierDetails, type PersonByIdentifierDetails, type PersonCreateRequest, type PersonIdentifier, type PersonIdentifierType, type PersonPermission, PersonPermissionGrantBuilder, type PersonPermissionSubjectDetails, type PersonPermissionType, type PersonPermissionsAuthorIdentifier, type PersonPermissionsAuthorIdentifierType, type PersonPermissionsAuthorizedIdentifier, type PersonPermissionsAuthorizedIdentifierType, type PersonPermissionsContextIdentifier, type PersonPermissionsContextIdentifierType, type PersonPermissionsQueryType, type PersonPermissionsTargetIdentifier, type PersonPermissionsTargetIdentifierType, type PersonRemoveRequest, type PersonSubjectByFingerprintDetailsType, type PersonSubjectDetailsType, type PersonSubjectIdentifier, type PersonalPermission, type PersonalPermissionScopeType, type PersonalPermissionsAuthorizedIdentifier, type PersonalPermissionsAuthorizedIdentifierType, type PersonalPermissionsContextIdentifier, type PersonalPermissionsContextIdentifierType, type PersonalPermissionsTargetIdentifier, type PersonalPermissionsTargetIdentifierType, Pesel, type Pkcs12AuthOptions, Pkcs12Loader, type Pkcs12Result, type PollOptions, type PresignedUrlPolicy, type ProblemFields, type PublicKeyCertificate, type PublicKeyCertificateUsage, type QRCodeContextIdentifierType, type QrCodeOptions, type QrCodeResult, QrCodeService, type QueryAuthorizationsGrantsRequest, type QueryCertificatesRequest, type QueryCertificatesResponse, type QueryEntitiesGrantsRequest, type QueryEntitiesRolesRequest, type QueryEuEntitiesGrantsRequest, type QueryInvoicesMetadataResponse, type QueryKsefTokensOptions, type QueryKsefTokensResponse, type QueryPeppolProvidersResponse, type QueryPersonalGrantsRequest, type QueryPersonsGrantsRequest, type QuerySubordinateEntitiesRolesRequest, type QuerySubunitsGrantsRequest, type QueryTokensResponseItem, REQUIRED_CHALLENGE_LENGTH, type RateLimitConfig, RateLimitPolicy, ReferenceNumber, type ResolvedOptions, RestClient, RestRequest, type RestResponse, type RetrieveCertificatesListItem, type RetrieveCertificatesRequest, type RetrieveCertificatesResponse, type RetryPolicy, type RevokeCertificateRequest, RouteBuilder, Routes, SUBUNIT_NAME_MAX_LENGTH, SUBUNIT_NAME_MIN_LENGTH, SchemaRegistry, type SelfSignedCertificateResult, type SendAndCloseOptions, type SendInvoiceRequest, type SendInvoiceResponse, type SerializeInvoiceOptions, type SessionInvoiceStatusResponse, type SessionInvoicesResponse, type SessionStatus, type SessionStatusResponse, SessionStatusService, type SessionType, type SessionsFilter, type SessionsQueryResponse, type SessionsQueryResponseItem, type SetRateLimitsRequest, type SetSessionLimitsRequest, type SetSubjectLimitsRequest, Sha256Base64, SignatureService, type SortOrder, type StatusInfo, type SubjectCreateRequest, type SubjectRemoveRequest, type SubjectType, type SubmitOfflineInvoicesOptions, type SubordinateEntityRole, type SubordinateEntityRoleType, type SubordinateRoleSubordinateEntityIdentifier, type SubordinateRoleSubordinateEntityIdentifierType, type Subunit, type SubunitPermission, type SubunitPermissionScope, type SubunitPermissionsAuthorIdentifier, type SubunitPermissionsAuthorIdentifierType, type SubunitPermissionsAuthorizedIdentifier, type SubunitPermissionsContextIdentifier, type SubunitPermissionsContextIdentifierType, type SubunitPermissionsSubjectIdentifier, type SubunitPermissionsSubjectIdentifierType, type SubunitPermissionsSubunitIdentifier, type SubunitPermissionsSubunitIdentifierType, SystemCode, type TechnicalCorrectionOptions, type TestDataAuthenticationContextIdentifier, type TestDataAuthenticationContextIdentifierType, type TestDataAuthorizedIdentifier, type TestDataAuthorizedIdentifierType, type TestDataContextIdentifier, type TestDataContextIdentifierType, type TestDataPermission, type TestDataPermissionType, type TestDataPermissionsGrantRequest, type TestDataPermissionsRevokeRequest, TestDataService, type ThirdSubjectIdentifierType, type TokenAuthOptions, type TokenAuthorIdentifier, type TokenAuthorIdentifierType, type TokenContextIdentifier, type TokenContextIdentifierType, type TokenInfo, TokenService, type TokenStatusResponse, type TooManyRequestsProblemDetails, type TransportFn, type UnauthorizedProblemDetails, type UnblockContextAuthenticationRequest, type UnzipOptions, type UpoAuthProof, type UpoContextId, type UpoDokument, type UpoInfo, type UpoOpisPotwierdzenia, type UpoPage, type UpoPotwierdzenie, type UpoResponse, type UpoResult, type UpoUwierzytelnienie, UpoVersion, UpoVersion as UpoVersionType, type ValidateAgainstXsdResult, type ValidateOptions, type ValidationDetail, VatUe, VerificationLinkService, type X500NameFields, type XadesSubjectIdentifierType, type XmlConversionResult, type XmlDocument, type XmlObject, type XmlValue, type ZipEntryInput, addBusinessDays, assertNever, authenticateWithCertificate, authenticateWithExternalSignature, authenticateWithPkcs12, authenticateWithToken, batchValidationDetails, buildFakturaXml, buildPefXml, buildRawXmlString, buildUnsignedAuthTokenRequestXml, buildXml, buildXmlFromObject, calculateBackoff, calculateOfflineDeadline, comparePKey, createZip, decodeJwtPayload, deduplicateByKsefNumber, defaultCircuitBreakerPolicy, defaultPresignedUrlPolicy, defaultRateLimitPolicy, defaultRetryPolicy, defaultTransport, exportAndDownload, exportInvoices, extendDeadlineForMaintenance, extractInvoiceFields, getDefaultReason, getEffectiveStartDate, getFormCode, getPolishHolidays, getTimeUntilDeadline, incrementalExportAndDownload, isExpired, isFakturaInput, isFormCodeShape, isMissingLibxmljsError, isPefUblDocumentInput, isPolishHoliday, isRetryableError, isRetryableStatus, isValidBase64, isValidCertificateFingerprint, isValidCertificateName, isValidInternalId, isValidIp4Address, isValidKsefNumber, isValidKsefNumberV35, isValidKsefNumberV36, isValidNip, isValidNipVatUe, isValidPeppolId, isValidPesel, isValidReferenceNumber, isValidSha256Base64, isValidVatUe, libxmljsAvailable, nextBusinessDay, openOnlineSession, openSendAndClose, orderXmlObject, parseFormCode, parseKSeFTokenContext, parseRetryAfter, parseUpoXml, parseXml, pollUntil, resolveOptions, resolveXsdFor, resumeOnlineSession, runWithConcurrency, serializeInvoiceXml, sha256Base64, sleep, stripBom, toKodFormularza, unzip, updateContinuationPoint, uploadBatch, uploadBatchParsed, uploadBatchStream, uploadBatchStreamParsed, validate, validateAgainstXsd, validateBatch, validateBusinessRules, validateCharValidity, validateFormCodeForSession, validatePresignedUrl, validateSchema, validateWellFormedness, verifyHash, xmlToObject };
|
|
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 };
|