@bitblit/ratchet-epsilon-common 4.0.183-alpha → 4.0.184-alpha

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.
Files changed (144) hide show
  1. package/lib/background/background-dynamo-log-table-handler.d.ts +11 -0
  2. package/lib/background/background-entry.d.ts +4 -0
  3. package/lib/background/background-execution-event-type.d.ts +7 -0
  4. package/lib/background/background-execution-event.d.ts +8 -0
  5. package/lib/background/background-execution-listener.d.ts +5 -0
  6. package/lib/background/background-handler.d.ts +29 -0
  7. package/lib/background/background-http-adapter-handler.d.ts +22 -0
  8. package/lib/background/background-meta-response-internal.d.ts +5 -0
  9. package/lib/background/background-process-handling.d.ts +4 -0
  10. package/lib/background/background-process-log-table-entry.d.ts +11 -0
  11. package/lib/background/background-queue-response-internal.d.ts +8 -0
  12. package/lib/background/background-validator.d.ts +17 -0
  13. package/lib/background/epsilon-background-process-error.d.ts +30 -0
  14. package/lib/background/internal-background-entry.d.ts +7 -0
  15. package/lib/background/manager/abstract-background-manager.d.ts +19 -0
  16. package/lib/background/manager/aws-sqs-sns-background-manager.d.ts +23 -0
  17. package/lib/background/manager/background-manager-like.d.ts +17 -0
  18. package/lib/background/manager/background-manager.spec.d.ts +1 -0
  19. package/lib/background/manager/single-thread-local-background-manager.d.ts +15 -0
  20. package/lib/background/s3-background-transaction-logger.d.ts +17 -0
  21. package/lib/build/ratchet-epsilon-common-info.d.ts +5 -0
  22. package/lib/built-in/background/echo-processor.d.ts +7 -0
  23. package/lib/built-in/background/log-and-enqueue-echo-processor.d.ts +6 -0
  24. package/lib/built-in/background/log-message-background-error-processor.d.ts +5 -0
  25. package/lib/built-in/background/no-op-processor.d.ts +6 -0
  26. package/lib/built-in/background/retry-processor.d.ts +16 -0
  27. package/lib/built-in/background/sample-delay-processor.d.ts +6 -0
  28. package/lib/built-in/background/sample-input-validated-processor-data.d.ts +4 -0
  29. package/lib/built-in/background/sample-input-validated-processor.d.ts +8 -0
  30. package/lib/built-in/built-in-trace-id-generators.d.ts +5 -0
  31. package/lib/built-in/daemon/daemon-authorizer-function.d.ts +5 -0
  32. package/lib/built-in/daemon/daemon-config.d.ts +8 -0
  33. package/lib/built-in/daemon/daemon-group-selection-function.d.ts +4 -0
  34. package/lib/built-in/daemon/daemon-handler.d.ts +16 -0
  35. package/lib/built-in/daemon/daemon-process-state-list.d.ts +5 -0
  36. package/lib/built-in/http/apollo/apollo-util.d.ts +10 -0
  37. package/lib/built-in/http/apollo/default-epsilon-apollo-context.d.ts +10 -0
  38. package/lib/built-in/http/apollo/epsilon-apollo-cors-method.d.ts +5 -0
  39. package/lib/built-in/http/apollo/epsilon-lambda-apollo-context-function-argument.d.ts +5 -0
  40. package/lib/built-in/http/apollo/epsilon-lambda-apollo-options.d.ts +8 -0
  41. package/lib/built-in/http/apollo-filter.d.ts +10 -0
  42. package/lib/built-in/http/built-in-auth-filters.d.ts +9 -0
  43. package/lib/built-in/http/built-in-authorizers.d.ts +8 -0
  44. package/lib/built-in/http/built-in-filters.d.ts +25 -0
  45. package/lib/built-in/http/built-in-handlers.d.ts +9 -0
  46. package/lib/built-in/http/log-level-manipulation-filter.d.ts +6 -0
  47. package/lib/built-in/http/run-handler-as-filter.d.ts +12 -0
  48. package/lib/built-in/http/run-handler-as-filter.spec.d.ts +1 -0
  49. package/lib/cli/ratchet-cli-handler.d.ts +6 -0
  50. package/lib/cli/run-background-process-from-command-line.d.ts +3 -0
  51. package/lib/config/background/background-aws-config.d.ts +7 -0
  52. package/lib/config/background/background-config.d.ts +14 -0
  53. package/lib/config/background/background-error-processor.d.ts +4 -0
  54. package/lib/config/background/background-processor.d.ts +6 -0
  55. package/lib/config/background/background-transaction-log.d.ts +8 -0
  56. package/lib/config/background/background-transaction-logger.d.ts +5 -0
  57. package/lib/config/cron/abstract-cron-entry.d.ts +12 -0
  58. package/lib/config/cron/cron-background-entry.d.ts +6 -0
  59. package/lib/config/cron/cron-config.d.ts +6 -0
  60. package/lib/config/dynamo-db-config.d.ts +5 -0
  61. package/lib/config/epsilon-config.d.ts +21 -0
  62. package/lib/config/epsilon-lambda-event-handler.d.ts +7 -0
  63. package/lib/config/epsilon-logger-config.d.ts +13 -0
  64. package/lib/config/generic-aws-event-handler-function.d.ts +3 -0
  65. package/lib/config/http/authorizer-function.d.ts +6 -0
  66. package/lib/config/http/epsilon-authorization-context.d.ts +5 -0
  67. package/lib/config/http/extended-api-gateway-event.d.ts +7 -0
  68. package/lib/config/http/filter-chain-context.d.ts +14 -0
  69. package/lib/config/http/filter-function.d.ts +4 -0
  70. package/lib/config/http/handler-function.d.ts +5 -0
  71. package/lib/config/http/http-config.d.ts +15 -0
  72. package/lib/config/http/http-processing-config.d.ts +11 -0
  73. package/lib/config/http/mapped-http-processing-config.d.ts +7 -0
  74. package/lib/config/http/null-returned-object-handling.d.ts +5 -0
  75. package/lib/config/inter-api/inter-api-aws-config.d.ts +5 -0
  76. package/lib/config/inter-api/inter-api-config.d.ts +6 -0
  77. package/lib/config/inter-api/inter-api-process-mapping.d.ts +6 -0
  78. package/lib/config/logging-trace-id-generator.d.ts +4 -0
  79. package/lib/config/open-api/open-api-document-components.d.ts +4 -0
  80. package/lib/config/open-api/open-api-document-path.d.ts +2 -0
  81. package/lib/config/open-api/open-api-document.d.ts +6 -0
  82. package/lib/config/s3-config.d.ts +6 -0
  83. package/lib/config/sns-config.d.ts +5 -0
  84. package/lib/http/auth/api-gateway-adapter-authentication-handler.d.ts +8 -0
  85. package/lib/http/auth/auth0-web-token-manipulator.d.ts +13 -0
  86. package/lib/http/auth/basic-auth-token.d.ts +4 -0
  87. package/lib/http/auth/google-web-token-manipulator.d.ts +14 -0
  88. package/lib/http/auth/google-web-token-manipulator.spec.d.ts +1 -0
  89. package/lib/http/auth/jwt-ratchet-local-web-token-manipulator.d.ts +11 -0
  90. package/lib/http/auth/local-web-token-manipulator.d.ts +19 -0
  91. package/lib/http/auth/local-web-token-manipulator.spec.d.ts +1 -0
  92. package/lib/http/auth/web-token-manipulator.d.ts +4 -0
  93. package/lib/http/error/bad-gateway.d.ts +5 -0
  94. package/lib/http/error/bad-request-error.d.ts +5 -0
  95. package/lib/http/error/conflict-error.d.ts +5 -0
  96. package/lib/http/error/epsilon-http-error.d.ts +41 -0
  97. package/lib/http/error/epsilon-http-error.spec.d.ts +1 -0
  98. package/lib/http/error/forbidden-error.d.ts +5 -0
  99. package/lib/http/error/gateway-timeout.d.ts +5 -0
  100. package/lib/http/error/method-not-allowed-error.d.ts +5 -0
  101. package/lib/http/error/misconfigured-error.d.ts +5 -0
  102. package/lib/http/error/not-found-error.d.ts +5 -0
  103. package/lib/http/error/not-implemented.d.ts +5 -0
  104. package/lib/http/error/request-timeout-error.d.ts +5 -0
  105. package/lib/http/error/service-unavailable.d.ts +5 -0
  106. package/lib/http/error/too-many-requests-error.d.ts +5 -0
  107. package/lib/http/error/unauthorized-error.d.ts +5 -0
  108. package/lib/http/event-util.d.ts +27 -0
  109. package/lib/http/event-util.spec.d.ts +1 -0
  110. package/lib/http/response-util.d.ts +11 -0
  111. package/lib/http/response-util.spec.d.ts +1 -0
  112. package/lib/http/route/epsilon-router.d.ts +8 -0
  113. package/lib/http/route/extended-auth-response-context.d.ts +6 -0
  114. package/lib/http/route/route-mapping.d.ts +12 -0
  115. package/lib/http/route/route-validator-config.d.ts +5 -0
  116. package/lib/http/route/router-util.d.ts +23 -0
  117. package/lib/http/route/router-util.spec.d.ts +1 -0
  118. package/lib/http/web-handler.d.ts +23 -0
  119. package/lib/http/web-handler.spec.d.ts +1 -0
  120. package/lib/http/web-v2-handler.d.ts +10 -0
  121. package/lib/index.mjs +1 -1
  122. package/lib/inter-api/inter-api-entry.d.ts +7 -0
  123. package/lib/inter-api/inter-api-util.d.ts +10 -0
  124. package/lib/inter-api/inter-api-util.spec.d.ts +1 -0
  125. package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.d.ts +14 -0
  126. package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +1 -0
  127. package/lib/lambda-event-handler/dynamo-epsilon-lambda-event-handler.d.ts +11 -0
  128. package/lib/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.d.ts +10 -0
  129. package/lib/lambda-event-handler/inter-api-epsilon-lambda-event-handler.d.ts +10 -0
  130. package/lib/lambda-event-handler/s3-epsilon-lambda-event-handler.d.ts +10 -0
  131. package/lib/open-api-util/open-api-doc-modifications.d.ts +8 -0
  132. package/lib/open-api-util/open-api-doc-modifier.d.ts +7 -0
  133. package/lib/open-api-util/open-api-doc-modifier.spec.d.ts +1 -0
  134. package/lib/open-api-util/yaml-combiner.d.ts +3 -0
  135. package/lib/open-api-util/yaml-combiner.spec.d.ts +1 -0
  136. package/lib/sample/sample-server-components.d.ts +10 -0
  137. package/lib/sample/sample-server-static-files.d.ts +5 -0
  138. package/lib/sample/test-error-server.d.ts +11 -0
  139. package/lib/util/aws-util.d.ts +8 -0
  140. package/lib/util/context-util.d.ts +34 -0
  141. package/lib/util/cron-util.d.ts +11 -0
  142. package/lib/util/cron-util.spec.d.ts +1 -0
  143. package/lib/util/epsilon-config-parser.d.ts +14 -0
  144. package/package.json +8 -8
