@bitblit/ratchet-epsilon-common 4.0.99-alpha → 4.0.102-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.
- package/dist/{types/background → background}/background-dynamo-log-table-handler.d.ts +3 -3
- package/dist/{es/background → background}/background-dynamo-log-table-handler.js +6 -2
- package/dist/{types/background → background}/background-execution-event.d.ts +1 -1
- package/dist/{types/background → background}/background-execution-listener.d.ts +1 -1
- package/dist/{types/background → background}/background-handler.d.ts +5 -9
- package/dist/{es/background → background}/background-handler.js +15 -7
- package/dist/{types/background → background}/background-http-adapter-handler.d.ts +7 -11
- package/dist/{es/background → background}/background-http-adapter-handler.js +13 -8
- package/dist/{types/background → background}/background-queue-response-internal.d.ts +1 -1
- package/dist/{types/background → background}/background-validator.d.ts +5 -8
- package/dist/{es/background → background}/background-validator.js +5 -3
- package/dist/{es/background → background}/epsilon-background-process-error.js +6 -1
- package/dist/{types/background → background}/internal-background-entry.d.ts +1 -1
- package/dist/{types/background → background}/manager/abstract-background-manager.d.ts +3 -10
- package/dist/{es/background → background}/manager/abstract-background-manager.js +5 -4
- package/dist/{types/background → background}/manager/aws-sqs-sns-background-manager.d.ts +4 -11
- package/dist/{es/background → background}/manager/aws-sqs-sns-background-manager.js +9 -5
- package/dist/{types/background → background}/manager/background-manager-like.d.ts +2 -9
- package/dist/background/manager/background-manager.spec.js +73 -0
- package/dist/{types/background → background}/manager/single-thread-local-background-manager.d.ts +3 -10
- package/dist/{es/background → background}/manager/single-thread-local-background-manager.js +6 -6
- package/dist/{types/background → background}/s3-background-transaction-logger.d.ts +2 -2
- package/dist/{es/background → background}/s3-background-transaction-logger.js +6 -3
- package/dist/{types/build → build}/ratchet-epsilon-common-info.d.ts +1 -1
- package/dist/{types/built-in → built-in}/background/echo-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/echo-processor.js +4 -3
- package/dist/{types/built-in → built-in}/background/log-and-enqueue-echo-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/log-and-enqueue-echo-processor.js +2 -2
- package/dist/{types/built-in → built-in}/background/log-message-background-error-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/log-message-background-error-processor.js +1 -1
- package/dist/{types/built-in → built-in}/background/no-op-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/no-op-processor.js +1 -1
- package/dist/{types/built-in → built-in}/background/retry-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/retry-processor.js +8 -4
- package/dist/{types/built-in → built-in}/background/sample-delay-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/sample-delay-processor.js +2 -1
- package/dist/{types/built-in → built-in}/background/sample-input-validated-processor.d.ts +3 -3
- package/dist/{es/built-in → built-in}/background/sample-input-validated-processor.js +1 -1
- package/dist/{es/built-in → built-in}/built-in-trace-id-generators.js +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-authorizer-function.d.ts +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-config.d.ts +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-group-selection-function.d.ts +1 -1
- package/dist/{types/built-in → built-in}/daemon/daemon-handler.d.ts +6 -12
- package/dist/{es/built-in → built-in}/daemon/daemon-handler.js +9 -8
- package/dist/built-in/daemon/daemon-process-state-list.d.ts +5 -0
- package/dist/{types/built-in → built-in}/http/apollo-filter.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/apollo-filter.js +6 -5
- package/dist/{types/built-in → built-in}/http/built-in-auth-filters.d.ts +3 -3
- package/dist/{es/built-in → built-in}/http/built-in-auth-filters.js +5 -5
- package/dist/{types/built-in → built-in}/http/built-in-authorizers.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-authorizers.js +1 -1
- package/dist/{types/built-in → built-in}/http/built-in-filters.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-filters.js +9 -9
- package/dist/{types/built-in → built-in}/http/built-in-handlers.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-handlers.js +10 -10
- package/dist/{types/built-in → built-in}/http/log-level-manipulation-filter.d.ts +1 -4
- package/dist/{es/built-in → built-in}/http/log-level-manipulation-filter.js +2 -2
- package/dist/{types/built-in → built-in}/http/run-handler-as-filter.d.ts +5 -5
- package/dist/{es/built-in → built-in}/http/run-handler-as-filter.js +8 -8
- package/dist/built-in/http/run-handler-as-filter.spec.js +40 -0
- package/dist/{types/cli-bootstrap → cli-bootstrap}/ratchet-cli-handler.d.ts +2 -2
- package/dist/{es/cli-bootstrap → cli-bootstrap}/ratchet-cli-handler.js +6 -6
- package/dist/cli-bootstrap/run-background-process-from-command-line.d.ts +3 -0
- package/dist/{es/cli-bootstrap → cli-bootstrap}/run-background-process-from-command-line.js +2 -2
- package/dist/{types/config → config}/background/background-config.d.ts +4 -4
- package/dist/{types/config → config}/background/background-error-processor.d.ts +1 -1
- package/dist/{types/config → config}/background/background-processor.d.ts +1 -1
- package/dist/{types/config → config}/background/background-transaction-log.d.ts +1 -1
- package/dist/{types/config → config}/background/background-transaction-logger.d.ts +1 -1
- package/dist/config/cron/cron-background-entry.d.ts +6 -0
- package/dist/{types/config → config}/cron/cron-config.d.ts +1 -1
- package/dist/{types/config → config}/dynamo-db-config.d.ts +1 -1
- package/dist/{types/config → config}/epsilon-config.d.ts +8 -8
- package/dist/{types/config → config}/epsilon-logger-config.d.ts +3 -2
- package/dist/{types/config → config}/http/authorizer-function.d.ts +3 -3
- package/dist/{types/config → config}/http/extended-api-gateway-event.d.ts +1 -1
- package/dist/{types/config → config}/http/filter-chain-context.d.ts +4 -4
- package/dist/{types/config → config}/http/filter-function.d.ts +1 -1
- package/dist/{types/config → config}/http/handler-function.d.ts +1 -1
- package/dist/{types/config → config}/http/http-config.d.ts +5 -5
- package/dist/{types/config → config}/http/http-processing-config.d.ts +2 -2
- package/dist/{types/config → config}/http/mapped-http-processing-config.d.ts +1 -1
- package/dist/{types/config → config}/inter-api/inter-api-config.d.ts +2 -2
- package/dist/config/inter-api/inter-api-process-mapping.d.ts +6 -0
- package/dist/{types/config → config}/open-api/open-api-document.d.ts +2 -2
- package/dist/{types/config → config}/s3-config.d.ts +1 -1
- package/dist/{types/config → config}/sns-config.d.ts +1 -1
- package/dist/{es/epsilon-build-properties.js → epsilon-build-properties.js} +1 -1
- package/dist/{types/epsilon-constants.d.ts → epsilon-constants.d.ts} +1 -1
- package/dist/{es/epsilon-constants.js → epsilon-constants.js} +14 -13
- package/dist/{types/epsilon-global-handler.d.ts → epsilon-global-handler.d.ts} +3 -6
- package/dist/{es/epsilon-global-handler.js → epsilon-global-handler.js} +29 -24
- package/dist/{types/epsilon-instance.d.ts → epsilon-instance.d.ts} +6 -11
- package/dist/epsilon-logging-extension-processor.d.ts +6 -0
- package/dist/{es/epsilon-logging-extension-processor.js → epsilon-logging-extension-processor.js} +1 -1
- package/dist/{types/http → http}/auth/api-gateway-adapter-authentication-handler.d.ts +0 -10
- package/dist/{es/http → http}/auth/api-gateway-adapter-authentication-handler.js +4 -3
- package/dist/{types/http → http}/auth/auth0-web-token-manipulator.d.ts +2 -2
- package/dist/{es/http → http}/auth/auth0-web-token-manipulator.js +6 -1
- package/dist/{types/http → http}/auth/basic-auth-token.d.ts +0 -3
- package/dist/{types/http → http}/auth/google-web-token-manipulator.d.ts +2 -2
- package/dist/{es/http → http}/auth/google-web-token-manipulator.js +6 -3
- package/dist/http/auth/google-web-token-manipulator.spec.js +10 -0
- package/dist/{types/http → http}/auth/jwt-ratchet-local-web-token-manipulator.d.ts +3 -5
- package/dist/{es/http → http}/auth/jwt-ratchet-local-web-token-manipulator.js +5 -3
- package/dist/{types/http → http}/auth/local-web-token-manipulator.d.ts +4 -5
- package/dist/{es/http → http}/auth/local-web-token-manipulator.js +9 -5
- package/dist/http/auth/local-web-token-manipulator.spec.js +24 -0
- package/dist/{types/http → http}/auth/web-token-manipulator.d.ts +1 -4
- package/dist/{types/http → http}/error/bad-gateway.d.ts +1 -1
- package/dist/{es/http → http}/error/bad-gateway.js +2 -2
- package/dist/{types/http → http}/error/bad-request-error.d.ts +1 -1
- package/dist/{es/http → http}/error/bad-request-error.js +2 -2
- package/dist/{types/http → http}/error/conflict-error.d.ts +1 -1
- package/dist/{es/http → http}/error/conflict-error.js +2 -2
- package/dist/{es/http → http}/error/epsilon-http-error.js +9 -3
- package/dist/http/error/epsilon-http-error.spec.js +11 -0
- package/dist/{types/http → http}/error/forbidden-error.d.ts +1 -1
- package/dist/{es/http → http}/error/forbidden-error.js +2 -2
- package/dist/{types/http → http}/error/gateway-timeout.d.ts +1 -1
- package/dist/{es/http → http}/error/gateway-timeout.js +2 -2
- package/dist/{types/http → http}/error/method-not-allowed-error.d.ts +1 -1
- package/dist/{es/http → http}/error/method-not-allowed-error.js +2 -2
- package/dist/{types/http → http}/error/misconfigured-error.d.ts +1 -1
- package/dist/{es/http → http}/error/misconfigured-error.js +2 -2
- package/dist/{types/http → http}/error/not-found-error.d.ts +1 -1
- package/dist/{es/http → http}/error/not-found-error.js +2 -2
- package/dist/{types/http → http}/error/not-implemented.d.ts +1 -1
- package/dist/{es/http → http}/error/not-implemented.js +2 -2
- package/dist/{types/http → http}/error/request-timeout-error.d.ts +1 -1
- package/dist/{es/http → http}/error/request-timeout-error.js +2 -2
- package/dist/{types/http → http}/error/service-unavailable.d.ts +1 -1
- package/dist/{es/http → http}/error/service-unavailable.js +2 -2
- package/dist/{types/http → http}/error/too-many-requests-error.d.ts +1 -1
- package/dist/{es/http → http}/error/too-many-requests-error.js +2 -2
- package/dist/{types/http → http}/error/unauthorized-error.d.ts +1 -1
- package/dist/{es/http → http}/error/unauthorized-error.js +2 -2
- package/dist/{types/http → http}/event-util.d.ts +3 -25
- package/dist/{es/http → http}/event-util.js +9 -8
- package/dist/http/event-util.spec.js +157 -0
- package/dist/{types/http → http}/response-util.d.ts +2 -2
- package/dist/{es/http → http}/response-util.js +2 -2
- package/dist/http/response-util.spec.d.ts +1 -0
- package/dist/http/response-util.spec.js +88 -0
- package/dist/http/route/epsilon-router.d.ts +8 -0
- package/dist/http/route/epsilon-router.js +1 -0
- package/dist/http/route/extended-auth-response-context.js +1 -0
- package/dist/{types/http → http}/route/route-mapping.d.ts +3 -3
- package/dist/http/route/route-mapping.js +1 -0
- package/dist/http/route/route-validator-config.js +1 -0
- package/dist/{types/http → http}/route/router-util.d.ts +9 -12
- package/dist/{es/http → http}/route/router-util.js +10 -10
- package/dist/http/route/router-util.spec.d.ts +1 -0
- package/dist/http/route/router-util.spec.js +23 -0
- package/dist/{types/http → http}/web-handler.d.ts +4 -7
- package/dist/{es/http → http}/web-handler.js +11 -10
- package/dist/http/web-handler.spec.d.ts +1 -0
- package/dist/http/web-handler.spec.js +32 -0
- package/dist/{types/http → http}/web-v2-handler.d.ts +2 -5
- package/dist/{es/http → http}/web-v2-handler.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/inter-api/inter-api-entry.js +1 -0
- package/dist/{types/inter-api → inter-api}/inter-api-util.d.ts +3 -3
- package/dist/{es/inter-api → inter-api}/inter-api-util.js +6 -5
- package/dist/inter-api/inter-api-util.spec.d.ts +1 -0
- package/dist/inter-api/inter-api-util.spec.js +61 -0
- package/dist/{types/inter-api-manager.d.ts → inter-api-manager.d.ts} +2 -5
- package/dist/{es/inter-api-manager.js → inter-api-manager.js} +5 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/cron-epsilon-lambda-event-handler.d.ts +5 -5
- package/dist/{es/lambda-event-handler → lambda-event-handler}/cron-epsilon-lambda-event-handler.js +5 -4
- package/dist/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +1 -0
- package/dist/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.js +50 -0
- package/dist/{types/lambda-event-handler → lambda-event-handler}/dynamo-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/dynamo-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/generic-sns-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/generic-sns-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/inter-api-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/inter-api-epsilon-lambda-event-handler.js +2 -1
- package/dist/{types/lambda-event-handler → lambda-event-handler}/s3-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/s3-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/local-container-server.d.ts → local-container-server.d.ts} +1 -4
- package/dist/{es/local-container-server.js → local-container-server.js} +8 -4
- package/dist/local-server-cert.js +67 -0
- package/dist/{types/local-server.d.ts → local-server.d.ts} +2 -5
- package/dist/{es/local-server.js → local-server.js} +11 -8
- package/dist/open-api-util/open-api-doc-modifications.js +1 -0
- package/dist/{types/open-api-util → open-api-util}/open-api-doc-modifier.d.ts +1 -4
- package/dist/{es/open-api-util → open-api-util}/open-api-doc-modifier.js +2 -1
- package/dist/open-api-util/open-api-doc-modifier.spec.d.ts +1 -0
- package/dist/open-api-util/open-api-doc-modifier.spec.js +16 -0
- package/dist/{es/open-api-util → open-api-util}/yaml-combiner.js +2 -2
- package/dist/open-api-util/yaml-combiner.spec.d.ts +1 -0
- package/dist/open-api-util/yaml-combiner.spec.js +22 -0
- package/dist/{types/sample → sample}/sample-server-components.d.ts +2 -2
- package/dist/{es/sample → sample}/sample-server-components.js +25 -24
- package/dist/sample/sample-server-static-files.js +593 -0
- package/dist/{types/sample → sample}/test-error-server.d.ts +1 -4
- package/dist/{es/sample → sample}/test-error-server.js +4 -2
- package/dist/{types/util → util}/context-util.d.ts +3 -3
- package/dist/{es/util → util}/context-util.js +11 -5
- package/dist/{types/util → util}/cron-util.d.ts +2 -2
- package/dist/{es/util → util}/cron-util.js +3 -3
- package/dist/util/cron-util.spec.d.ts +1 -0
- package/dist/util/cron-util.spec.js +124 -0
- package/dist/{types/util → util}/epsilon-config-parser.d.ts +6 -6
- package/dist/{es/util → util}/epsilon-config-parser.js +9 -9
- package/includes/cli.js +8 -10
- package/package.json +12 -15
- package/dist/cjs/background/background-dynamo-log-table-handler.js +0 -38
- package/dist/cjs/background/background-entry.js +0 -2
- package/dist/cjs/background/background-execution-event-type.js +0 -11
- package/dist/cjs/background/background-execution-event.js +0 -2
- package/dist/cjs/background/background-execution-listener.js +0 -2
- package/dist/cjs/background/background-handler.js +0 -269
- package/dist/cjs/background/background-http-adapter-handler.js +0 -127
- package/dist/cjs/background/background-meta-response-internal.js +0 -2
- package/dist/cjs/background/background-process-handling.js +0 -8
- package/dist/cjs/background/background-process-log-table-entry.js +0 -2
- package/dist/cjs/background/background-queue-response-internal.js +0 -2
- package/dist/cjs/background/background-validator.js +0 -88
- package/dist/cjs/background/epsilon-background-process-error.js +0 -93
- package/dist/cjs/background/internal-background-entry.js +0 -2
- package/dist/cjs/background/manager/abstract-background-manager.js +0 -92
- package/dist/cjs/background/manager/aws-sqs-sns-background-manager.js +0 -153
- package/dist/cjs/background/manager/background-manager-like.js +0 -2
- package/dist/cjs/background/manager/single-thread-local-background-manager.js +0 -49
- package/dist/cjs/background/s3-background-transaction-logger.js +0 -54
- package/dist/cjs/build/ratchet-epsilon-common-info.js +0 -18
- package/dist/cjs/built-in/background/echo-processor.js +0 -18
- package/dist/cjs/built-in/background/log-and-enqueue-echo-processor.js +0 -16
- package/dist/cjs/built-in/background/log-message-background-error-processor.js +0 -10
- package/dist/cjs/built-in/background/no-op-processor.js +0 -13
- package/dist/cjs/built-in/background/retry-processor.js +0 -41
- package/dist/cjs/built-in/background/sample-delay-processor.js +0 -16
- package/dist/cjs/built-in/background/sample-input-validated-processor-data.js +0 -2
- package/dist/cjs/built-in/background/sample-input-validated-processor.js +0 -16
- package/dist/cjs/built-in/built-in-trace-id-generators.js +0 -25
- package/dist/cjs/built-in/daemon/daemon-authorizer-function.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-config.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-group-selection-function.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-handler.js +0 -62
- package/dist/cjs/built-in/daemon/daemon-process-state-list.js +0 -2
- package/dist/cjs/built-in/http/apollo-filter.js +0 -63
- package/dist/cjs/built-in/http/built-in-auth-filters.js +0 -115
- package/dist/cjs/built-in/http/built-in-authorizers.js +0 -43
- package/dist/cjs/built-in/http/built-in-filters.js +0 -222
- package/dist/cjs/built-in/http/built-in-handlers.js +0 -73
- package/dist/cjs/built-in/http/log-level-manipulation-filter.js +0 -20
- package/dist/cjs/built-in/http/run-handler-as-filter.js +0 -64
- package/dist/cjs/cli-bootstrap/ratchet-cli-handler.js +0 -24
- package/dist/cjs/cli-bootstrap/run-background-process-from-command-line.js +0 -26
- package/dist/cjs/config/background/background-aws-config.js +0 -2
- package/dist/cjs/config/background/background-config.js +0 -2
- package/dist/cjs/config/background/background-error-processor.js +0 -2
- package/dist/cjs/config/background/background-processor.js +0 -2
- package/dist/cjs/config/background/background-transaction-log.js +0 -2
- package/dist/cjs/config/background/background-transaction-logger.js +0 -2
- package/dist/cjs/config/cron/abstract-cron-entry.js +0 -2
- package/dist/cjs/config/cron/cron-background-entry.js +0 -2
- package/dist/cjs/config/cron/cron-config.js +0 -2
- package/dist/cjs/config/dynamo-db-config.js +0 -2
- package/dist/cjs/config/epsilon-config.js +0 -2
- package/dist/cjs/config/epsilon-lambda-event-handler.js +0 -2
- package/dist/cjs/config/epsilon-logger-config.js +0 -2
- package/dist/cjs/config/generic-aws-event-handler-function.js +0 -2
- package/dist/cjs/config/http/authorizer-function.js +0 -2
- package/dist/cjs/config/http/epsilon-authorization-context.js +0 -2
- package/dist/cjs/config/http/extended-api-gateway-event.js +0 -2
- package/dist/cjs/config/http/filter-chain-context.js +0 -2
- package/dist/cjs/config/http/filter-function.js +0 -2
- package/dist/cjs/config/http/handler-function.js +0 -2
- package/dist/cjs/config/http/http-config.js +0 -2
- package/dist/cjs/config/http/http-processing-config.js +0 -2
- package/dist/cjs/config/http/mapped-http-processing-config.js +0 -2
- package/dist/cjs/config/http/null-returned-object-handling.js +0 -9
- package/dist/cjs/config/inter-api/inter-api-aws-config.js +0 -2
- package/dist/cjs/config/inter-api/inter-api-config.js +0 -2
- package/dist/cjs/config/inter-api/inter-api-process-mapping.js +0 -2
- package/dist/cjs/config/logging-trace-id-generator.js +0 -2
- package/dist/cjs/config/open-api/open-api-document-components.js +0 -2
- package/dist/cjs/config/open-api/open-api-document-path.js +0 -2
- package/dist/cjs/config/open-api/open-api-document.js +0 -2
- package/dist/cjs/config/s3-config.js +0 -2
- package/dist/cjs/config/sns-config.js +0 -2
- package/dist/cjs/epsilon-build-properties.js +0 -28
- package/dist/cjs/epsilon-constants.js +0 -49
- package/dist/cjs/epsilon-global-handler.js +0 -155
- package/dist/cjs/epsilon-instance.js +0 -2
- package/dist/cjs/epsilon-logging-extension-processor.js +0 -19
- package/dist/cjs/http/auth/api-gateway-adapter-authentication-handler.js +0 -75
- package/dist/cjs/http/auth/auth0-web-token-manipulator.js +0 -62
- package/dist/cjs/http/auth/basic-auth-token.js +0 -2
- package/dist/cjs/http/auth/google-web-token-manipulator.js +0 -72
- package/dist/cjs/http/auth/jwt-ratchet-local-web-token-manipulator.js +0 -29
- package/dist/cjs/http/auth/local-web-token-manipulator.js +0 -74
- package/dist/cjs/http/auth/web-token-manipulator.js +0 -2
- package/dist/cjs/http/error/bad-gateway.js +0 -12
- package/dist/cjs/http/error/bad-request-error.js +0 -12
- package/dist/cjs/http/error/conflict-error.js +0 -12
- package/dist/cjs/http/error/epsilon-http-error.js +0 -132
- package/dist/cjs/http/error/forbidden-error.js +0 -12
- package/dist/cjs/http/error/gateway-timeout.js +0 -12
- package/dist/cjs/http/error/method-not-allowed-error.js +0 -12
- package/dist/cjs/http/error/misconfigured-error.js +0 -12
- package/dist/cjs/http/error/not-found-error.js +0 -12
- package/dist/cjs/http/error/not-implemented.js +0 -12
- package/dist/cjs/http/error/request-timeout-error.js +0 -12
- package/dist/cjs/http/error/service-unavailable.js +0 -12
- package/dist/cjs/http/error/too-many-requests-error.js +0 -12
- package/dist/cjs/http/error/unauthorized-error.js +0 -12
- package/dist/cjs/http/event-util.js +0 -180
- package/dist/cjs/http/response-util.js +0 -146
- package/dist/cjs/http/route/epsilon-router.js +0 -2
- package/dist/cjs/http/route/extended-auth-response-context.js +0 -2
- package/dist/cjs/http/route/route-mapping.js +0 -2
- package/dist/cjs/http/route/route-validator-config.js +0 -2
- package/dist/cjs/http/route/router-util.js +0 -238
- package/dist/cjs/http/web-handler.js +0 -122
- package/dist/cjs/http/web-v2-handler.js +0 -25
- package/dist/cjs/index.js +0 -135
- package/dist/cjs/inter-api/inter-api-entry.js +0 -2
- package/dist/cjs/inter-api/inter-api-util.js +0 -62
- package/dist/cjs/inter-api-manager.js +0 -67
- package/dist/cjs/lambda-event-handler/cron-epsilon-lambda-event-handler.js +0 -76
- package/dist/cjs/lambda-event-handler/dynamo-epsilon-lambda-event-handler.js +0 -36
- package/dist/cjs/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.js +0 -32
- package/dist/cjs/lambda-event-handler/inter-api-epsilon-lambda-event-handler.js +0 -26
- package/dist/cjs/lambda-event-handler/s3-epsilon-lambda-event-handler.js +0 -44
- package/dist/cjs/local-container-server.js +0 -77
- package/dist/cjs/local-server-cert.js +0 -71
- package/dist/cjs/local-server.js +0 -164
- package/dist/cjs/open-api-util/open-api-doc-modifications.js +0 -2
- package/dist/cjs/open-api-util/open-api-doc-modifier.js +0 -83
- package/dist/cjs/open-api-util/yaml-combiner.js +0 -32
- package/dist/cjs/sample/sample-server-components.js +0 -188
- package/dist/cjs/sample/sample-server-static-files.js +0 -597
- package/dist/cjs/sample/test-error-server.js +0 -47
- package/dist/cjs/util/aws-util.js +0 -69
- package/dist/cjs/util/context-util.js +0 -104
- package/dist/cjs/util/cron-util.js +0 -72
- package/dist/cjs/util/epsilon-config-parser.js +0 -71
- package/dist/es/index.js +0 -132
- package/dist/es/local-server-cert.js +0 -67
- package/dist/es/sample/sample-server-static-files.js +0 -593
- package/dist/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/tsconfig.es.tsbuildinfo +0 -1
- package/dist/tsconfig.types.tsbuildinfo +0 -1
- package/dist/types/built-in/daemon/daemon-process-state-list.d.ts +0 -8
- package/dist/types/cli-bootstrap/run-background-process-from-command-line.d.ts +0 -12
- package/dist/types/config/cron/cron-background-entry.d.ts +0 -15
- package/dist/types/config/inter-api/inter-api-process-mapping.d.ts +0 -11
- package/dist/types/epsilon-logging-extension-processor.d.ts +0 -5
- package/dist/types/http/route/epsilon-router.d.ts +0 -8
- package/dist/types/index.d.ts +0 -135
- /package/dist/{types/background → background}/background-entry.d.ts +0 -0
- /package/dist/{es/background → background}/background-entry.js +0 -0
- /package/dist/{types/background → background}/background-execution-event-type.d.ts +0 -0
- /package/dist/{es/background → background}/background-execution-event-type.js +0 -0
- /package/dist/{es/background → background}/background-execution-event.js +0 -0
- /package/dist/{es/background → background}/background-execution-listener.js +0 -0
- /package/dist/{types/background → background}/background-meta-response-internal.d.ts +0 -0
- /package/dist/{es/background → background}/background-meta-response-internal.js +0 -0
- /package/dist/{types/background → background}/background-process-handling.d.ts +0 -0
- /package/dist/{es/background → background}/background-process-handling.js +0 -0
- /package/dist/{types/background → background}/background-process-log-table-entry.d.ts +0 -0
- /package/dist/{es/background → background}/background-process-log-table-entry.js +0 -0
- /package/dist/{es/background → background}/background-queue-response-internal.js +0 -0
- /package/dist/{types/background → background}/epsilon-background-process-error.d.ts +0 -0
- /package/dist/{es/background → background}/internal-background-entry.js +0 -0
- /package/dist/{es/background → background}/manager/background-manager-like.js +0 -0
- /package/dist/{es/built-in/background/sample-input-validated-processor-data.js → background/manager/background-manager.spec.d.ts} +0 -0
- /package/dist/{es/build → build}/ratchet-epsilon-common-info.js +0 -0
- /package/dist/{types/built-in → built-in}/background/sample-input-validated-processor-data.d.ts +0 -0
- /package/dist/{es/built-in/daemon/daemon-authorizer-function.js → built-in/background/sample-input-validated-processor-data.js} +0 -0
- /package/dist/{types/built-in → built-in}/built-in-trace-id-generators.d.ts +0 -0
- /package/dist/{es/built-in/daemon/daemon-config.js → built-in/daemon/daemon-authorizer-function.js} +0 -0
- /package/dist/{es/built-in/daemon/daemon-group-selection-function.js → built-in/daemon/daemon-config.js} +0 -0
- /package/dist/{es/built-in/daemon/daemon-process-state-list.js → built-in/daemon/daemon-group-selection-function.js} +0 -0
- /package/dist/{es/config/background/background-aws-config.js → built-in/daemon/daemon-process-state-list.js} +0 -0
- /package/dist/{es/config/background/background-config.js → built-in/http/run-handler-as-filter.spec.d.ts} +0 -0
- /package/dist/{types/config → config}/background/background-aws-config.d.ts +0 -0
- /package/dist/{es/config/background/background-error-processor.js → config/background/background-aws-config.js} +0 -0
- /package/dist/{es/config/background/background-processor.js → config/background/background-config.js} +0 -0
- /package/dist/{es/config/background/background-transaction-log.js → config/background/background-error-processor.js} +0 -0
- /package/dist/{es/config/background/background-transaction-logger.js → config/background/background-processor.js} +0 -0
- /package/dist/{es/config/cron/abstract-cron-entry.js → config/background/background-transaction-log.js} +0 -0
- /package/dist/{es/config/cron/cron-background-entry.js → config/background/background-transaction-logger.js} +0 -0
- /package/dist/{types/config → config}/cron/abstract-cron-entry.d.ts +0 -0
- /package/dist/{es/config/cron/cron-config.js → config/cron/abstract-cron-entry.js} +0 -0
- /package/dist/{es/config/dynamo-db-config.js → config/cron/cron-background-entry.js} +0 -0
- /package/dist/{es/config/epsilon-config.js → config/cron/cron-config.js} +0 -0
- /package/dist/{es/config/epsilon-lambda-event-handler.js → config/dynamo-db-config.js} +0 -0
- /package/dist/{es/config/epsilon-logger-config.js → config/epsilon-config.js} +0 -0
- /package/dist/{types/config → config}/epsilon-lambda-event-handler.d.ts +0 -0
- /package/dist/{es/config/generic-aws-event-handler-function.js → config/epsilon-lambda-event-handler.js} +0 -0
- /package/dist/{es/config/http/authorizer-function.js → config/epsilon-logger-config.js} +0 -0
- /package/dist/{types/config → config}/generic-aws-event-handler-function.d.ts +0 -0
- /package/dist/{es/config/http/epsilon-authorization-context.js → config/generic-aws-event-handler-function.js} +0 -0
- /package/dist/{es/config/http/extended-api-gateway-event.js → config/http/authorizer-function.js} +0 -0
- /package/dist/{types/config → config}/http/epsilon-authorization-context.d.ts +0 -0
- /package/dist/{es/config/http/filter-chain-context.js → config/http/epsilon-authorization-context.js} +0 -0
- /package/dist/{es/config/http/filter-function.js → config/http/extended-api-gateway-event.js} +0 -0
- /package/dist/{es/config/http/handler-function.js → config/http/filter-chain-context.js} +0 -0
- /package/dist/{es/config/http/http-config.js → config/http/filter-function.js} +0 -0
- /package/dist/{es/config/http/http-processing-config.js → config/http/handler-function.js} +0 -0
- /package/dist/{es/config/http/mapped-http-processing-config.js → config/http/http-config.js} +0 -0
- /package/dist/{es/config/inter-api/inter-api-aws-config.js → config/http/http-processing-config.js} +0 -0
- /package/dist/{es/config/inter-api/inter-api-config.js → config/http/mapped-http-processing-config.js} +0 -0
- /package/dist/{types/config → config}/http/null-returned-object-handling.d.ts +0 -0
- /package/dist/{es/config → config}/http/null-returned-object-handling.js +0 -0
- /package/dist/{types/config → config}/inter-api/inter-api-aws-config.d.ts +0 -0
- /package/dist/{es/config/inter-api/inter-api-process-mapping.js → config/inter-api/inter-api-aws-config.js} +0 -0
- /package/dist/{es/config/logging-trace-id-generator.js → config/inter-api/inter-api-config.js} +0 -0
- /package/dist/{es/config/open-api/open-api-document-components.js → config/inter-api/inter-api-process-mapping.js} +0 -0
- /package/dist/{types/config → config}/logging-trace-id-generator.d.ts +0 -0
- /package/dist/{es/config/open-api/open-api-document-path.js → config/logging-trace-id-generator.js} +0 -0
- /package/dist/{types/config → config}/open-api/open-api-document-components.d.ts +0 -0
- /package/dist/{es/config/open-api/open-api-document.js → config/open-api/open-api-document-components.js} +0 -0
- /package/dist/{types/config → config}/open-api/open-api-document-path.d.ts +0 -0
- /package/dist/{es/config/s3-config.js → config/open-api/open-api-document-path.js} +0 -0
- /package/dist/{es/config/sns-config.js → config/open-api/open-api-document.js} +0 -0
- /package/dist/{es/epsilon-instance.js → config/s3-config.js} +0 -0
- /package/dist/{es/http/auth/basic-auth-token.js → config/sns-config.js} +0 -0
- /package/dist/{types/epsilon-build-properties.d.ts → epsilon-build-properties.d.ts} +0 -0
- /package/dist/{es/http/auth/web-token-manipulator.js → epsilon-instance.js} +0 -0
- /package/dist/{es/http/route/epsilon-router.js → http/auth/basic-auth-token.js} +0 -0
- /package/dist/{es/http/route/extended-auth-response-context.js → http/auth/google-web-token-manipulator.spec.d.ts} +0 -0
- /package/dist/{es/http/route/route-mapping.js → http/auth/local-web-token-manipulator.spec.d.ts} +0 -0
- /package/dist/{es/http/route/route-validator-config.js → http/auth/web-token-manipulator.js} +0 -0
- /package/dist/{types/http → http}/error/epsilon-http-error.d.ts +0 -0
- /package/dist/{es/inter-api/inter-api-entry.js → http/error/epsilon-http-error.spec.d.ts} +0 -0
- /package/dist/{es/open-api-util/open-api-doc-modifications.js → http/event-util.spec.d.ts} +0 -0
- /package/dist/{types/http → http}/route/extended-auth-response-context.d.ts +0 -0
- /package/dist/{types/http → http}/route/route-validator-config.d.ts +0 -0
- /package/dist/{types/inter-api → inter-api}/inter-api-entry.d.ts +0 -0
- /package/dist/{types/local-server-cert.d.ts → local-server-cert.d.ts} +0 -0
- /package/dist/{types/open-api-util → open-api-util}/open-api-doc-modifications.d.ts +0 -0
- /package/dist/{types/open-api-util → open-api-util}/yaml-combiner.d.ts +0 -0
- /package/dist/{types/sample → sample}/sample-server-static-files.d.ts +0 -0
- /package/dist/{types/util → util}/aws-util.d.ts +0 -0
- /package/dist/{es/util → util}/aws-util.js +0 -0
|
@@ -1,593 +0,0 @@
|
|
|
1
|
-
export class SampleServerStaticFiles {
|
|
2
|
-
constructor() { }
|
|
3
|
-
}
|
|
4
|
-
SampleServerStaticFiles.SAMPLE_OPEN_API_DOC = 'openapi: 3.0.0\n' +
|
|
5
|
-
'info:\n' +
|
|
6
|
-
' version: v0\n' +
|
|
7
|
-
' title: SampleAPI\n' +
|
|
8
|
-
'tags:\n' +
|
|
9
|
-
' - name: CORS\n' +
|
|
10
|
-
' description: These endpoints are here to support CORS\n' +
|
|
11
|
-
' - name: Public\n' +
|
|
12
|
-
' description: These endpoints can be called without setting the authorization header\n' +
|
|
13
|
-
' - name: Secure\n' +
|
|
14
|
-
' description: Authentication and authorization of the API\n' +
|
|
15
|
-
'paths:\n' +
|
|
16
|
-
' /:\n' +
|
|
17
|
-
' get:\n' +
|
|
18
|
-
' description: Redirects to the /meta/server endpoint\n' +
|
|
19
|
-
' tags:\n' +
|
|
20
|
-
' - Meta\n' +
|
|
21
|
-
' - Public\n' +
|
|
22
|
-
' responses:\n' +
|
|
23
|
-
" '301':\n" +
|
|
24
|
-
' description: Redirects to the /meta/server endpoint\n' +
|
|
25
|
-
' options:\n' +
|
|
26
|
-
' tags:\n' +
|
|
27
|
-
' - CORS\n' +
|
|
28
|
-
' responses:\n' +
|
|
29
|
-
" '200':\n" +
|
|
30
|
-
' description: Standard CORS header response\n' +
|
|
31
|
-
' /meta/server:\n' +
|
|
32
|
-
' get:\n' +
|
|
33
|
-
' description: >\n' +
|
|
34
|
-
' Returns information about the current build and time. Can be used to\n' +
|
|
35
|
-
' test error-handling code by passing a specific http error code in the\n' +
|
|
36
|
-
' error query parameter. Can also be used to process specific named tests\n' +
|
|
37
|
-
' by passing those names to the test parameter.\n' +
|
|
38
|
-
' tags:\n' +
|
|
39
|
-
' - Public\n' +
|
|
40
|
-
' parameters:\n' +
|
|
41
|
-
' - name: error\n' +
|
|
42
|
-
' in: query\n' +
|
|
43
|
-
' description: >-\n' +
|
|
44
|
-
' If set, throw a specific error for testing (valid are\n' +
|
|
45
|
-
' 500,400,403,404)\n' +
|
|
46
|
-
' required: false\n' +
|
|
47
|
-
' schema:\n' +
|
|
48
|
-
' type: number\n' +
|
|
49
|
-
' - name: test\n' +
|
|
50
|
-
' in: query\n' +
|
|
51
|
-
' description: Run a specific named test (currently none are publicly available)\n' +
|
|
52
|
-
' required: false\n' +
|
|
53
|
-
' schema:\n' +
|
|
54
|
-
' type: string\n' +
|
|
55
|
-
' responses:\n' +
|
|
56
|
-
" '200':\n" +
|
|
57
|
-
' description: Success\n' +
|
|
58
|
-
" '400':\n" +
|
|
59
|
-
' description: Simulated bad request\n' +
|
|
60
|
-
' content:\n' +
|
|
61
|
-
" '*/*':\n" +
|
|
62
|
-
' schema:\n' +
|
|
63
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
64
|
-
" '403':\n" +
|
|
65
|
-
' description: Simulated unauthorized\n' +
|
|
66
|
-
' content:\n' +
|
|
67
|
-
" '*/*':\n" +
|
|
68
|
-
' schema:\n' +
|
|
69
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
70
|
-
" '404':\n" +
|
|
71
|
-
' description: Simulated not found\n' +
|
|
72
|
-
' content:\n' +
|
|
73
|
-
" '*/*':\n" +
|
|
74
|
-
' schema:\n' +
|
|
75
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
76
|
-
" '500':\n" +
|
|
77
|
-
' description: Simulated internal server error\n' +
|
|
78
|
-
' content:\n' +
|
|
79
|
-
" '*/*':\n" +
|
|
80
|
-
' schema:\n' +
|
|
81
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
82
|
-
' options:\n' +
|
|
83
|
-
' tags:\n' +
|
|
84
|
-
' - CORS\n' +
|
|
85
|
-
' responses:\n' +
|
|
86
|
-
" '200':\n" +
|
|
87
|
-
' description: Standard CORS header response\n' +
|
|
88
|
-
' /meta/user:\n' +
|
|
89
|
-
' get:\n' +
|
|
90
|
-
' description: >\n' +
|
|
91
|
-
' When logged in, returns the contents of the JWT token as the server\n' +
|
|
92
|
-
' parses it. This should match what you get when you process the token\n' +
|
|
93
|
-
' returned from the "POST /access-token" endpoint through a standard JWT\n' +
|
|
94
|
-
' token processor.\n' +
|
|
95
|
-
' tags:\n' +
|
|
96
|
-
' - Meta\n' +
|
|
97
|
-
' security:\n' +
|
|
98
|
-
' - SampleAuthorizer: []\n' +
|
|
99
|
-
' responses:\n' +
|
|
100
|
-
" '200':\n" +
|
|
101
|
-
' description: Success\n' +
|
|
102
|
-
' content:\n' +
|
|
103
|
-
" '*/*':\n" +
|
|
104
|
-
' schema:\n' +
|
|
105
|
-
" $ref: '#/components/schemas/AccessTokenContents'\n" +
|
|
106
|
-
" '401':\n" +
|
|
107
|
-
' description: Unauthorized\n' +
|
|
108
|
-
' content:\n' +
|
|
109
|
-
" '*/*':\n" +
|
|
110
|
-
' schema:\n' +
|
|
111
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
112
|
-
' options:\n' +
|
|
113
|
-
' tags:\n' +
|
|
114
|
-
' - CORS\n' +
|
|
115
|
-
' responses:\n' +
|
|
116
|
-
" '200':\n" +
|
|
117
|
-
' description: Success\n' +
|
|
118
|
-
" '401':\n" +
|
|
119
|
-
' description: Unauthorized\n' +
|
|
120
|
-
' content:\n' +
|
|
121
|
-
" '*/*':\n" +
|
|
122
|
-
' schema:\n' +
|
|
123
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
124
|
-
' /meta/item/{itemId}:\n' +
|
|
125
|
-
' get:\n' +
|
|
126
|
-
' description: >\n' +
|
|
127
|
-
' Example of a path param\n' +
|
|
128
|
-
' parameters:\n' +
|
|
129
|
-
' - name: itemId\n' +
|
|
130
|
-
' in: path\n' +
|
|
131
|
-
' description: A sample item id\n' +
|
|
132
|
-
' required: true\n' +
|
|
133
|
-
' schema:\n' +
|
|
134
|
-
' type: string\n' +
|
|
135
|
-
' tags:\n' +
|
|
136
|
-
' - Meta\n' +
|
|
137
|
-
' responses:\n' +
|
|
138
|
-
" '200':\n" +
|
|
139
|
-
' description: Success\n' +
|
|
140
|
-
' content:\n' +
|
|
141
|
-
" '*/*':\n" +
|
|
142
|
-
' schema:\n' +
|
|
143
|
-
" $ref: '#/components/schemas/Empty'\n" +
|
|
144
|
-
" '401':\n" +
|
|
145
|
-
' description: Unauthorized\n' +
|
|
146
|
-
' content:\n' +
|
|
147
|
-
" '*/*':\n" +
|
|
148
|
-
' schema:\n' +
|
|
149
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
150
|
-
' options:\n' +
|
|
151
|
-
' tags:\n' +
|
|
152
|
-
' - CORS\n' +
|
|
153
|
-
' parameters:\n' +
|
|
154
|
-
' - name: itemId\n' +
|
|
155
|
-
' in: path\n' +
|
|
156
|
-
' description: A sample item id\n' +
|
|
157
|
-
' required: true\n' +
|
|
158
|
-
' schema:\n' +
|
|
159
|
-
' type: string\n' +
|
|
160
|
-
' responses:\n' +
|
|
161
|
-
" '200':\n" +
|
|
162
|
-
' description: Success\n' +
|
|
163
|
-
" '401':\n" +
|
|
164
|
-
' description: Unauthorized\n' +
|
|
165
|
-
' content:\n' +
|
|
166
|
-
" '*/*':\n" +
|
|
167
|
-
' schema:\n' +
|
|
168
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
169
|
-
'\n' +
|
|
170
|
-
' /meta/sample-item:\n' +
|
|
171
|
-
' get:\n' +
|
|
172
|
-
' description: >\n' +
|
|
173
|
-
' Example of an object returned\n' +
|
|
174
|
-
' parameters:\n' +
|
|
175
|
-
' - name: num\n' +
|
|
176
|
-
' in: path\n' +
|
|
177
|
-
' description: Number to return in the number value\n' +
|
|
178
|
-
' required: false\n' +
|
|
179
|
-
' schema:\n' +
|
|
180
|
-
' type: number\n' +
|
|
181
|
-
' tags:\n' +
|
|
182
|
-
' - Meta\n' +
|
|
183
|
-
' responses:\n' +
|
|
184
|
-
" '200':\n" +
|
|
185
|
-
' description: Success\n' +
|
|
186
|
-
' content:\n' +
|
|
187
|
-
" 'application/json':\n" +
|
|
188
|
-
' schema:\n' +
|
|
189
|
-
" $ref: '#/components/schemas/BackgroundSampleInputValidatedProcessorData'\n" +
|
|
190
|
-
' post:\n' +
|
|
191
|
-
' description: >\n' +
|
|
192
|
-
' Example of an object posted\n' +
|
|
193
|
-
' requestBody:\n' +
|
|
194
|
-
' content:\n' +
|
|
195
|
-
' application/json:\n' +
|
|
196
|
-
' schema:\n' +
|
|
197
|
-
" $ref: '#/components/schemas/BackgroundSampleInputValidatedProcessorData'\n" +
|
|
198
|
-
' description: Request to refresh the access token or change active user\n' +
|
|
199
|
-
' required: true\n' +
|
|
200
|
-
' tags:\n' +
|
|
201
|
-
' - Meta\n' +
|
|
202
|
-
' responses:\n' +
|
|
203
|
-
" '200':\n" +
|
|
204
|
-
' description: Success\n' +
|
|
205
|
-
' content:\n' +
|
|
206
|
-
" 'application/json':\n" +
|
|
207
|
-
' schema:\n' +
|
|
208
|
-
" $ref: '#/components/schemas/BackgroundSampleInputValidatedProcessorData'\n" +
|
|
209
|
-
' options:\n' +
|
|
210
|
-
' tags:\n' +
|
|
211
|
-
' - CORS\n' +
|
|
212
|
-
' responses:\n' +
|
|
213
|
-
" '200':\n" +
|
|
214
|
-
' description: Success\n' +
|
|
215
|
-
'\n' +
|
|
216
|
-
' /secure/access-token:\n' +
|
|
217
|
-
' post:\n' +
|
|
218
|
-
' tags:\n' +
|
|
219
|
-
' - Secure\n' +
|
|
220
|
-
' - Public\n' +
|
|
221
|
-
' responses:\n' +
|
|
222
|
-
" '200':\n" +
|
|
223
|
-
' description: Success\n' +
|
|
224
|
-
' content:\n' +
|
|
225
|
-
' application/json:\n' +
|
|
226
|
-
' schema:\n' +
|
|
227
|
-
" $ref: '#/components/schemas/AccessTokenResponse'\n" +
|
|
228
|
-
" '400':\n" +
|
|
229
|
-
' description: Invalid request\n' +
|
|
230
|
-
' content:\n' +
|
|
231
|
-
' application/json:\n' +
|
|
232
|
-
' schema:\n' +
|
|
233
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
234
|
-
" '403':\n" +
|
|
235
|
-
' description: Invalid credentials\n' +
|
|
236
|
-
' content:\n' +
|
|
237
|
-
' application/json:\n' +
|
|
238
|
-
' schema:\n' +
|
|
239
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
240
|
-
' requestBody:\n' +
|
|
241
|
-
' content:\n' +
|
|
242
|
-
' application/json:\n' +
|
|
243
|
-
' schema:\n' +
|
|
244
|
-
" $ref: '#/components/schemas/AccessTokenRequest'\n" +
|
|
245
|
-
' description: Request to refresh the access token or change active user\n' +
|
|
246
|
-
' required: true\n' +
|
|
247
|
-
' options:\n' +
|
|
248
|
-
' tags:\n' +
|
|
249
|
-
' - CORS\n' +
|
|
250
|
-
' responses:\n' +
|
|
251
|
-
" '200':\n" +
|
|
252
|
-
' description: Standard CORS header response\n' +
|
|
253
|
-
' /multi/fixed:\n' +
|
|
254
|
-
' get:\n' +
|
|
255
|
-
' description: Tests path matching from most specific to least (this is most)\n' +
|
|
256
|
-
' tags:\n' +
|
|
257
|
-
' - Public\n' +
|
|
258
|
-
' responses:\n' +
|
|
259
|
-
" '200':\n" +
|
|
260
|
-
' description: Success\n' +
|
|
261
|
-
' options:\n' +
|
|
262
|
-
' tags:\n' +
|
|
263
|
-
' - CORS\n' +
|
|
264
|
-
' responses:\n' +
|
|
265
|
-
" '200':\n" +
|
|
266
|
-
' description: Standard CORS header response\n' +
|
|
267
|
-
' /multi/{v}:\n' +
|
|
268
|
-
' get:\n' +
|
|
269
|
-
' description: Tests path matching from most specific to least (this is least)\n' +
|
|
270
|
-
' tags:\n' +
|
|
271
|
-
' - Public\n' +
|
|
272
|
-
' parameters:\n' +
|
|
273
|
-
' - name: v\n' +
|
|
274
|
-
' in: path\n' +
|
|
275
|
-
' description: A variable\n' +
|
|
276
|
-
' required: true\n' +
|
|
277
|
-
' schema:\n' +
|
|
278
|
-
' type: string\n' +
|
|
279
|
-
' responses:\n' +
|
|
280
|
-
" '200':\n" +
|
|
281
|
-
' description: Success\n' +
|
|
282
|
-
' options:\n' +
|
|
283
|
-
' tags:\n' +
|
|
284
|
-
' - CORS\n' +
|
|
285
|
-
' parameters:\n' +
|
|
286
|
-
' - name: v\n' +
|
|
287
|
-
' in: path\n' +
|
|
288
|
-
' description: A variable\n' +
|
|
289
|
-
' required: true\n' +
|
|
290
|
-
' schema:\n' +
|
|
291
|
-
' type: string\n' +
|
|
292
|
-
' responses:\n' +
|
|
293
|
-
" '200':\n" +
|
|
294
|
-
' description: Standard CORS header response\n' +
|
|
295
|
-
'\n' +
|
|
296
|
-
' /err/{code}:\n' +
|
|
297
|
-
' get:\n' +
|
|
298
|
-
' description: Tests path matching from most specific to least (this is least)\n' +
|
|
299
|
-
' tags:\n' +
|
|
300
|
-
' - Public\n' +
|
|
301
|
-
' parameters:\n' +
|
|
302
|
-
' - name: code\n' +
|
|
303
|
-
' in: path\n' +
|
|
304
|
-
' description: Error code\n' +
|
|
305
|
-
' required: true\n' +
|
|
306
|
-
' schema:\n' +
|
|
307
|
-
' type: number\n' +
|
|
308
|
-
' responses:\n' +
|
|
309
|
-
" '200':\n" +
|
|
310
|
-
' description: Success\n' +
|
|
311
|
-
' options:\n' +
|
|
312
|
-
' tags:\n' +
|
|
313
|
-
' - CORS\n' +
|
|
314
|
-
' parameters:\n' +
|
|
315
|
-
' - name: code\n' +
|
|
316
|
-
' in: path\n' +
|
|
317
|
-
' description: A variable\n' +
|
|
318
|
-
' required: true\n' +
|
|
319
|
-
' schema:\n' +
|
|
320
|
-
' type: number\n' +
|
|
321
|
-
' responses:\n' +
|
|
322
|
-
" '200':\n" +
|
|
323
|
-
' description: Standard CORS header response\n' +
|
|
324
|
-
'\n' +
|
|
325
|
-
' /background:\n' +
|
|
326
|
-
' post:\n' +
|
|
327
|
-
' responses:\n' +
|
|
328
|
-
" '200':\n" +
|
|
329
|
-
' description: Success\n' +
|
|
330
|
-
' content:\n' +
|
|
331
|
-
' application/json:\n' +
|
|
332
|
-
' schema:\n' +
|
|
333
|
-
" $ref: '#/components/schemas/BackgroundQueueResponse'\n" +
|
|
334
|
-
" '400':\n" +
|
|
335
|
-
' description: Invalid request\n' +
|
|
336
|
-
' content:\n' +
|
|
337
|
-
' application/json:\n' +
|
|
338
|
-
' schema:\n' +
|
|
339
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
340
|
-
" '403':\n" +
|
|
341
|
-
' description: Invalid credentials\n' +
|
|
342
|
-
' content:\n' +
|
|
343
|
-
' application/json:\n' +
|
|
344
|
-
' schema:\n' +
|
|
345
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
346
|
-
' requestBody:\n' +
|
|
347
|
-
' content:\n' +
|
|
348
|
-
' application/json:\n' +
|
|
349
|
-
' schema:\n' +
|
|
350
|
-
" $ref: '#/components/schemas/Empty'\n" +
|
|
351
|
-
' description: Content to echo\n' +
|
|
352
|
-
' required: true\n' +
|
|
353
|
-
' options:\n' +
|
|
354
|
-
' tags:\n' +
|
|
355
|
-
' - CORS\n' +
|
|
356
|
-
' responses:\n' +
|
|
357
|
-
" '200':\n" +
|
|
358
|
-
' description: Standard CORS header response\n' +
|
|
359
|
-
'\n' +
|
|
360
|
-
' /background/meta:\n' +
|
|
361
|
-
' get:\n' +
|
|
362
|
-
' responses:\n' +
|
|
363
|
-
" '200':\n" +
|
|
364
|
-
' description: Success\n' +
|
|
365
|
-
' content:\n' +
|
|
366
|
-
' application/json:\n' +
|
|
367
|
-
' schema:\n' +
|
|
368
|
-
" $ref: '#/components/schemas/BackgroundMetaResponse'\n" +
|
|
369
|
-
" '400':\n" +
|
|
370
|
-
' description: Invalid request\n' +
|
|
371
|
-
' content:\n' +
|
|
372
|
-
' application/json:\n' +
|
|
373
|
-
' schema:\n' +
|
|
374
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
375
|
-
" '403':\n" +
|
|
376
|
-
' description: Invalid credentials\n' +
|
|
377
|
-
' content:\n' +
|
|
378
|
-
' application/json:\n' +
|
|
379
|
-
' schema:\n' +
|
|
380
|
-
" $ref: '#/components/schemas/ApiErrorResponse'\n" +
|
|
381
|
-
' options:\n' +
|
|
382
|
-
' tags:\n' +
|
|
383
|
-
' - CORS\n' +
|
|
384
|
-
' responses:\n' +
|
|
385
|
-
" '200':\n" +
|
|
386
|
-
' description: Standard CORS header response\n' +
|
|
387
|
-
'\n' +
|
|
388
|
-
'x-amazon-apigateway-binary-media-types:\n' +
|
|
389
|
-
" - '*/*'\n" +
|
|
390
|
-
'x-amazon-apigateway-gateway-responses:\n' +
|
|
391
|
-
' UNAUTHORIZED:\n' +
|
|
392
|
-
' statusCode: 401\n' +
|
|
393
|
-
' responseParameters:\n' +
|
|
394
|
-
' gatewayresponse.header.Access-Control-Allow-Origin: "\'*\'"\n' +
|
|
395
|
-
' responseTemplates:\n' +
|
|
396
|
-
' application/json: \'{"errors":["Unauthorized"], "httpStatusCode": 401}\'\n' +
|
|
397
|
-
' MISSING_AUTHENTICATION_TOKEN:\n' +
|
|
398
|
-
' statusCode: 404\n' +
|
|
399
|
-
' responseParameters:\n' +
|
|
400
|
-
' gatewayresponse.header.Access-Control-Allow-Origin: "\'*\'"\n' +
|
|
401
|
-
' responseTemplates:\n' +
|
|
402
|
-
' application/json: \'{"errors":["No such endpoint"], "httpStatusCode": 404}\'\n' +
|
|
403
|
-
' INTEGRATION_TIMEOUT:\n' +
|
|
404
|
-
' statusCode: 504\n' +
|
|
405
|
-
' responseParameters:\n' +
|
|
406
|
-
' gatewayresponse.header.Access-Control-Allow-Origin: "\'*\'"\n' +
|
|
407
|
-
' responseTemplates:\n' +
|
|
408
|
-
' application/json: \'{"errors":["Timeout"], "httpStatusCode": 504}\'\n' +
|
|
409
|
-
' DEFAULT_5XX:\n' +
|
|
410
|
-
' statusCode: 500\n' +
|
|
411
|
-
' responseParameters:\n' +
|
|
412
|
-
' gatewayresponse.header.Access-Control-Allow-Origin: "\'*\'"\n' +
|
|
413
|
-
' responseTemplates:\n' +
|
|
414
|
-
' application/json: \'{"errors":["Internal Server Error"], "httpStatusCode": 500}\'\n' +
|
|
415
|
-
'\n' +
|
|
416
|
-
'servers:\n' +
|
|
417
|
-
" - url: 'https://api.sample.com/dev'\n" +
|
|
418
|
-
'components:\n' +
|
|
419
|
-
' securitySchemes:\n' +
|
|
420
|
-
' SampleAuthorizer:\n' +
|
|
421
|
-
' type: apiKey\n' +
|
|
422
|
-
' name: Authorization\n' +
|
|
423
|
-
' in: header\n' +
|
|
424
|
-
' schemas:\n' +
|
|
425
|
-
' Empty:\n' +
|
|
426
|
-
' type: object\n' +
|
|
427
|
-
' title: Empty Schema\n' +
|
|
428
|
-
'\n' +
|
|
429
|
-
' AccessTokenRequest:\n' +
|
|
430
|
-
' type: object\n' +
|
|
431
|
-
' title: Access Token Request\n' +
|
|
432
|
-
' required:\n' +
|
|
433
|
-
' - email\n' +
|
|
434
|
-
' - password\n' +
|
|
435
|
-
' - scope\n' +
|
|
436
|
-
' properties:\n' +
|
|
437
|
-
' email:\n' +
|
|
438
|
-
' type: string\n' +
|
|
439
|
-
' description: Email address of the account to authenticate\n' +
|
|
440
|
-
' format: email\n' +
|
|
441
|
-
' minLength: 7\n' +
|
|
442
|
-
' password:\n' +
|
|
443
|
-
' type: string\n' +
|
|
444
|
-
' description: Password of the account to authenticate\n' +
|
|
445
|
-
' minLength: 6\n' +
|
|
446
|
-
' scope:\n' +
|
|
447
|
-
' type: string\n' +
|
|
448
|
-
' enum:\n' +
|
|
449
|
-
' - OWNER\n' +
|
|
450
|
-
' - ADVERTISER\n' +
|
|
451
|
-
' - GLOBAL\n' +
|
|
452
|
-
' - RUN_AS_OWNER\n' +
|
|
453
|
-
' - RUN_AS_ADVERTISER\n' +
|
|
454
|
-
' description: |\n' +
|
|
455
|
-
' What style of account to authenticate:\n' +
|
|
456
|
-
' * `OWNER` - A device owner account\n' +
|
|
457
|
-
' * `ADVERTISER` - A advertising account\n' +
|
|
458
|
-
' * `GLOBAL` - Used by Adomni customer service\n' +
|
|
459
|
-
' * `RUN_AS_OWNER` - Used by Adomni customer service\n' +
|
|
460
|
-
' * `RUN_AS_ADVERTISER` - Used by Adomni customer service\n' +
|
|
461
|
-
' default: OWNER\n' +
|
|
462
|
-
' runAs:\n' +
|
|
463
|
-
' type: string\n' +
|
|
464
|
-
' description: Used by Adomni customer service\n' +
|
|
465
|
-
' format: email\n' +
|
|
466
|
-
' expirationSeconds:\n' +
|
|
467
|
-
' type: number\n' +
|
|
468
|
-
' minimum: 10\n' +
|
|
469
|
-
' maximum: 3600\n' +
|
|
470
|
-
' default: 3600\n' +
|
|
471
|
-
' AccessTokenResponse:\n' +
|
|
472
|
-
' type: object\n' +
|
|
473
|
-
' title: Access Token Response\n' +
|
|
474
|
-
' required:\n' +
|
|
475
|
-
' - token\n' +
|
|
476
|
-
' - expires\n' +
|
|
477
|
-
' properties:\n' +
|
|
478
|
-
' token:\n' +
|
|
479
|
-
' type: string\n' +
|
|
480
|
-
' description: A JWT access token for the API\n' +
|
|
481
|
-
' expires:\n' +
|
|
482
|
-
' type: number\n' +
|
|
483
|
-
' format: int64\n' +
|
|
484
|
-
" description: 'The time this token will expire, expressed in epoch ms'\n" +
|
|
485
|
-
' AccessTokenContents:\n' +
|
|
486
|
-
' type: object\n' +
|
|
487
|
-
' title: Access Token Contents\n' +
|
|
488
|
-
' description: The contents of the JWT token\n' +
|
|
489
|
-
' required:\n' +
|
|
490
|
-
' - exp\n' +
|
|
491
|
-
' - iss\n' +
|
|
492
|
-
' - sub\n' +
|
|
493
|
-
' - iat\n' +
|
|
494
|
-
' - user\n' +
|
|
495
|
-
' properties:\n' +
|
|
496
|
-
' exp:\n' +
|
|
497
|
-
' type: number\n' +
|
|
498
|
-
' description: >-\n' +
|
|
499
|
-
' Expiration claim - The time this token will expire, expressed in\n' +
|
|
500
|
-
' epoch ms\n' +
|
|
501
|
-
' iss:\n' +
|
|
502
|
-
' type: string\n' +
|
|
503
|
-
' description: Issuer claim - Who created the token\n' +
|
|
504
|
-
' sub:\n' +
|
|
505
|
-
' type: string\n' +
|
|
506
|
-
' description: Subject claim - The target of the token (typically user email)\n' +
|
|
507
|
-
' iat:\n' +
|
|
508
|
-
' type: number\n' +
|
|
509
|
-
' description: >-\n' +
|
|
510
|
-
' Issued at claim - The time this token was created, expressed in\n' +
|
|
511
|
-
' epoch ms\n' +
|
|
512
|
-
' user:\n' +
|
|
513
|
-
' type: object\n' +
|
|
514
|
-
' description: Object describing the user authenticated by this token\n' +
|
|
515
|
-
' ApiErrorResponse:\n' +
|
|
516
|
-
' type: object\n' +
|
|
517
|
-
' title: API Error Response\n' +
|
|
518
|
-
' required:\n' +
|
|
519
|
-
' - errors\n' +
|
|
520
|
-
' - httpStatusCode\n' +
|
|
521
|
-
' properties:\n' +
|
|
522
|
-
' errors:\n' +
|
|
523
|
-
' type: array\n' +
|
|
524
|
-
' items:\n' +
|
|
525
|
-
' type: string\n' +
|
|
526
|
-
' description: List of the errors that occurred\n' +
|
|
527
|
-
' httpStatusCode:\n' +
|
|
528
|
-
' type: number\n' +
|
|
529
|
-
' description: Http status code of this error\n' +
|
|
530
|
-
' detailCode:\n' +
|
|
531
|
-
' type: number\n' +
|
|
532
|
-
' description: Adomni detail status code for this error\n' +
|
|
533
|
-
' BackgroundQueueResponse:\n' +
|
|
534
|
-
' type: object\n' +
|
|
535
|
-
' title: Background Queue Response\n' +
|
|
536
|
-
' description: When any of the background endpoints are hit, this is what will be returned\n' +
|
|
537
|
-
' required:\n' +
|
|
538
|
-
' - resultId\n' +
|
|
539
|
-
' - success\n' +
|
|
540
|
-
' properties:\n' +
|
|
541
|
-
' processHandling:\n' +
|
|
542
|
-
' type: string\n' +
|
|
543
|
-
" enum: ['Queued', 'Immediate']\n" +
|
|
544
|
-
' success:\n' +
|
|
545
|
-
' type: boolean\n' +
|
|
546
|
-
' resultId:\n' +
|
|
547
|
-
' type: string\n' +
|
|
548
|
-
' BackgroundMetaResponse:\n' +
|
|
549
|
-
' type: object\n' +
|
|
550
|
-
' title: Background Meta Response\n' +
|
|
551
|
-
' description: If\n' +
|
|
552
|
-
' properties:\n' +
|
|
553
|
-
' validTypes:\n' +
|
|
554
|
-
' type: array\n' +
|
|
555
|
-
' items:\n' +
|
|
556
|
-
' type: string\n' +
|
|
557
|
-
' currentQueueLength:\n' +
|
|
558
|
-
' type: number\n' +
|
|
559
|
-
'\n' +
|
|
560
|
-
' BackgroundSampleInputValidatedProcessorData:\n' +
|
|
561
|
-
' type: object\n' +
|
|
562
|
-
' title: BackgroundSampleInputValidatedProcessorData\n' +
|
|
563
|
-
' description: This is used for testing the background validator\n' +
|
|
564
|
-
' required:\n' +
|
|
565
|
-
' - nameParam\n' +
|
|
566
|
-
' - numberParam\n' +
|
|
567
|
-
' properties:\n' +
|
|
568
|
-
' nameParam:\n' +
|
|
569
|
-
' type: string\n' +
|
|
570
|
-
' description: A sample name parameter\n' +
|
|
571
|
-
' minimum: 0\n' +
|
|
572
|
-
' maximum: 10\n' +
|
|
573
|
-
' numberParam:\n' +
|
|
574
|
-
' type: number\n' +
|
|
575
|
-
' description: A sample number parameter\n';
|
|
576
|
-
SampleServerStaticFiles.SAMPLE_SERVER_GRAPHQL = 'schema {\n' +
|
|
577
|
-
' query: RootQueryType\n' +
|
|
578
|
-
'}\n' +
|
|
579
|
-
'\n' +
|
|
580
|
-
'type RootQueryType {\n' +
|
|
581
|
-
' serverMeta: ServerMeta\n' +
|
|
582
|
-
' forceTimeout: ForceTimeout\n' +
|
|
583
|
-
'}\n' +
|
|
584
|
-
'\n' +
|
|
585
|
-
'type ServerMeta {\n' +
|
|
586
|
-
' version: String\n' +
|
|
587
|
-
' serverTime: String\n' +
|
|
588
|
-
' status: String\n' +
|
|
589
|
-
'}\n' +
|
|
590
|
-
'\n' +
|
|
591
|
-
'type ForceTimeout {\n' +
|
|
592
|
-
' placeholder: String\n' +
|
|
593
|
-
'}\n';
|