@k-msg/webhook 0.23.0 → 0.24.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/crypto/field-crypto.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -24
- package/dist/index.js.map +9 -5
- package/dist/index.mjs +24 -24
- package/dist/index.mjs.map +9 -5
- package/dist/registry/types.d.ts +2 -7
- package/dist/runtime/types.d.ts +7 -0
- package/dist/services/webhook.registry.d.ts +1 -0
- package/dist/toolkit/index.js +30 -30
- package/dist/toolkit/index.js.map +9 -6
- package/dist/toolkit/index.mjs +30 -30
- package/dist/toolkit/index.mjs.map +9 -6
- package/package.json +2 -2
package/dist/registry/types.d.ts
CHANGED
|
@@ -46,15 +46,10 @@ export interface StorageConfig {
|
|
|
46
46
|
tableName?: string;
|
|
47
47
|
maxMemoryUsage?: number;
|
|
48
48
|
retentionDays?: number;
|
|
49
|
-
fieldCrypto?: FieldCryptoConfig;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use `fieldCrypto` instead.
|
|
52
|
-
*/
|
|
53
|
-
enableEncryption?: boolean;
|
|
54
49
|
/**
|
|
55
|
-
*
|
|
50
|
+
* Field-level crypto policy for endpoint secret and delivery payload.
|
|
56
51
|
*/
|
|
57
|
-
|
|
52
|
+
fieldCrypto?: FieldCryptoConfig;
|
|
58
53
|
}
|
|
59
54
|
export interface PaginationOptions {
|
|
60
55
|
page: number;
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FieldCryptoConfig } from "@k-msg/core";
|
|
1
2
|
import type { HttpClient } from "../services/webhook.dispatcher";
|
|
2
3
|
import type { WebhookConfig, WebhookDelivery, WebhookEndpoint, WebhookEvent, WebhookTestResult } from "../types/webhook.types";
|
|
3
4
|
export interface WebhookDeliveryListOptions {
|
|
@@ -27,6 +28,11 @@ export interface WebhookRuntimeSecurityOptions {
|
|
|
27
28
|
allowPrivateHosts?: boolean;
|
|
28
29
|
allowHttpForLocalhost?: boolean;
|
|
29
30
|
}
|
|
31
|
+
export interface WebhookRuntimeFieldCryptoOptions {
|
|
32
|
+
tenantId?: string;
|
|
33
|
+
endpoint?: FieldCryptoConfig;
|
|
34
|
+
delivery?: FieldCryptoConfig;
|
|
35
|
+
}
|
|
30
36
|
export type WebhookEndpointInput = Omit<WebhookEndpoint, "id" | "createdAt" | "updatedAt" | "status"> & {
|
|
31
37
|
id?: string;
|
|
32
38
|
status?: WebhookEndpoint["status"];
|
|
@@ -36,6 +42,7 @@ export interface WebhookRuntimeConfig {
|
|
|
36
42
|
persistence?: WebhookPersistence;
|
|
37
43
|
endpointStore?: WebhookEndpointStore;
|
|
38
44
|
deliveryStore?: WebhookDeliveryStore;
|
|
45
|
+
fieldCrypto?: WebhookRuntimeFieldCryptoOptions;
|
|
39
46
|
httpClient?: HttpClient;
|
|
40
47
|
security?: WebhookRuntimeSecurityOptions;
|
|
41
48
|
autoStart?: boolean;
|