@@ -0,0 +1,23 @@
1
+ import { EpsilonRouter } from './route/epsilon-router.js';
2
+ import { APIGatewayEvent, Context, ProxyResult } from 'aws-lambda';
3
+ import Route from 'route-parser';
4
+ import { RouteMapping } from './route/route-mapping.js';
5
+ import { ExtendedAPIGatewayEvent } from '../config/http/extended-api-gateway-event.js';
6
+ import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
7
+ export declare class WebHandler implements EpsilonLambdaEventHandler<APIGatewayEvent> {
8
+ private routerConfig;
9
+ static readonly MAXIMUM_LAMBDA_BODY_SIZE_BYTES: number;
10
+ constructor(routerConfig: EpsilonRouter);
11
+ get router(): EpsilonRouter;
12
+ extractLabel(evt: APIGatewayEvent, context: Context): string;
13
+ handlesEvent(evt: any): boolean;
14
+ processEvent(event: APIGatewayEvent, context: Context): Promise<ProxyResult>;
15
+ openApiLambdaHandler(evt: ExtendedAPIGatewayEvent, context: Context): Promise<ProxyResult>;
16
+ findBestMatchingRoute(event: APIGatewayEvent): RouteAndParse;
17
+ private cleanPath;
18
+ }
19
+ export interface RouteAndParse {
20
+ mapping: RouteMapping;
21
+ route: Route;
22
+ parsed: any;
23
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { APIGatewayProxyEventV2, Context, ProxyResult } from 'aws-lambda';
2
+ import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
3
+ import { WebHandler } from './web-handler.js';
4
+ export declare class WebV2Handler implements EpsilonLambdaEventHandler<APIGatewayProxyEventV2> {
5
+ private webHandler;
6
+ constructor(webHandler: WebHandler);
7
+ extractLabel(evt: APIGatewayProxyEventV2, context: Context): string;
8
+ handlesEvent(evt: any): boolean;
9
+ processEvent(evt: APIGatewayProxyEventV2, context: Context): Promise<ProxyResult>;
10
+ }