@k-msg/webhook 0.22.3 → 0.23.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 +1 -0
- package/dist/index.js +8 -8
- package/dist/index.js.map +5 -4
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +5 -4
- package/dist/registry/index.d.ts +1 -0
- package/dist/registry/types.d.ts +8 -0
- package/dist/services/webhook.registry.d.ts +15 -0
- package/dist/toolkit/index.d.ts +1 -0
- package/dist/toolkit/index.js +31 -31
- package/dist/toolkit/index.js.map +6 -5
- package/dist/toolkit/index.mjs +31 -31
- package/dist/toolkit/index.mjs.map +6 -5
- package/package.json +2 -2
package/dist/registry/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Webhook Registry Components
|
|
3
3
|
* 웹훅 엔드포인트 및 전달 기록 관리 관련 컴포넌트들
|
|
4
4
|
*/
|
|
5
|
+
export type { WebhookRegistryCryptoOptions, WebhookRegistryOptions, } from "../services/webhook.registry";
|
|
5
6
|
export { WebhookRegistry } from "../services/webhook.registry";
|
|
6
7
|
export { DeliveryStore } from "./delivery.store";
|
|
7
8
|
export { EndpointManager } from "./endpoint.manager";
|
package/dist/registry/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Registry Type Definitions
|
|
3
3
|
*/
|
|
4
|
+
import type { FieldCryptoConfig } from "@k-msg/core";
|
|
4
5
|
import type { FileStorageAdapter } from "../shared/file-storage";
|
|
5
6
|
import type { WebhookEventType } from "../types/webhook.types";
|
|
6
7
|
export interface EndpointFilter {
|
|
@@ -45,7 +46,14 @@ export interface StorageConfig {
|
|
|
45
46
|
tableName?: string;
|
|
46
47
|
maxMemoryUsage?: number;
|
|
47
48
|
retentionDays?: number;
|
|
49
|
+
fieldCrypto?: FieldCryptoConfig;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `fieldCrypto` instead.
|
|
52
|
+
*/
|
|
48
53
|
enableEncryption?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Use `fieldCrypto` with a provider implementation.
|
|
56
|
+
*/
|
|
49
57
|
encryptionKey?: string;
|
|
50
58
|
}
|
|
51
59
|
export interface PaginationOptions {
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import { type FieldCryptoConfig } from "@k-msg/core";
|
|
1
2
|
import type { WebhookDelivery, WebhookEndpoint, WebhookEventType } from "../types/webhook.types";
|
|
3
|
+
export interface WebhookRegistryCryptoOptions {
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
endpoint?: FieldCryptoConfig;
|
|
6
|
+
delivery?: FieldCryptoConfig;
|
|
7
|
+
}
|
|
8
|
+
export interface WebhookRegistryOptions {
|
|
9
|
+
fieldCrypto?: WebhookRegistryCryptoOptions;
|
|
10
|
+
}
|
|
2
11
|
export declare class WebhookRegistry {
|
|
3
12
|
private endpoints;
|
|
4
13
|
private deliveries;
|
|
14
|
+
private readonly options;
|
|
15
|
+
constructor(options?: WebhookRegistryOptions);
|
|
5
16
|
addEndpoint(endpoint: WebhookEndpoint): Promise<void>;
|
|
6
17
|
updateEndpoint(endpointId: string, endpoint: WebhookEndpoint): Promise<void>;
|
|
7
18
|
removeEndpoint(endpointId: string): Promise<void>;
|
|
@@ -13,4 +24,8 @@ export declare class WebhookRegistry {
|
|
|
13
24
|
end: Date;
|
|
14
25
|
}, eventType?: WebhookEventType, status?: string, limit?: number): Promise<WebhookDelivery[]>;
|
|
15
26
|
getFailedDeliveries(endpointId?: string, eventType?: WebhookEventType): Promise<WebhookDelivery[]>;
|
|
27
|
+
private protectEndpoint;
|
|
28
|
+
private revealEndpoint;
|
|
29
|
+
private protectDelivery;
|
|
30
|
+
private revealDelivery;
|
|
16
31
|
}
|
package/dist/toolkit/index.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export type { DeliveryFilter, EndpointFilter, EventFilter, PaginationOptions, Se
|
|
|
12
12
|
export { RetryManager } from "../retry/retry.manager";
|
|
13
13
|
export { SecurityManager } from "../security/security.manager";
|
|
14
14
|
export { DefaultHttpClient, type HttpClient, MockHttpClient, WebhookDispatcher, } from "../services/webhook.dispatcher";
|
|
15
|
+
export type { WebhookRegistryCryptoOptions, WebhookRegistryOptions, } from "../services/webhook.registry";
|
|
15
16
|
export { WebhookRegistry } from "../services/webhook.registry";
|
|
16
17
|
export type { FileStorageAdapter } from "../shared/file-storage";
|