raffel 1.1.89 → 1.1.90-next.3da3a67
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/adapters/grpc.js +1 -1
- package/dist/adapters/grpc.js.map +1 -1
- package/dist/adapters/http.d.ts +4 -1
- package/dist/adapters/http.d.ts.map +1 -1
- package/dist/adapters/http.js +28 -41
- package/dist/adapters/http.js.map +1 -1
- package/dist/adapters/jsonrpc.d.ts +2 -2
- package/dist/adapters/jsonrpc.d.ts.map +1 -1
- package/dist/adapters/jsonrpc.js +2 -2
- package/dist/adapters/jsonrpc.js.map +1 -1
- package/dist/adapters/smtp-types.d.ts +1 -1
- package/dist/adapters/smtp-types.d.ts.map +1 -1
- package/dist/adapters/smtp.js +2 -2
- package/dist/adapters/smtp.js.map +1 -1
- package/dist/adapters/sse-runtime.d.ts +17 -0
- package/dist/adapters/sse-runtime.d.ts.map +1 -0
- package/dist/adapters/sse-runtime.js +90 -0
- package/dist/adapters/sse-runtime.js.map +1 -0
- package/dist/adapters/ssh-types.d.ts +1 -1
- package/dist/adapters/ssh-types.d.ts.map +1 -1
- package/dist/adapters/ssh.js +3 -3
- package/dist/adapters/ssh.js.map +1 -1
- package/dist/adapters/tcp.d.ts +1 -1
- package/dist/adapters/tcp.d.ts.map +1 -1
- package/dist/adapters/tcp.js +1 -1
- package/dist/adapters/tcp.js.map +1 -1
- package/dist/adapters/udp.d.ts +1 -1
- package/dist/adapters/udp.d.ts.map +1 -1
- package/dist/adapters/udp.js +1 -1
- package/dist/adapters/udp.js.map +1 -1
- package/dist/adapters/websocket-types.d.ts +1 -1
- package/dist/adapters/websocket-types.d.ts.map +1 -1
- package/dist/adapters/websocket.js +1 -1
- package/dist/adapters/websocket.js.map +1 -1
- package/dist/channels/rest-api.d.ts +2 -0
- package/dist/channels/rest-api.d.ts.map +1 -1
- package/dist/channels/rest-api.js +23 -4
- package/dist/channels/rest-api.js.map +1 -1
- package/dist/core/registry.d.ts +10 -1
- package/dist/core/registry.d.ts.map +1 -1
- package/dist/core/registry.js +51 -0
- package/dist/core/registry.js.map +1 -1
- package/dist/core/router.d.ts.map +1 -1
- package/dist/core/router.js +27 -5
- package/dist/core/router.js.map +1 -1
- package/dist/docs/generators/graphql-generator.d.ts.map +1 -1
- package/dist/docs/generators/graphql-generator.js +36 -5
- package/dist/docs/generators/graphql-generator.js.map +1 -1
- package/dist/docs/generators/http-generator.js +2 -1
- package/dist/docs/generators/http-generator.js.map +1 -1
- package/dist/docs/generators/streams-generator.d.ts.map +1 -1
- package/dist/docs/generators/streams-generator.js +14 -1
- package/dist/docs/generators/streams-generator.js.map +1 -1
- package/dist/docs/generators/udp-generator.js +1 -1
- package/dist/docs/generators/udp-generator.js.map +1 -1
- package/dist/docs/generators/usd-generator.js +1 -1
- package/dist/docs/generators/usd-generator.js.map +1 -1
- package/dist/docs/generators/websocket-generator.d.ts.map +1 -1
- package/dist/docs/generators/websocket-generator.js +12 -3
- package/dist/docs/generators/websocket-generator.js.map +1 -1
- package/dist/docs/markdown-loader.js +15 -2
- package/dist/docs/markdown-loader.js.map +1 -1
- package/dist/docs/openapi/generator.d.ts +3 -0
- package/dist/docs/openapi/generator.d.ts.map +1 -1
- package/dist/docs/openapi/generator.js +24 -4
- package/dist/docs/openapi/generator.js.map +1 -1
- package/dist/docs/search-index.js +27 -5
- package/dist/docs/search-index.js.map +1 -1
- package/dist/docs/try-it-proxy.d.ts.map +1 -1
- package/dist/docs/try-it-proxy.js +3 -1
- package/dist/docs/try-it-proxy.js.map +1 -1
- package/dist/docs/ui/assets/protocol-console.js +1 -1
- package/dist/docs/ui/assets/raffel-docs.css +42 -0
- package/dist/docs/ui/assets/raffel-docs.js +120 -54
- package/dist/docs/ui/client-script/endpoint-details.d.ts +1 -1
- package/dist/docs/ui/client-script/endpoint-details.d.ts.map +1 -1
- package/dist/docs/ui/client-script/endpoint-details.js +1 -1
- package/dist/docs/ui/client-script/endpoint-details.js.map +1 -1
- package/dist/docs/ui/edit-link.js +10 -4
- package/dist/docs/ui/edit-link.js.map +1 -1
- package/dist/docs/ui/html-builder.d.ts.map +1 -1
- package/dist/docs/ui/html-builder.js +10 -2
- package/dist/docs/ui/html-builder.js.map +1 -1
- package/dist/docs/ui/runtime/index.js +120 -54
- package/dist/docs/ui/runtime/index.js.map +1 -1
- package/dist/docs/ui/runtime/protocol-console.js +1 -1
- package/dist/docs/ui/runtime/protocol-console.js.map +1 -1
- package/dist/docs/ui/style-sections/projection-diagnostics.d.ts +2 -0
- package/dist/docs/ui/style-sections/projection-diagnostics.d.ts.map +1 -0
- package/dist/docs/ui/style-sections/projection-diagnostics.js +44 -0
- package/dist/docs/ui/style-sections/projection-diagnostics.js.map +1 -0
- package/dist/docs/ui/styles.d.ts.map +1 -1
- package/dist/docs/ui/styles.js +2 -0
- package/dist/docs/ui/styles.js.map +1 -1
- package/dist/docs/usd-middleware.d.ts.map +1 -1
- package/dist/docs/usd-middleware.js +16 -5
- package/dist/docs/usd-middleware.js.map +1 -1
- package/dist/dx/logging/formats.d.ts.map +1 -1
- package/dist/dx/logging/formats.js +31 -8
- package/dist/dx/logging/formats.js.map +1 -1
- package/dist/dx/scaffold/index.d.ts.map +1 -1
- package/dist/dx/scaffold/index.js +9 -3
- package/dist/dx/scaffold/index.js.map +1 -1
- package/dist/dx/scenarios.js +2 -2
- package/dist/dx/scenarios.js.map +1 -1
- package/dist/graphql/adapter.d.ts +2 -0
- package/dist/graphql/adapter.d.ts.map +1 -1
- package/dist/graphql/adapter.js +459 -98
- package/dist/graphql/adapter.js.map +1 -1
- package/dist/graphql/artifacts.d.ts +16 -0
- package/dist/graphql/artifacts.d.ts.map +1 -0
- package/dist/graphql/artifacts.js +33 -0
- package/dist/graphql/artifacts.js.map +1 -0
- package/dist/graphql/index.d.ts +8 -3
- package/dist/graphql/index.d.ts.map +1 -1
- package/dist/graphql/index.js +3 -1
- package/dist/graphql/index.js.map +1 -1
- package/dist/graphql/persisted-operations.d.ts +16 -0
- package/dist/graphql/persisted-operations.d.ts.map +1 -0
- package/dist/graphql/persisted-operations.js +39 -0
- package/dist/graphql/persisted-operations.js.map +1 -0
- package/dist/graphql/resource.d.ts +53 -1
- package/dist/graphql/resource.d.ts.map +1 -1
- package/dist/graphql/resource.js +2 -0
- package/dist/graphql/resource.js.map +1 -1
- package/dist/graphql/schema-generator.d.ts +5 -1
- package/dist/graphql/schema-generator.d.ts.map +1 -1
- package/dist/graphql/schema-generator.js +259 -23
- package/dist/graphql/schema-generator.js.map +1 -1
- package/dist/graphql/security.d.ts +36 -0
- package/dist/graphql/security.d.ts.map +1 -0
- package/dist/graphql/security.js +170 -0
- package/dist/graphql/security.js.map +1 -0
- package/dist/graphql/types.d.ts +76 -2
- package/dist/graphql/types.d.ts.map +1 -1
- package/dist/http/_oauth-transaction.d.ts +24 -0
- package/dist/http/_oauth-transaction.d.ts.map +1 -0
- package/dist/http/_oauth-transaction.js +82 -0
- package/dist/http/_oauth-transaction.js.map +1 -0
- package/dist/http/auth.d.ts +35 -5
- package/dist/http/auth.d.ts.map +1 -1
- package/dist/http/auth.js +45 -12
- package/dist/http/auth.js.map +1 -1
- package/dist/http/context.d.ts +6 -2
- package/dist/http/context.d.ts.map +1 -1
- package/dist/http/context.js +27 -27
- package/dist/http/context.js.map +1 -1
- package/dist/http/cors.d.ts.map +1 -1
- package/dist/http/cors.js +5 -2
- package/dist/http/cors.js.map +1 -1
- package/dist/http/index.d.ts +4 -2
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +2 -1
- package/dist/http/index.js.map +1 -1
- package/dist/http/long-poll.d.ts +45 -0
- package/dist/http/long-poll.d.ts.map +1 -0
- package/dist/http/long-poll.js +75 -0
- package/dist/http/long-poll.js.map +1 -0
- package/dist/http/oauth2.d.ts +5 -0
- package/dist/http/oauth2.d.ts.map +1 -1
- package/dist/http/oauth2.js +39 -34
- package/dist/http/oauth2.js.map +1 -1
- package/dist/http/oidc.d.ts +9 -0
- package/dist/http/oidc.d.ts.map +1 -1
- package/dist/http/oidc.js +110 -64
- package/dist/http/oidc.js.map +1 -1
- package/dist/http/serve.js +1 -1
- package/dist/http/serve.js.map +1 -1
- package/dist/http/session.js +1 -1
- package/dist/http/session.js.map +1 -1
- package/dist/http/static.d.ts.map +1 -1
- package/dist/http/static.js +11 -0
- package/dist/http/static.js.map +1 -1
- package/dist/http/stream-auth.js +1 -1
- package/dist/http/stream-auth.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/inspect/path-params.d.ts.map +1 -1
- package/dist/inspect/path-params.js +6 -1
- package/dist/inspect/path-params.js.map +1 -1
- package/dist/inspect/playground.d.ts.map +1 -1
- package/dist/inspect/playground.js +9 -6
- package/dist/inspect/playground.js.map +1 -1
- package/dist/inspect/reports.js +1 -1
- package/dist/inspect/reports.js.map +1 -1
- package/dist/json-server/index.d.ts +1 -1
- package/dist/json-server/index.d.ts.map +1 -1
- package/dist/mcp/cli.js +1 -1
- package/dist/mcp/docs/adapters.js +2 -2
- package/dist/mcp/docs/adapters.js.map +1 -1
- package/dist/mcp/server.js +2 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/handlers.js +2 -2
- package/dist/mcp/tools/handlers.js.map +1 -1
- package/dist/mcp/tools/misc-tool-handlers.js +1 -1
- package/dist/mcp/tools/misc-tool-handlers.js.map +1 -1
- package/dist/middleware/auth/oauth2-client-credentials.js +5 -3
- package/dist/middleware/auth/oauth2-client-credentials.js.map +1 -1
- package/dist/middleware/auth/oauth2.d.ts +1 -1
- package/dist/middleware/auth/oauth2.d.ts.map +1 -1
- package/dist/middleware/auth/oauth2.js +29 -46
- package/dist/middleware/auth/oauth2.js.map +1 -1
- package/dist/middleware/auth.d.ts +6 -0
- package/dist/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +73 -44
- package/dist/middleware/auth.js.map +1 -1
- package/dist/middleware/session/interceptor.d.ts.map +1 -1
- package/dist/middleware/session/interceptor.js +2 -1
- package/dist/middleware/session/interceptor.js.map +1 -1
- package/dist/mock-server/cli.js +2 -2
- package/dist/mock-server/cli.js.map +1 -1
- package/dist/mock-server/route-extractor.d.ts.map +1 -1
- package/dist/mock-server/route-extractor.js +18 -1
- package/dist/mock-server/route-extractor.js.map +1 -1
- package/dist/mock-server/types.d.ts +1 -1
- package/dist/mock-server/types.d.ts.map +1 -1
- package/dist/protocols/mcp/docs-server/index.d.ts.map +1 -1
- package/dist/protocols/mcp/docs-server/index.js +5 -3
- package/dist/protocols/mcp/docs-server/index.js.map +1 -1
- package/dist/protocols/mcp/integrated.d.ts.map +1 -1
- package/dist/protocols/mcp/integrated.js +8 -0
- package/dist/protocols/mcp/integrated.js.map +1 -1
- package/dist/protocols/mcp/standalone.d.ts +10 -0
- package/dist/protocols/mcp/standalone.d.ts.map +1 -1
- package/dist/protocols/mcp/standalone.js +24 -4
- package/dist/protocols/mcp/standalone.js.map +1 -1
- package/dist/protocols/mcp/transport/cors.d.ts +4 -0
- package/dist/protocols/mcp/transport/cors.d.ts.map +1 -0
- package/dist/protocols/mcp/transport/cors.js +24 -0
- package/dist/protocols/mcp/transport/cors.js.map +1 -0
- package/dist/protocols/mcp/transport/sse.d.ts +4 -0
- package/dist/protocols/mcp/transport/sse.d.ts.map +1 -1
- package/dist/protocols/mcp/transport/sse.js +22 -11
- package/dist/protocols/mcp/transport/sse.js.map +1 -1
- package/dist/protocols/mcp/transport/streamable-http.d.ts +9 -0
- package/dist/protocols/mcp/transport/streamable-http.d.ts.map +1 -1
- package/dist/protocols/mcp/transport/streamable-http.js +43 -13
- package/dist/protocols/mcp/transport/streamable-http.js.map +1 -1
- package/dist/protocols/mcp/types.d.ts +10 -0
- package/dist/protocols/mcp/types.d.ts.map +1 -1
- package/dist/proxy/explicit.d.ts +4 -0
- package/dist/proxy/explicit.d.ts.map +1 -1
- package/dist/proxy/explicit.js +30 -9
- package/dist/proxy/explicit.js.map +1 -1
- package/dist/proxy/http-forward.d.ts +2 -0
- package/dist/proxy/http-forward.d.ts.map +1 -1
- package/dist/proxy/http-forward.js +35 -7
- package/dist/proxy/http-forward.js.map +1 -1
- package/dist/proxy/socks5.d.ts +4 -0
- package/dist/proxy/socks5.d.ts.map +1 -1
- package/dist/proxy/socks5.js +12 -3
- package/dist/proxy/socks5.js.map +1 -1
- package/dist/proxy/transparent.js +1 -1
- package/dist/proxy/transparent.js.map +1 -1
- package/dist/proxy/utils/auth.d.ts.map +1 -1
- package/dist/proxy/utils/auth.js +29 -5
- package/dist/proxy/utils/auth.js.map +1 -1
- package/dist/server/builder/execution-entrypoint.d.ts.map +1 -1
- package/dist/server/builder/execution-entrypoint.js +2 -1
- package/dist/server/builder/execution-entrypoint.js.map +1 -1
- package/dist/server/builder/execution-http-graphql.d.ts.map +1 -1
- package/dist/server/builder/execution-http-graphql.js +4 -1
- package/dist/server/builder/execution-http-graphql.js.map +1 -1
- package/dist/server/builder/execution-http-mcp.d.ts.map +1 -1
- package/dist/server/builder/execution-http-mcp.js +12 -1
- package/dist/server/builder/execution-http-mcp.js.map +1 -1
- package/dist/server/builder/execution-protocol-utils.d.ts.map +1 -1
- package/dist/server/builder/execution-protocol-utils.js +3 -0
- package/dist/server/builder/execution-protocol-utils.js.map +1 -1
- package/dist/server/builder/execution-web-protocols.d.ts.map +1 -1
- package/dist/server/builder/execution-web-protocols.js +4 -1
- package/dist/server/builder/execution-web-protocols.js.map +1 -1
- package/dist/server/builder/operation-registrar.d.ts +1 -0
- package/dist/server/builder/operation-registrar.d.ts.map +1 -1
- package/dist/server/builder/operation-registrar.js +2 -1
- package/dist/server/builder/operation-registrar.js.map +1 -1
- package/dist/server/builder/policy-bridges.d.ts.map +1 -1
- package/dist/server/builder/policy-bridges.js +34 -36
- package/dist/server/builder/policy-bridges.js.map +1 -1
- package/dist/server/builder/programmatic-registration.d.ts.map +1 -1
- package/dist/server/builder/programmatic-registration.js +21 -1
- package/dist/server/builder/programmatic-registration.js.map +1 -1
- package/dist/server/builder/protocol-namespaces.d.ts.map +1 -1
- package/dist/server/builder/protocol-namespaces.js +3 -2
- package/dist/server/builder/protocol-namespaces.js.map +1 -1
- package/dist/server/builder/single-port-utils.js +2 -2
- package/dist/server/builder/single-port-utils.js.map +1 -1
- package/dist/server/builder.js +4 -1
- package/dist/server/builder.js.map +1 -1
- package/dist/server/discovery-utils.d.ts.map +1 -1
- package/dist/server/discovery-utils.js +9 -1
- package/dist/server/discovery-utils.js.map +1 -1
- package/dist/server/fs-routes/discovery-sources.d.ts.map +1 -1
- package/dist/server/fs-routes/discovery-sources.js +7 -1
- package/dist/server/fs-routes/discovery-sources.js.map +1 -1
- package/dist/server/fs-routes/loader.d.ts.map +1 -1
- package/dist/server/fs-routes/loader.js +11 -2
- package/dist/server/fs-routes/loader.js.map +1 -1
- package/dist/server/fs-routes/tcp/loader.js +1 -1
- package/dist/server/fs-routes/tcp/loader.js.map +1 -1
- package/dist/server/fs-routes/tcp/types.d.ts +1 -1
- package/dist/server/fs-routes/tcp/types.d.ts.map +1 -1
- package/dist/server/fs-routes/types.d.ts +15 -3
- package/dist/server/fs-routes/types.d.ts.map +1 -1
- package/dist/server/fs-routes/udp/loader.js +1 -1
- package/dist/server/fs-routes/udp/loader.js.map +1 -1
- package/dist/server/fs-routes/udp/types.d.ts +1 -1
- package/dist/server/fs-routes/udp/types.d.ts.map +1 -1
- package/dist/server/handler-builders.d.ts +3 -4
- package/dist/server/handler-builders.d.ts.map +1 -1
- package/dist/server/handler-builders.js +48 -2
- package/dist/server/handler-builders.js.map +1 -1
- package/dist/server/port-binding.js +1 -1
- package/dist/server/port-binding.js.map +1 -1
- package/dist/server/route-discovery.d.ts +3 -4
- package/dist/server/route-discovery.d.ts.map +1 -1
- package/dist/server/route-discovery.js +3 -1
- package/dist/server/route-discovery.js.map +1 -1
- package/dist/server/router-module.d.ts +5 -4
- package/dist/server/router-module.d.ts.map +1 -1
- package/dist/server/router-module.js +42 -0
- package/dist/server/router-module.js.map +1 -1
- package/dist/server/types/config-types.d.ts +4 -4
- package/dist/server/types/config-types.d.ts.map +1 -1
- package/dist/server/types/handler-types.d.ts +30 -8
- package/dist/server/types/handler-types.d.ts.map +1 -1
- package/dist/server/types/protocol-namespace-types.d.ts +5 -1
- package/dist/server/types/protocol-namespace-types.d.ts.map +1 -1
- package/dist/stream/index.d.ts +2 -0
- package/dist/stream/index.d.ts.map +1 -1
- package/dist/stream/index.js +2 -0
- package/dist/stream/index.js.map +1 -1
- package/dist/stream/projections.d.ts +4 -0
- package/dist/stream/projections.d.ts.map +1 -0
- package/dist/stream/projections.js +38 -0
- package/dist/stream/projections.js.map +1 -0
- package/dist/stream/resumable.d.ts +8 -0
- package/dist/stream/resumable.d.ts.map +1 -0
- package/dist/stream/resumable.js +72 -0
- package/dist/stream/resumable.js.map +1 -0
- package/dist/testing/mock-proxy-server.d.ts +2 -0
- package/dist/testing/mock-proxy-server.d.ts.map +1 -1
- package/dist/testing/mock-proxy-server.js +2 -1
- package/dist/testing/mock-proxy-server.js.map +1 -1
- package/dist/types/handlers.d.ts +124 -1
- package/dist/types/handlers.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/ui/core/registry.d.ts +10 -1
- package/dist/ui/core/registry.d.ts.map +1 -1
- package/dist/ui/core/router.d.ts.map +1 -1
- package/dist/ui/docs/generators/graphql-generator.d.ts.map +1 -1
- package/dist/ui/docs/generators/streams-generator.d.ts.map +1 -1
- package/dist/ui/docs/generators/websocket-generator.d.ts.map +1 -1
- package/dist/ui/docs/openapi/generator.d.ts +3 -0
- package/dist/ui/docs/openapi/generator.d.ts.map +1 -1
- package/dist/ui/docs/try-it-proxy.d.ts.map +1 -1
- package/dist/ui/docs/ui/client-script/endpoint-details.d.ts +1 -1
- package/dist/ui/docs/ui/client-script/endpoint-details.d.ts.map +1 -1
- package/dist/ui/docs/ui/html-builder.d.ts.map +1 -1
- package/dist/ui/docs/ui/style-sections/projection-diagnostics.d.ts +2 -0
- package/dist/ui/docs/ui/style-sections/projection-diagnostics.d.ts.map +1 -0
- package/dist/ui/docs/ui/styles.d.ts.map +1 -1
- package/dist/ui/docs/usd-middleware.d.ts.map +1 -1
- package/dist/ui/graphql/adapter.d.ts +2 -0
- package/dist/ui/graphql/adapter.d.ts.map +1 -1
- package/dist/ui/graphql/artifacts.d.ts +16 -0
- package/dist/ui/graphql/artifacts.d.ts.map +1 -0
- package/dist/ui/graphql/index.d.ts +8 -3
- package/dist/ui/graphql/index.d.ts.map +1 -1
- package/dist/ui/graphql/persisted-operations.d.ts +16 -0
- package/dist/ui/graphql/persisted-operations.d.ts.map +1 -0
- package/dist/ui/graphql/resource.d.ts +53 -1
- package/dist/ui/graphql/resource.d.ts.map +1 -1
- package/dist/ui/graphql/schema-generator.d.ts +5 -1
- package/dist/ui/graphql/schema-generator.d.ts.map +1 -1
- package/dist/ui/graphql/security.d.ts +36 -0
- package/dist/ui/graphql/security.d.ts.map +1 -0
- package/dist/ui/graphql/types.d.ts +76 -2
- package/dist/ui/graphql/types.d.ts.map +1 -1
- package/dist/ui/http/context.d.ts +6 -2
- package/dist/ui/http/context.d.ts.map +1 -1
- package/dist/ui/middleware/auth/oauth2.d.ts +1 -1
- package/dist/ui/middleware/auth/oauth2.d.ts.map +1 -1
- package/dist/ui/middleware/auth.d.ts +6 -0
- package/dist/ui/middleware/auth.d.ts.map +1 -1
- package/dist/ui/protocols/mcp/types.d.ts +10 -0
- package/dist/ui/protocols/mcp/types.d.ts.map +1 -1
- package/dist/ui/server/fs-routes/discovery-sources.d.ts.map +1 -1
- package/dist/ui/server/fs-routes/loader.d.ts.map +1 -1
- package/dist/ui/server/fs-routes/tcp/types.d.ts +1 -1
- package/dist/ui/server/fs-routes/tcp/types.d.ts.map +1 -1
- package/dist/ui/server/fs-routes/types.d.ts +15 -3
- package/dist/ui/server/fs-routes/types.d.ts.map +1 -1
- package/dist/ui/server/fs-routes/udp/types.d.ts +1 -1
- package/dist/ui/server/fs-routes/udp/types.d.ts.map +1 -1
- package/dist/ui/stream/projections.d.ts +4 -0
- package/dist/ui/stream/projections.d.ts.map +1 -0
- package/dist/ui/stream/resumable.d.ts +8 -0
- package/dist/ui/stream/resumable.d.ts.map +1 -0
- package/dist/ui/types/handlers.d.ts +124 -1
- package/dist/ui/types/handlers.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +1 -1
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/ui/usd/builder/http.d.ts +1 -0
- package/dist/ui/usd/builder/http.d.ts.map +1 -1
- package/dist/ui/usd/builder/streams.d.ts +3 -0
- package/dist/ui/usd/builder/streams.d.ts.map +1 -1
- package/dist/ui/usd/spec/protocol-types.d.ts +11 -0
- package/dist/ui/usd/spec/protocol-types.d.ts.map +1 -1
- package/dist/ui/usd/spec/types.d.ts +2 -0
- package/dist/ui/usd/spec/types.d.ts.map +1 -1
- package/dist/ui/usd/validator/schema.d.ts +168 -0
- package/dist/ui/usd/validator/schema.d.ts.map +1 -1
- package/dist/ui/utils/header-metadata.d.ts.map +1 -1
- package/dist/ui/validation/types.d.ts +2 -0
- package/dist/ui/validation/types.d.ts.map +1 -1
- package/dist/usd/builder/http.d.ts +1 -0
- package/dist/usd/builder/http.d.ts.map +1 -1
- package/dist/usd/builder/http.js +4 -0
- package/dist/usd/builder/http.js.map +1 -1
- package/dist/usd/builder/streams.d.ts +3 -0
- package/dist/usd/builder/streams.d.ts.map +1 -1
- package/dist/usd/builder/streams.js +10 -0
- package/dist/usd/builder/streams.js.map +1 -1
- package/dist/usd/spec/protocol-types.d.ts +11 -0
- package/dist/usd/spec/protocol-types.d.ts.map +1 -1
- package/dist/usd/spec/types.d.ts +2 -0
- package/dist/usd/spec/types.d.ts.map +1 -1
- package/dist/usd/spec/types.js.map +1 -1
- package/dist/usd/validator/schema.d.ts +168 -0
- package/dist/usd/validator/schema.d.ts.map +1 -1
- package/dist/usd/validator/schema.js +71 -0
- package/dist/usd/validator/schema.js.map +1 -1
- package/dist/utils/certs.js +2 -2
- package/dist/utils/certs.js.map +1 -1
- package/dist/utils/header-metadata.d.ts.map +1 -1
- package/dist/utils/header-metadata.js +1 -0
- package/dist/utils/header-metadata.js.map +1 -1
- package/dist/validation/types.d.ts +2 -0
- package/dist/validation/types.d.ts.map +1 -1
- package/dist/validation/types.js.map +1 -1
- package/package.json +8 -2
|
@@ -62,6 +62,11 @@ let searchQuery = '';
|
|
|
62
62
|
let routeState = parseRouteHash();
|
|
63
63
|
let activePagePath = resolveDocsAlias(routeState.pagePath);
|
|
64
64
|
let activeHeadingId = routeState.headingId;
|
|
65
|
+
// Authentication material is deliberately memory-only. Persisting API keys,
|
|
66
|
+
// tokens, or OAuth client secrets in Web Storage makes them available to any
|
|
67
|
+
// script running on the documentation origin.
|
|
68
|
+
const credentialMemory = new Map();
|
|
69
|
+
const pendingOAuthMemory = new Map();
|
|
65
70
|
const docsPlugins = [];
|
|
66
71
|
const themeStorageKey = 'raffel-docs-theme';
|
|
67
72
|
const sidebarWidthStorageKey = 'raffel-docs-sidebar-width';
|
|
@@ -140,12 +145,22 @@ function unmountDocsComponents(root = doc) {
|
|
|
140
145
|
function esc(value) {
|
|
141
146
|
if (value === undefined || value === null)
|
|
142
147
|
return '';
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
let escaped = '';
|
|
149
|
+
for (const character of String(value)) {
|
|
150
|
+
if (character === '&')
|
|
151
|
+
escaped += '&';
|
|
152
|
+
else if (character === '<')
|
|
153
|
+
escaped += '<';
|
|
154
|
+
else if (character === '>')
|
|
155
|
+
escaped += '>';
|
|
156
|
+
else if (character === '"')
|
|
157
|
+
escaped += '"';
|
|
158
|
+
else if (character === "'")
|
|
159
|
+
escaped += ''';
|
|
160
|
+
else
|
|
161
|
+
escaped += character;
|
|
162
|
+
}
|
|
163
|
+
return escaped;
|
|
149
164
|
}
|
|
150
165
|
function slugifyHeading(value) {
|
|
151
166
|
return String(value ?? '')
|
|
@@ -2288,6 +2303,19 @@ function renderEndpointDetails(endpoint) {
|
|
|
2288
2303
|
left.className = 'endpoint-left';
|
|
2289
2304
|
const right = doc.createElement('div');
|
|
2290
2305
|
right.className = 'endpoint-right';
|
|
2306
|
+
const longPoll = data['x-usd-long-poll'] ?? data['x-raffel-long-poll'];
|
|
2307
|
+
if (longPoll) {
|
|
2308
|
+
const section = doc.createElement('div');
|
|
2309
|
+
section.className = 'endpoint-subsection long-poll-interaction';
|
|
2310
|
+
section.innerHTML = '<div class="subsection-label">Long Poll Interaction</div>';
|
|
2311
|
+
appendInfoGrid(section, [
|
|
2312
|
+
['Cursor', `${longPoll.cursor?.input ?? 'cursor'} → ${longPoll.cursor?.output ?? 'cursor'} (${longPoll.cursor?.semantics ?? 'exclusive'})`],
|
|
2313
|
+
['Maximum wait', longPoll.waitMs ? `${longPoll.waitMs} ms` : undefined],
|
|
2314
|
+
['Retry hint', longPoll.retryMs ? `${longPoll.retryMs} ms` : undefined],
|
|
2315
|
+
['Timeout outcome', longPoll.timeoutOutcome],
|
|
2316
|
+
]);
|
|
2317
|
+
left.appendChild(section);
|
|
2318
|
+
}
|
|
2291
2319
|
const params = (data.parameters ?? []);
|
|
2292
2320
|
if (params.length > 0) {
|
|
2293
2321
|
const section = doc.createElement('div');
|
|
@@ -2395,7 +2423,15 @@ function renderEndpointDetails(endpoint) {
|
|
|
2395
2423
|
appendMany([['Arguments', data.args], ['Input', data.input], ['Output', data.output], ['Schema', data.schema], ['Relations', data.relations], ['Authorize', data.authorize], ['Authorization', data.authz], ['Policies', data.policies]]);
|
|
2396
2424
|
}
|
|
2397
2425
|
if (activeProtocol === 'streams') {
|
|
2398
|
-
|
|
2426
|
+
const resumable = data['x-usd-resumable'];
|
|
2427
|
+
appendInfoGrid(container, [
|
|
2428
|
+
['Direction', data.direction],
|
|
2429
|
+
['Path', endpoint.path],
|
|
2430
|
+
['Delivery', resumable?.delivery],
|
|
2431
|
+
['Resume Cursor', resumable?.cursor?.header],
|
|
2432
|
+
['Snapshot event', resumable?.snapshot?.event],
|
|
2433
|
+
]);
|
|
2434
|
+
appendStreamProjectionDiagnostics(container, resumable?.projections);
|
|
2399
2435
|
appendMany([['Parameters', parameterMapToSchema(data.parameters)], ['Message Schema', resolveMessagePayload(data.message)]]);
|
|
2400
2436
|
}
|
|
2401
2437
|
if (activeProtocol === 'jsonrpc') {
|
|
@@ -2412,11 +2448,46 @@ function renderEndpointDetails(endpoint) {
|
|
|
2412
2448
|
appendMany([['Framing', data.framing], ['Inbound Message', resolveMessagePayload(data.messages?.inbound)], ['Outbound Message', resolveMessagePayload(data.messages?.outbound)]]);
|
|
2413
2449
|
}
|
|
2414
2450
|
if (activeProtocol === 'udp') {
|
|
2415
|
-
appendInfoGrid(container, [['Host', data.host ?? '
|
|
2451
|
+
appendInfoGrid(container, [['Host', data.host ?? '127.0.0.1'], ['Port', data.port], ['Max Packet', data.maxPacketSize ? `${data.maxPacketSize} bytes` : undefined]]);
|
|
2416
2452
|
appendMany([['Inbound Message', resolveMessagePayload(data.messages?.inbound)], ['Outbound Message', resolveMessagePayload(data.messages?.outbound)], ['Message Schema', resolveMessagePayload(data.message)]]);
|
|
2417
2453
|
}
|
|
2418
2454
|
return container;
|
|
2419
2455
|
}
|
|
2456
|
+
function appendStreamProjectionDiagnostics(container, projections) {
|
|
2457
|
+
if (!projections || typeof projections !== 'object')
|
|
2458
|
+
return;
|
|
2459
|
+
const labels = {
|
|
2460
|
+
httpSse: 'HTTP / SSE',
|
|
2461
|
+
websocket: 'WebSocket',
|
|
2462
|
+
grpc: 'gRPC',
|
|
2463
|
+
};
|
|
2464
|
+
const entries = Object.entries(projections);
|
|
2465
|
+
if (entries.length === 0)
|
|
2466
|
+
return;
|
|
2467
|
+
const section = doc.createElement('div');
|
|
2468
|
+
section.className = 'endpoint-subsection stream-projection-diagnostics';
|
|
2469
|
+
section.innerHTML = '<div class="subsection-label">Projection diagnostics</div>';
|
|
2470
|
+
const grid = doc.createElement('div');
|
|
2471
|
+
grid.className = 'projection-diagnostic-grid';
|
|
2472
|
+
for (const [name, diagnostic] of entries) {
|
|
2473
|
+
const declaredStatus = String(diagnostic?.status ?? '');
|
|
2474
|
+
const status = ['preserved', 'adapted', 'unsupported'].includes(declaredStatus)
|
|
2475
|
+
? declaredStatus
|
|
2476
|
+
: 'unsupported';
|
|
2477
|
+
const card = doc.createElement('div');
|
|
2478
|
+
card.className = `projection-diagnostic projection-${status}`;
|
|
2479
|
+
const details = [
|
|
2480
|
+
diagnostic?.transport,
|
|
2481
|
+
diagnostic?.resumeCursor ? `resume: ${diagnostic.resumeCursor}` : undefined,
|
|
2482
|
+
diagnostic?.recordCursor ? `records: ${diagnostic.recordCursor}` : undefined,
|
|
2483
|
+
diagnostic?.snapshot ? `snapshot: ${diagnostic.snapshot}` : undefined,
|
|
2484
|
+
].filter(Boolean);
|
|
2485
|
+
card.innerHTML = `<div class="projection-diagnostic-heading"><strong>${esc(labels[name] ?? name)}</strong><span>${esc(status)}</span></div>${details.length ? `<div class="projection-diagnostic-details">${details.map(esc).join(' · ')}</div>` : ''}${diagnostic?.reason ? `<div class="projection-diagnostic-reason">${esc(diagnostic.reason)}</div>` : ''}`;
|
|
2486
|
+
grid.appendChild(card);
|
|
2487
|
+
}
|
|
2488
|
+
section.appendChild(grid);
|
|
2489
|
+
container.appendChild(section);
|
|
2490
|
+
}
|
|
2420
2491
|
function parameterMapToSchema(parameters) {
|
|
2421
2492
|
if (!parameters || typeof parameters !== 'object' || Object.keys(parameters).length === 0)
|
|
2422
2493
|
return null;
|
|
@@ -2485,19 +2556,10 @@ function credentialStorageKey(schemeName) {
|
|
|
2485
2556
|
return `raffel-docs:auth:${encodeURIComponent(selectedEnvironmentUrl)}:${encodeURIComponent(schemeName)}`;
|
|
2486
2557
|
}
|
|
2487
2558
|
function readStoredCredential(schemeName) {
|
|
2488
|
-
|
|
2489
|
-
const value = win.sessionStorage?.getItem?.(credentialStorageKey(schemeName));
|
|
2490
|
-
return value ? JSON.parse(value) : {};
|
|
2491
|
-
}
|
|
2492
|
-
catch {
|
|
2493
|
-
return {};
|
|
2494
|
-
}
|
|
2559
|
+
return { ...(credentialMemory.get(credentialStorageKey(schemeName)) ?? {}) };
|
|
2495
2560
|
}
|
|
2496
2561
|
function storeCredential(schemeName, value) {
|
|
2497
|
-
|
|
2498
|
-
win.sessionStorage?.setItem?.(credentialStorageKey(schemeName), JSON.stringify(value));
|
|
2499
|
-
}
|
|
2500
|
-
catch { /* unavailable storage */ }
|
|
2562
|
+
credentialMemory.set(credentialStorageKey(schemeName), { ...value });
|
|
2501
2563
|
}
|
|
2502
2564
|
function authSchemeKind(scheme) {
|
|
2503
2565
|
if (scheme?.type === 'http' && String(scheme.scheme).toLowerCase() === 'bearer')
|
|
@@ -2718,6 +2780,9 @@ async function startOAuthAuthorization(schemeName, flowName, flow, fieldset) {
|
|
|
2718
2780
|
const state = randomOAuthState();
|
|
2719
2781
|
const authorization = new URL(flow.authorizationUrl);
|
|
2720
2782
|
const popup = win.open?.('', 'raffel-oauth', 'popup,width=540,height=720');
|
|
2783
|
+
if (!popup) {
|
|
2784
|
+
throw new Error('OAuth authorization requires popups so credentials can remain memory-only.');
|
|
2785
|
+
}
|
|
2721
2786
|
authorization.searchParams.set('response_type', flowName === 'implicit' ? 'token' : 'code');
|
|
2722
2787
|
authorization.searchParams.set('client_id', value('clientId'));
|
|
2723
2788
|
authorization.searchParams.set('redirect_uri', redirectUri);
|
|
@@ -2731,23 +2796,15 @@ async function startOAuthAuthorization(schemeName, flowName, flow, fieldset) {
|
|
|
2731
2796
|
authorization.searchParams.set('code_challenge', pkce.challenge);
|
|
2732
2797
|
authorization.searchParams.set('code_challenge_method', pkce.method);
|
|
2733
2798
|
}
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
if (typeof popup.location?.replace === 'function')
|
|
2744
|
-
popup.location.replace(authorization.toString());
|
|
2745
|
-
else
|
|
2746
|
-
popup.location = authorization.toString();
|
|
2747
|
-
}
|
|
2748
|
-
else {
|
|
2749
|
-
win.location?.assign?.(authorization.toString());
|
|
2750
|
-
}
|
|
2799
|
+
pendingOAuthMemory.set(state, {
|
|
2800
|
+
schemeName, flowName, state, redirectUri, tokenUrl: flow.tokenUrl,
|
|
2801
|
+
clientId: value('clientId'), clientSecret: value('clientSecret'), scopes: value('scopes'),
|
|
2802
|
+
codeVerifier,
|
|
2803
|
+
});
|
|
2804
|
+
if (typeof popup.location?.replace === 'function')
|
|
2805
|
+
popup.location.replace(authorization.toString());
|
|
2806
|
+
else
|
|
2807
|
+
popup.location = authorization.toString();
|
|
2751
2808
|
}
|
|
2752
2809
|
function appendOAuthFlowFields(form, schemeName, scheme, stored) {
|
|
2753
2810
|
Object.entries(scheme.flows ?? {}).forEach(([flowName, flow]) => {
|
|
@@ -2843,19 +2900,8 @@ function oauthCallbackParams() {
|
|
|
2843
2900
|
function findPendingOAuth(state) {
|
|
2844
2901
|
if (!state)
|
|
2845
2902
|
return null;
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
const key = `${credentialStorageKey(schemeName)}:pending`;
|
|
2849
|
-
const raw = win.sessionStorage?.getItem?.(key);
|
|
2850
|
-
if (!raw)
|
|
2851
|
-
continue;
|
|
2852
|
-
const pending = JSON.parse(raw);
|
|
2853
|
-
if (pending.state === state)
|
|
2854
|
-
return { ...pending, key };
|
|
2855
|
-
}
|
|
2856
|
-
catch { /* ignore malformed pending state */ }
|
|
2857
|
-
}
|
|
2858
|
-
return null;
|
|
2903
|
+
const pending = pendingOAuthMemory.get(state);
|
|
2904
|
+
return pending ? { ...pending } : null;
|
|
2859
2905
|
}
|
|
2860
2906
|
async function finishOAuthAuthorization(params) {
|
|
2861
2907
|
const pending = findPendingOAuth(params.get('state'));
|
|
@@ -2898,10 +2944,7 @@ async function finishOAuthAuthorization(params) {
|
|
|
2898
2944
|
scopes: pending.scopes,
|
|
2899
2945
|
tokenUrl: pending.tokenUrl,
|
|
2900
2946
|
});
|
|
2901
|
-
|
|
2902
|
-
win.sessionStorage?.removeItem?.(pending.key);
|
|
2903
|
-
}
|
|
2904
|
-
catch { /* unavailable storage */ }
|
|
2947
|
+
pendingOAuthMemory.delete(pending.state);
|
|
2905
2948
|
render();
|
|
2906
2949
|
}
|
|
2907
2950
|
function clearOAuthCallbackLocation() {
|
|
@@ -3652,7 +3695,10 @@ async function renderMermaidDiagrams(root = doc) {
|
|
|
3652
3695
|
const id = `raffel-mermaid-${Date.now()}-${index}`;
|
|
3653
3696
|
Promise.resolve(mermaid.render(id, source))
|
|
3654
3697
|
.then((result) => {
|
|
3655
|
-
|
|
3698
|
+
const safeSvg = parseMermaidSvg(typeof result === 'string' ? result : result.svg);
|
|
3699
|
+
if (!safeSvg)
|
|
3700
|
+
throw new Error('Mermaid returned invalid SVG output.');
|
|
3701
|
+
diagram.replaceChildren(safeSvg);
|
|
3656
3702
|
result?.bindFunctions?.(diagram);
|
|
3657
3703
|
diagram.dataset.mermaidRendered = 'true';
|
|
3658
3704
|
diagram.classList.remove('mermaid-fallback', 'mermaid-error');
|
|
@@ -3666,6 +3712,26 @@ async function renderMermaidDiagrams(root = doc) {
|
|
|
3666
3712
|
});
|
|
3667
3713
|
});
|
|
3668
3714
|
}
|
|
3715
|
+
function parseMermaidSvg(markup) {
|
|
3716
|
+
const Parser = win.DOMParser;
|
|
3717
|
+
if (typeof Parser !== 'function')
|
|
3718
|
+
return null;
|
|
3719
|
+
const parsed = new Parser().parseFromString(String(markup ?? ''), 'image/svg+xml');
|
|
3720
|
+
const svg = parsed?.documentElement;
|
|
3721
|
+
if (!svg || String(svg.localName).toLowerCase() !== 'svg')
|
|
3722
|
+
return null;
|
|
3723
|
+
svg.querySelectorAll?.('script, foreignObject, iframe, object, embed, link')?.forEach((node) => node.remove());
|
|
3724
|
+
[svg, ...Array.from(svg.querySelectorAll?.('*') ?? [])].forEach((element) => {
|
|
3725
|
+
for (const attribute of Array.from(element.attributes ?? [])) {
|
|
3726
|
+
const name = String(attribute.name).toLowerCase();
|
|
3727
|
+
const value = String(attribute.value).trim().toLowerCase();
|
|
3728
|
+
if (name.startsWith('on') || ((name === 'href' || name === 'xlink:href') && !value.startsWith('#'))) {
|
|
3729
|
+
element.removeAttribute(attribute.name);
|
|
3730
|
+
}
|
|
3731
|
+
}
|
|
3732
|
+
});
|
|
3733
|
+
return doc.importNode?.(svg, true) ?? svg.cloneNode(true);
|
|
3734
|
+
}
|
|
3669
3735
|
/**
|
|
3670
3736
|
* Wrap a freshly rendered Mermaid SVG in a viewer overlay:
|
|
3671
3737
|
* • toolbar (zoom in/out/reset/fullscreen) — fades in on hover
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Embedded docs UI client script chunk.
|
|
3
3
|
*/
|
|
4
|
-
export declare const endpointDetailsClientScript = " function resolveEffectiveContentTypes(operationTypes, protocolTypes) {\n const globalTypes = (xUsd && xUsd.contentTypes) ? xUsd.contentTypes : {};\n const defaultType =\n (operationTypes && operationTypes.default) ||\n (protocolTypes && protocolTypes.default) ||\n globalTypes.default ||\n 'application/json';\n const supportedList =\n (operationTypes && operationTypes.supported) ||\n (protocolTypes && protocolTypes.supported) ||\n globalTypes.supported ||\n [];\n const supported = Array.isArray(supportedList) ? supportedList.slice() : [];\n if (defaultType && supported.indexOf(defaultType) === -1) {\n supported.unshift(defaultType);\n }\n return { default: defaultType, supported };\n }\n\n function appendContentTypes(container, label, contentTypes) {\n if (!contentTypes) return;\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">' + esc(label) + '</div>';\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n const supportedText = (contentTypes.supported && contentTypes.supported.length > 0)\n ? contentTypes.supported.join(', ')\n : contentTypes.default;\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Default</div><div class=\"info-card-value\">' +\n esc(contentTypes.default || 'application/json') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Supported</div><div class=\"info-card-value\">' +\n esc(supportedText || 'application/json') + '</div></div>';\n section.appendChild(grid);\n container.appendChild(section);\n }\n\n function renderEndpointDetails(ep) {\n const container = document.createElement('div');\n const data = ep.data;\n\n // HTTP-specific (Redoc-style layout)\n if (activeProtocol === 'http') {\n // AUTHORIZATIONS section\n if (data.security && data.security.length > 0) {\n const authSection = document.createElement('div');\n authSection.className = 'endpoint-subsection';\n authSection.innerHTML = '<div class=\"subsection-label\">AUTHORIZATIONS:</div>';\n const authValue = document.createElement('span');\n authValue.className = 'auth-value';\n const authNames = data.security.flatMap(s => Object.keys(s));\n authValue.textContent = authNames.join(', ') || 'None';\n authSection.appendChild(authValue);\n container.appendChild(authSection);\n }\n\n // PATH PARAMETERS\n const pathParams = (data.parameters || []).filter(p => p.in === 'path');\n if (pathParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">PATH PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(pathParams));\n container.appendChild(section);\n }\n\n // QUERY PARAMETERS\n const queryParams = (data.parameters || []).filter(p => p.in === 'query');\n if (queryParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">QUERY PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(queryParams));\n container.appendChild(section);\n }\n\n // HEADER PARAMETERS\n const headerParams = (data.parameters || []).filter(p => p.in === 'header');\n if (headerParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">HEADER PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(headerParams));\n container.appendChild(section);\n }\n }\n\n // WebSocket-specific\n if (activeProtocol === 'websocket') {\n if (data.type) {\n const badge = document.createElement('span');\n badge.className = 'badge channel-type-' + data.type;\n badge.textContent = data.type;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n if (data.subscribe) {\n appendContentTypes(\n container,\n 'Subscribe Content Types',\n resolveEffectiveContentTypes(data.subscribe?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.publish) {\n appendContentTypes(\n container,\n 'Publish Content Types',\n resolveEffectiveContentTypes(data.publish?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.parameters) {\n const paramSchema = { type: 'object', properties: {}, required: [] };\n Object.entries(data.parameters).forEach(([name, param]) => {\n const schema = param.schema || { type: 'string' };\n if (param.description) schema.description = param.description;\n paramSchema.properties[name] = schema;\n if (param.required) paramSchema.required.push(name);\n });\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(paramSchema, paramSchema.required, 0);\n container.appendChild(schemaEl);\n }\n const subscribePayload = resolveMessagePayload(data.subscribe?.message);\n if (subscribePayload) {\n const h = document.createElement('h4');\n h.textContent = 'Subscribe (receive)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(subscribePayload, [], 0);\n container.appendChild(schemaEl);\n }\n const publishPayload = resolveMessagePayload(data.publish?.message);\n if (publishPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Publish (send)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(publishPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // Streams-specific\n if (activeProtocol === 'streams') {\n if (data.direction) {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = data.direction;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, streamsSpec?.contentTypes)\n );\n const streamPayload = resolveMessagePayload(data.message);\n if (streamPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(streamPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // JSON-RPC-specific\n if (activeProtocol === 'jsonrpc') {\n if (data['x-usd-notification'] || data['x-usd-streaming']) {\n const flags = [];\n if (data['x-usd-notification']) flags.push('notification');\n if (data['x-usd-streaming']) flags.push('streaming');\n const info = document.createElement('div');\n info.style.marginBottom = '16px';\n info.innerHTML = flags.map(f => '<span class=\"badge badge-rpc\" style=\"margin-right: 6px;\">' + esc(f) + '</span>').join('');\n container.appendChild(info);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, jsonrpcSpec?.contentTypes)\n );\n if (data.params) {\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.params, data.params.required || [], 0);\n container.appendChild(schemaEl);\n }\n if (data.result) {\n const h = document.createElement('h4');\n h.textContent = 'Result';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.result, [], 0);\n container.appendChild(schemaEl);\n }\n if (Array.isArray(data.errors) && data.errors.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">Errors</div>';\n data.errors.forEach((err) => {\n const card = document.createElement('div');\n card.className = 'info-card';\n card.innerHTML =\n '<div class=\"info-card-title\">' + esc(err.code) + '</div>' +\n '<div class=\"info-card-value\">' + esc(err.message) + '</div>' +\n (err.description ? '<div class=\"info-card-subtitle\">' + esc(err.description) + '</div>' : '');\n section.appendChild(card);\n if (err.data) {\n const schemaEl = renderSchemaProperties(err.data, [], 0);\n section.appendChild(schemaEl);\n }\n });\n container.appendChild(section);\n }\n }\n\n // gRPC-specific\n if (activeProtocol === 'grpc') {\n const method = data.method;\n if (method) {\n const methodType = getGrpcMethodType(method);\n if (methodType && methodType !== 'unary') {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = methodType.replace('_', ' ');\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(method.contentTypes, grpcSpec?.contentTypes)\n );\n if (method.input) {\n const h = document.createElement('h4');\n h.textContent = 'Request';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.input, [], 0);\n container.appendChild(schemaEl);\n }\n if (method.output) {\n const h = document.createElement('h4');\n h.textContent = 'Response';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.output, [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // TCP-specific\n if (activeProtocol === 'tcp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || 'localhost') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n (data.tls?.enabled ? '<div class=\"info-card\"><div class=\"info-card-title\">TLS</div><div class=\"info-card-value\">Enabled</div></div>' : '');\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, tcpSpec?.contentTypes)\n );\n if (data.framing) {\n const h = document.createElement('h4');\n h.textContent = 'Framing';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.framing, [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.inbound || data.messages?.outbound) {\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // UDP-specific\n if (activeProtocol === 'udp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || '0.0.0.0') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Max Packet</div><div class=\"info-card-value\">' +\n (data.maxPacketSize || 65507) + ' bytes</div></div>';\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, udpSpec?.contentTypes)\n );\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (!data.messages?.inbound && !data.messages?.outbound && data.message) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.message), [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n return container;\n }\n\n function getGrpcMethodType(method) {\n const client = method['x-usd-client-streaming'];\n const server = method['x-usd-server-streaming'];\n if (client && server) return 'bidirectional';\n if (client) return 'client_streaming';\n if (server) return 'server_streaming';\n return 'unary';\n }\n\n function resolveMessagePayload(message) {\n if (!message) return null;\n if (message.$ref) {\n const resolved = resolveRef(message.$ref);\n if (resolved && resolved.payload) return resolved.payload;\n return resolved || message;\n }\n if (message.payload) return message.payload;\n return message;\n }\n\n";
|
|
4
|
+
export declare const endpointDetailsClientScript = " function resolveEffectiveContentTypes(operationTypes, protocolTypes) {\n const globalTypes = (xUsd && xUsd.contentTypes) ? xUsd.contentTypes : {};\n const defaultType =\n (operationTypes && operationTypes.default) ||\n (protocolTypes && protocolTypes.default) ||\n globalTypes.default ||\n 'application/json';\n const supportedList =\n (operationTypes && operationTypes.supported) ||\n (protocolTypes && protocolTypes.supported) ||\n globalTypes.supported ||\n [];\n const supported = Array.isArray(supportedList) ? supportedList.slice() : [];\n if (defaultType && supported.indexOf(defaultType) === -1) {\n supported.unshift(defaultType);\n }\n return { default: defaultType, supported };\n }\n\n function appendContentTypes(container, label, contentTypes) {\n if (!contentTypes) return;\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">' + esc(label) + '</div>';\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n const supportedText = (contentTypes.supported && contentTypes.supported.length > 0)\n ? contentTypes.supported.join(', ')\n : contentTypes.default;\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Default</div><div class=\"info-card-value\">' +\n esc(contentTypes.default || 'application/json') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Supported</div><div class=\"info-card-value\">' +\n esc(supportedText || 'application/json') + '</div></div>';\n section.appendChild(grid);\n container.appendChild(section);\n }\n\n function renderEndpointDetails(ep) {\n const container = document.createElement('div');\n const data = ep.data;\n\n // HTTP-specific (Redoc-style layout)\n if (activeProtocol === 'http') {\n // AUTHORIZATIONS section\n if (data.security && data.security.length > 0) {\n const authSection = document.createElement('div');\n authSection.className = 'endpoint-subsection';\n authSection.innerHTML = '<div class=\"subsection-label\">AUTHORIZATIONS:</div>';\n const authValue = document.createElement('span');\n authValue.className = 'auth-value';\n const authNames = data.security.flatMap(s => Object.keys(s));\n authValue.textContent = authNames.join(', ') || 'None';\n authSection.appendChild(authValue);\n container.appendChild(authSection);\n }\n\n // PATH PARAMETERS\n const pathParams = (data.parameters || []).filter(p => p.in === 'path');\n if (pathParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">PATH PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(pathParams));\n container.appendChild(section);\n }\n\n // QUERY PARAMETERS\n const queryParams = (data.parameters || []).filter(p => p.in === 'query');\n if (queryParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">QUERY PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(queryParams));\n container.appendChild(section);\n }\n\n // HEADER PARAMETERS\n const headerParams = (data.parameters || []).filter(p => p.in === 'header');\n if (headerParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">HEADER PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(headerParams));\n container.appendChild(section);\n }\n }\n\n // WebSocket-specific\n if (activeProtocol === 'websocket') {\n if (data.type) {\n const badge = document.createElement('span');\n badge.className = 'badge channel-type-' + data.type;\n badge.textContent = data.type;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n if (data.subscribe) {\n appendContentTypes(\n container,\n 'Subscribe Content Types',\n resolveEffectiveContentTypes(data.subscribe?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.publish) {\n appendContentTypes(\n container,\n 'Publish Content Types',\n resolveEffectiveContentTypes(data.publish?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.parameters) {\n const paramSchema = { type: 'object', properties: {}, required: [] };\n Object.entries(data.parameters).forEach(([name, param]) => {\n const schema = param.schema || { type: 'string' };\n if (param.description) schema.description = param.description;\n paramSchema.properties[name] = schema;\n if (param.required) paramSchema.required.push(name);\n });\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(paramSchema, paramSchema.required, 0);\n container.appendChild(schemaEl);\n }\n const subscribePayload = resolveMessagePayload(data.subscribe?.message);\n if (subscribePayload) {\n const h = document.createElement('h4');\n h.textContent = 'Subscribe (receive)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(subscribePayload, [], 0);\n container.appendChild(schemaEl);\n }\n const publishPayload = resolveMessagePayload(data.publish?.message);\n if (publishPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Publish (send)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(publishPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // Streams-specific\n if (activeProtocol === 'streams') {\n if (data.direction) {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = data.direction;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, streamsSpec?.contentTypes)\n );\n const streamPayload = resolveMessagePayload(data.message);\n if (streamPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(streamPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // JSON-RPC-specific\n if (activeProtocol === 'jsonrpc') {\n if (data['x-usd-notification'] || data['x-usd-streaming']) {\n const flags = [];\n if (data['x-usd-notification']) flags.push('notification');\n if (data['x-usd-streaming']) flags.push('streaming');\n const info = document.createElement('div');\n info.style.marginBottom = '16px';\n info.innerHTML = flags.map(f => '<span class=\"badge badge-rpc\" style=\"margin-right: 6px;\">' + esc(f) + '</span>').join('');\n container.appendChild(info);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, jsonrpcSpec?.contentTypes)\n );\n if (data.params) {\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.params, data.params.required || [], 0);\n container.appendChild(schemaEl);\n }\n if (data.result) {\n const h = document.createElement('h4');\n h.textContent = 'Result';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.result, [], 0);\n container.appendChild(schemaEl);\n }\n if (Array.isArray(data.errors) && data.errors.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">Errors</div>';\n data.errors.forEach((err) => {\n const card = document.createElement('div');\n card.className = 'info-card';\n card.innerHTML =\n '<div class=\"info-card-title\">' + esc(err.code) + '</div>' +\n '<div class=\"info-card-value\">' + esc(err.message) + '</div>' +\n (err.description ? '<div class=\"info-card-subtitle\">' + esc(err.description) + '</div>' : '');\n section.appendChild(card);\n if (err.data) {\n const schemaEl = renderSchemaProperties(err.data, [], 0);\n section.appendChild(schemaEl);\n }\n });\n container.appendChild(section);\n }\n }\n\n // gRPC-specific\n if (activeProtocol === 'grpc') {\n const method = data.method;\n if (method) {\n const methodType = getGrpcMethodType(method);\n if (methodType && methodType !== 'unary') {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = methodType.replace('_', ' ');\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(method.contentTypes, grpcSpec?.contentTypes)\n );\n if (method.input) {\n const h = document.createElement('h4');\n h.textContent = 'Request';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.input, [], 0);\n container.appendChild(schemaEl);\n }\n if (method.output) {\n const h = document.createElement('h4');\n h.textContent = 'Response';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.output, [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // TCP-specific\n if (activeProtocol === 'tcp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || 'localhost') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n (data.tls?.enabled ? '<div class=\"info-card\"><div class=\"info-card-title\">TLS</div><div class=\"info-card-value\">Enabled</div></div>' : '');\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, tcpSpec?.contentTypes)\n );\n if (data.framing) {\n const h = document.createElement('h4');\n h.textContent = 'Framing';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.framing, [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.inbound || data.messages?.outbound) {\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // UDP-specific\n if (activeProtocol === 'udp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || '127.0.0.1') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Max Packet</div><div class=\"info-card-value\">' +\n (data.maxPacketSize || 65507) + ' bytes</div></div>';\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, udpSpec?.contentTypes)\n );\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (!data.messages?.inbound && !data.messages?.outbound && data.message) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.message), [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n return container;\n }\n\n function getGrpcMethodType(method) {\n const client = method['x-usd-client-streaming'];\n const server = method['x-usd-server-streaming'];\n if (client && server) return 'bidirectional';\n if (client) return 'client_streaming';\n if (server) return 'server_streaming';\n return 'unary';\n }\n\n function resolveMessagePayload(message) {\n if (!message) return null;\n if (message.$ref) {\n const resolved = resolveRef(message.$ref);\n if (resolved && resolved.payload) return resolved.payload;\n return resolved || message;\n }\n if (message.payload) return message.payload;\n return message;\n }\n\n";
|
|
5
5
|
//# sourceMappingURL=endpoint-details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-details.d.ts","sourceRoot":"","sources":["../../../../src/docs/ui/client-script/endpoint-details.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"endpoint-details.d.ts","sourceRoot":"","sources":["../../../../src/docs/ui/client-script/endpoint-details.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,2BAA2B,w/eAA0/e,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Embedded docs UI client script chunk.
|
|
3
3
|
*/
|
|
4
|
-
export const endpointDetailsClientScript = " function resolveEffectiveContentTypes(operationTypes, protocolTypes) {\n const globalTypes = (xUsd && xUsd.contentTypes) ? xUsd.contentTypes : {};\n const defaultType =\n (operationTypes && operationTypes.default) ||\n (protocolTypes && protocolTypes.default) ||\n globalTypes.default ||\n 'application/json';\n const supportedList =\n (operationTypes && operationTypes.supported) ||\n (protocolTypes && protocolTypes.supported) ||\n globalTypes.supported ||\n [];\n const supported = Array.isArray(supportedList) ? supportedList.slice() : [];\n if (defaultType && supported.indexOf(defaultType) === -1) {\n supported.unshift(defaultType);\n }\n return { default: defaultType, supported };\n }\n\n function appendContentTypes(container, label, contentTypes) {\n if (!contentTypes) return;\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">' + esc(label) + '</div>';\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n const supportedText = (contentTypes.supported && contentTypes.supported.length > 0)\n ? contentTypes.supported.join(', ')\n : contentTypes.default;\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Default</div><div class=\"info-card-value\">' +\n esc(contentTypes.default || 'application/json') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Supported</div><div class=\"info-card-value\">' +\n esc(supportedText || 'application/json') + '</div></div>';\n section.appendChild(grid);\n container.appendChild(section);\n }\n\n function renderEndpointDetails(ep) {\n const container = document.createElement('div');\n const data = ep.data;\n\n // HTTP-specific (Redoc-style layout)\n if (activeProtocol === 'http') {\n // AUTHORIZATIONS section\n if (data.security && data.security.length > 0) {\n const authSection = document.createElement('div');\n authSection.className = 'endpoint-subsection';\n authSection.innerHTML = '<div class=\"subsection-label\">AUTHORIZATIONS:</div>';\n const authValue = document.createElement('span');\n authValue.className = 'auth-value';\n const authNames = data.security.flatMap(s => Object.keys(s));\n authValue.textContent = authNames.join(', ') || 'None';\n authSection.appendChild(authValue);\n container.appendChild(authSection);\n }\n\n // PATH PARAMETERS\n const pathParams = (data.parameters || []).filter(p => p.in === 'path');\n if (pathParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">PATH PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(pathParams));\n container.appendChild(section);\n }\n\n // QUERY PARAMETERS\n const queryParams = (data.parameters || []).filter(p => p.in === 'query');\n if (queryParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">QUERY PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(queryParams));\n container.appendChild(section);\n }\n\n // HEADER PARAMETERS\n const headerParams = (data.parameters || []).filter(p => p.in === 'header');\n if (headerParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">HEADER PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(headerParams));\n container.appendChild(section);\n }\n }\n\n // WebSocket-specific\n if (activeProtocol === 'websocket') {\n if (data.type) {\n const badge = document.createElement('span');\n badge.className = 'badge channel-type-' + data.type;\n badge.textContent = data.type;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n if (data.subscribe) {\n appendContentTypes(\n container,\n 'Subscribe Content Types',\n resolveEffectiveContentTypes(data.subscribe?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.publish) {\n appendContentTypes(\n container,\n 'Publish Content Types',\n resolveEffectiveContentTypes(data.publish?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.parameters) {\n const paramSchema = { type: 'object', properties: {}, required: [] };\n Object.entries(data.parameters).forEach(([name, param]) => {\n const schema = param.schema || { type: 'string' };\n if (param.description) schema.description = param.description;\n paramSchema.properties[name] = schema;\n if (param.required) paramSchema.required.push(name);\n });\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(paramSchema, paramSchema.required, 0);\n container.appendChild(schemaEl);\n }\n const subscribePayload = resolveMessagePayload(data.subscribe?.message);\n if (subscribePayload) {\n const h = document.createElement('h4');\n h.textContent = 'Subscribe (receive)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(subscribePayload, [], 0);\n container.appendChild(schemaEl);\n }\n const publishPayload = resolveMessagePayload(data.publish?.message);\n if (publishPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Publish (send)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(publishPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // Streams-specific\n if (activeProtocol === 'streams') {\n if (data.direction) {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = data.direction;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, streamsSpec?.contentTypes)\n );\n const streamPayload = resolveMessagePayload(data.message);\n if (streamPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(streamPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // JSON-RPC-specific\n if (activeProtocol === 'jsonrpc') {\n if (data['x-usd-notification'] || data['x-usd-streaming']) {\n const flags = [];\n if (data['x-usd-notification']) flags.push('notification');\n if (data['x-usd-streaming']) flags.push('streaming');\n const info = document.createElement('div');\n info.style.marginBottom = '16px';\n info.innerHTML = flags.map(f => '<span class=\"badge badge-rpc\" style=\"margin-right: 6px;\">' + esc(f) + '</span>').join('');\n container.appendChild(info);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, jsonrpcSpec?.contentTypes)\n );\n if (data.params) {\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.params, data.params.required || [], 0);\n container.appendChild(schemaEl);\n }\n if (data.result) {\n const h = document.createElement('h4');\n h.textContent = 'Result';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.result, [], 0);\n container.appendChild(schemaEl);\n }\n if (Array.isArray(data.errors) && data.errors.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">Errors</div>';\n data.errors.forEach((err) => {\n const card = document.createElement('div');\n card.className = 'info-card';\n card.innerHTML =\n '<div class=\"info-card-title\">' + esc(err.code) + '</div>' +\n '<div class=\"info-card-value\">' + esc(err.message) + '</div>' +\n (err.description ? '<div class=\"info-card-subtitle\">' + esc(err.description) + '</div>' : '');\n section.appendChild(card);\n if (err.data) {\n const schemaEl = renderSchemaProperties(err.data, [], 0);\n section.appendChild(schemaEl);\n }\n });\n container.appendChild(section);\n }\n }\n\n // gRPC-specific\n if (activeProtocol === 'grpc') {\n const method = data.method;\n if (method) {\n const methodType = getGrpcMethodType(method);\n if (methodType && methodType !== 'unary') {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = methodType.replace('_', ' ');\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(method.contentTypes, grpcSpec?.contentTypes)\n );\n if (method.input) {\n const h = document.createElement('h4');\n h.textContent = 'Request';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.input, [], 0);\n container.appendChild(schemaEl);\n }\n if (method.output) {\n const h = document.createElement('h4');\n h.textContent = 'Response';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.output, [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // TCP-specific\n if (activeProtocol === 'tcp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || 'localhost') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n (data.tls?.enabled ? '<div class=\"info-card\"><div class=\"info-card-title\">TLS</div><div class=\"info-card-value\">Enabled</div></div>' : '');\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, tcpSpec?.contentTypes)\n );\n if (data.framing) {\n const h = document.createElement('h4');\n h.textContent = 'Framing';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.framing, [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.inbound || data.messages?.outbound) {\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // UDP-specific\n if (activeProtocol === 'udp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || '0.0.0.0') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Max Packet</div><div class=\"info-card-value\">' +\n (data.maxPacketSize || 65507) + ' bytes</div></div>';\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, udpSpec?.contentTypes)\n );\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (!data.messages?.inbound && !data.messages?.outbound && data.message) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.message), [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n return container;\n }\n\n function getGrpcMethodType(method) {\n const client = method['x-usd-client-streaming'];\n const server = method['x-usd-server-streaming'];\n if (client && server) return 'bidirectional';\n if (client) return 'client_streaming';\n if (server) return 'server_streaming';\n return 'unary';\n }\n\n function resolveMessagePayload(message) {\n if (!message) return null;\n if (message.\$ref) {\n const resolved = resolveRef(message.\$ref);\n if (resolved && resolved.payload) return resolved.payload;\n return resolved || message;\n }\n if (message.payload) return message.payload;\n return message;\n }\n\n";
|
|
4
|
+
export const endpointDetailsClientScript = " function resolveEffectiveContentTypes(operationTypes, protocolTypes) {\n const globalTypes = (xUsd && xUsd.contentTypes) ? xUsd.contentTypes : {};\n const defaultType =\n (operationTypes && operationTypes.default) ||\n (protocolTypes && protocolTypes.default) ||\n globalTypes.default ||\n 'application/json';\n const supportedList =\n (operationTypes && operationTypes.supported) ||\n (protocolTypes && protocolTypes.supported) ||\n globalTypes.supported ||\n [];\n const supported = Array.isArray(supportedList) ? supportedList.slice() : [];\n if (defaultType && supported.indexOf(defaultType) === -1) {\n supported.unshift(defaultType);\n }\n return { default: defaultType, supported };\n }\n\n function appendContentTypes(container, label, contentTypes) {\n if (!contentTypes) return;\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">' + esc(label) + '</div>';\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n const supportedText = (contentTypes.supported && contentTypes.supported.length > 0)\n ? contentTypes.supported.join(', ')\n : contentTypes.default;\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Default</div><div class=\"info-card-value\">' +\n esc(contentTypes.default || 'application/json') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Supported</div><div class=\"info-card-value\">' +\n esc(supportedText || 'application/json') + '</div></div>';\n section.appendChild(grid);\n container.appendChild(section);\n }\n\n function renderEndpointDetails(ep) {\n const container = document.createElement('div');\n const data = ep.data;\n\n // HTTP-specific (Redoc-style layout)\n if (activeProtocol === 'http') {\n // AUTHORIZATIONS section\n if (data.security && data.security.length > 0) {\n const authSection = document.createElement('div');\n authSection.className = 'endpoint-subsection';\n authSection.innerHTML = '<div class=\"subsection-label\">AUTHORIZATIONS:</div>';\n const authValue = document.createElement('span');\n authValue.className = 'auth-value';\n const authNames = data.security.flatMap(s => Object.keys(s));\n authValue.textContent = authNames.join(', ') || 'None';\n authSection.appendChild(authValue);\n container.appendChild(authSection);\n }\n\n // PATH PARAMETERS\n const pathParams = (data.parameters || []).filter(p => p.in === 'path');\n if (pathParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">PATH PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(pathParams));\n container.appendChild(section);\n }\n\n // QUERY PARAMETERS\n const queryParams = (data.parameters || []).filter(p => p.in === 'query');\n if (queryParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">QUERY PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(queryParams));\n container.appendChild(section);\n }\n\n // HEADER PARAMETERS\n const headerParams = (data.parameters || []).filter(p => p.in === 'header');\n if (headerParams.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">HEADER PARAMETERS</div>';\n section.appendChild(renderParametersRedocStyle(headerParams));\n container.appendChild(section);\n }\n }\n\n // WebSocket-specific\n if (activeProtocol === 'websocket') {\n if (data.type) {\n const badge = document.createElement('span');\n badge.className = 'badge channel-type-' + data.type;\n badge.textContent = data.type;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n if (data.subscribe) {\n appendContentTypes(\n container,\n 'Subscribe Content Types',\n resolveEffectiveContentTypes(data.subscribe?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.publish) {\n appendContentTypes(\n container,\n 'Publish Content Types',\n resolveEffectiveContentTypes(data.publish?.contentTypes, wsSpec?.contentTypes)\n );\n }\n if (data.parameters) {\n const paramSchema = { type: 'object', properties: {}, required: [] };\n Object.entries(data.parameters).forEach(([name, param]) => {\n const schema = param.schema || { type: 'string' };\n if (param.description) schema.description = param.description;\n paramSchema.properties[name] = schema;\n if (param.required) paramSchema.required.push(name);\n });\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(paramSchema, paramSchema.required, 0);\n container.appendChild(schemaEl);\n }\n const subscribePayload = resolveMessagePayload(data.subscribe?.message);\n if (subscribePayload) {\n const h = document.createElement('h4');\n h.textContent = 'Subscribe (receive)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(subscribePayload, [], 0);\n container.appendChild(schemaEl);\n }\n const publishPayload = resolveMessagePayload(data.publish?.message);\n if (publishPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Publish (send)';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(publishPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // Streams-specific\n if (activeProtocol === 'streams') {\n if (data.direction) {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = data.direction;\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, streamsSpec?.contentTypes)\n );\n const streamPayload = resolveMessagePayload(data.message);\n if (streamPayload) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(streamPayload, [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n // JSON-RPC-specific\n if (activeProtocol === 'jsonrpc') {\n if (data['x-usd-notification'] || data['x-usd-streaming']) {\n const flags = [];\n if (data['x-usd-notification']) flags.push('notification');\n if (data['x-usd-streaming']) flags.push('streaming');\n const info = document.createElement('div');\n info.style.marginBottom = '16px';\n info.innerHTML = flags.map(f => '<span class=\"badge badge-rpc\" style=\"margin-right: 6px;\">' + esc(f) + '</span>').join('');\n container.appendChild(info);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, jsonrpcSpec?.contentTypes)\n );\n if (data.params) {\n const h = document.createElement('h4');\n h.textContent = 'Parameters';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.params, data.params.required || [], 0);\n container.appendChild(schemaEl);\n }\n if (data.result) {\n const h = document.createElement('h4');\n h.textContent = 'Result';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.result, [], 0);\n container.appendChild(schemaEl);\n }\n if (Array.isArray(data.errors) && data.errors.length > 0) {\n const section = document.createElement('div');\n section.className = 'endpoint-subsection';\n section.innerHTML = '<div class=\"subsection-label\">Errors</div>';\n data.errors.forEach((err) => {\n const card = document.createElement('div');\n card.className = 'info-card';\n card.innerHTML =\n '<div class=\"info-card-title\">' + esc(err.code) + '</div>' +\n '<div class=\"info-card-value\">' + esc(err.message) + '</div>' +\n (err.description ? '<div class=\"info-card-subtitle\">' + esc(err.description) + '</div>' : '');\n section.appendChild(card);\n if (err.data) {\n const schemaEl = renderSchemaProperties(err.data, [], 0);\n section.appendChild(schemaEl);\n }\n });\n container.appendChild(section);\n }\n }\n\n // gRPC-specific\n if (activeProtocol === 'grpc') {\n const method = data.method;\n if (method) {\n const methodType = getGrpcMethodType(method);\n if (methodType && methodType !== 'unary') {\n const badge = document.createElement('span');\n badge.className = 'badge badge-stream';\n badge.textContent = methodType.replace('_', ' ');\n badge.style.marginBottom = '16px';\n badge.style.display = 'inline-block';\n container.appendChild(badge);\n }\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(method.contentTypes, grpcSpec?.contentTypes)\n );\n if (method.input) {\n const h = document.createElement('h4');\n h.textContent = 'Request';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.input, [], 0);\n container.appendChild(schemaEl);\n }\n if (method.output) {\n const h = document.createElement('h4');\n h.textContent = 'Response';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(method.output, [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // TCP-specific\n if (activeProtocol === 'tcp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || 'localhost') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n (data.tls?.enabled ? '<div class=\"info-card\"><div class=\"info-card-title\">TLS</div><div class=\"info-card-value\">Enabled</div></div>' : '');\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, tcpSpec?.contentTypes)\n );\n if (data.framing) {\n const h = document.createElement('h4');\n h.textContent = 'Framing';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(data.framing, [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.inbound || data.messages?.outbound) {\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n }\n }\n\n // UDP-specific\n if (activeProtocol === 'udp') {\n const grid = document.createElement('div');\n grid.className = 'info-grid';\n grid.innerHTML =\n '<div class=\"info-card\"><div class=\"info-card-title\">Host</div><div class=\"info-card-value\">' +\n esc(data.host || '127.0.0.1') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Port</div><div class=\"info-card-value\">' +\n (data.port || 'N/A') + '</div></div>' +\n '<div class=\"info-card\"><div class=\"info-card-title\">Max Packet</div><div class=\"info-card-value\">' +\n (data.maxPacketSize || 65507) + ' bytes</div></div>';\n container.appendChild(grid);\n appendContentTypes(\n container,\n 'Content Types',\n resolveEffectiveContentTypes(data.contentTypes, udpSpec?.contentTypes)\n );\n if (data.messages?.inbound) {\n const h = document.createElement('h4');\n h.textContent = 'Inbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.inbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (data.messages?.outbound) {\n const h = document.createElement('h4');\n h.textContent = 'Outbound Message';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.messages.outbound), [], 0);\n container.appendChild(schemaEl);\n }\n if (!data.messages?.inbound && !data.messages?.outbound && data.message) {\n const h = document.createElement('h4');\n h.textContent = 'Message Schema';\n container.appendChild(h);\n const schemaEl = renderSchemaProperties(resolveMessagePayload(data.message), [], 0);\n container.appendChild(schemaEl);\n }\n }\n\n return container;\n }\n\n function getGrpcMethodType(method) {\n const client = method['x-usd-client-streaming'];\n const server = method['x-usd-server-streaming'];\n if (client && server) return 'bidirectional';\n if (client) return 'client_streaming';\n if (server) return 'server_streaming';\n return 'unary';\n }\n\n function resolveMessagePayload(message) {\n if (!message) return null;\n if (message.\$ref) {\n const resolved = resolveRef(message.\$ref);\n if (resolved && resolved.payload) return resolved.payload;\n return resolved || message;\n }\n if (message.payload) return message.payload;\n return message;\n }\n\n";
|
|
5
5
|
//# sourceMappingURL=endpoint-details.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-details.js","sourceRoot":"","sources":["../../../../src/docs/ui/client-script/endpoint-details.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,
|
|
1
|
+
{"version":3,"file":"endpoint-details.js","sourceRoot":"","sources":["../../../../src/docs/ui/client-script/endpoint-details.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,u/eAAu/e,CAAA"}
|
|
@@ -61,18 +61,24 @@ function isEditableFalse(frontmatter) {
|
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
63
|
function stripTrailingSlash(value) {
|
|
64
|
-
|
|
64
|
+
let end = value.length;
|
|
65
|
+
while (end > 0 && value[end - 1] === '/')
|
|
66
|
+
end -= 1;
|
|
67
|
+
return value.slice(0, end);
|
|
65
68
|
}
|
|
66
69
|
function stripLeadingSlash(value) {
|
|
67
|
-
|
|
70
|
+
let start = 0;
|
|
71
|
+
while (start < value.length && value[start] === '/')
|
|
72
|
+
start += 1;
|
|
73
|
+
return value.slice(start);
|
|
68
74
|
}
|
|
69
75
|
function stripSlashes(value) {
|
|
70
|
-
return
|
|
76
|
+
return stripTrailingSlash(stripLeadingSlash(value));
|
|
71
77
|
}
|
|
72
78
|
function normalizePathPrefix(prefix) {
|
|
73
79
|
if (!prefix)
|
|
74
80
|
return '';
|
|
75
|
-
const cleaned = String(prefix).replace(/\\/g, '/')
|
|
81
|
+
const cleaned = stripLeadingSlash(String(prefix).replace(/\\/g, '/'));
|
|
76
82
|
if (!cleaned)
|
|
77
83
|
return '';
|
|
78
84
|
return cleaned.endsWith('/') ? cleaned : `${cleaned}/`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-link.js","sourceRoot":"","sources":["../../../src/docs/ui/edit-link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAgCH;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,KAA2B;IACzD,IAAI,CAAC,KAAK,EAAE,QAAQ;QAAE,OAAO,IAAI,CAAA;IACjC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACtE,IAAI,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC;QAAE,OAAO,IAAI,CAAA;IAEnD,MAAM,IAAI,GAAG,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI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CAAC,OAAO;QAAE,OAAO,EAAE,CAAA;IACvB,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAA;AACxD,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-builder.d.ts","sourceRoot":"","sources":["../../../src/docs/ui/html-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAA8E,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAqBhI;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAsKlE;
|
|
1
|
+
{"version":3,"file":"html-builder.d.ts","sourceRoot":"","sources":["../../../src/docs/ui/html-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAA8E,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAqBhI;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAsKlE;AAoGD;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAejE"}
|
|
@@ -130,7 +130,7 @@ ${generateClientRuntimeScript()}
|
|
|
130
130
|
</script>`;
|
|
131
131
|
// Generate HTML
|
|
132
132
|
return `<!DOCTYPE html>
|
|
133
|
-
<html lang="en" data-theme="${theme}"${themeConfig ? ' data-theme-configured="true"' : ''}>
|
|
133
|
+
<html lang="en" data-theme="${escapeHtml(theme)}"${themeConfig ? ' data-theme-configured="true"' : ''}>
|
|
134
134
|
<head>
|
|
135
135
|
<meta charset="UTF-8">
|
|
136
136
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
@@ -204,7 +204,15 @@ function generateOpenGraphTags(openGraph) {
|
|
|
204
204
|
.join('\n ');
|
|
205
205
|
}
|
|
206
206
|
function isIcoFaviconUrl(favicon) {
|
|
207
|
-
|
|
207
|
+
const queryIndex = favicon.indexOf('?');
|
|
208
|
+
const fragmentIndex = favicon.indexOf('#');
|
|
209
|
+
const suffixIndex = queryIndex < 0
|
|
210
|
+
? fragmentIndex
|
|
211
|
+
: fragmentIndex < 0
|
|
212
|
+
? queryIndex
|
|
213
|
+
: Math.min(queryIndex, fragmentIndex);
|
|
214
|
+
const path = suffixIndex < 0 ? favicon : favicon.slice(0, suffixIndex);
|
|
215
|
+
return path.toLowerCase().endsWith('.ico');
|
|
208
216
|
}
|
|
209
217
|
function firstDefined(...values) {
|
|
210
218
|
for (const value of values) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-builder.js","sourceRoot":"","sources":["../../../src/docs/ui/html-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAC9G,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,GAChB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,wBAAwB,EACxB,sCAAsC,EACtC,2BAA2B,GAC5B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA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