@zuplo/runtime 6.38.0 → 6.38.2
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/out/esm/index.js +23 -23
- package/out/types/index.d.ts +102 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
import { KeyLike } from 'jose';
|
|
2
2
|
import type { ValidateFunction as ValidateFunction_2 } from 'ajv';
|
|
3
3
|
|
|
4
|
+
export declare interface AkamaiApiSecurityLoggerEntry {
|
|
5
|
+
ip: {
|
|
6
|
+
v?: string;
|
|
7
|
+
src: string;
|
|
8
|
+
dst?: string;
|
|
9
|
+
};
|
|
10
|
+
tcp: {
|
|
11
|
+
src?: number;
|
|
12
|
+
dst: number;
|
|
13
|
+
};
|
|
14
|
+
http: {
|
|
15
|
+
v?: string;
|
|
16
|
+
request: {
|
|
17
|
+
ts: number;
|
|
18
|
+
method: string;
|
|
19
|
+
url: string;
|
|
20
|
+
headers: Record<string, string>;
|
|
21
|
+
body: string;
|
|
22
|
+
};
|
|
23
|
+
response: {
|
|
24
|
+
ts: number;
|
|
25
|
+
status: number;
|
|
26
|
+
headers: Record<string, string>;
|
|
27
|
+
body: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
metadata?: Record<string, string>;
|
|
31
|
+
source: {
|
|
32
|
+
type: number;
|
|
33
|
+
index: number;
|
|
34
|
+
key: string;
|
|
35
|
+
version: string;
|
|
36
|
+
resource?: {
|
|
37
|
+
type: string;
|
|
38
|
+
properties: Record<string, string>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare class AkamaiApiSecurityPlugin extends SystemRuntimePlugin {
|
|
44
|
+
#private;
|
|
45
|
+
constructor(options: AkamaiApiSecurityPluginOptions);
|
|
46
|
+
initialize(runtime: RuntimeExtensions): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare interface AkamaiApiSecurityPluginOptions {
|
|
50
|
+
hostname: string;
|
|
51
|
+
key: string;
|
|
52
|
+
batchPeriodSeconds?: number;
|
|
53
|
+
enableProtection?: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
4
56
|
/**
|
|
5
57
|
* Amberflo is a usage metering and billing service. This policy allows
|
|
6
58
|
* you to send metering calls for each API to their meter ingest endpoint.
|
|
@@ -1406,6 +1458,8 @@ export declare class DataDogMetricsPlugin extends MetricsPlugin {
|
|
|
1406
1458
|
static setContext(context: ZuploContext, data: DataDogMetricsContext): void;
|
|
1407
1459
|
}
|
|
1408
1460
|
|
|
1461
|
+
export declare const defaultGenerateHydrolixEntry: GenerateRequestLoggerEntry<HydrolixDefaultEntry>;
|
|
1462
|
+
|
|
1409
1463
|
/* Excluded from this release type: DevPortalRuntimeConfig */
|
|
1410
1464
|
|
|
1411
1465
|
/**
|
|
@@ -2692,6 +2746,54 @@ declare type HttpStatusCodeRangeDefinition = "1XX" | "2XX" | "3XX" | "4XX" | "5X
|
|
|
2692
2746
|
|
|
2693
2747
|
/* Excluded from this release type: httpStatuses */
|
|
2694
2748
|
|
|
2749
|
+
export declare interface HydrolixDefaultEntry {
|
|
2750
|
+
deploymentName: string;
|
|
2751
|
+
timestamp: string;
|
|
2752
|
+
requestId: string;
|
|
2753
|
+
routePath: string;
|
|
2754
|
+
operationId?: string;
|
|
2755
|
+
url?: string;
|
|
2756
|
+
statusCode?: number;
|
|
2757
|
+
durationMs?: number;
|
|
2758
|
+
method: string;
|
|
2759
|
+
userSub?: string;
|
|
2760
|
+
instanceId?: string;
|
|
2761
|
+
colo?: string;
|
|
2762
|
+
city?: string;
|
|
2763
|
+
country?: string;
|
|
2764
|
+
continent?: string;
|
|
2765
|
+
latitude?: string;
|
|
2766
|
+
longitude?: string;
|
|
2767
|
+
postalCode?: string;
|
|
2768
|
+
metroCode?: string;
|
|
2769
|
+
region?: string;
|
|
2770
|
+
regionCode?: string;
|
|
2771
|
+
timezone?: string;
|
|
2772
|
+
asn?: string;
|
|
2773
|
+
asOrganization?: string;
|
|
2774
|
+
clientIP?: string;
|
|
2775
|
+
zuploUserAgent?: string;
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
export declare class HydrolixRequestLoggerPlugin<T extends {
|
|
2779
|
+
[P in keyof T]: string | number | boolean | null;
|
|
2780
|
+
}> extends SystemRuntimePlugin {
|
|
2781
|
+
#private;
|
|
2782
|
+
constructor(options: HydrolixRequestLoggerPluginOptions<T>);
|
|
2783
|
+
initialize(runtime: RuntimeExtensions): Promise<void>;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
export declare interface HydrolixRequestLoggerPluginOptions<T> {
|
|
2787
|
+
hostname: string;
|
|
2788
|
+
username: string;
|
|
2789
|
+
password: string;
|
|
2790
|
+
token?: string;
|
|
2791
|
+
table: string;
|
|
2792
|
+
transform: string;
|
|
2793
|
+
generateLogEntry: GenerateRequestLoggerEntry<T>;
|
|
2794
|
+
batchPeriodSeconds?: number;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2695
2797
|
/**
|
|
2696
2798
|
* @beta
|
|
2697
2799
|
* A policy that can modify the incoming HTTP request before it is sent to
|