@zuplo/runtime 6.40.4 → 6.40.6

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.
@@ -33,9 +33,14 @@ export declare interface AkamaiApiSecurityLoggerEntry {
33
33
  index: number;
34
34
  key: string;
35
35
  version: string;
36
- resource?: {
36
+ resource: {
37
37
  type: string;
38
- properties: Record<string, string>;
38
+ properties: {
39
+ account: string;
40
+ project: string;
41
+ environment: string;
42
+ route: string;
43
+ };
39
44
  };
40
45
  };
41
46
  }
@@ -49,9 +54,9 @@ export declare class AkamaiApiSecurityPlugin extends SystemRuntimePlugin {
49
54
  export declare interface AkamaiApiSecurityPluginOptions {
50
55
  hostname: string;
51
56
  key: string;
52
- batchPeriodSeconds?: number;
53
57
  enableProtection?: boolean;
54
58
  debug?: boolean;
59
+ maxQueueSize?: number;
55
60
  }
56
61
 
57
62
  /**
@@ -661,9 +666,7 @@ export declare interface AzureBlobGenerateName<T> {
661
666
  (entries: T[]): string;
662
667
  }
663
668
 
664
- export declare class AzureBlobPlugin<T extends {
665
- [P in keyof T]: string | number | boolean | null;
666
- }> extends SystemRuntimePlugin {
669
+ export declare class AzureBlobPlugin<T extends BasicDictionary> extends SystemRuntimePlugin {
667
670
  #private;
668
671
  constructor(options: AzureBlobPluginOptions<T>);
669
672
  initialize(runtime: RuntimeExtensions): Promise<void>;
@@ -676,6 +679,29 @@ export declare interface AzureBlobPluginOptions<T> {
676
679
  generateBlobName?: AzureBlobGenerateName<T>;
677
680
  }
678
681
 
682
+ export declare class AzureEventHubsRequestLoggerPlugin<T extends BasicDictionary> extends SystemRuntimePlugin {
683
+ #private;
684
+ constructor(options: AzureEventHubsRequestLoggerPluginOptions<T>);
685
+ /**
686
+ * In Zuplo, a plugin must implement initialize() to add a RequestLoggerCore
687
+ * that handles batching requests for us.
688
+ */
689
+ initialize(runtime: RuntimeExtensions): Promise<void>;
690
+ }
691
+
692
+ export declare interface AzureEventHubsRequestLoggerPluginOptions<T> {
693
+ /** Full connection string from Azure Portal (with Endpoint=..., etc.) */
694
+ connectionString: string;
695
+ /**
696
+ * If your connection string includes an EntityPath=..., that's used by default.
697
+ * Otherwise, specify eventHubName here.
698
+ */
699
+ eventHubName?: string;
700
+ generateLogEntry: GenerateRequestLoggerEntry<T>;
701
+ /** How often to flush batched logs, in seconds. */
702
+ batchPeriodSeconds: number;
703
+ }
704
+
679
705
  export declare class BackgroundDispatcher<TPayload> {
680
706
  #private;
681
707
  constructor(dispatcher: DispatchFunction<TPayload>, options: BatchDispatcherOptions);
@@ -772,6 +798,10 @@ export declare interface BasicAuthInboundPolicyOptions {
772
798
  allowUnauthenticatedRequests?: boolean;
773
799
  }
774
800
 
801
+ declare interface BasicDictionary {
802
+ [key: string]: string | number | boolean | null | undefined;
803
+ }
804
+
775
805
  /* Excluded from this release type: BatchDispatch */
776
806
 
777
807
  declare interface BatchDispatcherOptions {
@@ -2747,7 +2777,7 @@ declare type HttpStatusCodeRangeDefinition = "1XX" | "2XX" | "3XX" | "4XX" | "5X
2747
2777
 
2748
2778
  /* Excluded from this release type: httpStatuses */
2749
2779
 
2750
- export declare interface HydrolixDefaultEntry {
2780
+ export declare interface HydrolixDefaultEntry extends BasicDictionary {
2751
2781
  deploymentName: string;
2752
2782
  timestamp: string;
2753
2783
  requestId: string;
@@ -2776,9 +2806,7 @@ export declare interface HydrolixDefaultEntry {
2776
2806
  zuploUserAgent?: string;
2777
2807
  }
2778
2808
 
2779
- export declare class HydrolixRequestLoggerPlugin<T extends {
2780
- [P in keyof T]: string | number | boolean | null;
2781
- }> extends SystemRuntimePlugin {
2809
+ export declare class HydrolixRequestLoggerPlugin<T extends BasicDictionary> extends SystemRuntimePlugin {
2782
2810
  #private;
2783
2811
  constructor(options: HydrolixRequestLoggerPluginOptions<T>);
2784
2812
  initialize(runtime: RuntimeExtensions): Promise<void>;
@@ -4593,12 +4621,10 @@ export declare interface RequestLoggerOptions<T> {
4593
4621
  name: string;
4594
4622
  dispatchFunction: DispatchRequestLoggerEntries<T>;
4595
4623
  generateLogEntry: GenerateRequestLoggerEntry<T>;
4596
- batchPeriodSeconds: number | undefined;
4624
+ batchPeriodSeconds?: number;
4597
4625
  }
4598
4626
 
4599
- export declare class RequestLoggerPlugin<T extends {
4600
- [P in keyof T]: string | number | boolean | null;
4601
- }> extends SystemRuntimePlugin {
4627
+ export declare class RequestLoggerPlugin<T extends BasicDictionary> extends SystemRuntimePlugin {
4602
4628
  #private;
4603
4629
  constructor(options: RequestLoggerOptions<T>);
4604
4630
  initialize(runtime: RuntimeExtensions): Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.40.4",
4
+ "version": "6.40.6",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {