@bleedingdev/modern-js-plugin-bff 3.8.3-ultramodern.1 → 3.8.3-ultramodern.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/dist/cjs/cli/generator.js +45 -53
- package/dist/cjs/cli/serverGlobalVars.js +1 -1
- package/dist/cjs/cli.js +1 -0
- package/dist/cjs/loader.js +7 -18
- package/dist/cjs/runtime/data-platform/index.js +32 -94
- package/dist/cjs/runtime/effect/edge-dispatcher.js +5 -91
- package/dist/cjs/runtime/effect/edge.js +11 -45
- package/dist/cjs/runtime/effect/index.js +173 -55
- package/dist/cjs/runtime/effect-client/index.js +32 -166
- package/dist/cjs/runtime/effect-client/runtime.js +32 -70
- package/dist/cjs/runtime/hono/adapter.js +13 -54
- package/dist/cjs/server.js +2 -2
- package/dist/cjs/utils/client-generator/generate.js +9 -6
- package/dist/cjs/utils/crossProjectApiPlugin.js +5 -1
- package/dist/cjs/utils/pluginGenerator.js +4 -4
- package/dist/cjs/utils/runtimeGenerator.js +4 -16
- package/dist/esm/cli/generator.mjs +45 -53
- package/dist/esm/cli/serverGlobalVars.mjs +1 -1
- package/dist/esm/cli.mjs +1 -0
- package/dist/esm/loader.mjs +5 -16
- package/dist/esm/runtime/data-platform/index.mjs +1 -7
- package/dist/esm/runtime/effect/edge-dispatcher.mjs +1 -38
- package/dist/esm/runtime/effect/edge.mjs +2 -2
- package/dist/esm/runtime/effect/index.mjs +16 -8
- package/dist/esm/runtime/effect-client/index.mjs +1 -98
- package/dist/esm/runtime/effect-client/runtime.mjs +1 -62
- package/dist/esm/runtime/hono/adapter.mjs +13 -54
- package/dist/esm/server.mjs +2 -2
- package/dist/esm/utils/client-generator/generate.mjs +8 -5
- package/dist/esm/utils/crossProjectApiPlugin.mjs +3 -2
- package/dist/esm/utils/pluginGenerator.mjs +5 -5
- package/dist/esm/utils/runtimeGenerator.mjs +4 -16
- package/dist/esm-node/cli/generator.mjs +45 -53
- package/dist/esm-node/cli/serverGlobalVars.mjs +1 -1
- package/dist/esm-node/cli.mjs +1 -0
- package/dist/esm-node/loader.mjs +5 -16
- package/dist/esm-node/runtime/data-platform/index.mjs +1 -7
- package/dist/esm-node/runtime/effect/edge-dispatcher.mjs +1 -38
- package/dist/esm-node/runtime/effect/edge.mjs +2 -2
- package/dist/esm-node/runtime/effect/index.mjs +16 -8
- package/dist/esm-node/runtime/effect-client/index.mjs +1 -98
- package/dist/esm-node/runtime/effect-client/runtime.mjs +1 -62
- package/dist/esm-node/runtime/hono/adapter.mjs +13 -54
- package/dist/esm-node/server.mjs +2 -2
- package/dist/esm-node/utils/client-generator/generate.mjs +8 -5
- package/dist/esm-node/utils/crossProjectApiPlugin.mjs +3 -2
- package/dist/esm-node/utils/pluginGenerator.mjs +5 -5
- package/dist/esm-node/utils/runtimeGenerator.mjs +4 -16
- package/dist/types/loader.d.ts +1 -0
- package/dist/types/runtime/data-platform/index.d.ts +1 -8
- package/dist/types/runtime/effect/edge-dispatcher.d.ts +1 -26
- package/dist/types/runtime/effect/edge.d.ts +2 -2
- package/dist/types/runtime/effect/index.d.ts +15 -7
- package/dist/types/runtime/effect-client/index.d.ts +1 -58
- package/dist/types/runtime/effect-client/runtime.d.ts +1 -5
- package/dist/types/runtime/hono/adapter.d.ts +1 -11
- package/dist/types/utils/client-generator/generate.d.ts +2 -1
- package/dist/types/utils/crossProjectApiPlugin.d.ts +1 -0
- package/dist/types/utils/pluginGenerator.d.ts +2 -1
- package/package.json +29 -28
- package/dist/cjs/runtime/data-platform/batch/queue.js +0 -284
- package/dist/cjs/runtime/data-platform/batch/request.js +0 -98
- package/dist/cjs/runtime/data-platform/batch/response.js +0 -64
- package/dist/cjs/runtime/data-platform/batch/telemetry.js +0 -67
- package/dist/cjs/runtime/data-platform/batch/url.js +0 -69
- package/dist/cjs/runtime/data-platform/batch-transport.js +0 -59
- package/dist/cjs/runtime/data-platform/codec.js +0 -155
- package/dist/cjs/runtime/data-platform/invalidation.js +0 -61
- package/dist/cjs/runtime/data-platform/trace.js +0 -73
- package/dist/cjs/runtime/data-platform/types.js +0 -48
- package/dist/cjs/runtime/data-platform/validation.js +0 -178
- package/dist/cjs/runtime/effect/adapter/constants.js +0 -44
- package/dist/cjs/runtime/effect/adapter/cross-project-policy.js +0 -66
- package/dist/cjs/runtime/effect/adapter/entry.js +0 -100
- package/dist/cjs/runtime/effect/adapter/error-response.js +0 -81
- package/dist/cjs/runtime/effect/adapter/handler.js +0 -53
- package/dist/cjs/runtime/effect/adapter.js +0 -155
- package/dist/cjs/runtime/effect/backend-federation/entry.js +0 -99
- package/dist/cjs/runtime/effect/backend-federation/identity.js +0 -82
- package/dist/cjs/runtime/effect/backend-federation/load.js +0 -75
- package/dist/cjs/runtime/effect/backend-federation/plugin.js +0 -63
- package/dist/cjs/runtime/effect/backend-federation/remotes.js +0 -51
- package/dist/cjs/runtime/effect/backend-federation/runtime.js +0 -128
- package/dist/cjs/runtime/effect/backend-federation/types.js +0 -18
- package/dist/cjs/runtime/effect/backend-federation/utils.js +0 -48
- package/dist/cjs/runtime/effect/backend-federation-manifest/errors.js +0 -83
- package/dist/cjs/runtime/effect/backend-federation-manifest/index.js +0 -55
- package/dist/cjs/runtime/effect/backend-federation-manifest/load.js +0 -94
- package/dist/cjs/runtime/effect/backend-federation-manifest/metadata.js +0 -101
- package/dist/cjs/runtime/effect/backend-federation-manifest/reference.js +0 -120
- package/dist/cjs/runtime/effect/backend-federation-manifest/remote.js +0 -68
- package/dist/cjs/runtime/effect/backend-federation-manifest/types.js +0 -18
- package/dist/cjs/runtime/effect/backend-federation-manifest/validation.js +0 -109
- package/dist/cjs/runtime/effect/backend-federation-manifest.js +0 -62
- package/dist/cjs/runtime/effect/backend-federation.js +0 -65
- package/dist/cjs/runtime/effect/context.js +0 -60
- package/dist/cjs/runtime/effect/dispatch.js +0 -101
- package/dist/cjs/runtime/effect/edge-context.js +0 -81
- package/dist/cjs/runtime/effect/endpoint-contracts.js +0 -121
- package/dist/cjs/runtime/effect/entry-shape.js +0 -84
- package/dist/cjs/runtime/effect/handler/batch-handler.js +0 -161
- package/dist/cjs/runtime/effect/handler/batch.js +0 -159
- package/dist/cjs/runtime/effect/handler/definition.js +0 -102
- package/dist/cjs/runtime/effect/handler/envelope.js +0 -104
- package/dist/cjs/runtime/effect/handler/http.js +0 -107
- package/dist/cjs/runtime/effect/handler/openapi.js +0 -57
- package/dist/cjs/runtime/effect/handler/routing.js +0 -100
- package/dist/cjs/runtime/effect/handler/rpc.js +0 -63
- package/dist/cjs/runtime/effect/handler/types.js +0 -43
- package/dist/cjs/runtime/effect/handler.js +0 -189
- package/dist/cjs/runtime/effect/module.js +0 -113
- package/dist/cjs/runtime/effect/operation-context.js +0 -103
- package/dist/cjs/runtime/effect/rpcSerialization.js +0 -54
- package/dist/cjs/runtime/effect-client/batch.js +0 -73
- package/dist/cjs/runtime/effect-client/envelope.js +0 -145
- package/dist/cjs/runtime/effect-client/guards.js +0 -44
- package/dist/cjs/runtime/effect-client/request-context.js +0 -64
- package/dist/cjs/runtime/effect-client/request.js +0 -66
- package/dist/cjs/runtime/effect-client/types.js +0 -18
- package/dist/cjs/runtime/safe-failure.js +0 -84
- package/dist/cjs/utils/crossProjectServerPolicy.js +0 -98
- package/dist/cjs/utils/effect-client-generator/generator.js +0 -69
- package/dist/cjs/utils/effect-client-generator/index.js +0 -51
- package/dist/cjs/utils/effect-client-generator/paths.js +0 -62
- package/dist/cjs/utils/effect-client-generator/rendering.js +0 -220
- package/dist/cjs/utils/effect-client-generator/runtime.js +0 -68
- package/dist/cjs/utils/effect-client-generator/types.js +0 -18
- package/dist/cjs/utils/effectClientGenerator.js +0 -49
- package/dist/cjs/utils/effectSourceLoader.js +0 -312
- package/dist/cjs/utils/headers.js +0 -46
- package/dist/esm/runtime/data-platform/batch/queue.mjs +0 -246
- package/dist/esm/runtime/data-platform/batch/request.mjs +0 -45
- package/dist/esm/runtime/data-platform/batch/response.mjs +0 -23
- package/dist/esm/runtime/data-platform/batch/telemetry.mjs +0 -23
- package/dist/esm/runtime/data-platform/batch/url.mjs +0 -25
- package/dist/esm/runtime/data-platform/batch-transport.mjs +0 -12
- package/dist/esm/runtime/data-platform/codec.mjs +0 -90
- package/dist/esm/runtime/data-platform/invalidation.mjs +0 -20
- package/dist/esm/runtime/data-platform/trace.mjs +0 -29
- package/dist/esm/runtime/data-platform/types.mjs +0 -4
- package/dist/esm/runtime/data-platform/validation.mjs +0 -128
- package/dist/esm/runtime/effect/adapter/constants.mjs +0 -6
- package/dist/esm/runtime/effect/adapter/cross-project-policy.mjs +0 -28
- package/dist/esm/runtime/effect/adapter/entry.mjs +0 -52
- package/dist/esm/runtime/effect/adapter/error-response.mjs +0 -43
- package/dist/esm/runtime/effect/adapter/handler.mjs +0 -15
- package/dist/esm/runtime/effect/adapter.mjs +0 -107
- package/dist/esm/runtime/effect/backend-federation/entry.mjs +0 -61
- package/dist/esm/runtime/effect/backend-federation/identity.mjs +0 -41
- package/dist/esm/runtime/effect/backend-federation/load.mjs +0 -37
- package/dist/esm/runtime/effect/backend-federation/plugin.mjs +0 -25
- package/dist/esm/runtime/effect/backend-federation/remotes.mjs +0 -13
- package/dist/esm/runtime/effect/backend-federation/runtime.mjs +0 -90
- package/dist/esm/runtime/effect/backend-federation/types.mjs +0 -0
- package/dist/esm/runtime/effect/backend-federation/utils.mjs +0 -7
- package/dist/esm/runtime/effect/backend-federation-manifest/errors.mjs +0 -32
- package/dist/esm/runtime/effect/backend-federation-manifest/index.mjs +0 -4
- package/dist/esm/runtime/effect/backend-federation-manifest/load.mjs +0 -56
- package/dist/esm/runtime/effect/backend-federation-manifest/metadata.mjs +0 -42
- package/dist/esm/runtime/effect/backend-federation-manifest/reference.mjs +0 -76
- package/dist/esm/runtime/effect/backend-federation-manifest/remote.mjs +0 -30
- package/dist/esm/runtime/effect/backend-federation-manifest/types.mjs +0 -0
- package/dist/esm/runtime/effect/backend-federation-manifest/validation.mjs +0 -65
- package/dist/esm/runtime/effect/backend-federation-manifest.mjs +0 -1
- package/dist/esm/runtime/effect/backend-federation.mjs +0 -5
- package/dist/esm/runtime/effect/context.mjs +0 -13
- package/dist/esm/runtime/effect/dispatch.mjs +0 -63
- package/dist/esm/runtime/effect/edge-context.mjs +0 -34
- package/dist/esm/runtime/effect/endpoint-contracts.mjs +0 -68
- package/dist/esm/runtime/effect/entry-shape.mjs +0 -36
- package/dist/esm/runtime/effect/handler/batch-handler.mjs +0 -123
- package/dist/esm/runtime/effect/handler/batch.mjs +0 -97
- package/dist/esm/runtime/effect/handler/definition.mjs +0 -61
- package/dist/esm/runtime/effect/handler/envelope.mjs +0 -63
- package/dist/esm/runtime/effect/handler/http.mjs +0 -69
- package/dist/esm/runtime/effect/handler/openapi.mjs +0 -19
- package/dist/esm/runtime/effect/handler/routing.mjs +0 -50
- package/dist/esm/runtime/effect/handler/rpc.mjs +0 -22
- package/dist/esm/runtime/effect/handler/types.mjs +0 -5
- package/dist/esm/runtime/effect/handler.mjs +0 -14
- package/dist/esm/runtime/effect/module.mjs +0 -75
- package/dist/esm/runtime/effect/operation-context.mjs +0 -65
- package/dist/esm/runtime/effect/rpcSerialization.mjs +0 -16
- package/dist/esm/runtime/effect-client/batch.mjs +0 -35
- package/dist/esm/runtime/effect-client/envelope.mjs +0 -104
- package/dist/esm/runtime/effect-client/guards.mjs +0 -3
- package/dist/esm/runtime/effect-client/request-context.mjs +0 -23
- package/dist/esm/runtime/effect-client/request.mjs +0 -28
- package/dist/esm/runtime/effect-client/types.mjs +0 -0
- package/dist/esm/runtime/safe-failure.mjs +0 -46
- package/dist/esm/utils/crossProjectServerPolicy.mjs +0 -44
- package/dist/esm/utils/effect-client-generator/generator.mjs +0 -28
- package/dist/esm/utils/effect-client-generator/index.mjs +0 -3
- package/dist/esm/utils/effect-client-generator/paths.mjs +0 -24
- package/dist/esm/utils/effect-client-generator/rendering.mjs +0 -179
- package/dist/esm/utils/effect-client-generator/runtime.mjs +0 -27
- package/dist/esm/utils/effect-client-generator/types.mjs +0 -0
- package/dist/esm/utils/effectClientGenerator.mjs +0 -1
- package/dist/esm/utils/effectSourceLoader.mjs +0 -256
- package/dist/esm/utils/headers.mjs +0 -8
- package/dist/esm-node/runtime/data-platform/batch/queue.mjs +0 -247
- package/dist/esm-node/runtime/data-platform/batch/request.mjs +0 -46
- package/dist/esm-node/runtime/data-platform/batch/response.mjs +0 -24
- package/dist/esm-node/runtime/data-platform/batch/telemetry.mjs +0 -24
- package/dist/esm-node/runtime/data-platform/batch/url.mjs +0 -26
- package/dist/esm-node/runtime/data-platform/batch-transport.mjs +0 -13
- package/dist/esm-node/runtime/data-platform/codec.mjs +0 -91
- package/dist/esm-node/runtime/data-platform/invalidation.mjs +0 -21
- package/dist/esm-node/runtime/data-platform/trace.mjs +0 -30
- package/dist/esm-node/runtime/data-platform/types.mjs +0 -5
- package/dist/esm-node/runtime/data-platform/validation.mjs +0 -129
- package/dist/esm-node/runtime/effect/adapter/constants.mjs +0 -7
- package/dist/esm-node/runtime/effect/adapter/cross-project-policy.mjs +0 -29
- package/dist/esm-node/runtime/effect/adapter/entry.mjs +0 -53
- package/dist/esm-node/runtime/effect/adapter/error-response.mjs +0 -44
- package/dist/esm-node/runtime/effect/adapter/handler.mjs +0 -16
- package/dist/esm-node/runtime/effect/adapter.mjs +0 -108
- package/dist/esm-node/runtime/effect/backend-federation/entry.mjs +0 -62
- package/dist/esm-node/runtime/effect/backend-federation/identity.mjs +0 -42
- package/dist/esm-node/runtime/effect/backend-federation/load.mjs +0 -38
- package/dist/esm-node/runtime/effect/backend-federation/plugin.mjs +0 -26
- package/dist/esm-node/runtime/effect/backend-federation/remotes.mjs +0 -14
- package/dist/esm-node/runtime/effect/backend-federation/runtime.mjs +0 -91
- package/dist/esm-node/runtime/effect/backend-federation/types.mjs +0 -1
- package/dist/esm-node/runtime/effect/backend-federation/utils.mjs +0 -8
- package/dist/esm-node/runtime/effect/backend-federation-manifest/errors.mjs +0 -33
- package/dist/esm-node/runtime/effect/backend-federation-manifest/index.mjs +0 -5
- package/dist/esm-node/runtime/effect/backend-federation-manifest/load.mjs +0 -57
- package/dist/esm-node/runtime/effect/backend-federation-manifest/metadata.mjs +0 -43
- package/dist/esm-node/runtime/effect/backend-federation-manifest/reference.mjs +0 -77
- package/dist/esm-node/runtime/effect/backend-federation-manifest/remote.mjs +0 -31
- package/dist/esm-node/runtime/effect/backend-federation-manifest/types.mjs +0 -1
- package/dist/esm-node/runtime/effect/backend-federation-manifest/validation.mjs +0 -66
- package/dist/esm-node/runtime/effect/backend-federation-manifest.mjs +0 -2
- package/dist/esm-node/runtime/effect/backend-federation.mjs +0 -6
- package/dist/esm-node/runtime/effect/context.mjs +0 -14
- package/dist/esm-node/runtime/effect/dispatch.mjs +0 -64
- package/dist/esm-node/runtime/effect/edge-context.mjs +0 -35
- package/dist/esm-node/runtime/effect/endpoint-contracts.mjs +0 -69
- package/dist/esm-node/runtime/effect/entry-shape.mjs +0 -37
- package/dist/esm-node/runtime/effect/handler/batch-handler.mjs +0 -124
- package/dist/esm-node/runtime/effect/handler/batch.mjs +0 -98
- package/dist/esm-node/runtime/effect/handler/definition.mjs +0 -62
- package/dist/esm-node/runtime/effect/handler/envelope.mjs +0 -64
- package/dist/esm-node/runtime/effect/handler/http.mjs +0 -70
- package/dist/esm-node/runtime/effect/handler/openapi.mjs +0 -20
- package/dist/esm-node/runtime/effect/handler/routing.mjs +0 -51
- package/dist/esm-node/runtime/effect/handler/rpc.mjs +0 -23
- package/dist/esm-node/runtime/effect/handler/types.mjs +0 -6
- package/dist/esm-node/runtime/effect/handler.mjs +0 -15
- package/dist/esm-node/runtime/effect/module.mjs +0 -76
- package/dist/esm-node/runtime/effect/operation-context.mjs +0 -66
- package/dist/esm-node/runtime/effect/rpcSerialization.mjs +0 -17
- package/dist/esm-node/runtime/effect-client/batch.mjs +0 -36
- package/dist/esm-node/runtime/effect-client/envelope.mjs +0 -105
- package/dist/esm-node/runtime/effect-client/guards.mjs +0 -4
- package/dist/esm-node/runtime/effect-client/request-context.mjs +0 -24
- package/dist/esm-node/runtime/effect-client/request.mjs +0 -29
- package/dist/esm-node/runtime/effect-client/types.mjs +0 -1
- package/dist/esm-node/runtime/safe-failure.mjs +0 -47
- package/dist/esm-node/utils/crossProjectServerPolicy.mjs +0 -46
- package/dist/esm-node/utils/effect-client-generator/generator.mjs +0 -29
- package/dist/esm-node/utils/effect-client-generator/index.mjs +0 -4
- package/dist/esm-node/utils/effect-client-generator/paths.mjs +0 -25
- package/dist/esm-node/utils/effect-client-generator/rendering.mjs +0 -180
- package/dist/esm-node/utils/effect-client-generator/runtime.mjs +0 -29
- package/dist/esm-node/utils/effect-client-generator/types.mjs +0 -1
- package/dist/esm-node/utils/effectClientGenerator.mjs +0 -2
- package/dist/esm-node/utils/effectSourceLoader.mjs +0 -257
- package/dist/esm-node/utils/headers.mjs +0 -9
- package/dist/types/runtime/data-platform/batch/queue.d.ts +0 -8
- package/dist/types/runtime/data-platform/batch/request.d.ts +0 -13
- package/dist/types/runtime/data-platform/batch/response.d.ts +0 -3
- package/dist/types/runtime/data-platform/batch/telemetry.d.ts +0 -4
- package/dist/types/runtime/data-platform/batch/url.d.ts +0 -4
- package/dist/types/runtime/data-platform/batch-transport.d.ts +0 -3
- package/dist/types/runtime/data-platform/codec.d.ts +0 -17
- package/dist/types/runtime/data-platform/invalidation.d.ts +0 -8
- package/dist/types/runtime/data-platform/trace.d.ts +0 -4
- package/dist/types/runtime/data-platform/types.d.ts +0 -146
- package/dist/types/runtime/data-platform/validation.d.ts +0 -29
- package/dist/types/runtime/effect/adapter/constants.d.ts +0 -1
- package/dist/types/runtime/effect/adapter/cross-project-policy.d.ts +0 -4
- package/dist/types/runtime/effect/adapter/entry.d.ts +0 -2
- package/dist/types/runtime/effect/adapter/error-response.d.ts +0 -2
- package/dist/types/runtime/effect/adapter/handler.d.ts +0 -7
- package/dist/types/runtime/effect/adapter.d.ts +0 -22
- package/dist/types/runtime/effect/backend-federation/entry.d.ts +0 -2
- package/dist/types/runtime/effect/backend-federation/identity.d.ts +0 -30
- package/dist/types/runtime/effect/backend-federation/load.d.ts +0 -13
- package/dist/types/runtime/effect/backend-federation/plugin.d.ts +0 -3
- package/dist/types/runtime/effect/backend-federation/remotes.d.ts +0 -2
- package/dist/types/runtime/effect/backend-federation/runtime.d.ts +0 -3
- package/dist/types/runtime/effect/backend-federation/types.d.ts +0 -73
- package/dist/types/runtime/effect/backend-federation/utils.d.ts +0 -2
- package/dist/types/runtime/effect/backend-federation-manifest/errors.d.ts +0 -11
- package/dist/types/runtime/effect/backend-federation-manifest/index.d.ts +0 -6
- package/dist/types/runtime/effect/backend-federation-manifest/load.d.ts +0 -3
- package/dist/types/runtime/effect/backend-federation-manifest/metadata.d.ts +0 -18
- package/dist/types/runtime/effect/backend-federation-manifest/reference.d.ts +0 -4
- package/dist/types/runtime/effect/backend-federation-manifest/remote.d.ts +0 -3
- package/dist/types/runtime/effect/backend-federation-manifest/types.d.ts +0 -51
- package/dist/types/runtime/effect/backend-federation-manifest/validation.d.ts +0 -5
- package/dist/types/runtime/effect/backend-federation-manifest.d.ts +0 -1
- package/dist/types/runtime/effect/backend-federation.d.ts +0 -7
- package/dist/types/runtime/effect/context.d.ts +0 -5
- package/dist/types/runtime/effect/dispatch.d.ts +0 -13
- package/dist/types/runtime/effect/edge-context.d.ts +0 -5
- package/dist/types/runtime/effect/endpoint-contracts.d.ts +0 -66
- package/dist/types/runtime/effect/entry-shape.d.ts +0 -31
- package/dist/types/runtime/effect/handler/batch-handler.d.ts +0 -11
- package/dist/types/runtime/effect/handler/batch.d.ts +0 -13
- package/dist/types/runtime/effect/handler/definition.d.ts +0 -7
- package/dist/types/runtime/effect/handler/envelope.d.ts +0 -13
- package/dist/types/runtime/effect/handler/http.d.ts +0 -15
- package/dist/types/runtime/effect/handler/openapi.d.ts +0 -4
- package/dist/types/runtime/effect/handler/routing.d.ts +0 -5
- package/dist/types/runtime/effect/handler/rpc.d.ts +0 -7
- package/dist/types/runtime/effect/handler/types.d.ts +0 -153
- package/dist/types/runtime/effect/handler.d.ts +0 -14
- package/dist/types/runtime/effect/module.d.ts +0 -36
- package/dist/types/runtime/effect/operation-context.d.ts +0 -10
- package/dist/types/runtime/effect/rpcSerialization.d.ts +0 -3
- package/dist/types/runtime/effect-client/batch.d.ts +0 -2
- package/dist/types/runtime/effect-client/envelope.d.ts +0 -15
- package/dist/types/runtime/effect-client/guards.d.ts +0 -2
- package/dist/types/runtime/effect-client/request-context.d.ts +0 -3
- package/dist/types/runtime/effect-client/request.d.ts +0 -1
- package/dist/types/runtime/effect-client/types.d.ts +0 -68
- package/dist/types/runtime/safe-failure.d.ts +0 -1
- package/dist/types/utils/crossProjectServerPolicy.d.ts +0 -36
- package/dist/types/utils/effect-client-generator/generator.d.ts +0 -10
- package/dist/types/utils/effect-client-generator/index.d.ts +0 -4
- package/dist/types/utils/effect-client-generator/paths.d.ts +0 -5
- package/dist/types/utils/effect-client-generator/rendering.d.ts +0 -4
- package/dist/types/utils/effect-client-generator/runtime.d.ts +0 -12
- package/dist/types/utils/effect-client-generator/types.d.ts +0 -27
- package/dist/types/utils/effectClientGenerator.d.ts +0 -2
- package/dist/types/utils/effectSourceLoader.d.ts +0 -25
- package/dist/types/utils/headers.d.ts +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type OperationContext } from '@modern-js/create-request';
|
|
2
|
-
export type EffectContext = {
|
|
3
|
-
request: Request;
|
|
4
|
-
env: Record<string, unknown>;
|
|
5
|
-
path: string;
|
|
6
|
-
method: string;
|
|
7
|
-
operationContext: OperationContext;
|
|
8
|
-
};
|
|
9
|
-
export type CreateEffectOperationContextOptions = Omit<EffectContext, 'operationContext'>;
|
|
10
|
-
export declare const createEffectOperationContext: ({ request, path, method, }: CreateEffectOperationContextOptions) => OperationContext;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { RpcSerialization } from 'effect/unstable/rpc';
|
|
2
|
-
import type { EffectRpcSerialization } from './handler/types';
|
|
3
|
-
export declare function getRpcSerializationLayer(serialization: EffectRpcSerialization | undefined): import("effect/Layer").Layer<RpcSerialization.RpcSerialization, never, never>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { EffectOperationDescriptor, EffectRequestContext, EffectRequestContextInput, GeneratedEffectClientConfig, GeneratedEffectEndpoint } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the current page origin with a configurable fallback. Single
|
|
4
|
-
* implementation shared by the configure() bootstrap and the data envelope
|
|
5
|
-
* (the generated template previously duplicated data-platform's
|
|
6
|
-
* `resolveRuntimeOrigin` with a different fallback).
|
|
7
|
-
*/
|
|
8
|
-
export declare const resolveOrigin: (defaultOrigin: string) => string;
|
|
9
|
-
export declare const prepareEffectRequest: (options: {
|
|
10
|
-
endpoint: GeneratedEffectEndpoint;
|
|
11
|
-
operation: EffectOperationDescriptor;
|
|
12
|
-
request: unknown;
|
|
13
|
-
config: GeneratedEffectClientConfig;
|
|
14
|
-
createEffectRequestContext: (requestContext: EffectRequestContextInput) => EffectRequestContext;
|
|
15
|
-
}) => Record<string, unknown>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { EffectRequestContext, EffectRequestContextInput, EffectRequestRuntime } from './types';
|
|
2
|
-
export declare const createEffectRequestContext: (createRequestContextHeaders: EffectRequestRuntime['createRequestContextHeaders'], requestContext: EffectRequestContextInput) => EffectRequestContext;
|
|
3
|
-
export declare const applyRequestContext: (normalizedRequest: Record<string, unknown>, request: unknown, createRequestContext: (requestContext: EffectRequestContextInput) => EffectRequestContext) => Record<string, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeRequest: (method: string, request: unknown) => Record<string, unknown>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export type GeneratedEffectEndpoint = {
|
|
2
|
-
apiId: string;
|
|
3
|
-
group: string;
|
|
4
|
-
endpoint: string;
|
|
5
|
-
method: string;
|
|
6
|
-
routePath: string;
|
|
7
|
-
/** Per-endpoint operation contract hash (bff-core hash). */
|
|
8
|
-
schemaHash: string;
|
|
9
|
-
operationVersion: number;
|
|
10
|
-
};
|
|
11
|
-
export type GeneratedEffectBatchConfig = {
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
endpoint: string;
|
|
14
|
-
flushIntervalMs: number;
|
|
15
|
-
maxBatchSize: number;
|
|
16
|
-
maxBatchBytes: number;
|
|
17
|
-
requestTimeoutMs: number;
|
|
18
|
-
allowedMethods: string[];
|
|
19
|
-
};
|
|
20
|
-
export type GeneratedEffectClientConfig = {
|
|
21
|
-
appNamespace: string;
|
|
22
|
-
/** Cross-project producer id; absent for same-project clients. */
|
|
23
|
-
requestId?: string;
|
|
24
|
-
port: number;
|
|
25
|
-
/** Resolve the port from process.env.PORT first (server bundles). */
|
|
26
|
-
useEnvPort?: boolean;
|
|
27
|
-
defaultOrigin: string;
|
|
28
|
-
httpMethodDecider?: string;
|
|
29
|
-
batch: GeneratedEffectBatchConfig;
|
|
30
|
-
};
|
|
31
|
-
export type EffectOperationDescriptor = {
|
|
32
|
-
appNamespace: string;
|
|
33
|
-
apiId: string;
|
|
34
|
-
group: string;
|
|
35
|
-
endpoint: string;
|
|
36
|
-
operationId: string;
|
|
37
|
-
routePath: string;
|
|
38
|
-
method: string;
|
|
39
|
-
operationVersion: number;
|
|
40
|
-
schemaHash: string;
|
|
41
|
-
version: number;
|
|
42
|
-
};
|
|
43
|
-
export type EffectClientOperation = (request?: unknown) => Promise<unknown>;
|
|
44
|
-
export type EffectClientGroup = Record<string, EffectClientOperation>;
|
|
45
|
-
export type EffectClient = Record<string, EffectClientGroup>;
|
|
46
|
-
export type EffectOperationManifest = Record<string, Record<string, EffectOperationDescriptor>>;
|
|
47
|
-
export type EffectRequestContextInput = Record<string, unknown>;
|
|
48
|
-
export type EffectRequestContext = {
|
|
49
|
-
headers: Record<string, string>;
|
|
50
|
-
} & Record<string, unknown>;
|
|
51
|
-
/** Structural slice of `@modern-js/create-request` the runtime relies on. */
|
|
52
|
-
export type EffectRequestRuntime = {
|
|
53
|
-
createRequest: (options: {
|
|
54
|
-
path: string;
|
|
55
|
-
method: string;
|
|
56
|
-
port: number | string;
|
|
57
|
-
operationContext: Record<string, unknown>;
|
|
58
|
-
httpMethodDecider: string;
|
|
59
|
-
requestId?: string;
|
|
60
|
-
}) => (...args: unknown[]) => Promise<unknown>;
|
|
61
|
-
configure?: (options: Record<string, unknown>) => void;
|
|
62
|
-
createRequestContextHeaders?: (input: EffectRequestContextInput) => Record<string, string>;
|
|
63
|
-
};
|
|
64
|
-
export type GeneratedEffectClientModule = {
|
|
65
|
-
client: EffectClient;
|
|
66
|
-
operationManifest: EffectOperationManifest;
|
|
67
|
-
createEffectRequestContext: (requestContext: EffectRequestContextInput) => EffectRequestContext;
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createSafeFailureResponse: (error: unknown) => Response;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Server-side cross-project policy wiring shared by the hono and effect BFF
|
|
3
|
-
* runtime adapters.
|
|
4
|
-
*
|
|
5
|
-
* The generated cross-project SDK force-enables `bff.crossProjectPolicy`
|
|
6
|
-
* (see `crossProjectApiPlugin`), so producer servers MUST actually evaluate
|
|
7
|
-
* it: this module resolves the policy once per adapter (deriving the
|
|
8
|
-
* operation-contract map and the producer operation version from the app's
|
|
9
|
-
* package.json major) and exposes a request check both adapters call before
|
|
10
|
-
* dispatching API handlers.
|
|
11
|
-
*
|
|
12
|
-
* The envelope/operation-context headers are client-asserted; see the threat
|
|
13
|
-
* model in `@modern-js/bff-core` `security/crossProjectPolicy.ts`. Operators
|
|
14
|
-
* Production namespace allowlists require `verifyProducerIdentity` to bind
|
|
15
|
-
* the namespace to a verified channel; without it, only non-production keeps
|
|
16
|
-
* the advisory client-asserted allowlist path.
|
|
17
|
-
*/
|
|
18
|
-
import { type OperationContractSource, type ResolvedCrossProjectPolicy } from '@modern-js/bff-core';
|
|
19
|
-
import type { ServerPluginAPI } from '@modern-js/server-core';
|
|
20
|
-
export type { ResolvedCrossProjectPolicy };
|
|
21
|
-
/**
|
|
22
|
-
* Resolves the effective cross-project policy for a BFF runtime adapter.
|
|
23
|
-
* Returns `undefined` when no policy is configured and the server is not a
|
|
24
|
-
* generated cross-project producer (no middleware should be installed).
|
|
25
|
-
*/
|
|
26
|
-
export declare const resolveAdapterCrossProjectPolicy: (api: ServerPluginAPI, handlers: OperationContractSource[]) => ResolvedCrossProjectPolicy | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Evaluates the policy against a header record and returns the denial
|
|
29
|
-
* Response every adapter must send, or `null` when the request passes.
|
|
30
|
-
*/
|
|
31
|
-
export declare const checkCrossProjectPolicyResponse: (headers: Record<string, unknown>, policy: ResolvedCrossProjectPolicy | undefined) => Response | null;
|
|
32
|
-
/**
|
|
33
|
-
* Adapts the policy check to a WHATWG `Request` (effect lane seam): returns
|
|
34
|
-
* the denial Response or `null`.
|
|
35
|
-
*/
|
|
36
|
-
export declare const checkCrossProjectPolicyForRequest: (request: Request, policy: ResolvedCrossProjectPolicy | undefined) => Response | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { EffectClientCodegenOptions, GeneratedEffectClientArtifacts } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Generates the Effect client module plus its type declaration. The module
|
|
4
|
-
* body is a thin manifest + one call into
|
|
5
|
-
* `@modern-js/plugin-bff/effect-client-runtime`; the declaration preserves
|
|
6
|
-
* the group/endpoint structure of the HttpApi instead of erasing it to
|
|
7
|
-
* `Record<string, ...>`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function generateEffectClient(options: EffectClientCodegenOptions): Promise<GeneratedEffectClientArtifacts | null>;
|
|
10
|
-
export declare function generateEffectClientCode(options: EffectClientCodegenOptions): Promise<string | null>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { generateEffectClient, generateEffectClientCode } from './generator';
|
|
2
|
-
export { resolveEffectEntryFile } from './paths';
|
|
3
|
-
export { renderEffectClientDeclaration } from './rendering';
|
|
4
|
-
export type { EffectClientCodegenOptions, GeneratedEffectClientArtifacts, } from './types';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type EffectEndpointMeta } from '../../runtime/effect/endpoint-contracts';
|
|
2
|
-
import type { EffectClientCodegenOptions } from './types';
|
|
3
|
-
export declare function renderEffectClientCode(endpoints: EffectEndpointMeta[], options: EffectClientCodegenOptions): string;
|
|
4
|
-
export declare function renderEffectClientDeclaration(endpoints?: EffectEndpointMeta[]): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type HttpApiLike, type HttpApiReflect } from '../../runtime/effect/endpoint-contracts';
|
|
2
|
-
type HttpApiRuntime = {
|
|
3
|
-
isHttpApi: (value: unknown) => boolean;
|
|
4
|
-
reflect: HttpApiReflect;
|
|
5
|
-
};
|
|
6
|
-
export declare function getHttpApiRuntime(): Promise<HttpApiRuntime>;
|
|
7
|
-
export declare function loadEffectApi(options: {
|
|
8
|
-
appDir: string;
|
|
9
|
-
resourcePath: string;
|
|
10
|
-
onDependency?: (dependency: string) => void;
|
|
11
|
-
}): Promise<HttpApiLike | null>;
|
|
12
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { HttpMethodDecider } from '@modern-js/types';
|
|
2
|
-
import type { EffectEndpointMeta } from '../../runtime/effect/endpoint-contracts';
|
|
3
|
-
export type EffectClientCodegenOptions = {
|
|
4
|
-
appDir: string;
|
|
5
|
-
apiDir: string;
|
|
6
|
-
resourcePath: string;
|
|
7
|
-
prefix: string;
|
|
8
|
-
port: number;
|
|
9
|
-
target?: string;
|
|
10
|
-
requestCreator?: string;
|
|
11
|
-
httpMethodDecider?: HttpMethodDecider;
|
|
12
|
-
onDependency?: (dependency: string) => void;
|
|
13
|
-
dataPlatformBatch?: {
|
|
14
|
-
enabled?: boolean;
|
|
15
|
-
endpoint?: string;
|
|
16
|
-
flushIntervalMs?: number;
|
|
17
|
-
maxBatchSize?: number;
|
|
18
|
-
maxBatchBytes?: number;
|
|
19
|
-
requestTimeoutMs?: number;
|
|
20
|
-
allowedMethods?: string[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export type GeneratedEffectClientArtifacts = {
|
|
24
|
-
code: string;
|
|
25
|
-
declaration: string;
|
|
26
|
-
endpoints: EffectEndpointMeta[];
|
|
27
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type EffectSourceLoaderOptions = {
|
|
2
|
-
resourcePath: string;
|
|
3
|
-
appDir?: string;
|
|
4
|
-
onDependency?: (dependency: string) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function bundleEffectEntryForNode(options: {
|
|
7
|
-
appDir: string;
|
|
8
|
-
entryPath: string;
|
|
9
|
-
format: 'cjs' | 'esm';
|
|
10
|
-
}): Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* Loads the relocatable artifact emitted by the production BFF build.
|
|
13
|
-
*
|
|
14
|
-
* Production entries have already been compiled and bundled by
|
|
15
|
-
* `bundleEffectEntryForNode`. Loading that artifact through the development
|
|
16
|
-
* source-graph bundler a second time changes its module format and can strip
|
|
17
|
-
* CommonJS runtime globals from bundled dependencies. Keep the built module's
|
|
18
|
-
* native Node boundary intact instead.
|
|
19
|
-
*/
|
|
20
|
-
export declare function loadEffectBuiltModule(resourcePath: string): Promise<unknown>;
|
|
21
|
-
/**
|
|
22
|
-
* Loads an Effect source entry as native ESM while keeping its complete local
|
|
23
|
-
* source graph observable by the framework watcher.
|
|
24
|
-
*/
|
|
25
|
-
export declare function loadEffectSourceModule(options: EffectSourceLoaderOptions): Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function toHeaderRecord(headers: Headers): Record<string, string>;
|