diff --git a/.claude/content.md b/.claude/content.md index 242e006..9920645 100644 --- a/.claude/content.md +++ b/.claude/content.md @@ -86,7 +86,7 @@ export default scenario("Example") .resource("http", client.http.createHttpClient()) .step("make request", async ({ http }) => { const res = await http.get("/api/users"); - expect(res).ok().status(200); + expect(res).toBeSuccessful().toHaveStatus(200); }) .build(); ``` diff --git a/data/api/builder.json b/data/api/builder.json index 282366c..7be0d15 100644 --- a/data/api/builder.json +++ b/data/api/builder.json @@ -1,14 +1,14 @@ { "name": "builder", "specifier": "@probitas/builder", - "version": "0.2.6", + "version": "0.2.7", "moduleDoc": "Builder module for creating scenario definitions with a fluent, type-safe API.\n\nThis package provides the {@linkcode scenario} fn function that returns a builder\nfor constructing scenario definitions. The builder uses method chaining to define\nresources, setup functions, and test steps with full TypeScript type inference.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/scenario](https://jsr.io/@probitas/scenario) | Core type definitions used by this builder |\n| [@probitas/runner](https://jsr.io/@probitas/runner) | Executes scenarios built with this package |\n\n## Key Features\n\n- **Fluent API**: Chain methods naturally to build complex scenarios\n- **Type-safe context**: Each step receives typed access to previous step results\n- **Resource management**: Register resources with automatic lifecycle handling\n- **Setup/Cleanup**: Define setup functions with automatic cleanup support\n- **Configurable defaults**: Override timeout and retry settings at any level\n\n## Core Exports\n\n- {@linkcode scenario} - Factory function to create a new scenario builder\n- {@linkcode StepContext} - Type representing the context passed to step functions\n- {@linkcode StepFunction} - Type signature for step functions\n- {@linkcode SetupFunction} - Type signature for setup functions\n- {@linkcode ResourceFunction} - Type signature for resource fn functions\n- {@linkcode BuilderScenarioOptions} - Partial options for scenario configuration\n- {@linkcode BuilderStepOptions} - Partial options for step configuration\n- {@linkcode DEFAULT_SCENARIO_OPTIONS} - Default values for scenario options\n- {@linkcode DEFAULT_STEP_OPTIONS} - Default values for step options\n", "exports": [ { "name": "scenario", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/scenario_builder.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/scenario_builder.ts", "line": 554, "col": 0, "byteIndex": 17911 @@ -102,7 +102,7 @@ "name": "BuilderStepContext", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 40, "col": 0, "byteIndex": 1237 @@ -163,7 +163,7 @@ "doc": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is `unknown`." }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 51, "col": 2, "byteIndex": 1578 @@ -188,7 +188,7 @@ "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n```ts\nctx.results[0] // First step's result\nctx.results[1] // Second step's result\n```" }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 62, "col": 2, "byteIndex": 1828 @@ -213,7 +213,7 @@ "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\n.resource(\"db\", () => createDbConnection())\n.step((ctx) => ctx.resources.db.query(...))\n```" }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 73, "col": 2, "byteIndex": 2093 @@ -331,7 +331,7 @@ "name": "BuilderStepFunction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 102, "col": 0, "byteIndex": 2907 @@ -551,7 +551,7 @@ "name": "BuilderStepDefinition", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 124, "col": 0, "byteIndex": 3682 @@ -613,7 +613,7 @@ "doc": "Step function to execute" }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 131, "col": 2, "byteIndex": 3922 @@ -769,5 +769,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:33.270Z" + "generatedAt": "2025-12-09T20:05:09.738Z" } diff --git a/data/api/client-connectrpc.json b/data/api/client-connectrpc.json index ce3945c..71df216 100644 --- a/data/api/client-connectrpc.json +++ b/data/api/client-connectrpc.json @@ -1,14 +1,14 @@ { "name": "client-connectrpc", "specifier": "@probitas/client-connectrpc", - "version": "0.2.1", - "moduleDoc": "ConnectRPC client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a ConnectRPC-based client with Server Reflection support,\ndesigned for integration testing of gRPC and Connect protocol services.\n\n## Features\n\n- **Protocol Support**: Connect, gRPC, and gRPC-Web protocols\n- **Server Reflection**: Auto-discover services and methods at runtime\n- **Fluent Assertions**: Chain assertions like `.ok()`, `.dataContains()`, `.code()`\n- **TLS Support**: Configure secure connections with custom certificates\n- **Duration Tracking**: Built-in timing for performance assertions\n- **Error Handling**: Test error responses without throwing exceptions\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-connectrpc\n```\n\n## Quick Start\n\n```ts\nimport { createConnectRpcClient, expectConnectRpcResponse } from \"@probitas/client-connectrpc\";\n\n// Create client (uses reflection by default)\nconst client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Discover services via reflection\nconst services = await client.reflection.listServices();\nconsole.log(\"Available services:\", services);\n\n// Get service info\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n\n// Call a method with fluent assertions\nconst response = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { message: \"Hello!\" }\n);\n\nexpectConnectRpcResponse(response)\n .ok()\n .dataContains({ message: \"Hello!\" })\n .durationLessThan(1000);\n\nawait client.close();\n```\n\n## Testing Error Responses\n\n```ts\n// Test error responses without throwing\nconst errorResponse = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { invalid: true },\n { throwOnError: false }\n);\n\nexpectConnectRpcResponse(errorResponse)\n .notOk()\n .code(3) // INVALID_ARGUMENT\n .errorContains(\"invalid\");\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\nexpectConnectRpcResponse(res).ok();\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-grpc`](https://jsr.io/@probitas/client-grpc) | gRPC client (wrapper with `protocol: \"grpc\"`) |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [ConnectRPC](https://connectrpc.com/)\n", + "version": "0.3.0", + "moduleDoc": "ConnectRPC client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a ConnectRPC-based client with Server Reflection support,\ndesigned for integration testing of gRPC and Connect protocol services.\n\n## Features\n\n- **Protocol Support**: Connect, gRPC, and gRPC-Web protocols\n- **Server Reflection**: Auto-discover services and methods at runtime\n- **TLS Support**: Configure secure connections with custom certificates\n- **Duration Tracking**: Built-in timing for performance monitoring\n- **Error Handling**: Test error responses without throwing exceptions\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-connectrpc\n```\n\n## Quick Start\n\n```ts\nimport { createConnectRpcClient } from \"@probitas/client-connectrpc\";\n\n// Create client (uses reflection by default)\nconst client = createConnectRpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Discover services via reflection\nconst services = await client.reflection.listServices();\nconsole.log(\"Available services:\", services);\n\n// Get service info\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n\n// Call a method\nconst response = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { message: \"Hello!\" }\n);\nconsole.log(response.data());\n\nawait client.close();\n```\n\n## Testing Error Responses\n\n```ts\n// Test error responses without throwing\nconst errorResponse = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { invalid: true },\n { throwOnError: false }\n);\n\nif (!errorResponse.ok) {\n console.log(\"Error code:\", errorResponse.code); // INVALID_ARGUMENT = 3\n}\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = createConnectRpcClient({ url: \"http://localhost:50051\" });\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\nconsole.log(res.data());\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-grpc`](https://jsr.io/@probitas/client-grpc) | gRPC client (wrapper with `protocol: \"grpc\"`) |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [ConnectRPC](https://connectrpc.com/)\n", "exports": [ { "name": "ConnectRpcStatusCode", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 13, "col": 0, "byteIndex": 304 @@ -168,7 +168,7 @@ "name": "ConnectRpcStatus", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 35, "col": 13, "byteIndex": 800 @@ -189,7 +189,7 @@ { "name": "OK", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 36, "col": 2, "byteIndex": 823 @@ -207,7 +207,7 @@ { "name": "CANCELLED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 37, "col": 2, "byteIndex": 832 @@ -225,7 +225,7 @@ { "name": "UNKNOWN", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 38, "col": 2, "byteIndex": 848 @@ -243,7 +243,7 @@ { "name": "INVALID_ARGUMENT", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 39, "col": 2, "byteIndex": 862 @@ -261,7 +261,7 @@ { "name": "DEADLINE_EXCEEDED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 40, "col": 2, "byteIndex": 885 @@ -279,7 +279,7 @@ { "name": "NOT_FOUND", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 41, "col": 2, "byteIndex": 909 @@ -297,7 +297,7 @@ { "name": "ALREADY_EXISTS", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 42, "col": 2, "byteIndex": 925 @@ -315,7 +315,7 @@ { "name": "PERMISSION_DENIED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 43, "col": 2, "byteIndex": 946 @@ -333,7 +333,7 @@ { "name": "RESOURCE_EXHAUSTED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 44, "col": 2, "byteIndex": 970 @@ -351,7 +351,7 @@ { "name": "FAILED_PRECONDITION", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 45, "col": 2, "byteIndex": 995 @@ -369,7 +369,7 @@ { "name": "ABORTED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 46, "col": 2, "byteIndex": 1021 @@ -387,7 +387,7 @@ { "name": "OUT_OF_RANGE", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 47, "col": 2, "byteIndex": 1036 @@ -405,7 +405,7 @@ { "name": "UNIMPLEMENTED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 48, "col": 2, "byteIndex": 1056 @@ -423,7 +423,7 @@ { "name": "INTERNAL", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 49, "col": 2, "byteIndex": 1077 @@ -441,7 +441,7 @@ { "name": "UNAVAILABLE", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 50, "col": 2, "byteIndex": 1093 @@ -459,7 +459,7 @@ { "name": "DATA_LOSS", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 51, "col": 2, "byteIndex": 1112 @@ -477,7 +477,7 @@ { "name": "UNAUTHENTICATED", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 52, "col": 2, "byteIndex": 1129 @@ -504,7 +504,7 @@ "name": "getStatusName", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 65, "col": 0, "byteIndex": 1370 @@ -551,7 +551,7 @@ "name": "isConnectRpcStatusCode", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/status.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/status.ts", "line": 98, "col": 0, "byteIndex": 2150 @@ -609,7 +609,7 @@ "name": "ErrorDetail", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 17, "col": 0, "byteIndex": 468 @@ -630,7 +630,7 @@ "doc": "Type URL identifying the error detail type.\nCommon types include:\n- \"type.googleapis.com/google.rpc.BadRequest\"\n- \"type.googleapis.com/google.rpc.DebugInfo\"\n- \"type.googleapis.com/google.rpc.RetryInfo\"\n- \"type.googleapis.com/google.rpc.QuotaFailure\"" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 26, "col": 2, "byteIndex": 793 @@ -652,7 +652,7 @@ "doc": "Decoded error detail value.\nThe structure depends on the typeUrl." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 32, "col": 2, "byteIndex": 910 @@ -678,7 +678,7 @@ "name": "ConnectRpcErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 38, "col": 0, "byteIndex": 991 @@ -708,7 +708,7 @@ "doc": "Headers/metadata from the ConnectRPC response." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 42, "col": 2, "byteIndex": 1120 @@ -744,7 +744,7 @@ "doc": "Rich error details from google.rpc.Status." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 47, "col": 2, "byteIndex": 1227 @@ -784,7 +784,7 @@ "name": "ConnectRpcError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 53, "col": 0, "byteIndex": 1329 @@ -850,7 +850,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 61, "col": 2, "byteIndex": 1647 @@ -872,7 +872,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 54, "col": 2, "byteIndex": 1382 @@ -895,7 +895,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 55, "col": 2, "byteIndex": 1436 @@ -917,7 +917,7 @@ "isStatic": false, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 56, "col": 2, "byteIndex": 1486 @@ -936,7 +936,7 @@ "isStatic": false, "name": "rawMessage", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 57, "col": 2, "byteIndex": 1525 @@ -969,7 +969,7 @@ "isStatic": false, "name": "metadata", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 58, "col": 2, "byteIndex": 1556 @@ -1002,7 +1002,7 @@ "isStatic": false, "name": "details", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 59, "col": 2, "byteIndex": 1602 @@ -1021,7 +1021,7 @@ "name": "ConnectRpcUnauthenticatedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 78, "col": 0, "byteIndex": 2046 @@ -1064,7 +1064,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 82, "col": 2, "byteIndex": 2229 @@ -1089,7 +1089,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 79, "col": 2, "byteIndex": 2118 @@ -1112,7 +1112,7 @@ "isOverride": true, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 80, "col": 2, "byteIndex": 2188 @@ -1131,7 +1131,7 @@ "name": "ConnectRpcPermissionDeniedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 90, "col": 0, "byteIndex": 2441 @@ -1174,7 +1174,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 94, "col": 2, "byteIndex": 2625 @@ -1199,7 +1199,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 91, "col": 2, "byteIndex": 2514 @@ -1222,7 +1222,7 @@ "isOverride": true, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 92, "col": 2, "byteIndex": 2585 @@ -1241,7 +1241,7 @@ "name": "ConnectRpcNotFoundError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 102, "col": 0, "byteIndex": 2846 @@ -1284,7 +1284,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 106, "col": 2, "byteIndex": 3014 @@ -1309,7 +1309,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 103, "col": 2, "byteIndex": 2911 @@ -1332,7 +1332,7 @@ "isOverride": true, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 104, "col": 2, "byteIndex": 2974 @@ -1351,7 +1351,7 @@ "name": "ConnectRpcResourceExhaustedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 114, "col": 0, "byteIndex": 3215 @@ -1394,7 +1394,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 118, "col": 2, "byteIndex": 3401 @@ -1419,7 +1419,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 115, "col": 2, "byteIndex": 3289 @@ -1442,7 +1442,7 @@ "isOverride": true, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 116, "col": 2, "byteIndex": 3361 @@ -1461,7 +1461,7 @@ "name": "ConnectRpcInternalError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 126, "col": 0, "byteIndex": 3610 @@ -1504,7 +1504,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 130, "col": 2, "byteIndex": 3779 @@ -1529,7 +1529,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 127, "col": 2, "byteIndex": 3675 @@ -1552,7 +1552,7 @@ "isOverride": true, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 128, "col": 2, "byteIndex": 3738 @@ -1571,7 +1571,7 @@ "name": "ConnectRpcUnavailableError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 138, "col": 0, "byteIndex": 3990 @@ -1614,7 +1614,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 142, "col": 2, "byteIndex": 4165 @@ -1639,7 +1639,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 139, "col": 2, "byteIndex": 4058 @@ -1662,7 +1662,7 @@ "isOverride": true, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 140, "col": 2, "byteIndex": 4124 @@ -1681,7 +1681,7 @@ "name": "fromConnectError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/errors.ts", "line": 154, "col": 0, "byteIndex": 4560 @@ -1765,7 +1765,7 @@ "name": "FileDescriptorSet", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 15, "col": 0, "byteIndex": 435 @@ -1797,7 +1797,7 @@ "name": "ConnectProtocol", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 20, "col": 0, "byteIndex": 567 @@ -1845,7 +1845,7 @@ "name": "HttpVersion", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 25, "col": 0, "byteIndex": 670 @@ -1885,7 +1885,7 @@ "name": "TlsConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 30, "col": 0, "byteIndex": 767 @@ -1906,7 +1906,7 @@ "doc": "Root CA certificate (PEM format)." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 32, "col": 2, "byteIndex": 841 @@ -1931,7 +1931,7 @@ "doc": "Client certificate (PEM format)." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 34, "col": 2, "byteIndex": 918 @@ -1956,7 +1956,7 @@ "doc": "Client private key (PEM format)." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 36, "col": 2, "byteIndex": 996 @@ -1981,7 +1981,7 @@ "doc": "Skip server certificate verification (use only for testing)." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 38, "col": 2, "byteIndex": 1101 @@ -2007,7 +2007,7 @@ "name": "ConnectRpcConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 46, "col": 0, "byteIndex": 1252 @@ -2043,7 +2043,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 51, "col": 2, "byteIndex": 1386 @@ -2088,7 +2088,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 57, "col": 2, "byteIndex": 1482 @@ -2114,7 +2114,7 @@ "name": "ConnectRpcClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 63, "col": 0, "byteIndex": 1568 @@ -2150,7 +2150,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 78, "col": 2, "byteIndex": 1966 @@ -2192,7 +2192,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 84, "col": 2, "byteIndex": 2075 @@ -2223,7 +2223,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 90, "col": 2, "byteIndex": 2171 @@ -2248,7 +2248,7 @@ "doc": "TLS configuration. If not provided, uses insecure credentials." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 93, "col": 2, "byteIndex": 2282 @@ -2273,7 +2273,7 @@ "doc": "Default metadata to send with every request." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 96, "col": 2, "byteIndex": 2365 @@ -2315,7 +2315,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 106, "col": 2, "byteIndex": 2785 @@ -2373,7 +2373,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 112, "col": 2, "byteIndex": 2941 @@ -2401,7 +2401,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 119, "col": 2, "byteIndex": 3154 @@ -2427,7 +2427,7 @@ "name": "ConnectRpcOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 125, "col": 0, "byteIndex": 3242 @@ -2457,7 +2457,7 @@ "doc": "Metadata to send with the request." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 127, "col": 2, "byteIndex": 3347 @@ -2499,7 +2499,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 134, "col": 2, "byteIndex": 3587 @@ -2525,7 +2525,7 @@ "name": "ServiceInfo", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 140, "col": 0, "byteIndex": 3671 @@ -2546,7 +2546,7 @@ "doc": "Fully qualified service name (e.g., \"echo.EchoService\")" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 142, "col": 2, "byteIndex": 3769 @@ -2568,7 +2568,7 @@ "doc": "Proto file name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 144, "col": 2, "byteIndex": 3819 @@ -2594,7 +2594,7 @@ "name": "MethodInfo", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 150, "col": 0, "byteIndex": 3892 @@ -2615,7 +2615,7 @@ "doc": "Method name (e.g., \"Echo\")" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 152, "col": 2, "byteIndex": 3960 @@ -2637,7 +2637,7 @@ "doc": "Local name (camelCase)" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 154, "col": 2, "byteIndex": 4017 @@ -2659,7 +2659,7 @@ "doc": "Method kind" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 156, "col": 2, "byteIndex": 4068 @@ -2714,7 +2714,7 @@ "doc": "Input message type name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 162, "col": 2, "byteIndex": 4206 @@ -2736,7 +2736,7 @@ "doc": "Output message type name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 164, "col": 2, "byteIndex": 4270 @@ -2758,7 +2758,7 @@ "doc": "Whether the method is idempotent" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 166, "col": 2, "byteIndex": 4343 @@ -2784,7 +2784,7 @@ "name": "ServiceDetail", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 172, "col": 0, "byteIndex": 4417 @@ -2805,7 +2805,7 @@ "doc": "Service name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 174, "col": 2, "byteIndex": 4474 @@ -2827,7 +2827,7 @@ "doc": "Fully qualified service name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 176, "col": 2, "byteIndex": 4537 @@ -2849,7 +2849,7 @@ "doc": "Package name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 178, "col": 2, "byteIndex": 4588 @@ -2871,7 +2871,7 @@ "doc": "Proto file name" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 180, "col": 2, "byteIndex": 4645 @@ -2893,7 +2893,7 @@ "doc": "All methods" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/types.ts", "line": 182, "col": 2, "byteIndex": 4696 @@ -2933,7 +2933,7 @@ "name": "ConnectRpcResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 12, "col": 0, "byteIndex": 155 @@ -2954,7 +2954,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 40, "col": 2, "byteIndex": 973 @@ -2998,7 +2998,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 45, "col": 2, "byteIndex": 1046 @@ -3020,7 +3020,7 @@ "doc": "Result type identifier" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 14, "col": 2, "byteIndex": 227 @@ -3045,7 +3045,7 @@ "doc": "Whether the request was successful (code === 0)." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 17, "col": 2, "byteIndex": 317 @@ -3067,7 +3067,7 @@ "doc": "ConnectRPC/gRPC status code." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 20, "col": 2, "byteIndex": 380 @@ -3092,7 +3092,7 @@ "doc": "Status message (empty string for successful responses)." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 23, "col": 2, "byteIndex": 485 @@ -3114,7 +3114,7 @@ "doc": "Response headers" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 26, "col": 2, "byteIndex": 540 @@ -3150,7 +3150,7 @@ "doc": "Response trailers (sent at end of RPC)" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 29, "col": 2, "byteIndex": 633 @@ -3186,7 +3186,7 @@ "doc": "Response time in milliseconds." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 32, "col": 2, "byteIndex": 719 @@ -3212,7 +3212,7 @@ "name": "ConnectRpcResponseOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 51, "col": 0, "byteIndex": 1119 @@ -3230,7 +3230,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 52, "col": 2, "byteIndex": 1166 @@ -3252,7 +3252,7 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 53, "col": 2, "byteIndex": 1205 @@ -3271,7 +3271,7 @@ { "name": "headers", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 54, "col": 2, "byteIndex": 1233 @@ -3304,7 +3304,7 @@ { "name": "trailers", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 55, "col": 2, "byteIndex": 1277 @@ -3337,7 +3337,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 56, "col": 2, "byteIndex": 1322 @@ -3356,7 +3356,7 @@ { "name": "responseMessage", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 57, "col": 2, "byteIndex": 1351 @@ -3382,7 +3382,7 @@ "name": "ConnectRpcResponseImpl", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 63, "col": 0, "byteIndex": 1438 @@ -3415,7 +3415,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 74, "col": 2, "byteIndex": 1798 @@ -3439,7 +3439,7 @@ "isStatic": false, "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 64, "col": 2, "byteIndex": 1508 @@ -3458,7 +3458,7 @@ "isStatic": false, "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 65, "col": 2, "byteIndex": 1549 @@ -3480,7 +3480,7 @@ "isStatic": false, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 66, "col": 2, "byteIndex": 1573 @@ -3499,7 +3499,7 @@ "isStatic": false, "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 67, "col": 2, "byteIndex": 1612 @@ -3532,7 +3532,7 @@ "isStatic": false, "name": "headers", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 68, "col": 2, "byteIndex": 1640 @@ -3565,7 +3565,7 @@ "isStatic": false, "name": "trailers", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 69, "col": 2, "byteIndex": 1684 @@ -3584,7 +3584,7 @@ "isStatic": false, "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 70, "col": 2, "byteIndex": 1729 @@ -3636,7 +3636,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 85, "col": 2, "byteIndex": 2158 @@ -3662,7 +3662,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/response.ts", + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/response.ts", "line": 92, "col": 2, "byteIndex": 2338 @@ -3684,978 +3684,14 @@ "superTypeParams": [] } }, - { - "name": "ConnectRpcResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 14, - "col": 0, - "byteIndex": 310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent assertion interface for ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Verify that status is OK (code === 0)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 16, - "col": 2, - "byteIndex": 409 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Verify that status is not OK." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 19, - "col": 2, - "byteIndex": 463 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "code", - "jsDoc": { - "doc": "Verify the exact status code." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 22, - "col": 2, - "byteIndex": 520 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "codeIn", - "jsDoc": { - "doc": "Verify the status code is one of the specified values." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 25, - "col": 2, - "byteIndex": 631 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "codes", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "codeNotIn", - "jsDoc": { - "doc": "Verify the status code is not one of the specified values." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 28, - "col": 2, - "byteIndex": 750 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "codes", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "Verify the error message matches exactly or by regex." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 31, - "col": 2, - "byteIndex": 867 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "errorContains", - "jsDoc": { - "doc": "Verify the error message contains the substring." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 34, - "col": 2, - "byteIndex": 968 - }, - "params": [ - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "errorMatch", - "jsDoc": { - "doc": "Verify the error message using a custom matcher." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 37, - "col": 2, - "byteIndex": 1069 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "header", - "jsDoc": { - "doc": "Verify a header value matches exactly or by regex." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 40, - "col": 2, - "byteIndex": 1186 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headerExists", - "jsDoc": { - "doc": "Verify that a header exists." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 43, - "col": 2, - "byteIndex": 1282 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headerContains", - "jsDoc": { - "doc": "Verify that a header value contains the substring." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 46, - "col": 2, - "byteIndex": 1379 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headerMatch", - "jsDoc": { - "doc": "Verify a header value using a custom matcher." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 49, - "col": 2, - "byteIndex": 1492 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "trailer", - "jsDoc": { - "doc": "Verify a trailer value matches exactly or by regex." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 52, - "col": 2, - "byteIndex": 1623 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "trailerExists", - "jsDoc": { - "doc": "Verify that a trailer exists." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 55, - "col": 2, - "byteIndex": 1721 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "trailerContains", - "jsDoc": { - "doc": "Verify that a trailer value contains the substring." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 58, - "col": 2, - "byteIndex": 1820 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "trailerMatch", - "jsDoc": { - "doc": "Verify a trailer value using a custom matcher." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 61, - "col": 2, - "byteIndex": 1935 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Verify that data() is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 64, - "col": 2, - "byteIndex": 2043 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Verify that data() is not null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 67, - "col": 2, - "byteIndex": 2106 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Verify that data() contains the specified properties (deep partial match)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 71, - "col": 2, - "byteIndex": 2251 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Verify data() using a custom matcher." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 75, - "col": 2, - "byteIndex": 2388 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "data", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Verify that response duration is less than the threshold." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 78, - "col": 2, - "byteIndex": 2512 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "expectConnectRpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/expect.ts", - "line": 360, - "col": 0, - "byteIndex": 9651 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent assertion chain for ConnectRPC response validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", - "tags": [ - { - "kind": "param", - "name": "response", - "doc": "- The ConnectRPC response to validate" - }, - { - "kind": "return", - "doc": "A fluent expectation chain\n" - }, - { - "kind": "example", - "doc": "Basic assertions\n```ts\nconst response = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { message: \"Hello!\" }\n);\n\nexpectConnectRpcResponse(response)\n .ok()\n .hasContent()\n .dataContains({ message: \"Hello!\" });\n```\n" - }, - { - "kind": "example", - "doc": "Error status assertions\n```ts\nconst response = await client.call(\n \"user.UserService\",\n \"getUser\",\n { id: \"non-existent\" },\n { throwOnError: false }\n);\n\nexpectConnectRpcResponse(response)\n .notOk()\n .code(5) // NOT_FOUND\n .errorContains(\"not found\");\n```\n" - }, - { - "kind": "example", - "doc": "Header and trailer assertions\n```ts\nexpectConnectRpcResponse(response)\n .ok()\n .headerExists(\"x-request-id\")\n .trailerExists(\"grpc-status\");\n```\n" - }, - { - "kind": "example", - "doc": "Performance assertions\n```ts\nexpectConnectRpcResponse(response)\n .ok()\n .durationLessThan(500); // Must respond within 500ms\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - } - ], - "returnType": { - "repr": "ConnectRpcResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, { "name": "ReflectionApi", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 49, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 50, "col": 0, - "byteIndex": 1343 + "byteIndex": 1369 }, "declarationKind": "export", "jsDoc": { @@ -4680,10 +3716,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 59, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 60, "col": 2, - "byteIndex": 1565 + "byteIndex": 1591 }, "params": [], "optional": false, @@ -4729,10 +3765,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 66, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 67, "col": 2, - "byteIndex": 1806 + "byteIndex": 1832 }, "params": [ { @@ -4785,10 +3821,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 73, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 74, "col": 2, - "byteIndex": 2026 + "byteIndex": 2052 }, "params": [ { @@ -4845,10 +3881,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 80, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 81, "col": 2, - "byteIndex": 2233 + "byteIndex": 2259 }, "params": [ { @@ -4887,10 +3923,10 @@ "doc": "Check if reflection is enabled." }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 53, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 54, "col": 2, - "byteIndex": 1427 + "byteIndex": 1453 }, "params": [], "readonly": true, @@ -4913,10 +3949,10 @@ "name": "ConnectRpcClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 86, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 87, "col": 0, - "byteIndex": 2327 + "byteIndex": 2353 }, "declarationKind": "export", "jsDoc": { @@ -4965,10 +4001,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 100, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 101, "col": 2, - "byteIndex": 2800 + "byteIndex": 2826 }, "params": [ { @@ -5076,10 +4112,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 114, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 115, "col": 2, - "byteIndex": 3168 + "byteIndex": 3194 }, "params": [ { @@ -5187,10 +4223,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 128, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 129, "col": 2, - "byteIndex": 3570 + "byteIndex": 3596 }, "params": [ { @@ -5307,10 +4343,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 142, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 143, "col": 2, - "byteIndex": 3989 + "byteIndex": 4015 }, "params": [ { @@ -5405,10 +4441,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 152, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 153, "col": 2, - "byteIndex": 4231 + "byteIndex": 4257 }, "params": [], "optional": false, @@ -5436,10 +4472,10 @@ "doc": "Client configuration" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 88, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 89, "col": 2, - "byteIndex": 2419 + "byteIndex": 2445 }, "params": [], "readonly": true, @@ -5461,10 +4497,10 @@ "doc": "Reflection API (only available when schema: \"reflection\")" }, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 91, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 92, "col": 2, - "byteIndex": 2530 + "byteIndex": 2556 }, "params": [], "readonly": true, @@ -5490,10 +4526,10 @@ "name": "createConnectRpcClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.2.1/client.ts", - "line": 333, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.3.0/client.ts", + "line": 334, "col": 0, - "byteIndex": 9055 + "byteIndex": 9081 }, "declarationKind": "export", "jsDoc": { @@ -5562,5 +4598,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:33.415Z" + "generatedAt": "2025-12-09T20:05:10.304Z" } diff --git a/data/api/client-deno-kv.json b/data/api/client-deno-kv.json index a3d3445..52a067c 100644 --- a/data/api/client-deno-kv.json +++ b/data/api/client-deno-kv.json @@ -1,14 +1,14 @@ { "name": "client-deno-kv", "specifier": "@probitas/client-deno-kv", - "version": "0.1.1", - "moduleDoc": "Deno KV client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a Deno KV client with fluent assertion APIs, designed for\nintegration testing of applications using Deno KV storage.\n\n## Features\n\n- **Key-Value Operations**: get, set, delete with structured keys\n- **Listing**: Iterate over keys by prefix, start, end\n- **Atomic Transactions**: Atomic operations with version checking\n- **Fluent Assertions**: `expectDenoKvResult()` for testing KV operations\n- **Type Safety**: Generic type parameters for stored values\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-deno-kv\n```\n\n## Quick Start\n\n```ts\nimport {\n createDenoKvClient,\n expectDenoKvResult,\n} from \"@probitas/client-deno-kv\";\n\nconst kv = await createDenoKvClient();\n\n// Set a value\nconst setResult = await kv.set([\"users\", \"1\"], { name: \"Alice\", age: 30 });\nexpectDenoKvResult(setResult).ok().hasVersionstamp();\n\n// Get a value with type\nconst getResult = await kv.get<{ name: string; age: number }>([\"users\", \"1\"]);\nexpectDenoKvResult(getResult).ok().hasContent().dataContains({ name: \"Alice\" });\n\n// List entries by prefix\nconst listResult = await kv.list<{ name: string }>({ prefix: [\"users\"] });\nexpectDenoKvResult(listResult).ok().countAtLeast(1);\n\nawait kv.close();\n```\n\n## Atomic Operations\n\n```ts\n// Atomic transaction with version check\nconst atomic = kv.atomic();\natomic.check({ key: [\"counter\"], versionstamp: null }); // Only if key doesn't exist\natomic.set([\"counter\"], 1n);\nconst atomicResult = await atomic.commit();\nexpectDenoKvResult(atomicResult).ok();\n\n// Atomic increment\nconst current = await kv.get([\"counter\"]);\nconst atomic2 = kv.atomic();\natomic2.check({ key: [\"counter\"], versionstamp: current.versionstamp });\natomic2.set([\"counter\"], (current.value ?? 0n) + 1n);\nawait atomic2.commit();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using kv = await createDenoKvClient();\n\nawait kv.set([\"test\"], \"value\");\nconst result = await kv.get([\"test\"]);\nexpectDenoKvResult(result).ok();\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-redis`](https://jsr.io/@probitas/client-redis) | Redis client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [Deno KV](https://deno.land/manual/runtime/kv)\n", + "version": "0.2.0", + "moduleDoc": "Deno KV client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a Deno KV client designed for integration testing of applications using Deno KV storage.\n\n## Features\n\n- **Key-Value Operations**: get, set, delete with structured keys\n- **Listing**: Iterate over keys by prefix, start, end\n- **Atomic Transactions**: Atomic operations with version checking\n- **Type Safety**: Generic type parameters for stored values\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-deno-kv\n```\n\n## Quick Start\n\n```ts\nimport { createDenoKvClient } from \"@probitas/client-deno-kv\";\n\nconst kv = await createDenoKvClient();\n\n// Set a value\nconst setResult = await kv.set([\"users\", \"1\"], { name: \"Alice\", age: 30 });\nconsole.log(\"Versionstamp:\", setResult.versionstamp);\n\n// Get a value with type\nconst getResult = await kv.get<{ name: string; age: number }>([\"users\", \"1\"]);\nconsole.log(\"User:\", getResult.value);\n\n// List entries by prefix\nconst listResult = await kv.list<{ name: string }>({ prefix: [\"users\"] });\nconsole.log(\"Entries:\", listResult.entries);\n\nawait kv.close();\n```\n\n## Atomic Operations\n\n```ts\n// Atomic transaction with version check\nconst atomic = kv.atomic();\natomic.check({ key: [\"counter\"], versionstamp: null }); // Only if key doesn't exist\natomic.set([\"counter\"], 1n);\nawait atomic.commit();\n\n// Atomic increment\nconst current = await kv.get([\"counter\"]);\nconst atomic2 = kv.atomic();\natomic2.check({ key: [\"counter\"], versionstamp: current.versionstamp });\natomic2.set([\"counter\"], (current.value ?? 0n) + 1n);\nawait atomic2.commit();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using kv = await createDenoKvClient();\n\nawait kv.set([\"test\"], \"value\");\nconst result = await kv.get([\"test\"]);\nconsole.log(result.value);\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-redis`](https://jsr.io/@probitas/client-redis) | Redis client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [Deno KV](https://deno.land/manual/runtime/kv)\n", "exports": [ { "name": "DenoKvClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 6, "col": 0, "byteIndex": 106 @@ -38,7 +38,7 @@ "doc": "Path to the KV database file.\nIf not specified, uses in-memory storage or Deno Deploy's KV." }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 11, "col": 2, "byteIndex": 282 @@ -64,7 +64,7 @@ "name": "DenoKvSetOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 17, "col": 0, "byteIndex": 348 @@ -94,7 +94,7 @@ "doc": "Time-to-live in milliseconds.\nThe entry will automatically expire after this duration." }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 22, "col": 2, "byteIndex": 517 @@ -120,7 +120,7 @@ "name": "DenoKvListOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 28, "col": 0, "byteIndex": 588 @@ -150,7 +150,7 @@ "doc": "Maximum number of entries to return." }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 32, "col": 2, "byteIndex": 703 @@ -172,7 +172,7 @@ "doc": "Cursor for pagination." }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 37, "col": 2, "byteIndex": 771 @@ -194,7 +194,7 @@ "doc": "Whether to iterate in reverse order." }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/types.ts", "line": 42, "col": 2, "byteIndex": 854 @@ -220,7 +220,7 @@ "name": "DenoKvError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 6, "col": 0, "byteIndex": 108 @@ -278,7 +278,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 9, "col": 2, "byteIndex": 208 @@ -300,7 +300,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 7, "col": 2, "byteIndex": 157 @@ -319,7 +319,7 @@ "name": "DenoKvAtomicCheckError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 17, "col": 0, "byteIndex": 404 @@ -386,7 +386,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 26, "col": 2, "byteIndex": 666 @@ -408,7 +408,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 18, "col": 2, "byteIndex": 464 @@ -431,7 +431,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 19, "col": 2, "byteIndex": 517 @@ -467,7 +467,7 @@ "isStatic": false, "name": "failedChecks", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 24, "col": 2, "byteIndex": 617 @@ -486,7 +486,7 @@ "name": "DenoKvQuotaError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 39, "col": 0, "byteIndex": 921 @@ -529,7 +529,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 1068 @@ -551,7 +551,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 40, "col": 2, "byteIndex": 975 @@ -574,7 +574,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/errors.ts", "line": 41, "col": 2, "byteIndex": 1022 @@ -593,7 +593,7 @@ "name": "DenoKvGetResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 4, "col": 0, "byteIndex": 38 @@ -611,7 +611,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 5, "col": 2, "byteIndex": 78 @@ -633,7 +633,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 6, "col": 2, "byteIndex": 110 @@ -652,7 +652,7 @@ { "name": "key", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 7, "col": 2, "byteIndex": 134 @@ -674,7 +674,7 @@ { "name": "value", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 8, "col": 2, "byteIndex": 162 @@ -707,7 +707,7 @@ { "name": "versionstamp", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 9, "col": 2, "byteIndex": 190 @@ -737,7 +737,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 10, "col": 2, "byteIndex": 230 @@ -767,7 +767,7 @@ "name": "DenoKvSetResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 16, "col": 0, "byteIndex": 298 @@ -785,7 +785,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 17, "col": 2, "byteIndex": 335 @@ -807,7 +807,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 18, "col": 2, "byteIndex": 367 @@ -826,7 +826,7 @@ { "name": "versionstamp", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 19, "col": 2, "byteIndex": 391 @@ -845,7 +845,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 20, "col": 2, "byteIndex": 424 @@ -871,7 +871,7 @@ "name": "DenoKvDeleteResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 26, "col": 0, "byteIndex": 495 @@ -889,7 +889,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 27, "col": 2, "byteIndex": 535 @@ -911,7 +911,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 28, "col": 2, "byteIndex": 570 @@ -930,7 +930,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 29, "col": 2, "byteIndex": 594 @@ -956,7 +956,7 @@ "name": "DenoKvEntry", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 35, "col": 0, "byteIndex": 667 @@ -974,7 +974,7 @@ { "name": "key", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 36, "col": 2, "byteIndex": 703 @@ -996,7 +996,7 @@ { "name": "value", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 37, "col": 2, "byteIndex": 731 @@ -1018,7 +1018,7 @@ { "name": "versionstamp", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 38, "col": 2, "byteIndex": 752 @@ -1048,7 +1048,7 @@ "name": "DenoKvEntries", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 44, "col": 0, "byteIndex": 843 @@ -1096,7 +1096,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 48, "col": 2, "byteIndex": 984 @@ -1140,7 +1140,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 53, "col": 2, "byteIndex": 1086 @@ -1173,7 +1173,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 58, "col": 2, "byteIndex": 1185 @@ -1217,7 +1217,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 63, "col": 2, "byteIndex": 1285 @@ -1258,7 +1258,7 @@ "name": "createDenoKvEntries", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 99, "col": 0, "byteIndex": 2010 @@ -1328,7 +1328,7 @@ "name": "DenoKvListResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 110, "col": 0, "byteIndex": 2232 @@ -1346,7 +1346,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 111, "col": 2, "byteIndex": 2273 @@ -1368,7 +1368,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 112, "col": 2, "byteIndex": 2306 @@ -1387,7 +1387,7 @@ { "name": "entries", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 113, "col": 2, "byteIndex": 2330 @@ -1418,7 +1418,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 114, "col": 2, "byteIndex": 2368 @@ -1448,7 +1448,7 @@ "name": "DenoKvAtomicResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 120, "col": 0, "byteIndex": 2440 @@ -1466,7 +1466,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 121, "col": 2, "byteIndex": 2480 @@ -1488,7 +1488,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 122, "col": 2, "byteIndex": 2515 @@ -1507,7 +1507,7 @@ { "name": "versionstamp", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 123, "col": 2, "byteIndex": 2539 @@ -1526,7 +1526,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", "line": 124, "col": 2, "byteIndex": 2573 @@ -1552,14 +1552,14 @@ "name": "DenoKvResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", - "line": 131, + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/results.ts", + "line": 130, "col": 0, - "byteIndex": 2726 + "byteIndex": 2649 }, "declarationKind": "export", "jsDoc": { - "doc": "Union of all Deno KV result types.\nUsed by expectDenoKvResult to determine the appropriate expectation type." + "doc": "Union of all Deno KV result types." }, "kind": "typeAlias", "typeAliasDef": { @@ -1643,7 +1643,7 @@ "name": "DenoKvAtomicBuilder", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 25, "col": 0, "byteIndex": 660 @@ -1664,7 +1664,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 30, "col": 2, "byteIndex": 819 @@ -1707,7 +1707,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 35, "col": 2, "byteIndex": 912 @@ -1753,7 +1753,7 @@ { "name": "expireIn", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 35, "col": 48, "byteIndex": 958 @@ -1794,7 +1794,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 40, "col": 2, "byteIndex": 1038 @@ -1829,7 +1829,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 45, "col": 2, "byteIndex": 1136 @@ -1874,7 +1874,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 50, "col": 2, "byteIndex": 1252 @@ -1919,7 +1919,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 55, "col": 2, "byteIndex": 1368 @@ -1964,7 +1964,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 60, "col": 2, "byteIndex": 1456 @@ -2001,7 +2001,7 @@ "name": "DenoKvAtomicBuilderImpl", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 66, "col": 0, "byteIndex": 1548 @@ -2034,7 +2034,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 71, "col": 2, "byteIndex": 1739 @@ -2086,7 +2086,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 75, "col": 2, "byteIndex": 1805 @@ -2141,7 +2141,7 @@ { "name": "expireIn", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 87, "col": 48, "byteIndex": 2155 @@ -2178,7 +2178,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 87, "col": 2, "byteIndex": 2109 @@ -2218,7 +2218,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 101, "col": 2, "byteIndex": 2569 @@ -2268,7 +2268,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 111, "col": 2, "byteIndex": 2851 @@ -2318,7 +2318,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 122, "col": 2, "byteIndex": 3165 @@ -2368,7 +2368,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 133, "col": 2, "byteIndex": 3479 @@ -2406,7 +2406,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/atomic.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/atomic.ts", "line": 144, "col": 2, "byteIndex": 3793 @@ -2432,7 +2432,7 @@ "name": "DenoKvClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 40, "col": 0, "byteIndex": 1071 @@ -2462,7 +2462,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 49, "col": 2, "byteIndex": 1252 @@ -2535,7 +2535,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 54, "col": 2, "byteIndex": 1380 @@ -2704,7 +2704,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 62, "col": 2, "byteIndex": 1594 @@ -2781,7 +2781,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 71, "col": 2, "byteIndex": 1734 @@ -2841,7 +2841,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 76, "col": 2, "byteIndex": 1859 @@ -2914,7 +2914,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 84, "col": 2, "byteIndex": 2027 @@ -2938,7 +2938,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 89, "col": 2, "byteIndex": 2103 @@ -2969,7 +2969,7 @@ "doc": "Client configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 44, "col": 2, "byteIndex": 1168 @@ -2998,7 +2998,7 @@ "name": "createDenoKvClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-deno-kv/0.2.0/client.ts", "line": 441, "col": 0, "byteIndex": 11615 @@ -3081,1341 +3081,7 @@ "isGenerator": false, "typeParams": [] } - }, - { - "name": "DenoKvGetResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 15, - "col": 0, - "byteIndex": 285 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for validating DenoKvGetResult." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that operation succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 17, - "col": 2, - "byteIndex": 377 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that operation did not succeed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 20, - "col": 2, - "byteIndex": 439 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that no value was found (value is null)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 23, - "col": 2, - "byteIndex": 513 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that a value was found (value is not null)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 26, - "col": 2, - "byteIndex": 594 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "value", - "jsDoc": { - "doc": "Assert that value equals expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 29, - "col": 2, - "byteIndex": 660 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Assert that data contains expected properties" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 32, - "col": 2, - "byteIndex": 744 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Assert data using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 35, - "col": 2, - "byteIndex": 838 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasVersionstamp", - "jsDoc": { - "doc": "Assert that versionstamp exists" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 38, - "col": 2, - "byteIndex": 928 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 41, - "col": 2, - "byteIndex": 1014 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "DenoKvListResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 47, - "col": 0, - "byteIndex": 1108 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for validating DenoKvListResult." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that operation succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 49, - "col": 2, - "byteIndex": 1201 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that operation did not succeed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 52, - "col": 2, - "byteIndex": 1263 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that no entries were found" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 55, - "col": 2, - "byteIndex": 1324 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that at least one entry was found" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 58, - "col": 2, - "byteIndex": 1396 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "count", - "jsDoc": { - "doc": "Assert that entry count equals expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 61, - "col": 2, - "byteIndex": 1468 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "jsDoc": { - "doc": "Assert that entry count is at least min" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 64, - "col": 2, - "byteIndex": 1551 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "jsDoc": { - "doc": "Assert that entry count is at most max" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 67, - "col": 2, - "byteIndex": 1635 - }, - "params": [ - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "entryContains", - "jsDoc": { - "doc": "Assert that at least one entry contains expected properties" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 70, - "col": 2, - "byteIndex": 1739 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "key", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 70, - "col": 26, - "byteIndex": 1763 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Deno.KvKey", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Deno.KvKey" - } - }, - "typeParams": [] - }, - { - "name": "value", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 70, - "col": 44, - "byteIndex": 1781 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "entriesMatch", - "jsDoc": { - "doc": "Assert entries using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 73, - "col": 2, - "byteIndex": 1867 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "entries", - "optional": false, - "tsType": { - "repr": "DenoKvEntries", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "DenoKvEntries" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 76, - "col": 2, - "byteIndex": 1994 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "DenoKvSetResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 82, - "col": 0, - "byteIndex": 2087 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for validating DenoKvSetResult." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that operation succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 84, - "col": 2, - "byteIndex": 2176 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that operation did not succeed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 87, - "col": 2, - "byteIndex": 2238 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasVersionstamp", - "jsDoc": { - "doc": "Assert that versionstamp exists" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 90, - "col": 2, - "byteIndex": 2297 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 93, - "col": 2, - "byteIndex": 2383 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "DenoKvDeleteResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 99, - "col": 0, - "byteIndex": 2479 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for validating DenoKvDeleteResult." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that operation succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 101, - "col": 2, - "byteIndex": 2571 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that operation did not succeed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 104, - "col": 2, - "byteIndex": 2633 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 107, - "col": 2, - "byteIndex": 2709 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "DenoKvAtomicResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 113, - "col": 0, - "byteIndex": 2805 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for validating DenoKvAtomicResult." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that operation succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 115, - "col": 2, - "byteIndex": 2897 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that operation did not succeed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 118, - "col": 2, - "byteIndex": 2959 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasVersionstamp", - "jsDoc": { - "doc": "Assert that versionstamp exists (only present on successful atomic commits)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 121, - "col": 2, - "byteIndex": 3062 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 124, - "col": 2, - "byteIndex": 3148 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "DenoKvExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 452, - "col": 0, - "byteIndex": 10445 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectDenoKvResult based on the result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "DenoKvGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "DenoKvGetResult" - } - }, - "trueType": { - "repr": "DenoKvGetResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "DenoKvGetResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "DenoKvListResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "DenoKvListResult" - } - }, - "trueType": { - "repr": "DenoKvListResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "DenoKvListResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "DenoKvSetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvSetResult" - } - }, - "trueType": { - "repr": "DenoKvSetResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvSetResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "DenoKvDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvDeleteResult" - } - }, - "trueType": { - "repr": "DenoKvDeleteResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvDeleteResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "DenoKvAtomicResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvAtomicResult" - } - }, - "trueType": { - "repr": "DenoKvAtomicResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvAtomicResultExpectation" - } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - } - } - } - } - } - } - } - }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "DenoKvResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvResult" - } - } - } - ] - } - }, - { - "name": "expectDenoKvResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/expect.ts", - "line": 490, - "col": 0, - "byteIndex": 12070 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for any Deno KV result validation.\n\nThis unified function accepts any Deno KV result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\n// For GET result - returns DenoKvGetResultExpectation\nconst getResult = await kv.get([\"users\", \"1\"]);\nexpectDenoKvResult(getResult).ok().hasContent().dataContains({ name: \"Alice\" });\n\n// For SET result - returns DenoKvSetResultExpectation\nconst setResult = await kv.set([\"users\", \"1\"], { name: \"Alice\" });\nexpectDenoKvResult(setResult).ok().hasVersionstamp();\n\n// For LIST result - returns DenoKvListResultExpectation\nconst listResult = await kv.list({ prefix: [\"users\"] });\nexpectDenoKvResult(listResult).ok().count(3);\n\n// For DELETE result - returns DenoKvDeleteResultExpectation\nconst deleteResult = await kv.delete([\"users\", \"1\"]);\nexpectDenoKvResult(deleteResult).ok();\n\n// For ATOMIC result - returns DenoKvAtomicResultExpectation\nconst atomicResult = await kv.atomic().set([\"counter\"], 1).commit();\nexpectDenoKvResult(atomicResult).ok().hasVersionstamp();\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - } - ], - "returnType": { - "repr": "DenoKvExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "DenoKvExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "DenoKvResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "DenoKvResult" - } - } - } - ] - } } ], - "generatedAt": "2025-12-09T00:26:33.548Z" + "generatedAt": "2025-12-09T20:05:10.385Z" } diff --git a/data/api/client-graphql.json b/data/api/client-graphql.json index 9055427..231942d 100644 --- a/data/api/client-graphql.json +++ b/data/api/client-graphql.json @@ -1,14 +1,14 @@ { "name": "client-graphql", "specifier": "@probitas/client-graphql", - "version": "0.1.1", - "moduleDoc": "GraphQL client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a GraphQL client with fluent assertion APIs, designed for\nintegration testing of GraphQL APIs.\n\n## Features\n\n- **Query & Mutation**: Full support for GraphQL operations\n- **Fluent Assertions**: Chain assertions like `.ok()`, `.dataContains()`, `.hasNoErrors()`\n- **Variables Support**: Pass typed variables to queries and mutations\n- **Duration Tracking**: Built-in timing for performance assertions\n- **Error Inspection**: Assert on GraphQL errors and their structure\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n- **Template Literals**: Re-exports `outdent` for clean multi-line queries\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-graphql\n```\n\n## Quick Start\n\n```ts\nimport {\n createGraphqlClient,\n expectGraphqlResponse,\n outdent,\n} from \"@probitas/client-graphql\";\n\nconst client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\n// Query with variables\nconst res = await client.query(outdent`\n query GetUser($id: ID!) {\n user(id: $id) { id name email }\n }\n`, { id: \"123\" });\n\nexpectGraphqlResponse(res)\n .ok()\n .hasNoErrors()\n .dataContains({ user: { id: \"123\" } })\n .durationLessThan(1000);\n\n// Mutation\nconst created = await client.mutation(outdent`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id name }\n }\n`, { input: { name: \"Jane\", email: \"jane@example.com\" } });\n\nexpectGraphqlResponse(created).ok();\n\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\nconst res = await client.query(`{ __typename }`);\nexpectGraphqlResponse(res).ok();\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-http`](https://jsr.io/@probitas/client-http) | HTTP client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", + "version": "0.2.0", + "moduleDoc": "GraphQL client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a GraphQL client designed for integration testing of GraphQL APIs.\n\n## Features\n\n- **Query & Mutation**: Full support for GraphQL operations\n- **Variables Support**: Pass typed variables to queries and mutations\n- **Duration Tracking**: Built-in timing for performance monitoring\n- **Error Inspection**: Inspect GraphQL errors and their structure\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n- **Template Literals**: Re-exports `outdent` for clean multi-line queries\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-graphql\n```\n\n## Quick Start\n\n```ts\nimport { createGraphqlClient, outdent } from \"@probitas/client-graphql\";\n\nconst client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\n// Query with variables\nconst res = await client.query(outdent`\n query GetUser($id: ID!) {\n user(id: $id) { id name email }\n }\n`, { id: \"123\" });\nconsole.log(\"User:\", res.data());\n\n// Mutation\nconst created = await client.mutation(outdent`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id name }\n }\n`, { input: { name: \"Jane\", email: \"jane@example.com\" } });\nconsole.log(\"Created:\", created.data());\n\nawait client.close();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = createGraphqlClient({ url: \"http://localhost:4000/graphql\" });\n\nconst res = await client.query(`{ __typename }`);\nconsole.log(res.data());\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-http`](https://jsr.io/@probitas/client-http) | HTTP client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", "exports": [ { "name": "createGraphqlClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/client.ts", "line": 491, "col": 0, "byteIndex": 13984 @@ -102,7 +102,7 @@ "name": "GraphqlErrorItem", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 7, "col": 0, "byteIndex": 224 @@ -129,7 +129,7 @@ "doc": "Error message" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 9, "col": 2, "byteIndex": 285 @@ -151,7 +151,7 @@ "doc": "Location(s) in the GraphQL document where the error occurred" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 12, "col": 2, "byteIndex": 384 @@ -178,7 +178,7 @@ { "name": "line", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 12, "col": 34, "byteIndex": 416 @@ -196,7 +196,7 @@ { "name": "column", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 12, "col": 48, "byteIndex": 430 @@ -227,7 +227,7 @@ "doc": "Path to the field that caused the error" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 15, "col": 2, "byteIndex": 502 @@ -275,7 +275,7 @@ "doc": "Additional error metadata" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 18, "col": 2, "byteIndex": 586 @@ -315,7 +315,7 @@ "name": "GraphqlResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 25, "col": 0, "byteIndex": 732 @@ -336,7 +336,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 54, "col": 2, "byteIndex": 1506 @@ -384,7 +384,7 @@ "doc": "Result type identifier" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 27, "col": 2, "byteIndex": 810 @@ -409,7 +409,7 @@ "doc": "Whether the request was successful (no errors)" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 30, "col": 2, "byteIndex": 895 @@ -431,7 +431,7 @@ "doc": "GraphQL errors array (null if no errors)" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 33, "col": 2, "byteIndex": 970 @@ -478,7 +478,7 @@ "doc": "Response extensions" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 36, "col": 2, "byteIndex": 1055 @@ -514,7 +514,7 @@ "doc": "Response time in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 39, "col": 2, "byteIndex": 1144 @@ -536,7 +536,7 @@ "doc": "HTTP status code" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 42, "col": 2, "byteIndex": 1200 @@ -558,7 +558,7 @@ "doc": "Headers from the HTTP response" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 45, "col": 2, "byteIndex": 1268 @@ -583,7 +583,7 @@ "doc": "Raw Web standard Response (for streaming or special cases)" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 48, "col": 2, "byteIndex": 1366 @@ -621,7 +621,7 @@ "name": "GraphqlOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 60, "col": 0, "byteIndex": 1586 @@ -651,7 +651,7 @@ "doc": "Additional request headers" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 62, "col": 2, "byteIndex": 1680 @@ -687,7 +687,7 @@ "doc": "Operation name (for documents with multiple operations)" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 65, "col": 2, "byteIndex": 1791 @@ -715,7 +715,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 71, "col": 2, "byteIndex": 1972 @@ -741,7 +741,7 @@ "name": "GraphqlConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 79, "col": 0, "byteIndex": 2121 @@ -777,7 +777,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 84, "col": 2, "byteIndex": 2252 @@ -822,7 +822,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 90, "col": 2, "byteIndex": 2358 @@ -848,7 +848,7 @@ "name": "GraphqlClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 96, "col": 0, "byteIndex": 2426 @@ -884,7 +884,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 111, "col": 2, "byteIndex": 2810 @@ -920,7 +920,7 @@ "doc": "Default headers for all requests" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 114, "col": 2, "byteIndex": 2903 @@ -956,7 +956,7 @@ "doc": "WebSocket endpoint URL (for subscriptions)" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 117, "col": 2, "byteIndex": 3001 @@ -978,7 +978,7 @@ "doc": "Custom fetch implementation (for testing/mocking)" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 120, "col": 2, "byteIndex": 3093 @@ -1006,7 +1006,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 127, "col": 2, "byteIndex": 3279 @@ -1032,7 +1032,7 @@ "name": "GraphqlClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 133, "col": 0, "byteIndex": 3352 @@ -1062,7 +1062,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 139, "col": 2, "byteIndex": 3553 @@ -1172,7 +1172,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 147, "col": 2, "byteIndex": 3799 @@ -1282,7 +1282,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 155, "col": 2, "byteIndex": 4071 @@ -1392,7 +1392,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 163, "col": 2, "byteIndex": 4345 @@ -1502,7 +1502,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 170, "col": 2, "byteIndex": 4578 @@ -1533,7 +1533,7 @@ "doc": "Client configuration" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/types.ts", "line": 135, "col": 2, "byteIndex": 3441 @@ -1562,7 +1562,7 @@ "name": "GraphqlErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 7, "col": 0, "byteIndex": 174 @@ -1592,7 +1592,7 @@ "doc": "Associated GraphQL response" }, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 9, "col": 2, "byteIndex": 273 @@ -1621,7 +1621,7 @@ "name": "GraphqlError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 15, "col": 0, "byteIndex": 350 @@ -1688,7 +1688,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 25, "col": 2, "byteIndex": 678 @@ -1710,7 +1710,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 16, "col": 2, "byteIndex": 400 @@ -1733,7 +1733,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 17, "col": 2, "byteIndex": 451 @@ -1769,7 +1769,7 @@ "isStatic": false, "name": "errors", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 20, "col": 2, "byteIndex": 537 @@ -1794,7 +1794,7 @@ "isStatic": false, "name": "response", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 23, "col": 2, "byteIndex": 638 @@ -1813,7 +1813,7 @@ "name": "GraphqlNetworkError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 39, "col": 0, "byteIndex": 981 @@ -1856,7 +1856,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 42, "col": 2, "byteIndex": 1090 @@ -1878,7 +1878,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 40, "col": 2, "byteIndex": 1039 @@ -1897,7 +1897,7 @@ "name": "GraphqlValidationError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 50, "col": 0, "byteIndex": 1240 @@ -1954,7 +1954,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 53, "col": 2, "byteIndex": 1355 @@ -1976,7 +1976,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 51, "col": 2, "byteIndex": 1301 @@ -1995,7 +1995,7 @@ "name": "GraphqlExecutionError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 67, "col": 0, "byteIndex": 1653 @@ -2052,7 +2052,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 70, "col": 2, "byteIndex": 1766 @@ -2074,7 +2074,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/errors.ts", "line": 68, "col": 2, "byteIndex": 1713 @@ -2093,7 +2093,7 @@ "name": "GraphqlResponseOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 6, "col": 0, "byteIndex": 121 @@ -2111,7 +2111,7 @@ { "name": "data", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 7, "col": 2, "byteIndex": 168 @@ -2144,7 +2144,7 @@ { "name": "errors", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 8, "col": 2, "byteIndex": 195 @@ -2188,7 +2188,7 @@ { "name": "extensions", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 9, "col": 2, "byteIndex": 250 @@ -2221,7 +2221,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 10, "col": 2, "byteIndex": 299 @@ -2240,7 +2240,7 @@ { "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 11, "col": 2, "byteIndex": 328 @@ -2259,7 +2259,7 @@ { "name": "raw", "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 12, "col": 2, "byteIndex": 355 @@ -2292,7 +2292,7 @@ "name": "createGraphqlResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-graphql/0.2.0/response.ts", "line": 49, "col": 0, "byteIndex": 1325 @@ -2353,760 +2353,7 @@ } ] } - }, - { - "name": "GraphqlResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 7, - "col": 0, - "byteIndex": 183 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for GraphQL response validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that response has no errors" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 9, - "col": 2, - "byteIndex": 275 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that response has errors" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 12, - "col": 2, - "byteIndex": 331 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "errorCount", - "jsDoc": { - "doc": "Assert exact number of errors" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 15, - "col": 2, - "byteIndex": 388 - }, - "params": [ - { - "kind": "identifier", - "name": "n", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "errorContains", - "jsDoc": { - "doc": "Assert that at least one error contains the message" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 18, - "col": 2, - "byteIndex": 481 - }, - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "error", - "jsDoc": { - "doc": "Assert that at least one error message matches the string or regex" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 21, - "col": 2, - "byteIndex": 598 - }, - "params": [ - { - "kind": "identifier", - "name": "messageMatcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "errorMatch", - "jsDoc": { - "doc": "Assert errors using custom matcher" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 24, - "col": 2, - "byteIndex": 691 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "errors", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "GraphqlErrorItem", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlErrorItem" - } - } - } - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that data is not null" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 27, - "col": 2, - "byteIndex": 806 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that data is null" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 30, - "col": 2, - "byteIndex": 863 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Assert that data contains expected subset (deep partial match)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 34, - "col": 2, - "byteIndex": 995 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Assert data using custom matcher" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 38, - "col": 2, - "byteIndex": 1127 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "data", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "extensionExists", - "jsDoc": { - "doc": "Assert that an extension key exists" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 41, - "col": 2, - "byteIndex": 1229 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "extensionMatch", - "jsDoc": { - "doc": "Assert extension using custom matcher" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 44, - "col": 2, - "byteIndex": 1315 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "Assert HTTP status code" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 47, - "col": 2, - "byteIndex": 1421 - }, - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "statusInRange", - "jsDoc": { - "doc": "Assert that HTTP status code is within range (inclusive)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 50, - "col": 2, - "byteIndex": 1518 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "statusIn", - "jsDoc": { - "doc": "Assert that HTTP status code is one of the given codes" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 53, - "col": 2, - "byteIndex": 1632 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "statuses", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "statusNotIn", - "jsDoc": { - "doc": "Assert that HTTP status code is not one of the given codes" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 56, - "col": 2, - "byteIndex": 1742 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "statuses", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that response duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 59, - "col": 2, - "byteIndex": 1854 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "expectGraphqlResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/expect.ts", - "line": 304, - "col": 0, - "byteIndex": 8181 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for GraphQL response validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", - "tags": [ - { - "kind": "param", - "name": "response", - "doc": "- The GraphQL response to validate" - }, - { - "kind": "return", - "doc": "A fluent expectation chain\n" - }, - { - "kind": "example", - "doc": "Basic assertions\n```ts\nconst response = await client.query(`\n query GetUser($id: ID!) {\n user(id: $id) { id name }\n }\n`, { id: \"123\" });\n\nexpectGraphqlResponse(response)\n .ok()\n .hasContent()\n .dataContains({ user: { name: \"Alice\" } });\n```\n" - }, - { - "kind": "example", - "doc": "Error assertions\n```ts\nconst response = await client.query(`\n query { invalidField }\n`, undefined, { throwOnError: false });\n\nexpectGraphqlResponse(response)\n .notOk()\n .errorContains(\"Cannot query field\");\n```\n" - }, - { - "kind": "example", - "doc": "Mutation with custom matcher\n```ts\nconst response = await client.mutation(`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id name }\n }\n`, { input: { name: \"Bob\" } });\n\nexpectGraphqlResponse(response)\n .ok()\n .dataMatch((data) => {\n assertEquals(data.createUser.name, \"Bob\");\n });\n```\n" - }, - { - "kind": "example", - "doc": "Performance assertions\n```ts\nexpectGraphqlResponse(response)\n .ok()\n .durationLessThan(500); // Must respond within 500ms\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "GraphqlResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponse" - } - } - } - ], - "returnType": { - "repr": "GraphqlResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlResponseExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } } ], - "generatedAt": "2025-12-09T00:26:33.678Z" + "generatedAt": "2025-12-09T20:05:10.466Z" } diff --git a/data/api/client-grpc.json b/data/api/client-grpc.json index 534cc7c..ba87377 100644 --- a/data/api/client-grpc.json +++ b/data/api/client-grpc.json @@ -1,8 +1,8 @@ { "name": "client-grpc", "specifier": "@probitas/client-grpc", - "version": "0.2.1", - "moduleDoc": "gRPC client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a gRPC client with Server Reflection support, designed for\nintegration testing of gRPC services. It is a thin wrapper around\n[`@probitas/client-connectrpc`](https://jsr.io/@probitas/client-connectrpc) with\n`protocol: \"grpc\"` pre-configured.\n\n## Features\n\n- **Native gRPC**: Uses gRPC protocol (HTTP/2 with binary protobuf)\n- **Server Reflection**: Auto-discover services and methods at runtime\n- **Fluent Assertions**: Chain assertions like `.ok()`, `.dataContains()`, `.code()`\n- **TLS Support**: Configure secure connections with custom certificates\n- **Duration Tracking**: Built-in timing for performance assertions\n- **Error Handling**: Test error responses without throwing exceptions\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-grpc\n```\n\n## Quick Start\n\n```ts\nimport { createGrpcClient, expectGrpcResponse } from \"@probitas/client-grpc\";\n\n// Create client (uses reflection by default)\nconst client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Call a method with fluent assertions\nconst response = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { message: \"Hello!\" }\n);\n\nexpectGrpcResponse(response)\n .ok()\n .dataContains({ message: \"Hello!\" })\n .durationLessThan(1000);\n\nawait client.close();\n```\n\n## Service Discovery\n\n```ts\n// Discover available services\nconst services = await client.reflection.listServices();\nconsole.log(\"Services:\", services);\n\n// Get method information\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = createGrpcClient({ url: \"http://localhost:50051\" });\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\nexpectGrpcResponse(res).ok();\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-connectrpc`](https://jsr.io/@probitas/client-connectrpc) | ConnectRPC client (supports Connect, gRPC, gRPC-Web) |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [gRPC](https://grpc.io/)\n", + "version": "0.3.0", + "moduleDoc": "gRPC client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a gRPC client with Server Reflection support, designed for\nintegration testing of gRPC services. It is a thin wrapper around\n[`@probitas/client-connectrpc`](https://jsr.io/@probitas/client-connectrpc) with\n`protocol: \"grpc\"` pre-configured.\n\n## Features\n\n- **Native gRPC**: Uses gRPC protocol (HTTP/2 with binary protobuf)\n- **Server Reflection**: Auto-discover services and methods at runtime\n- **TLS Support**: Configure secure connections with custom certificates\n- **Duration Tracking**: Built-in timing for performance monitoring\n- **Error Handling**: Test error responses without throwing exceptions\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-grpc\n```\n\n## Quick Start\n\n```ts\nimport { createGrpcClient } from \"@probitas/client-grpc\";\n\n// Create client (uses reflection by default)\nconst client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\n// Call a method\nconst response = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { message: \"Hello!\" }\n);\nconsole.log(response.data());\n\nawait client.close();\n```\n\n## Service Discovery\n\n```ts\n// Discover available services\nconst services = await client.reflection.listServices();\nconsole.log(\"Services:\", services);\n\n// Get method information\nconst info = await client.reflection.getServiceInfo(\"echo.EchoService\");\nconsole.log(\"Methods:\", info.methods);\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = createGrpcClient({ url: \"http://localhost:50051\" });\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\nconsole.log(res.data());\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-connectrpc`](https://jsr.io/@probitas/client-connectrpc) | ConnectRPC client (supports Connect, gRPC, gRPC-Web) |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [gRPC](https://grpc.io/)\n", "exports": [ { "name": "GrpcClient", @@ -1741,648 +1741,6 @@ "typeParams": [] } }, - { - "name": "GrpcResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 14, - "col": 0, - "byteIndex": 310 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent assertion interface for ConnectRpcResponse." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Verify that status is OK (code === 0)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 16, - "col": 2, - "byteIndex": 409 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Verify that status is not OK." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 19, - "col": 2, - "byteIndex": 463 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "code", - "jsDoc": { - "doc": "Verify the exact status code." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 22, - "col": 2, - "byteIndex": 520 - }, - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "codeIn", - "jsDoc": { - "doc": "Verify the status code is one of the specified values." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 25, - "col": 2, - "byteIndex": 627 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "codes", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "ConnectRpcStatusCode", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcStatusCode" - } - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "message", - "jsDoc": { - "doc": "Verify the status message matches exactly or by regex." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 28, - "col": 2, - "byteIndex": 742 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "messageContains", - "jsDoc": { - "doc": "Verify the status message contains the substring." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 31, - "col": 2, - "byteIndex": 846 - }, - "params": [ - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "messageMatch", - "jsDoc": { - "doc": "Verify the status message using a custom matcher." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 34, - "col": 2, - "byteIndex": 950 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Verify a header value matches exactly or by regex." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 37, - "col": 2, - "byteIndex": 1069 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headersExist", - "jsDoc": { - "doc": "Verify that a header key exists." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 40, - "col": 2, - "byteIndex": 1169 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "trailers", - "jsDoc": { - "doc": "Verify a trailer value matches exactly or by regex." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 43, - "col": 2, - "byteIndex": 1266 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "trailersExist", - "jsDoc": { - "doc": "Verify that a trailer key exists." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 46, - "col": 2, - "byteIndex": 1368 - }, - "params": [ - { - "kind": "identifier", - "name": "key", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Verify that data() is null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 49, - "col": 2, - "byteIndex": 1442 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Verify that data() is not null." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 52, - "col": 2, - "byteIndex": 1505 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Verify that data() contains the specified properties (deep partial match)." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 56, - "col": 2, - "byteIndex": 1650 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Verify data() using a custom matcher." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 60, - "col": 2, - "byteIndex": 1787 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "data", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Verify that response duration is less than the threshold." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 63, - "col": 2, - "byteIndex": 1911 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, { "name": "GrpcStatus", "isDefault": false, @@ -3168,50 +2526,6 @@ "typeParams": [] } }, - { - "name": "expectGrpcResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/expect.ts", - "line": 240, - "col": 0, - "byteIndex": 6288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent assertion for a ConnectRpcResponse." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "ConnectRpcResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponse" - } - } - } - ], - "returnType": { - "repr": "ConnectRpcResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ConnectRpcResponseExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, { "name": "FileDescriptorSet", "isDefault": false, @@ -4144,10 +3458,10 @@ "name": "GrpcClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.2.1/mod.ts", - "line": 133, + "filename": "https://jsr.io/@probitas/client-grpc/0.3.0/mod.ts", + "line": 125, "col": 0, - "byteIndex": 4188 + "byteIndex": 3840 }, "declarationKind": "export", "jsDoc": { @@ -4194,10 +3508,10 @@ "name": "createGrpcClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-grpc/0.2.1/mod.ts", - "line": 204, + "filename": "https://jsr.io/@probitas/client-grpc/0.3.0/mod.ts", + "line": 196, "col": 0, - "byteIndex": 6010 + "byteIndex": 5676 }, "declarationKind": "export", "jsDoc": { @@ -4222,11 +3536,11 @@ }, { "kind": "example", - "doc": "Testing error responses\n```ts\nconst response = await client.call(\n \"user.UserService\",\n \"getUser\",\n { id: \"non-existent\" },\n { throwOnError: false }\n);\n\nexpectGrpcResponse(response)\n .notOk()\n .code(5); // NOT_FOUND\n```\n" + "doc": "Testing error responses\n```ts\nconst response = await client.call(\n \"user.UserService\",\n \"getUser\",\n { id: \"non-existent\" },\n { throwOnError: false }\n);\n\nif (!response.ok) {\n console.log(\"Error code:\", response.code); // NOT_FOUND = 5\n}\n```\n" }, { "kind": "example", - "doc": "Using `await using` for automatic cleanup\n```ts\nawait using client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\nexpectGrpcResponse(res).ok();\n// Client automatically closed when scope exits\n```" + "doc": "Using `await using` for automatic cleanup\n```ts\nawait using client = createGrpcClient({\n url: \"http://localhost:50051\",\n});\n\nconst res = await client.call(\"echo.EchoService\", \"echo\", { message: \"test\" });\nconsole.log(res.data());\n// Client automatically closed when scope exits\n```" } ] }, @@ -4262,5 +3576,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:33.813Z" + "generatedAt": "2025-12-09T20:05:10.976Z" } diff --git a/data/api/client-http.json b/data/api/client-http.json index 17af4d0..d788460 100644 --- a/data/api/client-http.json +++ b/data/api/client-http.json @@ -1,14 +1,14 @@ { "name": "client-http", "specifier": "@probitas/client-http", - "version": "0.1.1", - "moduleDoc": "HTTP client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides an HTTP client with fluent assertion APIs, designed for\nintegration testing of HTTP APIs.\n\n## Features\n\n- **Fluent Assertions**: Chain assertions like `.ok()`, `.contentType()`, `.dataContains()`\n- **All HTTP Methods**: Support for GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS\n- **Request Building**: Headers, query parameters, body (JSON, form, multipart)\n- **Response Inspection**: Status codes, headers, cookies, body parsing\n- **Duration Tracking**: Built-in timing for performance assertions\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-http\n```\n\n## Quick Start\n\n```ts\nimport { createHttpClient, expectHttpResponse } from \"@probitas/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\" });\n\n// GET request with assertions\nconst res = await http.get(\"/users/123\");\nexpectHttpResponse(res)\n .ok()\n .contentType(\"application/json\")\n .dataContains({ name: \"John\" });\n\n// Extract typed data\nconst user = res.json();\n\n// POST request\nconst created = await http.post(\"/users\", {\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ name: \"Jane\" }),\n});\nexpectHttpResponse(created).status(201);\n\nawait http.close();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst res = await http.get(\"/health\");\nexpectHttpResponse(res).ok();\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-graphql`](https://jsr.io/@probitas/client-graphql) | GraphQL client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", + "version": "0.2.0", + "moduleDoc": "HTTP client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides an HTTP client designed for integration testing of HTTP APIs.\n\n## Features\n\n- **All HTTP Methods**: Support for GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS\n- **Request Building**: Headers, query parameters, body (JSON, form, multipart)\n- **Response Inspection**: Status codes, headers, cookies, body parsing\n- **Duration Tracking**: Built-in timing for performance monitoring\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-http\n```\n\n## Quick Start\n\n```ts\nimport { createHttpClient } from \"@probitas/client-http\";\n\nconst http = createHttpClient({ url: \"http://localhost:3000\" });\n\n// GET request\nconst res = await http.get(\"/users/123\");\nconsole.log(\"Status:\", res.status);\n\n// Extract typed data\nconst user = res.json();\n\n// POST request\nconst created = await http.post(\"/users\", {\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ name: \"Jane\" }),\n});\nconsole.log(\"Created:\", created.status);\n\nawait http.close();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using http = createHttpClient({ url: \"http://localhost:3000\" });\n\nconst res = await http.get(\"/health\");\nconsole.log(\"Health:\", res.ok);\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-graphql`](https://jsr.io/@probitas/client-graphql) | GraphQL client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", "exports": [ { "name": "HttpResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 9, "col": 0, "byteIndex": 301 @@ -29,7 +29,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 36, "col": 2, "byteIndex": 961 @@ -64,7 +64,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 39, "col": 2, "byteIndex": 1043 @@ -99,7 +99,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 42, "col": 2, "byteIndex": 1111 @@ -138,7 +138,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 49, "col": 2, "byteIndex": 1290 @@ -183,7 +183,7 @@ "doc": "Result type identifier" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 11, "col": 2, "byteIndex": 367 @@ -208,7 +208,7 @@ "doc": "Whether the response was successful (status 200-299)" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 16, "col": 2, "byteIndex": 513 @@ -230,7 +230,7 @@ "doc": "HTTP status code" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 19, "col": 2, "byteIndex": 564 @@ -252,7 +252,7 @@ "doc": "HTTP status text" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 22, "col": 2, "byteIndex": 618 @@ -274,7 +274,7 @@ "doc": "Response headers" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 25, "col": 2, "byteIndex": 676 @@ -299,7 +299,7 @@ "doc": "Request URL" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 28, "col": 2, "byteIndex": 727 @@ -321,7 +321,7 @@ "doc": "Response body as raw bytes (null if no body)" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 33, "col": 2, "byteIndex": 873 @@ -357,7 +357,7 @@ "doc": "Response time in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 54, "col": 2, "byteIndex": 1395 @@ -379,7 +379,7 @@ "doc": "Raw Web standard Response (for streaming or special cases)" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 57, "col": 2, "byteIndex": 1493 @@ -408,7 +408,7 @@ "name": "QueryValue", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 63, "col": 0, "byteIndex": 1570 @@ -447,7 +447,7 @@ "name": "BodyInit", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 68, "col": 0, "byteIndex": 1653 @@ -519,7 +519,7 @@ "name": "RedirectMode", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 81, "col": 0, "byteIndex": 1952 @@ -567,7 +567,7 @@ "name": "HttpOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 86, "col": 0, "byteIndex": 2060 @@ -597,7 +597,7 @@ "doc": "Query parameters (arrays for multi-value params)" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 88, "col": 2, "byteIndex": 2173 @@ -654,7 +654,7 @@ "doc": "Additional request headers" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 91, "col": 2, "byteIndex": 2272 @@ -696,7 +696,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 97, "col": 2, "byteIndex": 2430 @@ -727,7 +727,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 104, "col": 2, "byteIndex": 2666 @@ -753,7 +753,7 @@ "name": "CookieConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 110, "col": 0, "byteIndex": 2744 @@ -780,7 +780,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 116, "col": 2, "byteIndex": 2916 @@ -802,7 +802,7 @@ "doc": "Initial cookies to populate the cookie jar." }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 121, "col": 2, "byteIndex": 3009 @@ -842,7 +842,7 @@ "name": "HttpConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 129, "col": 0, "byteIndex": 3162 @@ -878,7 +878,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 134, "col": 2, "byteIndex": 3290 @@ -923,7 +923,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 140, "col": 2, "byteIndex": 3400 @@ -949,7 +949,7 @@ "name": "HttpClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 146, "col": 0, "byteIndex": 3465 @@ -985,7 +985,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 161, "col": 2, "byteIndex": 3843 @@ -1021,7 +1021,7 @@ "doc": "Default headers for all requests" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 164, "col": 2, "byteIndex": 3933 @@ -1057,7 +1057,7 @@ "doc": "Custom fetch implementation (for testing/mocking)" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 167, "col": 2, "byteIndex": 4038 @@ -1085,7 +1085,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 174, "col": 2, "byteIndex": 4196 @@ -1116,7 +1116,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 181, "col": 2, "byteIndex": 4371 @@ -1138,7 +1138,7 @@ "doc": "Cookie handling configuration.\nBy default, the client maintains a cookie jar for automatic\ncookie management across requests.\nSet `cookies: { disabled: true }` to disable." }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 189, "col": 2, "byteIndex": 4611 @@ -1167,7 +1167,7 @@ "name": "HttpClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 195, "col": 0, "byteIndex": 4681 @@ -1197,7 +1197,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 200, "col": 2, "byteIndex": 4831 @@ -1254,7 +1254,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 203, "col": 2, "byteIndex": 4926 @@ -1324,7 +1324,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 210, "col": 2, "byteIndex": 5055 @@ -1394,7 +1394,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 217, "col": 2, "byteIndex": 5185 @@ -1464,7 +1464,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 224, "col": 2, "byteIndex": 5318 @@ -1521,7 +1521,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 227, "col": 2, "byteIndex": 5433 @@ -1573,7 +1573,7 @@ { "name": "body", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 230, "col": 30, "byteIndex": 5510 @@ -1627,7 +1627,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 237, "col": 2, "byteIndex": 5663 @@ -1669,7 +1669,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 243, "col": 2, "byteIndex": 5796 @@ -1711,7 +1711,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 249, "col": 2, "byteIndex": 5937 @@ -1732,7 +1732,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 252, "col": 2, "byteIndex": 6010 @@ -1763,7 +1763,7 @@ "doc": "Client configuration" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/types.ts", "line": 197, "col": 2, "byteIndex": 4767 @@ -1792,7 +1792,7 @@ "name": "HttpErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 7, "col": 0, "byteIndex": 150 @@ -1822,7 +1822,7 @@ "doc": "Associated HTTP response" }, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 9, "col": 2, "byteIndex": 243 @@ -1851,7 +1851,7 @@ "name": "HttpError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 15, "col": 0, "byteIndex": 314 @@ -1914,7 +1914,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 28, "col": 2, "byteIndex": 652 @@ -1936,7 +1936,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 16, "col": 2, "byteIndex": 361 @@ -1959,7 +1959,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 17, "col": 2, "byteIndex": 409 @@ -1981,7 +1981,7 @@ "isStatic": false, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 20, "col": 2, "byteIndex": 480 @@ -2003,7 +2003,7 @@ "isStatic": false, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 23, "col": 2, "byteIndex": 534 @@ -2028,7 +2028,7 @@ "isStatic": false, "name": "response", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 26, "col": 2, "byteIndex": 615 @@ -2047,7 +2047,7 @@ "name": "HttpBadRequestError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 44, "col": 0, "byteIndex": 950 @@ -2090,7 +2090,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 49, "col": 2, "byteIndex": 1147 @@ -2112,7 +2112,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 45, "col": 2, "byteIndex": 1005 @@ -2135,7 +2135,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 46, "col": 2, "byteIndex": 1055 @@ -2155,7 +2155,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 47, "col": 2, "byteIndex": 1098 @@ -2174,7 +2174,7 @@ "name": "HttpUnauthorizedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 57, "col": 0, "byteIndex": 1302 @@ -2217,7 +2217,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 62, "col": 2, "byteIndex": 1504 @@ -2239,7 +2239,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 58, "col": 2, "byteIndex": 1359 @@ -2262,7 +2262,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 59, "col": 2, "byteIndex": 1411 @@ -2282,7 +2282,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 60, "col": 2, "byteIndex": 1454 @@ -2301,7 +2301,7 @@ "name": "HttpForbiddenError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 70, "col": 0, "byteIndex": 1657 @@ -2344,7 +2344,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 75, "col": 2, "byteIndex": 1850 @@ -2366,7 +2366,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 71, "col": 2, "byteIndex": 1711 @@ -2389,7 +2389,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 72, "col": 2, "byteIndex": 1760 @@ -2409,7 +2409,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 73, "col": 2, "byteIndex": 1803 @@ -2428,7 +2428,7 @@ "name": "HttpNotFoundError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 83, "col": 0, "byteIndex": 2000 @@ -2471,7 +2471,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 88, "col": 2, "byteIndex": 2191 @@ -2493,7 +2493,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 84, "col": 2, "byteIndex": 2053 @@ -2516,7 +2516,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 85, "col": 2, "byteIndex": 2101 @@ -2536,7 +2536,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 86, "col": 2, "byteIndex": 2144 @@ -2555,7 +2555,7 @@ "name": "HttpConflictError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 96, "col": 0, "byteIndex": 2340 @@ -2598,7 +2598,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 101, "col": 2, "byteIndex": 2530 @@ -2620,7 +2620,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 97, "col": 2, "byteIndex": 2393 @@ -2643,7 +2643,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 98, "col": 2, "byteIndex": 2441 @@ -2663,7 +2663,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 99, "col": 2, "byteIndex": 2484 @@ -2682,7 +2682,7 @@ "name": "HttpTooManyRequestsError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 109, "col": 0, "byteIndex": 2687 @@ -2725,7 +2725,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 114, "col": 2, "byteIndex": 2900 @@ -2747,7 +2747,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 110, "col": 2, "byteIndex": 2747 @@ -2770,7 +2770,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 111, "col": 2, "byteIndex": 2802 @@ -2790,7 +2790,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 112, "col": 2, "byteIndex": 2845 @@ -2809,7 +2809,7 @@ "name": "HttpInternalServerError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 122, "col": 0, "byteIndex": 3064 @@ -2852,7 +2852,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 127, "col": 2, "byteIndex": 3279 @@ -2874,7 +2874,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 123, "col": 2, "byteIndex": 3123 @@ -2897,7 +2897,7 @@ "isOverride": true, "name": "status", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 124, "col": 2, "byteIndex": 3177 @@ -2917,7 +2917,7 @@ "isOverride": true, "name": "statusText", "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/errors.ts", "line": 125, "col": 2, "byteIndex": 3220 @@ -2936,7 +2936,7 @@ "name": "createHttpClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/client.ts", "line": 414, "col": 0, "byteIndex": 11062 @@ -3007,7 +3007,7 @@ "name": "createHttpResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/response.ts", + "filename": "https://jsr.io/@probitas/client-http/0.2.0/response.ts", "line": 84, "col": 0, "byteIndex": 2092 @@ -3065,898 +3065,7 @@ "isGenerator": false, "typeParams": [] } - }, - { - "name": "HttpResponseExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 7, - "col": 0, - "byteIndex": 177 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for HTTP response validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that response status is 200-299" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 9, - "col": 2, - "byteIndex": 270 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that response status is not 200-299" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 12, - "col": 2, - "byteIndex": 337 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "Assert that response status matches expected code" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 15, - "col": 2, - "byteIndex": 414 - }, - "params": [ - { - "kind": "identifier", - "name": "code", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "statusInRange", - "jsDoc": { - "doc": "Assert that response status is within range (inclusive)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 18, - "col": 2, - "byteIndex": 510 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - }, - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "statusIn", - "jsDoc": { - "doc": "Assert that response status is one of the given values" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 21, - "col": 2, - "byteIndex": 624 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "statuses", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "statusNotIn", - "jsDoc": { - "doc": "Assert that response status is NOT one of the given values" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 24, - "col": 2, - "byteIndex": 734 - }, - "params": [ - { - "kind": "rest", - "arg": { - "kind": "identifier", - "name": "statuses", - "optional": false, - "tsType": null - }, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "header", - "jsDoc": { - "doc": "Assert that header value matches expected string or regex" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 27, - "col": 2, - "byteIndex": 846 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headerExists", - "jsDoc": { - "doc": "Assert that header exists" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 30, - "col": 2, - "byteIndex": 939 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headerContains", - "jsDoc": { - "doc": "Assert that header value contains substring" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 33, - "col": 2, - "byteIndex": 1029 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "headerMatch", - "jsDoc": { - "doc": "Assert header value using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 36, - "col": 2, - "byteIndex": 1146 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "contentType", - "jsDoc": { - "doc": "Assert that Content-Type header matches expected string or regex" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 39, - "col": 2, - "byteIndex": 1290 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "RegExp", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RegExp" - } - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that response body is null" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 42, - "col": 2, - "byteIndex": 1382 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that response body is not null" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 45, - "col": 2, - "byteIndex": 1451 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "bodyContains", - "jsDoc": { - "doc": "Assert that body contains given byte sequence" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 48, - "col": 2, - "byteIndex": 1529 - }, - "params": [ - { - "kind": "identifier", - "name": "subbody", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "bodyMatch", - "jsDoc": { - "doc": "Assert body using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 51, - "col": 2, - "byteIndex": 1624 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "textContains", - "jsDoc": { - "doc": "Assert that text body contains substring" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 54, - "col": 2, - "byteIndex": 1731 - }, - "params": [ - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "textMatch", - "jsDoc": { - "doc": "Assert text body using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 57, - "col": 2, - "byteIndex": 1829 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "text", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Assert that JSON body contains expected properties" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 61, - "col": 2, - "byteIndex": 1980 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Assert JSON body using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 65, - "col": 2, - "byteIndex": 2126 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that response duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 68, - "col": 2, - "byteIndex": 2250 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "expectHttpResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/expect.ts", - "line": 312, - "col": 0, - "byteIndex": 8475 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for HTTP response validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", - "tags": [ - { - "kind": "param", - "name": "response", - "doc": "- The HTTP response to validate" - }, - { - "kind": "return", - "doc": "A fluent expectation chain\n" - }, - { - "kind": "example", - "doc": "Basic assertions\n```ts\nconst response = await http.get(\"/users/123\");\n\nexpectHttpResponse(response)\n .ok()\n .contentType(\"application/json\")\n .dataContains({ id: 123, name: \"Alice\" });\n```\n" - }, - { - "kind": "example", - "doc": "Error response assertions\n```ts\nconst response = await http.get(\"/not-found\", { throwOnError: false });\n\nexpectHttpResponse(response)\n .notOk()\n .status(404);\n```\n" - }, - { - "kind": "example", - "doc": "Performance assertions\n```ts\nexpectHttpResponse(response)\n .ok()\n .durationLessThan(1000); // Must respond within 1 second\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "response", - "optional": false, - "tsType": { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } - } - } - ], - "returnType": { - "repr": "HttpResponseExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponseExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } } ], - "generatedAt": "2025-12-09T00:26:33.945Z" + "generatedAt": "2025-12-09T20:05:11.056Z" } diff --git a/data/api/client-mongodb.json b/data/api/client-mongodb.json index 8410b7b..161e548 100644 --- a/data/api/client-mongodb.json +++ b/data/api/client-mongodb.json @@ -1,14 +1,14 @@ { "name": "client-mongodb", "specifier": "@probitas/client-mongodb", - "version": "0.2.1", - "moduleDoc": "MongoDB client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a MongoDB client with fluent assertion APIs, designed for\nintegration testing of applications using MongoDB.\n\n## Features\n\n- **CRUD Operations**: find, findOne, insertOne, insertMany, updateOne, updateMany, deleteOne, deleteMany\n- **Aggregations**: Full aggregation pipeline support\n- **Sessions**: Transaction support with sessions\n- **Fluent Assertions**: `expectMongoResult()` for testing MongoDB operations\n- **Type Safety**: Generic type parameters for document types\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-mongodb\n```\n\n## Quick Start\n\n```ts\nimport { createMongoClient, expectMongoResult } from \"@probitas/client-mongodb\";\n\nconst client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\n// Get a collection\nconst users = client.collection<{ name: string; email: string }>(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", email: \"alice@example.com\" });\nexpectMongoResult(insertResult).ok().hasInsertedId();\n\n// Find documents\nconst findResult = await users.find({ name: \"Alice\" });\nexpectMongoResult(findResult).ok().countAtLeast(1);\n\n// Find one document\nconst user = await users.findOne({ name: \"Alice\" });\nexpectMongoResult(user).ok().dataContains({ email: \"alice@example.com\" });\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.withSession(async (session) => {\n session.startTransaction();\n try {\n const accounts = client.collection(\"accounts\");\n await accounts.updateOne(\n { _id: \"from\" },\n { $inc: { balance: -100 } },\n { session }\n );\n await accounts.updateOne(\n { _id: \"to\" },\n { $inc: { balance: 100 } },\n { session }\n );\n await session.commitTransaction();\n } catch (error) {\n await session.abortTransaction();\n throw error;\n }\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await client.collection(\"test\").findOne({});\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [MongoDB](https://www.mongodb.com/)\n", + "version": "0.3.0", + "moduleDoc": "MongoDB client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a MongoDB client designed for integration testing of applications using MongoDB.\n\n## Features\n\n- **CRUD Operations**: find, findOne, insertOne, insertMany, updateOne, updateMany, deleteOne, deleteMany\n- **Aggregations**: Full aggregation pipeline support\n- **Sessions**: Transaction support with sessions\n- **Type Safety**: Generic type parameters for document types\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-mongodb\n```\n\n## Quick Start\n\n```ts\nimport { createMongoClient } from \"@probitas/client-mongodb\";\n\nconst client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\n// Get a collection\nconst users = client.collection<{ name: string; email: string }>(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", email: \"alice@example.com\" });\nconsole.log(\"Inserted ID:\", insertResult.insertedId);\n\n// Find documents\nconst findResult = await users.find({ name: \"Alice\" });\nconsole.log(\"Found:\", findResult.documents);\n\n// Find one document\nconst user = await users.findOne({ name: \"Alice\" });\nconsole.log(\"User:\", user?.document);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.withSession(async (session) => {\n session.startTransaction();\n try {\n const accounts = client.collection(\"accounts\");\n await accounts.updateOne(\n { _id: \"from\" },\n { $inc: { balance: -100 } },\n { session }\n );\n await accounts.updateOne(\n { _id: \"to\" },\n { $inc: { balance: 100 } },\n { session }\n );\n await session.commitTransaction();\n } catch (error) {\n await session.abortTransaction();\n throw error;\n }\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createMongoClient({\n url: \"mongodb://localhost:27017\",\n database: \"testdb\",\n});\n\nconst result = await client.collection(\"test\").findOne({});\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [MongoDB](https://www.mongodb.com/)\n", "exports": [ { "name": "MongoConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 8, "col": 0, "byteIndex": 200 @@ -38,7 +38,7 @@ "doc": "Database name to connect to." }, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 12, "col": 2, "byteIndex": 320 @@ -60,7 +60,7 @@ "doc": "Authentication database." }, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 17, "col": 2, "byteIndex": 393 @@ -82,7 +82,7 @@ "doc": "Replica set name." }, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 22, "col": 2, "byteIndex": 461 @@ -108,7 +108,7 @@ "name": "Document", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 29, "col": 0, "byteIndex": 563 @@ -157,7 +157,7 @@ "name": "Filter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 36, "col": 0, "byteIndex": 785 @@ -194,7 +194,7 @@ "name": "UpdateFilter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 43, "col": 0, "byteIndex": 1010 @@ -231,7 +231,7 @@ "name": "MongoDocs", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 48, "col": 0, "byteIndex": 1109 @@ -267,7 +267,7 @@ "name": "first", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 49, "col": 2, "byteIndex": 1168 @@ -299,7 +299,7 @@ "name": "firstOrThrow", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 50, "col": 2, "byteIndex": 1194 @@ -320,7 +320,7 @@ "name": "last", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 51, "col": 2, "byteIndex": 1215 @@ -352,7 +352,7 @@ "name": "lastOrThrow", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 52, "col": 2, "byteIndex": 1240 @@ -384,7 +384,7 @@ "name": "MongoFindResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 58, "col": 0, "byteIndex": 1303 @@ -402,7 +402,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 59, "col": 2, "byteIndex": 1354 @@ -424,7 +424,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 60, "col": 2, "byteIndex": 1385 @@ -443,7 +443,7 @@ { "name": "docs", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 61, "col": 2, "byteIndex": 1409 @@ -474,7 +474,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 62, "col": 2, "byteIndex": 1440 @@ -512,7 +512,7 @@ "name": "MongoInsertOneResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 68, "col": 0, "byteIndex": 1499 @@ -530,7 +530,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 69, "col": 2, "byteIndex": 1541 @@ -552,7 +552,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 70, "col": 2, "byteIndex": 1574 @@ -571,7 +571,7 @@ { "name": "insertedId", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 71, "col": 2, "byteIndex": 1598 @@ -590,7 +590,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 72, "col": 2, "byteIndex": 1629 @@ -616,7 +616,7 @@ "name": "MongoInsertManyResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 78, "col": 0, "byteIndex": 1689 @@ -634,7 +634,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 79, "col": 2, "byteIndex": 1732 @@ -656,7 +656,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 80, "col": 2, "byteIndex": 1765 @@ -675,7 +675,7 @@ { "name": "insertedIds", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 81, "col": 2, "byteIndex": 1789 @@ -705,7 +705,7 @@ { "name": "insertedCount", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 82, "col": 2, "byteIndex": 1832 @@ -724,7 +724,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 83, "col": 2, "byteIndex": 1866 @@ -750,7 +750,7 @@ "name": "MongoUpdateResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 89, "col": 0, "byteIndex": 1921 @@ -768,7 +768,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 90, "col": 2, "byteIndex": 1960 @@ -790,7 +790,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 91, "col": 2, "byteIndex": 1993 @@ -809,7 +809,7 @@ { "name": "matchedCount", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 92, "col": 2, "byteIndex": 2017 @@ -828,7 +828,7 @@ { "name": "modifiedCount", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 93, "col": 2, "byteIndex": 2050 @@ -847,7 +847,7 @@ { "name": "upsertedId", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 94, "col": 2, "byteIndex": 2084 @@ -866,7 +866,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 95, "col": 2, "byteIndex": 2116 @@ -892,7 +892,7 @@ "name": "MongoDeleteResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 101, "col": 0, "byteIndex": 2171 @@ -910,7 +910,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 102, "col": 2, "byteIndex": 2210 @@ -932,7 +932,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 103, "col": 2, "byteIndex": 2243 @@ -951,7 +951,7 @@ { "name": "deletedCount", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 104, "col": 2, "byteIndex": 2267 @@ -970,7 +970,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 105, "col": 2, "byteIndex": 2300 @@ -996,7 +996,7 @@ "name": "MongoFindOneResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 111, "col": 0, "byteIndex": 2356 @@ -1014,7 +1014,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 112, "col": 2, "byteIndex": 2410 @@ -1036,7 +1036,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 113, "col": 2, "byteIndex": 2445 @@ -1055,7 +1055,7 @@ { "name": "doc", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 114, "col": 2, "byteIndex": 2469 @@ -1088,7 +1088,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 115, "col": 2, "byteIndex": 2500 @@ -1126,7 +1126,7 @@ "name": "MongoCountResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 121, "col": 0, "byteIndex": 2554 @@ -1144,7 +1144,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 122, "col": 2, "byteIndex": 2592 @@ -1166,7 +1166,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 123, "col": 2, "byteIndex": 2624 @@ -1185,7 +1185,7 @@ { "name": "count", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 124, "col": 2, "byteIndex": 2648 @@ -1204,7 +1204,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", "line": 125, "col": 2, "byteIndex": 2674 @@ -1230,14 +1230,14 @@ "name": "MongoResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 133, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 132, "col": 0, - "byteIndex": 2862 + "byteIndex": 2786 }, "declarationKind": "export", "jsDoc": { - "doc": "Union of all MongoDB result types.\nUsed by expectMongoResult to determine the appropriate expectation type." + "doc": "Union of all MongoDB result types." }, "kind": "typeAlias", "typeAliasDef": { @@ -1337,10 +1337,10 @@ "name": "MongoFindOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 145, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 144, "col": 0, - "byteIndex": 3096 + "byteIndex": 3020 }, "declarationKind": "export", "jsDoc": { @@ -1364,10 +1364,10 @@ { "name": "sort", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 146, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 145, "col": 2, - "byteIndex": 3156 + "byteIndex": 3080 }, "params": [], "readonly": true, @@ -1414,10 +1414,10 @@ { "name": "limit", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 147, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 146, "col": 2, - "byteIndex": 3198 + "byteIndex": 3122 }, "params": [], "readonly": true, @@ -1433,10 +1433,10 @@ { "name": "skip", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 148, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 147, "col": 2, - "byteIndex": 3225 + "byteIndex": 3149 }, "params": [], "readonly": true, @@ -1452,10 +1452,10 @@ { "name": "projection", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 149, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 148, "col": 2, - "byteIndex": 3251 + "byteIndex": 3175 }, "params": [], "readonly": true, @@ -1509,10 +1509,10 @@ "name": "MongoUpdateOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 155, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 154, "col": 0, - "byteIndex": 3333 + "byteIndex": 3257 }, "declarationKind": "export", "jsDoc": { @@ -1536,10 +1536,10 @@ { "name": "upsert", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 156, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 155, "col": 2, - "byteIndex": 3395 + "byteIndex": 3319 }, "params": [], "readonly": true, @@ -1562,10 +1562,10 @@ "name": "MongoClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 184, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 183, "col": 0, - "byteIndex": 3909 + "byteIndex": 3833 }, "declarationKind": "export", "jsDoc": { @@ -1602,10 +1602,10 @@ "doc": "MongoDB connection URL or configuration object." }, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 188, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 187, "col": 2, - "byteIndex": 4035 + "byteIndex": 3959 }, "params": [], "readonly": true, @@ -1638,10 +1638,10 @@ "doc": "Database name to connect to." }, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 193, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 192, "col": 2, - "byteIndex": 4130 + "byteIndex": 4054 }, "params": [], "readonly": true, @@ -1664,10 +1664,10 @@ "name": "MongoSession", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 199, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 198, "col": 0, - "byteIndex": 4216 + "byteIndex": 4140 }, "declarationKind": "export", "jsDoc": { @@ -1682,10 +1682,10 @@ "name": "collection", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 200, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 199, "col": 2, - "byteIndex": 4250 + "byteIndex": 4174 }, "params": [ { @@ -1750,10 +1750,10 @@ "name": "MongoCollection", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 206, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 205, "col": 0, - "byteIndex": 4370 + "byteIndex": 4294 }, "declarationKind": "export", "jsDoc": { @@ -1768,10 +1768,10 @@ "name": "find", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 207, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 206, "col": 2, - "byteIndex": 4427 + "byteIndex": 4351 }, "params": [ { @@ -1834,10 +1834,10 @@ "name": "findOne", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 211, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 210, "col": 2, - "byteIndex": 4522 + "byteIndex": 4446 }, "params": [ { @@ -1900,10 +1900,10 @@ "name": "insertOne", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 215, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 214, "col": 2, - "byteIndex": 4619 + "byteIndex": 4543 }, "params": [ { @@ -1974,10 +1974,10 @@ "name": "insertMany", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 219, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 218, "col": 2, - "byteIndex": 4722 + "byteIndex": 4646 }, "params": [ { @@ -2052,10 +2052,10 @@ "name": "updateOne", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 223, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 222, "col": 2, - "byteIndex": 4830 + "byteIndex": 4754 }, "params": [ { @@ -2122,10 +2122,10 @@ "name": "updateMany", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 228, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 227, "col": 2, - "byteIndex": 4956 + "byteIndex": 4880 }, "params": [ { @@ -2192,10 +2192,10 @@ "name": "deleteOne", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 233, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 232, "col": 2, - "byteIndex": 5083 + "byteIndex": 5007 }, "params": [ { @@ -2249,10 +2249,10 @@ "name": "deleteMany", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 237, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 236, "col": 2, - "byteIndex": 5178 + "byteIndex": 5102 }, "params": [ { @@ -2306,10 +2306,10 @@ "name": "aggregate", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 241, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 240, "col": 2, - "byteIndex": 5274 + "byteIndex": 5198 }, "params": [ { @@ -2388,10 +2388,10 @@ "name": "countDocuments", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 245, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 244, "col": 2, - "byteIndex": 5383 + "byteIndex": 5307 }, "params": [ { @@ -2464,10 +2464,10 @@ "name": "MongoClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 254, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 253, "col": 0, - "byteIndex": 5520 + "byteIndex": 5444 }, "declarationKind": "export", "jsDoc": { @@ -2491,10 +2491,10 @@ "name": "collection", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 257, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 256, "col": 2, - "byteIndex": 5616 + "byteIndex": 5540 }, "params": [ { @@ -2552,10 +2552,10 @@ "name": "db", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 258, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 257, "col": 2, - "byteIndex": 5695 + "byteIndex": 5619 }, "params": [ { @@ -2584,10 +2584,10 @@ "name": "transaction", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 259, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 258, "col": 2, - "byteIndex": 5728 + "byteIndex": 5652 }, "params": [ { @@ -2664,10 +2664,10 @@ "name": "close", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 261, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 260, "col": 2, - "byteIndex": 5802 + "byteIndex": 5726 }, "params": [], "optional": false, @@ -2692,10 +2692,10 @@ { "name": "config", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/types.ts", - "line": 255, + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/types.ts", + "line": 254, "col": 2, - "byteIndex": 5577 + "byteIndex": 5501 }, "params": [], "readonly": true, @@ -2721,7 +2721,7 @@ "name": "MongoErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 6, "col": 0, "byteIndex": 95 @@ -2748,7 +2748,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 7, "col": 2, "byteIndex": 155 @@ -2774,7 +2774,7 @@ "name": "MongoError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 13, "col": 0, "byteIndex": 237 @@ -2832,7 +2832,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 17, "col": 2, "byteIndex": 361 @@ -2854,7 +2854,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 14, "col": 2, "byteIndex": 285 @@ -2873,7 +2873,7 @@ "isStatic": false, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 15, "col": 2, "byteIndex": 334 @@ -2892,7 +2892,7 @@ "name": "MongoConnectionError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 30, "col": 0, "byteIndex": 608 @@ -2935,7 +2935,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 34, "col": 2, "byteIndex": 767 @@ -2957,7 +2957,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 31, "col": 2, "byteIndex": 665 @@ -2980,7 +2980,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 32, "col": 2, "byteIndex": 716 @@ -2999,7 +2999,7 @@ "name": "MongoQueryError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 42, "col": 0, "byteIndex": 929 @@ -3052,7 +3052,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 47, "col": 2, "byteIndex": 1104 @@ -3074,7 +3074,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 43, "col": 2, "byteIndex": 981 @@ -3097,7 +3097,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 44, "col": 2, "byteIndex": 1027 @@ -3116,7 +3116,7 @@ "isStatic": false, "name": "collection", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 45, "col": 2, "byteIndex": 1072 @@ -3135,7 +3135,7 @@ "name": "MongoDuplicateKeyError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 60, "col": 0, "byteIndex": 1349 @@ -3226,7 +3226,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 66, "col": 2, "byteIndex": 1608 @@ -3248,7 +3248,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 61, "col": 2, "byteIndex": 1408 @@ -3271,7 +3271,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 62, "col": 2, "byteIndex": 1461 @@ -3304,7 +3304,7 @@ "isStatic": false, "name": "keyPattern", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 63, "col": 2, "byteIndex": 1514 @@ -3337,7 +3337,7 @@ "isStatic": false, "name": "keyValue", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 64, "col": 2, "byteIndex": 1561 @@ -3356,7 +3356,7 @@ "name": "MongoValidationError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 81, "col": 0, "byteIndex": 1953 @@ -3420,7 +3420,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 86, "col": 2, "byteIndex": 2160 @@ -3442,7 +3442,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 82, "col": 2, "byteIndex": 2010 @@ -3465,7 +3465,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 83, "col": 2, "byteIndex": 2061 @@ -3495,7 +3495,7 @@ "isStatic": false, "name": "validationErrors", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 84, "col": 2, "byteIndex": 2111 @@ -3514,7 +3514,7 @@ "name": "MongoWriteError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 99, "col": 0, "byteIndex": 2424 @@ -3564,7 +3564,7 @@ { "name": "index", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 110, "col": 28, "byteIndex": 2730 @@ -3582,7 +3582,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 110, "col": 43, "byteIndex": 2745 @@ -3600,7 +3600,7 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 110, "col": 57, "byteIndex": 2759 @@ -3639,7 +3639,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 108, "col": 2, "byteIndex": 2668 @@ -3661,7 +3661,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 100, "col": 2, "byteIndex": 2476 @@ -3684,7 +3684,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 101, "col": 2, "byteIndex": 2522 @@ -3709,7 +3709,7 @@ { "name": "index", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 103, "col": 4, "byteIndex": 2604 @@ -3727,7 +3727,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 104, "col": 4, "byteIndex": 2623 @@ -3745,7 +3745,7 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 105, "col": 4, "byteIndex": 2641 @@ -3775,7 +3775,7 @@ "isStatic": false, "name": "writeErrors", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 102, "col": 2, "byteIndex": 2567 @@ -3794,7 +3794,7 @@ "name": "MongoNotFoundError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 121, "col": 0, "byteIndex": 2986 @@ -3837,7 +3837,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 125, "col": 2, "byteIndex": 3140 @@ -3859,7 +3859,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 122, "col": 2, "byteIndex": 3041 @@ -3882,7 +3882,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/errors.ts", "line": 123, "col": 2, "byteIndex": 3090 @@ -3901,7 +3901,7 @@ "name": "createMongoDocs", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/results.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/results.ts", "line": 7, "col": 0, "byteIndex": 154 @@ -3962,10 +3962,10 @@ "name": "createMongoClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/client.ts", + "filename": "https://jsr.io/@probitas/client-mongodb/0.3.0/client.ts", "line": 306, "col": 0, - "byteIndex": 7921 + "byteIndex": 7924 }, "declarationKind": "export", "jsDoc": { @@ -3990,7 +3990,7 @@ }, { "kind": "example", - "doc": "Insert and query documents\n```ts\nconst users = mongo.collection(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nexpectMongoResult(insertResult).ok().hasInsertedId();\n\n// Find documents with projection and sorting\nconst findResult = await users.find(\n { age: { $gte: 25 } },\n { sort: { name: 1 }, limit: 10 }\n);\nexpectMongoResult(findResult).ok().hasContent();\n```\n" + "doc": "Insert and query documents\n```ts\nconst users = mongo.collection(\"users\");\n\n// Insert a document\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nconsole.log(\"Inserted ID:\", insertResult.insertedId);\n\n// Find documents with projection and sorting\nconst findResult = await users.find(\n { age: { $gte: 25 } },\n { sort: { name: 1 }, limit: 10 }\n);\nconsole.log(\"Found:\", findResult.documents.length);\n```\n" }, { "kind": "example", @@ -4045,1537 +4045,7 @@ "isGenerator": false, "typeParams": [] } - }, - { - "name": "MongoFindResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 17, - "col": 0, - "byteIndex": 332 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB find result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 18, - "col": 2, - "byteIndex": 383 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 19, - "col": 2, - "byteIndex": 397 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 20, - "col": 2, - "byteIndex": 414 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 21, - "col": 2, - "byteIndex": 435 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "count", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 22, - "col": 2, - "byteIndex": 457 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 23, - "col": 2, - "byteIndex": 490 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 24, - "col": 2, - "byteIndex": 525 - }, - "params": [ - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 25, - "col": 2, - "byteIndex": 559 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 26, - "col": 2, - "byteIndex": 601 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "docs", - "optional": false, - "tsType": { - "repr": "MongoDocs", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoDocs" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 27, - "col": 2, - "byteIndex": 659 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "MongoInsertResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 33, - "col": 0, - "byteIndex": 758 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB insert result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 34, - "col": 2, - "byteIndex": 808 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 35, - "col": 2, - "byteIndex": 822 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "insertedCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 36, - "col": 2, - "byteIndex": 839 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasInsertedId", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 37, - "col": 2, - "byteIndex": 877 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 38, - "col": 2, - "byteIndex": 902 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoUpdateResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 44, - "col": 0, - "byteIndex": 1001 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB update result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 45, - "col": 2, - "byteIndex": 1051 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 46, - "col": 2, - "byteIndex": 1065 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "matchedCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 47, - "col": 2, - "byteIndex": 1082 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "modifiedCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 48, - "col": 2, - "byteIndex": 1119 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasUpsertedId", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 49, - "col": 2, - "byteIndex": 1157 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 50, - "col": 2, - "byteIndex": 1182 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoDeleteResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 56, - "col": 0, - "byteIndex": 1281 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB delete result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 57, - "col": 2, - "byteIndex": 1331 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 58, - "col": 2, - "byteIndex": 1345 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "deletedCount", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 59, - "col": 2, - "byteIndex": 1362 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "deletedAtLeast", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 60, - "col": 2, - "byteIndex": 1399 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 61, - "col": 2, - "byteIndex": 1438 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoFindOneResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 67, - "col": 0, - "byteIndex": 1538 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB findOne result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 68, - "col": 2, - "byteIndex": 1592 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 69, - "col": 2, - "byteIndex": 1606 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 70, - "col": 2, - "byteIndex": 1623 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 71, - "col": 2, - "byteIndex": 1645 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 72, - "col": 2, - "byteIndex": 1666 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 73, - "col": 2, - "byteIndex": 1708 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "doc", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 74, - "col": 2, - "byteIndex": 1754 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "MongoCountResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 80, - "col": 0, - "byteIndex": 1852 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for MongoDB count result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 81, - "col": 2, - "byteIndex": 1901 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 82, - "col": 2, - "byteIndex": 1915 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "count", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 83, - "col": 2, - "byteIndex": 1932 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 84, - "col": 2, - "byteIndex": 1965 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 85, - "col": 2, - "byteIndex": 2000 - }, - "params": [ - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 86, - "col": 2, - "byteIndex": 2034 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "MongoExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 469, - "col": 0, - "byteIndex": 10955 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectMongoResult based on the result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "MongoFindResult" - } - }, - "trueType": { - "repr": "MongoFindResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoInsertOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResult" - } - }, - "trueType": { - "repr": "MongoInsertResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoInsertManyResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertManyResult" - } - }, - "trueType": { - "repr": "MongoInsertResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoUpdateResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResult" - } - }, - "trueType": { - "repr": "MongoUpdateResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResult" - } - }, - "trueType": { - "repr": "MongoDeleteResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoDeleteResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "MongoFindOneResult" - } - }, - "trueType": { - "repr": "MongoFindOneResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "MongoCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResult" - } - }, - "trueType": { - "repr": "MongoCountResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoCountResultExpectation" - } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "MongoResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoResult" - } - } - } - ] - } - }, - { - "name": "expectMongoResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.2.1/expect.ts", - "line": 513, - "col": 0, - "byteIndex": 12975 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for any MongoDB result validation.\n\nThis unified function accepts any MongoDB result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\n// For find result - returns MongoFindResultExpectation\nconst findResult = await users.find({ age: { $gte: 30 } });\nexpectMongoResult(findResult).ok().hasContent().count(2);\n\n// For insert result - returns MongoInsertResultExpectation\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nexpectMongoResult(insertResult).ok().hasInsertedId();\n\n// For update result - returns MongoUpdateResultExpectation\nconst updateResult = await users.updateOne({ name: \"Alice\" }, { $set: { age: 31 } });\nexpectMongoResult(updateResult).ok().matchedCount(1).modifiedCount(1);\n\n// For delete result - returns MongoDeleteResultExpectation\nconst deleteResult = await users.deleteOne({ name: \"Alice\" });\nexpectMongoResult(deleteResult).ok().deletedCount(1);\n\n// For findOne result - returns MongoFindOneResultExpectation\nconst findOneResult = await users.findOne({ name: \"Alice\" });\nexpectMongoResult(findOneResult).ok().hasContent().dataContains({ name: \"Alice\" });\n\n// For count result - returns MongoCountResultExpectation\nconst countResult = await users.countDocuments();\nexpectMongoResult(countResult).ok().count(10);\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - } - ], - "returnType": { - "repr": "MongoExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "MongoExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "MongoResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "MongoResult" - } - } - } - ] - } } ], - "generatedAt": "2025-12-09T00:26:34.062Z" + "generatedAt": "2025-12-09T20:05:11.130Z" } diff --git a/data/api/client-rabbitmq.json b/data/api/client-rabbitmq.json index 301925c..efc7fec 100644 --- a/data/api/client-rabbitmq.json +++ b/data/api/client-rabbitmq.json @@ -1,14 +1,14 @@ { "name": "client-rabbitmq", "specifier": "@probitas/client-rabbitmq", - "version": "0.1.1", - "moduleDoc": "RabbitMQ client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a RabbitMQ client with fluent assertion APIs, designed for\nintegration testing of message-driven applications.\n\n## Features\n\n- **Queue Operations**: Declare, bind, purge, and delete queues\n- **Exchange Operations**: Declare and delete exchanges (direct, topic, fanout, headers)\n- **Publishing**: Publish messages with routing keys and headers\n- **Consuming**: Consume messages with acknowledgment support\n- **Fluent Assertions**: `expectRabbitMqResult()` for testing message operations\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-rabbitmq\n```\n\n## Quick Start\n\n```ts\nimport { createRabbitMqClient, expectRabbitMqResult } from \"@probitas/client-rabbitmq\";\n\n// Using string URL\nconst client = await createRabbitMqClient({\n url: \"amqp://localhost:5672\",\n});\n\n// Or using connection config object\nconst client2 = await createRabbitMqClient({\n url: {\n host: \"localhost\",\n port: 5672,\n username: \"guest\",\n password: \"guest\",\n vhost: \"/\",\n },\n});\n\n// Create a channel\nconst channel = await client.channel();\n\n// Declare a queue\nconst queueResult = await channel.assertQueue(\"test-queue\", { durable: true });\nexpectRabbitMqResult(queueResult).ok();\n\n// Publish a message\nconst content = new TextEncoder().encode(\"Hello, World!\");\nconst publishResult = await channel.sendToQueue(\"test-queue\", content, {\n contentType: \"text/plain\",\n});\nexpectRabbitMqResult(publishResult).ok();\n\n// Consume messages\nfor await (const msg of channel.consume(\"test-queue\")) {\n console.log(\"Received:\", new TextDecoder().decode(msg.content));\n await channel.ack(msg);\n break;\n}\n\nawait client.close();\n```\n\n## Exchange and Binding\n\n```ts\n// Declare an exchange\nawait channel.assertExchange(\"events\", \"topic\", { durable: true });\n\n// Declare a queue and bind to exchange\nawait channel.assertQueue(\"user-events\");\nawait channel.bindQueue(\"user-events\", \"events\", \"user.*\");\n\n// Publish to exchange with routing key\nconst content = new TextEncoder().encode(JSON.stringify({ id: 1, name: \"Alice\" }));\nawait channel.publish(\"events\", \"user.created\", content, {\n contentType: \"application/json\",\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await client.channel();\n\nawait channel.assertQueue(\"test\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-sqs`](https://jsr.io/@probitas/client-sqs) | AWS SQS client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [RabbitMQ](https://www.rabbitmq.com/)\n", + "version": "0.2.0", + "moduleDoc": "RabbitMQ client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a RabbitMQ client designed for integration testing of message-driven applications.\n\n## Features\n\n- **Queue Operations**: Declare, bind, purge, and delete queues\n- **Exchange Operations**: Declare and delete exchanges (direct, topic, fanout, headers)\n- **Publishing**: Publish messages with routing keys and headers\n- **Consuming**: Consume messages with acknowledgment support\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-rabbitmq\n```\n\n## Quick Start\n\n```ts\nimport { createRabbitMqClient } from \"@probitas/client-rabbitmq\";\n\n// Using string URL\nconst client = await createRabbitMqClient({\n url: \"amqp://localhost:5672\",\n});\n\n// Or using connection config object\nconst client2 = await createRabbitMqClient({\n url: {\n host: \"localhost\",\n port: 5672,\n username: \"guest\",\n password: \"guest\",\n vhost: \"/\",\n },\n});\n\n// Create a channel\nconst channel = await client.channel();\n\n// Declare a queue\nawait channel.assertQueue(\"test-queue\", { durable: true });\n\n// Publish a message\nconst content = new TextEncoder().encode(\"Hello, World!\");\nawait channel.sendToQueue(\"test-queue\", content, {\n contentType: \"text/plain\",\n});\n\n// Consume messages\nfor await (const msg of channel.consume(\"test-queue\")) {\n console.log(\"Received:\", new TextDecoder().decode(msg.content));\n await channel.ack(msg);\n break;\n}\n\nawait client.close();\n```\n\n## Exchange and Binding\n\n```ts\n// Declare an exchange\nawait channel.assertExchange(\"events\", \"topic\", { durable: true });\n\n// Declare a queue and bind to exchange\nawait channel.assertQueue(\"user-events\");\nawait channel.bindQueue(\"user-events\", \"events\", \"user.*\");\n\n// Publish to exchange with routing key\nconst content = new TextEncoder().encode(JSON.stringify({ id: 1, name: \"Alice\" }));\nawait channel.publish(\"events\", \"user.created\", content, {\n contentType: \"application/json\",\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createRabbitMqClient({ url: \"amqp://localhost:5672\" });\nconst channel = await client.channel();\n\nawait channel.assertQueue(\"test\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-sqs`](https://jsr.io/@probitas/client-sqs) | AWS SQS client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [RabbitMQ](https://www.rabbitmq.com/)\n", "exports": [ { "name": "RabbitMqMessageProperties", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 6, "col": 0, "byteIndex": 127 @@ -26,7 +26,7 @@ { "name": "contentType", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 7, "col": 2, "byteIndex": 174 @@ -45,7 +45,7 @@ { "name": "contentEncoding", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 8, "col": 2, "byteIndex": 207 @@ -64,7 +64,7 @@ { "name": "headers", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 9, "col": 2, "byteIndex": 244 @@ -100,7 +100,7 @@ "doc": "1: non-persistent, 2: persistent" }, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 11, "col": 2, "byteIndex": 332 @@ -136,7 +136,7 @@ { "name": "priority", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 12, "col": 2, "byteIndex": 365 @@ -155,7 +155,7 @@ { "name": "correlationId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 13, "col": 2, "byteIndex": 395 @@ -174,7 +174,7 @@ { "name": "replyTo", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 14, "col": 2, "byteIndex": 430 @@ -193,7 +193,7 @@ { "name": "expiration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 15, "col": 2, "byteIndex": 459 @@ -212,7 +212,7 @@ { "name": "messageId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 16, "col": 2, "byteIndex": 491 @@ -231,7 +231,7 @@ { "name": "timestamp", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 17, "col": 2, "byteIndex": 522 @@ -250,7 +250,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 18, "col": 2, "byteIndex": 553 @@ -269,7 +269,7 @@ { "name": "userId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 19, "col": 2, "byteIndex": 579 @@ -288,7 +288,7 @@ { "name": "appId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 20, "col": 2, "byteIndex": 607 @@ -314,7 +314,7 @@ "name": "RabbitMqMessageFields", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 26, "col": 0, "byteIndex": 671 @@ -332,7 +332,7 @@ { "name": "deliveryTag", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 27, "col": 2, "byteIndex": 714 @@ -351,7 +351,7 @@ { "name": "redelivered", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 28, "col": 2, "byteIndex": 746 @@ -370,7 +370,7 @@ { "name": "exchange", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 29, "col": 2, "byteIndex": 779 @@ -389,7 +389,7 @@ { "name": "routingKey", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 30, "col": 2, "byteIndex": 808 @@ -415,7 +415,7 @@ "name": "RabbitMqMessage", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 36, "col": 0, "byteIndex": 869 @@ -433,7 +433,7 @@ { "name": "content", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 37, "col": 2, "byteIndex": 906 @@ -455,7 +455,7 @@ { "name": "properties", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 38, "col": 2, "byteIndex": 938 @@ -477,7 +477,7 @@ { "name": "fields", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 39, "col": 2, "byteIndex": 988 @@ -506,7 +506,7 @@ "name": "RabbitMqPublishResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 45, "col": 0, "byteIndex": 1058 @@ -524,7 +524,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 46, "col": 2, "byteIndex": 1101 @@ -546,7 +546,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 47, "col": 2, "byteIndex": 1138 @@ -565,7 +565,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 48, "col": 2, "byteIndex": 1162 @@ -591,7 +591,7 @@ "name": "RabbitMqConsumeResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 54, "col": 0, "byteIndex": 1246 @@ -609,7 +609,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 55, "col": 2, "byteIndex": 1289 @@ -631,7 +631,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 56, "col": 2, "byteIndex": 1326 @@ -650,7 +650,7 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 57, "col": 2, "byteIndex": 1350 @@ -683,7 +683,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 58, "col": 2, "byteIndex": 1394 @@ -709,7 +709,7 @@ "name": "RabbitMqAckResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 64, "col": 0, "byteIndex": 1452 @@ -727,7 +727,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 65, "col": 2, "byteIndex": 1491 @@ -749,7 +749,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 66, "col": 2, "byteIndex": 1524 @@ -768,7 +768,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 67, "col": 2, "byteIndex": 1548 @@ -794,7 +794,7 @@ "name": "RabbitMqQueueResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 73, "col": 0, "byteIndex": 1615 @@ -812,7 +812,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 74, "col": 2, "byteIndex": 1656 @@ -834,7 +834,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 75, "col": 2, "byteIndex": 1691 @@ -853,7 +853,7 @@ { "name": "queue", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 76, "col": 2, "byteIndex": 1715 @@ -872,7 +872,7 @@ { "name": "messageCount", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 77, "col": 2, "byteIndex": 1741 @@ -891,7 +891,7 @@ { "name": "consumerCount", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 78, "col": 2, "byteIndex": 1774 @@ -910,7 +910,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 79, "col": 2, "byteIndex": 1808 @@ -936,7 +936,7 @@ "name": "RabbitMqExchangeResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 85, "col": 0, "byteIndex": 1878 @@ -954,7 +954,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 86, "col": 2, "byteIndex": 1922 @@ -976,7 +976,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 87, "col": 2, "byteIndex": 1960 @@ -995,7 +995,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 88, "col": 2, "byteIndex": 1984 @@ -1021,7 +1021,7 @@ "name": "RabbitMqConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 96, "col": 0, "byteIndex": 2129 @@ -1057,7 +1057,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 101, "col": 2, "byteIndex": 2255 @@ -1083,7 +1083,7 @@ "name": "RabbitMqClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 107, "col": 0, "byteIndex": 2325 @@ -1119,7 +1119,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 123, "col": 2, "byteIndex": 2741 @@ -1155,7 +1155,7 @@ "doc": "Heartbeat interval in seconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 125, "col": 2, "byteIndex": 2831 @@ -1177,7 +1177,7 @@ "doc": "Default prefetch count for channels" }, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 127, "col": 2, "byteIndex": 2907 @@ -1203,7 +1203,7 @@ "name": "RabbitMqExchangeOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 133, "col": 0, "byteIndex": 2967 @@ -1230,7 +1230,7 @@ { "name": "durable", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 134, "col": 2, "byteIndex": 3034 @@ -1249,7 +1249,7 @@ { "name": "autoDelete", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 135, "col": 2, "byteIndex": 3064 @@ -1268,7 +1268,7 @@ { "name": "internal", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 136, "col": 2, "byteIndex": 3097 @@ -1287,7 +1287,7 @@ { "name": "arguments", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 137, "col": 2, "byteIndex": 3128 @@ -1327,7 +1327,7 @@ "name": "RabbitMqQueueOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 143, "col": 0, "byteIndex": 3203 @@ -1354,7 +1354,7 @@ { "name": "durable", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 144, "col": 2, "byteIndex": 3267 @@ -1373,7 +1373,7 @@ { "name": "exclusive", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 145, "col": 2, "byteIndex": 3297 @@ -1392,7 +1392,7 @@ { "name": "autoDelete", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 146, "col": 2, "byteIndex": 3329 @@ -1411,7 +1411,7 @@ { "name": "arguments", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 147, "col": 2, "byteIndex": 3362 @@ -1444,7 +1444,7 @@ { "name": "messageTtl", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 148, "col": 2, "byteIndex": 3410 @@ -1463,7 +1463,7 @@ { "name": "maxLength", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 149, "col": 2, "byteIndex": 3442 @@ -1482,7 +1482,7 @@ { "name": "deadLetterExchange", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 150, "col": 2, "byteIndex": 3473 @@ -1501,7 +1501,7 @@ { "name": "deadLetterRoutingKey", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 151, "col": 2, "byteIndex": 3513 @@ -1527,7 +1527,7 @@ "name": "RabbitMqPublishOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 157, "col": 0, "byteIndex": 3584 @@ -1554,7 +1554,7 @@ { "name": "persistent", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 158, "col": 2, "byteIndex": 3650 @@ -1573,7 +1573,7 @@ { "name": "contentType", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 159, "col": 2, "byteIndex": 3683 @@ -1592,7 +1592,7 @@ { "name": "contentEncoding", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 160, "col": 2, "byteIndex": 3716 @@ -1611,7 +1611,7 @@ { "name": "headers", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 161, "col": 2, "byteIndex": 3753 @@ -1644,7 +1644,7 @@ { "name": "correlationId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 162, "col": 2, "byteIndex": 3799 @@ -1663,7 +1663,7 @@ { "name": "replyTo", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 163, "col": 2, "byteIndex": 3834 @@ -1682,7 +1682,7 @@ { "name": "expiration", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 164, "col": 2, "byteIndex": 3863 @@ -1701,7 +1701,7 @@ { "name": "messageId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 165, "col": 2, "byteIndex": 3895 @@ -1720,7 +1720,7 @@ { "name": "priority", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 166, "col": 2, "byteIndex": 3926 @@ -1746,7 +1746,7 @@ "name": "RabbitMqConsumeOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 172, "col": 0, "byteIndex": 3985 @@ -1773,7 +1773,7 @@ { "name": "noAck", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 173, "col": 2, "byteIndex": 4051 @@ -1792,7 +1792,7 @@ { "name": "exclusive", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 174, "col": 2, "byteIndex": 4079 @@ -1811,7 +1811,7 @@ { "name": "priority", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 175, "col": 2, "byteIndex": 4111 @@ -1837,7 +1837,7 @@ "name": "RabbitMqNackOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 181, "col": 0, "byteIndex": 4167 @@ -1864,7 +1864,7 @@ { "name": "requeue", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 182, "col": 2, "byteIndex": 4230 @@ -1883,7 +1883,7 @@ { "name": "allUpTo", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 183, "col": 2, "byteIndex": 4260 @@ -1909,7 +1909,7 @@ "name": "RabbitMqExchangeType", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 189, "col": 0, "byteIndex": 4317 @@ -1965,7 +1965,7 @@ "name": "RabbitMqChannel", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 194, "col": 0, "byteIndex": 4435 @@ -1992,7 +1992,7 @@ "name": "assertExchange", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 196, "col": 2, "byteIndex": 4510 @@ -2059,7 +2059,7 @@ "name": "deleteExchange", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 201, "col": 2, "byteIndex": 4655 @@ -2113,7 +2113,7 @@ "name": "assertQueue", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 207, "col": 2, "byteIndex": 4770 @@ -2167,7 +2167,7 @@ "name": "deleteQueue", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 211, "col": 2, "byteIndex": 4874 @@ -2221,7 +2221,7 @@ "name": "purgeQueue", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 215, "col": 2, "byteIndex": 4971 @@ -2275,7 +2275,7 @@ "name": "bindQueue", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 219, "col": 2, "byteIndex": 5067 @@ -2349,7 +2349,7 @@ "name": "unbindQueue", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 225, "col": 2, "byteIndex": 5212 @@ -2423,7 +2423,7 @@ "name": "publish", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 233, "col": 2, "byteIndex": 5373 @@ -2500,7 +2500,7 @@ "name": "sendToQueue", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 239, "col": 2, "byteIndex": 5530 @@ -2567,7 +2567,7 @@ "name": "get", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 246, "col": 2, "byteIndex": 5678 @@ -2621,7 +2621,7 @@ "name": "consume", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 247, "col": 2, "byteIndex": 5757 @@ -2675,7 +2675,7 @@ "name": "ack", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 253, "col": 2, "byteIndex": 5872 @@ -2732,7 +2732,7 @@ "name": "nack", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 257, "col": 2, "byteIndex": 5971 @@ -2789,7 +2789,7 @@ "name": "reject", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 261, "col": 2, "byteIndex": 6077 @@ -2843,7 +2843,7 @@ "name": "prefetch", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 267, "col": 2, "byteIndex": 6188 @@ -2881,7 +2881,7 @@ "name": "close", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 269, "col": 2, "byteIndex": 6231 @@ -2915,7 +2915,7 @@ "name": "RabbitMqClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 275, "col": 0, "byteIndex": 6296 @@ -2942,7 +2942,7 @@ "name": "channel", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 278, "col": 2, "byteIndex": 6398 @@ -2972,7 +2972,7 @@ "name": "close", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 280, "col": 2, "byteIndex": 6438 @@ -3000,7 +3000,7 @@ { "name": "config", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", "line": 276, "col": 2, "byteIndex": 6356 @@ -3029,14 +3029,14 @@ "name": "RabbitMqResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", - "line": 287, + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/types.ts", + "line": 286, "col": 0, - "byteIndex": 6591 + "byteIndex": 6512 }, "declarationKind": "export", "jsDoc": { - "doc": "Union of all RabbitMQ result types.\nUsed by expectRabbitMqResult to determine the appropriate expectation type." + "doc": "Union of all RabbitMQ result types." }, "kind": "typeAlias", "typeAliasDef": { @@ -3093,7 +3093,7 @@ "name": "RabbitMqErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 6, "col": 0, "byteIndex": 96 @@ -3120,7 +3120,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 7, "col": 2, "byteIndex": 159 @@ -3146,7 +3146,7 @@ "name": "RabbitMqError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 13, "col": 0, "byteIndex": 242 @@ -3204,7 +3204,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 17, "col": 2, "byteIndex": 372 @@ -3226,7 +3226,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 14, "col": 2, "byteIndex": 293 @@ -3245,7 +3245,7 @@ "isStatic": false, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 15, "col": 2, "byteIndex": 345 @@ -3264,7 +3264,7 @@ "name": "RabbitMqConnectionError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 30, "col": 0, "byteIndex": 626 @@ -3307,7 +3307,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 34, "col": 2, "byteIndex": 794 @@ -3329,7 +3329,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 31, "col": 2, "byteIndex": 689 @@ -3352,7 +3352,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 32, "col": 2, "byteIndex": 743 @@ -3371,7 +3371,7 @@ "name": "RabbitMqChannelErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 42, "col": 0, "byteIndex": 955 @@ -3398,7 +3398,7 @@ { "name": "channelId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 1033 @@ -3424,7 +3424,7 @@ "name": "RabbitMqChannelError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 49, "col": 0, "byteIndex": 1130 @@ -3467,7 +3467,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 54, "col": 2, "byteIndex": 1320 @@ -3489,7 +3489,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 50, "col": 2, "byteIndex": 1190 @@ -3512,7 +3512,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 51, "col": 2, "byteIndex": 1241 @@ -3531,7 +3531,7 @@ "isStatic": false, "name": "channelId", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 52, "col": 2, "byteIndex": 1288 @@ -3550,7 +3550,7 @@ "name": "RabbitMqNotFoundErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 63, "col": 0, "byteIndex": 1528 @@ -3577,7 +3577,7 @@ { "name": "resource", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 64, "col": 2, "byteIndex": 1607 @@ -3603,7 +3603,7 @@ "name": "RabbitMqNotFoundError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 70, "col": 0, "byteIndex": 1720 @@ -3646,7 +3646,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 75, "col": 2, "byteIndex": 1912 @@ -3668,7 +3668,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 71, "col": 2, "byteIndex": 1781 @@ -3691,7 +3691,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 72, "col": 2, "byteIndex": 1833 @@ -3710,7 +3710,7 @@ "isStatic": false, "name": "resource", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 73, "col": 2, "byteIndex": 1882 @@ -3729,7 +3729,7 @@ "name": "RabbitMqPreconditionFailedErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 84, "col": 0, "byteIndex": 2129 @@ -3756,7 +3756,7 @@ { "name": "reason", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 86, "col": 2, "byteIndex": 2220 @@ -3782,7 +3782,7 @@ "name": "RabbitMqPreconditionFailedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 92, "col": 0, "byteIndex": 2314 @@ -3825,7 +3825,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 97, "col": 2, "byteIndex": 2534 @@ -3847,7 +3847,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 93, "col": 2, "byteIndex": 2385 @@ -3870,7 +3870,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 94, "col": 2, "byteIndex": 2447 @@ -3889,7 +3889,7 @@ "isStatic": false, "name": "reason", "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/errors.ts", "line": 95, "col": 2, "byteIndex": 2506 @@ -3908,7 +3908,7 @@ "name": "createRabbitMqClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.2.0/client.ts", "line": 311, "col": 0, "byteIndex": 8367 @@ -3991,948 +3991,7 @@ "isGenerator": false, "typeParams": [] } - }, - { - "name": "RabbitMqPublishResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 15, - "col": 0, - "byteIndex": 323 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ publish result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 17, - "col": 2, - "byteIndex": 416 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 20, - "col": 2, - "byteIndex": 471 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 23, - "col": 2, - "byteIndex": 547 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqConsumeResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 29, - "col": 0, - "byteIndex": 648 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ consume result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 31, - "col": 2, - "byteIndex": 741 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 34, - "col": 2, - "byteIndex": 796 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that message is null (empty queue)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 37, - "col": 2, - "byteIndex": 865 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that message is not null" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 40, - "col": 2, - "byteIndex": 928 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Assert that data contains the given subbody" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 43, - "col": 2, - "byteIndex": 1004 - }, - "params": [ - { - "kind": "identifier", - "name": "subbody", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Assert data using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 46, - "col": 2, - "byteIndex": 1099 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "content", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "propertyContains", - "jsDoc": { - "doc": "Assert that properties contain the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 49, - "col": 2, - "byteIndex": 1216 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "RabbitMqMessageProperties", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqMessageProperties" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "routingKey", - "jsDoc": { - "doc": "Assert that routing key matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 52, - "col": 2, - "byteIndex": 1337 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "exchange", - "jsDoc": { - "doc": "Assert that exchange matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 55, - "col": 2, - "byteIndex": 1423 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 58, - "col": 2, - "byteIndex": 1518 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExchangeResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 65, - "col": 0, - "byteIndex": 1677 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ exchange result validation.\nSame interface as publish result (ok, duration only)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "RabbitMqPublishResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultExpectation" - } - }, - "typeParams": [] - } - }, - { - "name": "RabbitMqAckResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 72, - "col": 0, - "byteIndex": 1877 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ ack result validation.\nSame interface as publish result (ok, duration only)." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "RabbitMqPublishResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultExpectation" - } - }, - "typeParams": [] - } - }, - { - "name": "RabbitMqQueueResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 77, - "col": 0, - "byteIndex": 2015 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for RabbitMQ queue result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 79, - "col": 2, - "byteIndex": 2106 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 82, - "col": 2, - "byteIndex": 2161 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "messageCount", - "jsDoc": { - "doc": "Assert that message count equals expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 85, - "col": 2, - "byteIndex": 2230 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "messageCountAtLeast", - "jsDoc": { - "doc": "Assert that message count is at least min" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 88, - "col": 2, - "byteIndex": 2319 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "consumerCount", - "jsDoc": { - "doc": "Assert that consumer count equals expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 91, - "col": 2, - "byteIndex": 2414 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 94, - "col": 2, - "byteIndex": 2511 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RabbitMqExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 321, - "col": 0, - "byteIndex": 7940 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectRabbitMqResult based on the result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RabbitMqConsumeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResult" - } - }, - "trueType": { - "repr": "RabbitMqConsumeResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" - } - }, - "trueType": { - "repr": "RabbitMqQueueResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RabbitMqPublishResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResult" - } - }, - "trueType": { - "repr": "RabbitMqPublishResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RabbitMqExchangeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResult" - } - }, - "trueType": { - "repr": "RabbitMqExchangeResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqExchangeResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RabbitMqAckResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResult" - } - }, - "trueType": { - "repr": "RabbitMqAckResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqAckResultExpectation" - } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - } - } - } - } - } - } - } - }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RabbitMqResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqResult" - } - } - } - ] - } - }, - { - "name": "expectRabbitMqResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/expect.ts", - "line": 358, - "col": 0, - "byteIndex": 9543 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for any RabbitMQ result validation.\n\nThis unified function accepts any RabbitMQ result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\n// For publish result - returns RabbitMqPublishResultExpectation\nconst publishResult = await channel.sendToQueue(queue, content);\nexpectRabbitMqResult(publishResult).ok();\n\n// For consume result - returns RabbitMqConsumeResultExpectation\nconst consumeResult = await channel.get(queue);\nexpectRabbitMqResult(consumeResult).ok().hasContent().routingKey(\"key\");\n\n// For queue result - returns RabbitMqQueueResultExpectation\nconst queueResult = await channel.assertQueue(\"my-queue\");\nexpectRabbitMqResult(queueResult).ok().messageCount(0);\n\n// For exchange result - returns RabbitMqExchangeResultExpectation\nconst exchangeResult = await channel.assertExchange(\"my-exchange\", \"direct\");\nexpectRabbitMqResult(exchangeResult).ok();\n\n// For ack result - returns RabbitMqAckResultExpectation\nconst ackResult = await channel.ack(message);\nexpectRabbitMqResult(ackResult).ok();\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - } - ], - "returnType": { - "repr": "RabbitMqExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "RabbitMqExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RabbitMqResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqResult" - } - } - } - ] - } } ], - "generatedAt": "2025-12-09T00:26:34.213Z" + "generatedAt": "2025-12-09T20:05:11.211Z" } diff --git a/data/api/client-redis.json b/data/api/client-redis.json index b4228d2..3062358 100644 --- a/data/api/client-redis.json +++ b/data/api/client-redis.json @@ -1,14 +1,14 @@ { "name": "client-redis", "specifier": "@probitas/client-redis", - "version": "0.1.2", - "moduleDoc": "Redis client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a Redis client with fluent assertion APIs, designed for\nintegration testing of applications using Redis.\n\n## Features\n\n- **Data Structures**: Strings, Hashes, Lists, Sets, Sorted Sets\n- **Pub/Sub**: Publish and subscribe to channels\n- **Transactions**: Atomic operations with MULTI/EXEC\n- **Fluent Assertions**: `expectRedisResult()` for testing Redis operations\n- **Raw Commands**: Execute any Redis command via `command()`\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-redis\n```\n\n## Quick Start\n\n```ts\nimport { createRedisClient, expectRedisResult } from \"@probitas/client-redis\";\n\nconst client = await createRedisClient({\n url: \"redis://localhost:6379/0\",\n});\n\n// String operations\nawait client.set(\"user:1:name\", \"Alice\", { ex: 3600 });\nconst result = await client.get(\"user:1:name\");\nexpectRedisResult(result).ok().valueEquals(\"Alice\");\n\n// Hash operations\nawait client.hset(\"user:1\", \"email\", \"alice@example.com\");\nconst email = await client.hget(\"user:1\", \"email\");\nexpectRedisResult(email).ok();\n\n// List operations\nawait client.rpush(\"queue\", \"job1\", \"job2\", \"job3\");\nconst job = await client.lpop(\"queue\");\nexpectRedisResult(job).ok().valueEquals(\"job1\");\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\n// Atomic transaction\nconst tx = client.multi();\ntx.incr(\"counter\");\ntx.get(\"counter\");\nconst result = await tx.exec();\nexpectRedisResult(result).ok();\n```\n\n## Pub/Sub\n\n```ts\n// Subscribe to a channel\nconst subscription = client.subscribe(\"events\");\nfor await (const message of subscription) {\n console.log(\"Received:\", message.message);\n break;\n}\n\n// Publish to a channel\nawait client.publish(\"events\", JSON.stringify({ type: \"update\" }));\n```\n\n## Connection Configuration\n\n```ts\n// Using URL string\nconst client1 = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Using URL with password and database\nconst client2 = await createRedisClient({ url: \"redis://:secret@localhost:6379/1\" });\n\n// Using config object\nconst client3 = await createRedisClient({\n url: { host: \"localhost\", port: 6379, password: \"secret\", db: 1 },\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\nawait client.set(\"test\", \"value\");\nconst result = await client.get(\"test\");\nexpectRedisResult(result).ok();\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-deno-kv`](https://jsr.io/@probitas/client-deno-kv) | Deno KV client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [Redis](https://redis.io/)\n", + "version": "0.2.0", + "moduleDoc": "Redis client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a Redis client designed for integration testing of applications using Redis.\n\n## Features\n\n- **Data Structures**: Strings, Hashes, Lists, Sets, Sorted Sets\n- **Pub/Sub**: Publish and subscribe to channels\n- **Transactions**: Atomic operations with MULTI/EXEC\n- **Raw Commands**: Execute any Redis command via `command()`\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-redis\n```\n\n## Quick Start\n\n```ts\nimport { createRedisClient } from \"@probitas/client-redis\";\n\nconst client = await createRedisClient({\n url: \"redis://localhost:6379/0\",\n});\n\n// String operations\nawait client.set(\"user:1:name\", \"Alice\", { ex: 3600 });\nconst result = await client.get(\"user:1:name\");\nconsole.log(\"Name:\", result.value);\n\n// Hash operations\nawait client.hset(\"user:1\", \"email\", \"alice@example.com\");\nconst email = await client.hget(\"user:1\", \"email\");\nconsole.log(\"Email:\", email.value);\n\n// List operations\nawait client.rpush(\"queue\", \"job1\", \"job2\", \"job3\");\nconst job = await client.lpop(\"queue\");\nconsole.log(\"Job:\", job.value);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\n// Atomic transaction\nconst tx = client.multi();\ntx.incr(\"counter\");\ntx.get(\"counter\");\nawait tx.exec();\n```\n\n## Pub/Sub\n\n```ts\n// Subscribe to a channel\nconst subscription = client.subscribe(\"events\");\nfor await (const message of subscription) {\n console.log(\"Received:\", message.message);\n break;\n}\n\n// Publish to a channel\nawait client.publish(\"events\", JSON.stringify({ type: \"update\" }));\n```\n\n## Connection Configuration\n\n```ts\n// Using URL string\nconst client1 = await createRedisClient({ url: \"redis://localhost:6379\" });\n\n// Using URL with password and database\nconst client2 = await createRedisClient({ url: \"redis://:secret@localhost:6379/1\" });\n\n// Using config object\nconst client3 = await createRedisClient({\n url: { host: \"localhost\", port: 6379, password: \"secret\", db: 1 },\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createRedisClient({ url: \"redis://localhost:6379\" });\n\nawait client.set(\"test\", \"value\");\nconst result = await client.get(\"test\");\nconsole.log(result.value);\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-deno-kv`](https://jsr.io/@probitas/client-deno-kv) | Deno KV client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [Redis](https://redis.io/)\n", "exports": [ { "name": "RedisResultBase", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 7, "col": 0, "byteIndex": 191 @@ -26,7 +26,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 8, "col": 2, "byteIndex": 241 @@ -45,7 +45,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 9, "col": 2, "byteIndex": 266 @@ -64,7 +64,7 @@ { "name": "value", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 10, "col": 2, "byteIndex": 290 @@ -86,7 +86,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 11, "col": 2, "byteIndex": 311 @@ -121,7 +121,7 @@ "name": "RedisCommonResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 17, "col": 0, "byteIndex": 392 @@ -157,7 +157,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 18, "col": 2, "byteIndex": 471 @@ -195,7 +195,7 @@ "name": "RedisGetResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 24, "col": 0, "byteIndex": 533 @@ -239,7 +239,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 25, "col": 2, "byteIndex": 608 @@ -268,7 +268,7 @@ "name": "RedisSetResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 31, "col": 0, "byteIndex": 667 @@ -304,7 +304,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 32, "col": 2, "byteIndex": 733 @@ -333,7 +333,7 @@ "name": "RedisCountResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 38, "col": 0, "byteIndex": 821 @@ -366,7 +366,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 39, "col": 2, "byteIndex": 891 @@ -395,7 +395,7 @@ "name": "RedisArrayResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 45, "col": 0, "byteIndex": 979 @@ -442,7 +442,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 47, "col": 2, "byteIndex": 1069 @@ -480,7 +480,7 @@ "name": "RedisHashResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 53, "col": 0, "byteIndex": 1141 @@ -527,7 +527,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", "line": 55, "col": 2, "byteIndex": 1228 @@ -556,14 +556,14 @@ "name": "RedisResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 62, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 61, "col": 0, - "byteIndex": 1380 + "byteIndex": 1304 }, "declarationKind": "export", "jsDoc": { - "doc": "Union of all Redis result types.\nUsed by expectRedisResult to determine the appropriate expectation type." + "doc": "Union of all Redis result types." }, "kind": "typeAlias", "typeAliasDef": { @@ -655,10 +655,10 @@ "name": "RedisSetOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 73, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 72, "col": 0, - "byteIndex": 1578 + "byteIndex": 1502 }, "declarationKind": "export", "jsDoc": { @@ -685,10 +685,10 @@ "doc": "Expiration in seconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 75, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 74, "col": 2, - "byteIndex": 1668 + "byteIndex": 1592 }, "params": [], "readonly": true, @@ -707,10 +707,10 @@ "doc": "Expiration in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 77, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 76, "col": 2, - "byteIndex": 1728 + "byteIndex": 1652 }, "params": [], "readonly": true, @@ -729,10 +729,10 @@ "doc": "Only set if key does not exist" }, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 79, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 78, "col": 2, - "byteIndex": 1792 + "byteIndex": 1716 }, "params": [], "readonly": true, @@ -751,10 +751,10 @@ "doc": "Only set if key exists" }, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 81, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 80, "col": 2, - "byteIndex": 1849 + "byteIndex": 1773 }, "params": [], "readonly": true, @@ -777,10 +777,10 @@ "name": "RedisMessage", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 87, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 86, "col": 0, - "byteIndex": 1908 + "byteIndex": 1832 }, "declarationKind": "export", "jsDoc": { @@ -795,10 +795,10 @@ { "name": "channel", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 88, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 87, "col": 2, - "byteIndex": 1942 + "byteIndex": 1866 }, "params": [], "readonly": true, @@ -814,10 +814,10 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 89, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 88, "col": 2, - "byteIndex": 1970 + "byteIndex": 1894 }, "params": [], "readonly": true, @@ -840,10 +840,10 @@ "name": "RedisConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 97, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 96, "col": 0, - "byteIndex": 2108 + "byteIndex": 2032 }, "declarationKind": "export", "jsDoc": { @@ -876,10 +876,10 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 102, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 101, "col": 2, - "byteIndex": 2231 + "byteIndex": 2155 }, "params": [], "readonly": true, @@ -902,10 +902,10 @@ "name": "RedisClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 108, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 107, "col": 0, - "byteIndex": 2295 + "byteIndex": 2219 }, "declarationKind": "export", "jsDoc": { @@ -938,10 +938,10 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 124, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 123, "col": 2, - "byteIndex": 2677 + "byteIndex": 2601 }, "params": [], "readonly": true, @@ -978,10 +978,10 @@ "name": "RedisTransaction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 130, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 129, "col": 0, - "byteIndex": 2765 + "byteIndex": 2689 }, "declarationKind": "export", "jsDoc": { @@ -996,10 +996,10 @@ "name": "get", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 131, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 130, "col": 2, - "byteIndex": 2803 + "byteIndex": 2727 }, "params": [ { @@ -1025,10 +1025,10 @@ "name": "set", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 132, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 131, "col": 2, - "byteIndex": 2829 + "byteIndex": 2753 }, "params": [ { @@ -1077,10 +1077,10 @@ "name": "del", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 133, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 132, "col": 2, - "byteIndex": 2897 + "byteIndex": 2821 }, "params": [ { @@ -1114,10 +1114,10 @@ "name": "incr", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 134, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 133, "col": 2, - "byteIndex": 2929 + "byteIndex": 2853 }, "params": [ { @@ -1143,10 +1143,10 @@ "name": "decr", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 135, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 134, "col": 2, - "byteIndex": 2956 + "byteIndex": 2880 }, "params": [ { @@ -1172,10 +1172,10 @@ "name": "hget", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 136, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 135, "col": 2, - "byteIndex": 2983 + "byteIndex": 2907 }, "params": [ { @@ -1211,10 +1211,10 @@ "name": "hset", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 137, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 136, "col": 2, - "byteIndex": 3025 + "byteIndex": 2949 }, "params": [ { @@ -1260,10 +1260,10 @@ "name": "hgetall", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 138, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 137, "col": 2, - "byteIndex": 3082 + "byteIndex": 3006 }, "params": [ { @@ -1289,10 +1289,10 @@ "name": "hdel", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 139, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 138, "col": 2, - "byteIndex": 3112 + "byteIndex": 3036 }, "params": [ { @@ -1336,10 +1336,10 @@ "name": "lpush", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 140, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 139, "col": 2, - "byteIndex": 3160 + "byteIndex": 3084 }, "params": [ { @@ -1383,10 +1383,10 @@ "name": "rpush", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 141, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 140, "col": 2, - "byteIndex": 3209 + "byteIndex": 3133 }, "params": [ { @@ -1430,10 +1430,10 @@ "name": "lpop", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 142, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 141, "col": 2, - "byteIndex": 3258 + "byteIndex": 3182 }, "params": [ { @@ -1459,10 +1459,10 @@ "name": "rpop", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 143, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 142, "col": 2, - "byteIndex": 3285 + "byteIndex": 3209 }, "params": [ { @@ -1488,10 +1488,10 @@ "name": "lrange", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 144, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 143, "col": 2, - "byteIndex": 3312 + "byteIndex": 3236 }, "params": [ { @@ -1537,10 +1537,10 @@ "name": "llen", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 145, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 144, "col": 2, - "byteIndex": 3370 + "byteIndex": 3294 }, "params": [ { @@ -1566,10 +1566,10 @@ "name": "sadd", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 146, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 145, "col": 2, - "byteIndex": 3397 + "byteIndex": 3321 }, "params": [ { @@ -1613,10 +1613,10 @@ "name": "srem", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 147, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 146, "col": 2, - "byteIndex": 3446 + "byteIndex": 3370 }, "params": [ { @@ -1660,10 +1660,10 @@ "name": "smembers", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 148, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 147, "col": 2, - "byteIndex": 3495 + "byteIndex": 3419 }, "params": [ { @@ -1689,10 +1689,10 @@ "name": "sismember", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 149, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 148, "col": 2, - "byteIndex": 3526 + "byteIndex": 3450 }, "params": [ { @@ -1728,10 +1728,10 @@ "name": "zadd", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 150, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 149, "col": 2, - "byteIndex": 3574 + "byteIndex": 3498 }, "params": [ { @@ -1765,10 +1765,10 @@ { "name": "score", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 150, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 149, "col": 34, - "byteIndex": 3606 + "byteIndex": 3530 }, "params": [], "computed": false, @@ -1783,10 +1783,10 @@ { "name": "member", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 150, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 149, "col": 49, - "byteIndex": 3621 + "byteIndex": 3545 }, "params": [], "computed": false, @@ -1818,10 +1818,10 @@ "name": "zrange", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 151, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 150, "col": 2, - "byteIndex": 3650 + "byteIndex": 3574 }, "params": [ { @@ -1867,10 +1867,10 @@ "name": "zscore", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 152, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 151, "col": 2, - "byteIndex": 3708 + "byteIndex": 3632 }, "params": [ { @@ -1906,10 +1906,10 @@ "name": "exec", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 153, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 152, "col": 2, - "byteIndex": 3753 + "byteIndex": 3677 }, "params": [], "optional": false, @@ -1942,10 +1942,10 @@ "name": "discard", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 154, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 153, "col": 2, - "byteIndex": 3799 + "byteIndex": 3723 }, "params": [], "optional": false, @@ -1967,10 +1967,10 @@ "name": "RedisClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 160, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 159, "col": 0, - "byteIndex": 3853 + "byteIndex": 3777 }, "declarationKind": "export", "jsDoc": { @@ -1994,10 +1994,10 @@ "name": "get", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 164, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 163, "col": 2, - "byteIndex": 3962 + "byteIndex": 3886 }, "params": [ { @@ -2048,10 +2048,10 @@ "name": "set", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 165, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 164, "col": 2, - "byteIndex": 4032 + "byteIndex": 3956 }, "params": [ { @@ -2112,10 +2112,10 @@ "name": "del", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 170, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 169, "col": 2, - "byteIndex": 4136 + "byteIndex": 4060 }, "params": [ { @@ -2161,10 +2161,10 @@ "name": "incr", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 171, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 170, "col": 2, - "byteIndex": 4189 + "byteIndex": 4113 }, "params": [ { @@ -2202,10 +2202,10 @@ "name": "decr", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 172, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 171, "col": 2, - "byteIndex": 4237 + "byteIndex": 4161 }, "params": [ { @@ -2243,10 +2243,10 @@ "name": "hget", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 175, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 174, "col": 2, - "byteIndex": 4298 + "byteIndex": 4222 }, "params": [ { @@ -2307,10 +2307,10 @@ "name": "hset", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 180, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 179, "col": 2, - "byteIndex": 4401 + "byteIndex": 4325 }, "params": [ { @@ -2381,10 +2381,10 @@ "name": "hgetall", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 186, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 185, "col": 2, - "byteIndex": 4525 + "byteIndex": 4449 }, "params": [ { @@ -2435,10 +2435,10 @@ "name": "hdel", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 187, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 186, "col": 2, - "byteIndex": 4600 + "byteIndex": 4524 }, "params": [ { @@ -2494,10 +2494,10 @@ "name": "lpush", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 190, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 189, "col": 2, - "byteIndex": 4681 + "byteIndex": 4605 }, "params": [ { @@ -2553,10 +2553,10 @@ "name": "rpush", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 191, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 190, "col": 2, - "byteIndex": 4751 + "byteIndex": 4675 }, "params": [ { @@ -2612,10 +2612,10 @@ "name": "lpop", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 192, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 191, "col": 2, - "byteIndex": 4821 + "byteIndex": 4745 }, "params": [ { @@ -2653,10 +2653,10 @@ "name": "rpop", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 193, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 192, "col": 2, - "byteIndex": 4867 + "byteIndex": 4791 }, "params": [ { @@ -2694,10 +2694,10 @@ "name": "lrange", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 194, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 193, "col": 2, - "byteIndex": 4913 + "byteIndex": 4837 }, "params": [ { @@ -2768,10 +2768,10 @@ "name": "llen", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 200, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 199, "col": 2, - "byteIndex": 5038 + "byteIndex": 4962 }, "params": [ { @@ -2809,10 +2809,10 @@ "name": "sadd", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 203, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 202, "col": 2, - "byteIndex": 5097 + "byteIndex": 5021 }, "params": [ { @@ -2868,10 +2868,10 @@ "name": "srem", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 204, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 203, "col": 2, - "byteIndex": 5167 + "byteIndex": 5091 }, "params": [ { @@ -2927,10 +2927,10 @@ "name": "smembers", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 205, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 204, "col": 2, - "byteIndex": 5237 + "byteIndex": 5161 }, "params": [ { @@ -2981,10 +2981,10 @@ "name": "sismember", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 206, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 205, "col": 2, - "byteIndex": 5314 + "byteIndex": 5238 }, "params": [ { @@ -3038,10 +3038,10 @@ "name": "zadd", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 209, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 208, "col": 2, - "byteIndex": 5411 + "byteIndex": 5335 }, "params": [ { @@ -3075,10 +3075,10 @@ { "name": "score", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 211, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 210, "col": 18, - "byteIndex": 5452 + "byteIndex": 5376 }, "params": [], "computed": false, @@ -3093,10 +3093,10 @@ { "name": "member", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 211, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 210, "col": 33, - "byteIndex": 5467 + "byteIndex": 5391 }, "params": [], "computed": false, @@ -3140,10 +3140,10 @@ "name": "zrange", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 213, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 212, "col": 2, - "byteIndex": 5520 + "byteIndex": 5444 }, "params": [ { @@ -3214,10 +3214,10 @@ "name": "zscore", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 219, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 218, "col": 2, - "byteIndex": 5645 + "byteIndex": 5569 }, "params": [ { @@ -3282,10 +3282,10 @@ "name": "publish", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 225, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 224, "col": 2, - "byteIndex": 5754 + "byteIndex": 5678 }, "params": [ { @@ -3333,10 +3333,10 @@ "name": "subscribe", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 226, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 225, "col": 2, - "byteIndex": 5826 + "byteIndex": 5750 }, "params": [ { @@ -3374,10 +3374,10 @@ "name": "multi", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 229, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 228, "col": 2, - "byteIndex": 5903 + "byteIndex": 5827 }, "params": [], "optional": false, @@ -3395,10 +3395,10 @@ "name": "command", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 232, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 231, "col": 2, - "byteIndex": 5950 + "byteIndex": 5874 }, "params": [ { @@ -3472,10 +3472,10 @@ "name": "close", "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 237, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 236, "col": 2, - "byteIndex": 6051 + "byteIndex": 5975 }, "params": [], "optional": false, @@ -3500,10 +3500,10 @@ { "name": "config", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 161, + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/types.ts", + "line": 160, "col": 2, - "byteIndex": 3910 + "byteIndex": 3834 }, "params": [], "readonly": true, @@ -3529,7 +3529,7 @@ "name": "RedisErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 6, "col": 0, "byteIndex": 93 @@ -3556,7 +3556,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 7, "col": 2, "byteIndex": 153 @@ -3582,7 +3582,7 @@ "name": "RedisError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 13, "col": 0, "byteIndex": 233 @@ -3640,7 +3640,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 17, "col": 2, "byteIndex": 357 @@ -3662,7 +3662,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 14, "col": 2, "byteIndex": 281 @@ -3681,7 +3681,7 @@ "isStatic": false, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 15, "col": 2, "byteIndex": 330 @@ -3700,7 +3700,7 @@ "name": "RedisConnectionError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 30, "col": 0, "byteIndex": 602 @@ -3743,7 +3743,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 34, "col": 2, "byteIndex": 761 @@ -3765,7 +3765,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 31, "col": 2, "byteIndex": 659 @@ -3788,7 +3788,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 32, "col": 2, "byteIndex": 710 @@ -3807,7 +3807,7 @@ "name": "RedisCommandErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 42, "col": 0, "byteIndex": 916 @@ -3834,7 +3834,7 @@ { "name": "command", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 988 @@ -3860,7 +3860,7 @@ "name": "RedisCommandError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 49, "col": 0, "byteIndex": 1069 @@ -3903,7 +3903,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 54, "col": 2, "byteIndex": 1247 @@ -3925,7 +3925,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 50, "col": 2, "byteIndex": 1123 @@ -3948,7 +3948,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 51, "col": 2, "byteIndex": 1171 @@ -3967,7 +3967,7 @@ "isStatic": false, "name": "command", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 52, "col": 2, "byteIndex": 1218 @@ -3986,7 +3986,7 @@ "name": "RedisScriptErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 63, "col": 0, "byteIndex": 1440 @@ -4013,7 +4013,7 @@ { "name": "script", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 64, "col": 2, "byteIndex": 1511 @@ -4039,7 +4039,7 @@ "name": "RedisScriptError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 70, "col": 0, "byteIndex": 1594 @@ -4082,7 +4082,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 75, "col": 2, "byteIndex": 1768 @@ -4104,7 +4104,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 71, "col": 2, "byteIndex": 1647 @@ -4127,7 +4127,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 72, "col": 2, "byteIndex": 1694 @@ -4146,7 +4146,7 @@ "isStatic": false, "name": "script", "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/errors.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/errors.ts", "line": 73, "col": 2, "byteIndex": 1740 @@ -4165,7 +4165,7 @@ "name": "createRedisClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/client.ts", + "filename": "https://jsr.io/@probitas/client-redis/0.2.0/client.ts", "line": 197, "col": 0, "byteIndex": 5144 @@ -4248,943 +4248,7 @@ "isGenerator": false, "typeParams": [] } - }, - { - "name": "RedisResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 24, - "col": 0, - "byteIndex": 424 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Base fluent API for Redis result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 26, - "col": 2, - "byteIndex": 510 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 29, - "col": 2, - "byteIndex": 565 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "Assert that data matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 32, - "col": 2, - "byteIndex": 626 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Assert data using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 35, - "col": 2, - "byteIndex": 705 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 38, - "col": 2, - "byteIndex": 812 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "RedisCountResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 44, - "col": 0, - "byteIndex": 908 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis count result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - ], - "typeName": "RedisResultExpectation" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "count", - "jsDoc": { - "doc": "Assert that count equals expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 47, - "col": 2, - "byteIndex": 1041 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "jsDoc": { - "doc": "Assert that count is at least min" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 50, - "col": 2, - "byteIndex": 1118 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "jsDoc": { - "doc": "Assert that count is at most max" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 53, - "col": 2, - "byteIndex": 1196 - }, - "params": [ - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "RedisArrayResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 59, - "col": 0, - "byteIndex": 1288 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for Redis array result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [ - { - "repr": "RedisResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - } - } - ], - "typeName": "RedisResultExpectation" - } - } - ], - "constructors": [], - "methods": [ - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that array is empty" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 62, - "col": 2, - "byteIndex": 1423 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that array is not empty" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 65, - "col": 2, - "byteIndex": 1485 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "count", - "jsDoc": { - "doc": "Assert that array count equals expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 68, - "col": 2, - "byteIndex": 1557 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "jsDoc": { - "doc": "Assert that array count is at least min" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 71, - "col": 2, - "byteIndex": 1640 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "jsDoc": { - "doc": "Assert that array count is at most max" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 74, - "col": 2, - "byteIndex": 1724 - }, - "params": [ - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "contains", - "jsDoc": { - "doc": "Assert that array contains item" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 77, - "col": 2, - "byteIndex": 1800 - }, - "params": [ - { - "kind": "identifier", - "name": "item", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "RedisExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 233, - "col": 0, - "byteIndex": 5312 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectRedisResult based on the result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisCountResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResult" - } - }, - "trueType": { - "repr": "RedisCountResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisCountResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "RedisArrayResult" - } - }, - "trueType": { - "repr": "RedisArrayResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - }, - "trueType": { - "repr": "RedisResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - } - ], - "typeName": "RedisResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisSetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResult" - } - }, - "trueType": { - "repr": "RedisResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "OK", - "kind": "literal", - "literal": { - "kind": "string", - "string": "OK" - } - } - ], - "typeName": "RedisResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisHashResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisHashResult" - } - }, - "trueType": { - "repr": "RedisResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ], - "typeName": "Record" - } - } - ], - "typeName": "RedisResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "", - "kind": "infer", - "infer": { - "typeParam": { - "name": "T" - } - } - } - ], - "typeName": "RedisCommonResult" - } - }, - "trueType": { - "repr": "RedisResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisResultExpectation" - } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - } - } - } - } - } - } - } - } - } - }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RedisResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisResult" - } - } - } - ] - } - }, - { - "name": "expectRedisResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/expect.ts", - "line": 264, - "col": 0, - "byteIndex": 6605 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for any Redis result validation.\n\nThis unified function accepts any Redis result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\n// For GET result - returns RedisResultExpectation\nconst getResult = await client.get(\"key\");\nexpectRedisResult(getResult).ok().data(\"expected\");\n\n// For COUNT result - returns RedisCountResultExpectation\nconst countResult = await client.del(\"key\");\nexpectRedisResult(countResult).ok().count(1);\n\n// For ARRAY result - returns RedisArrayResultExpectation\nconst arrayResult = await client.lrange(\"list\", 0, -1);\nexpectRedisResult(arrayResult).ok().count(3).contains(\"item\");\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - } - ], - "returnType": { - "repr": "RedisExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "RedisExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "RedisResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "RedisResult" - } - } - } - ] - } } ], - "generatedAt": "2025-12-09T00:26:34.352Z" + "generatedAt": "2025-12-09T20:05:11.298Z" } diff --git a/data/api/client-sql-duckdb.json b/data/api/client-sql-duckdb.json index d8c87e5..b451c0b 100644 --- a/data/api/client-sql-duckdb.json +++ b/data/api/client-sql-duckdb.json @@ -1,14 +1,14 @@ { "name": "client-sql-duckdb", "specifier": "@probitas/client-sql-duckdb", - "version": "0.1.1", - "moduleDoc": "DuckDB client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a DuckDB client designed for integration testing,\nwith analytical query capabilities and Parquet/CSV file support.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support\n- **File Formats**: Native support for Parquet, CSV, and JSON files\n- **In-Memory Databases**: Perfect for isolated test scenarios\n- **Analytical Queries**: Optimized for OLAP workloads\n- **Fluent Assertions**: `expectSqlQueryResult()` for testing query results\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-duckdb\n```\n\n## Quick Start\n\n```ts\nimport { createDuckDbClient, expectSqlQueryResult } from \"@probitas/client-sql-duckdb\";\n\n// In-memory database for testing\nconst client = await createDuckDbClient({\n path: \":memory:\",\n});\n\n// Query from Parquet files\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM read_parquet('data/*.parquet') WHERE active = ?\",\n [true]\n);\n\nexpectSqlQueryResult(result)\n .hasRowCount(3)\n .rowsContain({ name: \"Alice\" });\n\n// Analytical queries\nconst stats = await client.query(`\n SELECT\n date_trunc('month', created_at) as month,\n COUNT(*) as count,\n AVG(amount) as avg_amount\n FROM transactions\n GROUP BY 1\n ORDER BY 1\n`);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createDuckDbClient({ path: \":memory:\" });\n\nconst result = await client.query(\"SELECT 42 as answer\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [DuckDB](https://duckdb.org/)\n", + "version": "0.2.0", + "moduleDoc": "DuckDB client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a DuckDB client designed for integration testing,\nwith analytical query capabilities and Parquet/CSV file support.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support\n- **File Formats**: Native support for Parquet, CSV, and JSON files\n- **In-Memory Databases**: Perfect for isolated test scenarios\n- **Analytical Queries**: Optimized for OLAP workloads\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-duckdb\n```\n\n## Quick Start\n\n```ts\nimport { createDuckDbClient } from \"@probitas/client-sql-duckdb\";\n\n// In-memory database for testing\nconst client = await createDuckDbClient({\n path: \":memory:\",\n});\n\n// Query from Parquet files\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM read_parquet('data/*.parquet') WHERE active = ?\",\n [true]\n);\nconsole.log(result.rows);\n\n// Analytical queries\nconst stats = await client.query(`\n SELECT\n date_trunc('month', created_at) as month,\n COUNT(*) as count,\n AVG(amount) as avg_amount\n FROM transactions\n GROUP BY 1\n ORDER BY 1\n`);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createDuckDbClient({ path: \":memory:\" });\n\nconst result = await client.query(\"SELECT 42 as answer\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [DuckDB](https://duckdb.org/)\n", "exports": [ { "name": "DuckDbClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 40, "col": 0, "byteIndex": 1054 @@ -50,7 +50,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 53, "col": 2, "byteIndex": 1413 @@ -152,7 +152,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 64, "col": 2, "byteIndex": 1714 @@ -256,7 +256,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 75, "col": 2, "byteIndex": 2040 @@ -373,7 +373,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 86, "col": 2, "byteIndex": 2373 @@ -456,7 +456,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 96, "col": 2, "byteIndex": 2643 @@ -532,7 +532,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 101, "col": 2, "byteIndex": 2771 @@ -563,7 +563,7 @@ "doc": "The client configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 42, "col": 2, "byteIndex": 1147 @@ -588,7 +588,7 @@ "doc": "The SQL dialect identifier." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 45, "col": 2, "byteIndex": 1224 @@ -617,7 +617,7 @@ "name": "createDuckDbClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/client.ts", "line": 161, "col": 0, "byteIndex": 4380 @@ -705,7 +705,7 @@ "name": "DuckDbTransactionOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 12, "col": 0, "byteIndex": 289 @@ -738,7 +738,7 @@ "name": "DuckDbTransactionImpl", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 16, "col": 0, "byteIndex": 435 @@ -768,7 +768,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 20, "col": 2, "byteIndex": 558 @@ -840,7 +840,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 27, "col": 2, "byteIndex": 676 @@ -935,7 +935,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 43, "col": 2, "byteIndex": 1193 @@ -1032,7 +1032,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 134, "col": 2, "byteIndex": 4312 @@ -1067,7 +1067,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 142, "col": 2, "byteIndex": 4516 @@ -1102,7 +1102,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/transaction.ts", "line": 155, "col": 2, "byteIndex": 4810 @@ -1128,7 +1128,7 @@ "name": "DuckDbClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/types.ts", "line": 6, "col": 0, "byteIndex": 118 @@ -1158,7 +1158,7 @@ "doc": "Database file path.\nUse `:memory:` or omit for an in-memory database." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/types.ts", "line": 11, "col": 2, "byteIndex": 272 @@ -1186,7 +1186,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/types.ts", "line": 17, "col": 2, "byteIndex": 373 @@ -1212,7 +1212,7 @@ "name": "DuckDbErrorKind", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 11, "col": 0, "byteIndex": 163 @@ -1268,7 +1268,7 @@ "name": "DuckDbErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 16, "col": 0, "byteIndex": 282 @@ -1298,7 +1298,7 @@ "doc": "DuckDB error type if available." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 18, "col": 2, "byteIndex": 387 @@ -1324,7 +1324,7 @@ "name": "DuckDbError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 25, "col": 0, "byteIndex": 528 @@ -1367,7 +1367,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 29, "col": 2, "byteIndex": 656 @@ -1389,7 +1389,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 26, "col": 2, "byteIndex": 574 @@ -1408,7 +1408,7 @@ "isStatic": false, "name": "errorType", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 27, "col": 2, "byteIndex": 624 @@ -1427,7 +1427,7 @@ "name": "IoError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 41, "col": 0, "byteIndex": 907 @@ -1470,7 +1470,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 45, "col": 2, "byteIndex": 1030 @@ -1492,7 +1492,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 42, "col": 2, "byteIndex": 952 @@ -1514,7 +1514,7 @@ "isStatic": false, "name": "duckdbKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 990 @@ -1533,7 +1533,7 @@ "name": "CatalogError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 53, "col": 0, "byteIndex": 1195 @@ -1576,7 +1576,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 57, "col": 2, "byteIndex": 1333 @@ -1598,7 +1598,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 54, "col": 2, "byteIndex": 1245 @@ -1620,7 +1620,7 @@ "isStatic": false, "name": "duckdbKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 55, "col": 2, "byteIndex": 1288 @@ -1639,7 +1639,7 @@ "name": "convertDuckDbError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-duckdb/0.2.0/errors.ts", "line": 67, "col": 0, "byteIndex": 1566 @@ -4461,5 +4461,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:34.507Z" + "generatedAt": "2025-12-09T20:05:11.877Z" } diff --git a/data/api/client-sql-mysql.json b/data/api/client-sql-mysql.json index f5c5f9d..618f163 100644 --- a/data/api/client-sql-mysql.json +++ b/data/api/client-sql-mysql.json @@ -1,14 +1,14 @@ { "name": "client-sql-mysql", "specifier": "@probitas/client-sql-mysql", - "version": "0.1.1", - "moduleDoc": "MySQL client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a MySQL client designed for integration testing,\nwith transaction support and prepared statement capabilities.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support with isolation levels\n- **Prepared Statements**: Automatic parameter escaping and type conversion\n- **Fluent Assertions**: `expectSqlQueryResult()` for testing query results\n- **Connection Pooling**: Configurable pool with idle timeout\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-mysql\n```\n\n## Quick Start\n\n```ts\nimport { createMySqlClient, expectSqlQueryResult } from \"@probitas/client-sql-mysql\";\n\nconst client = await createMySqlClient({\n url: {\n host: \"localhost\",\n port: 3306,\n username: \"root\",\n password: \"secret\",\n database: \"mydb\",\n },\n});\n\n// Query with parameters (uses ? placeholders)\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM users WHERE active = ?\",\n [true]\n);\n\nexpectSqlQueryResult(result)\n .hasRowCount(3)\n .rowsContain({ name: \"Alice\" });\n\n// Get first row\nconst user = await client.queryOne<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = ?\",\n [1]\n);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n}, { isolationLevel: \"serializable\" });\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createMySqlClient({\n url: { host: \"localhost\", username: \"root\", database: \"testdb\" },\n});\n\nconst result = await client.query(\"SELECT 1 as n\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [MySQL](https://www.mysql.com/)\n", + "version": "0.2.0", + "moduleDoc": "MySQL client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a MySQL client designed for integration testing,\nwith transaction support and prepared statement capabilities.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support with isolation levels\n- **Prepared Statements**: Automatic parameter escaping and type conversion\n- **Connection Pooling**: Configurable pool with idle timeout\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-mysql\n```\n\n## Quick Start\n\n```ts\nimport { createMySqlClient } from \"@probitas/client-sql-mysql\";\n\nconst client = await createMySqlClient({\n url: {\n host: \"localhost\",\n port: 3306,\n username: \"root\",\n password: \"secret\",\n database: \"mydb\",\n },\n});\n\n// Query with parameters (uses ? placeholders)\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM users WHERE active = ?\",\n [true]\n);\nconsole.log(result.rows);\n\n// Get first row\nconst user = await client.queryOne<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = ?\",\n [1]\n);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n}, { isolationLevel: \"serializable\" });\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createMySqlClient({\n url: { host: \"localhost\", username: \"root\", database: \"testdb\" },\n});\n\nconst result = await client.query(\"SELECT 1 as n\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [MySQL](https://www.mysql.com/)\n", "exports": [ { "name": "MySqlClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 37, "col": 0, "byteIndex": 1006 @@ -50,7 +50,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 50, "col": 2, "byteIndex": 1362 @@ -152,7 +152,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 61, "col": 2, "byteIndex": 1663 @@ -256,7 +256,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 72, "col": 2, "byteIndex": 1989 @@ -352,7 +352,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 80, "col": 2, "byteIndex": 2169 @@ -383,7 +383,7 @@ "doc": "The client configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 39, "col": 2, "byteIndex": 1098 @@ -408,7 +408,7 @@ "doc": "The SQL dialect identifier." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 42, "col": 2, "byteIndex": 1174 @@ -437,7 +437,7 @@ "name": "createMySqlClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/client.ts", "line": 189, "col": 0, "byteIndex": 5163 @@ -517,7 +517,7 @@ "name": "MySqlTransaction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 14, "col": 0, "byteIndex": 353 @@ -554,7 +554,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 19, "col": 2, "byteIndex": 485 @@ -602,7 +602,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 25, "col": 2, "byteIndex": 604 @@ -650,7 +650,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 31, "col": 2, "byteIndex": 729 @@ -695,7 +695,7 @@ "name": "MySqlTransactionImpl", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 44, "col": 0, "byteIndex": 1084 @@ -725,7 +725,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 48, "col": 2, "byteIndex": 1215 @@ -797,7 +797,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 55, "col": 2, "byteIndex": 1352 @@ -892,7 +892,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 76, "col": 2, "byteIndex": 2026 @@ -989,7 +989,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 124, "col": 2, "byteIndex": 3375 @@ -1024,7 +1024,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 132, "col": 2, "byteIndex": 3579 @@ -1059,7 +1059,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 147, "col": 2, "byteIndex": 3922 @@ -1105,7 +1105,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 162, "col": 2, "byteIndex": 4269 @@ -1151,7 +1151,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 175, "col": 2, "byteIndex": 4670 @@ -1197,7 +1197,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/transaction.ts", "line": 190, "col": 2, "byteIndex": 5112 @@ -1223,7 +1223,7 @@ "name": "MySqlTlsConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 6, "col": 0, "byteIndex": 143 @@ -1244,7 +1244,7 @@ "doc": "Root CA certificate (PEM format)." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 8, "col": 2, "byteIndex": 222 @@ -1266,7 +1266,7 @@ "doc": "Client certificate (PEM format)." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 10, "col": 2, "byteIndex": 288 @@ -1288,7 +1288,7 @@ "doc": "Client private key (PEM format)." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 12, "col": 2, "byteIndex": 356 @@ -1310,7 +1310,7 @@ "doc": "Skip server certificate verification (use only for testing)." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 14, "col": 2, "byteIndex": 451 @@ -1336,7 +1336,7 @@ "name": "MySqlPoolConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 20, "col": 0, "byteIndex": 535 @@ -1363,7 +1363,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 25, "col": 2, "byteIndex": 649 @@ -1391,7 +1391,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 31, "col": 2, "byteIndex": 756 @@ -1419,7 +1419,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 37, "col": 2, "byteIndex": 897 @@ -1447,7 +1447,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 43, "col": 2, "byteIndex": 1019 @@ -1475,7 +1475,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 49, "col": 2, "byteIndex": 1157 @@ -1501,7 +1501,7 @@ "name": "MySqlConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 57, "col": 0, "byteIndex": 1300 @@ -1531,7 +1531,7 @@ "doc": "Database name to connect to." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 61, "col": 2, "byteIndex": 1420 @@ -1553,7 +1553,7 @@ "doc": "TLS configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 66, "col": 2, "byteIndex": 1487 @@ -1578,7 +1578,7 @@ "doc": "Character set." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 71, "col": 2, "byteIndex": 1553 @@ -1604,7 +1604,7 @@ "name": "MySqlClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 77, "col": 0, "byteIndex": 1637 @@ -1634,7 +1634,7 @@ "doc": "Connection URL or configuration.\n\nCan be a connection URL string (e.g., \"mysql://user:pass@host:port/database\")\nor a detailed MySqlConnectionConfig object." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 84, "col": 2, "byteIndex": 1885 @@ -1670,7 +1670,7 @@ "doc": "Connection pool configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 87, "col": 2, "byteIndex": 1974 @@ -1695,7 +1695,7 @@ "doc": "Timezone for the connection." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/types.ts", "line": 90, "col": 2, "byteIndex": 2048 @@ -1721,7 +1721,7 @@ "name": "MySqlErrorKind", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 12, "col": 0, "byteIndex": 179 @@ -1761,7 +1761,7 @@ "name": "MySqlErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 17, "col": 0, "byteIndex": 296 @@ -1791,7 +1791,7 @@ "doc": "MySQL error code (e.g., 1045, 1062)." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 19, "col": 2, "byteIndex": 405 @@ -1817,7 +1817,7 @@ "name": "MySqlError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 26, "col": 0, "byteIndex": 551 @@ -1860,7 +1860,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 30, "col": 2, "byteIndex": 673 @@ -1882,7 +1882,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 27, "col": 2, "byteIndex": 596 @@ -1901,7 +1901,7 @@ "isStatic": false, "name": "errno", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 28, "col": 2, "byteIndex": 645 @@ -1920,7 +1920,7 @@ "name": "AccessDeniedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 42, "col": 0, "byteIndex": 893 @@ -1963,7 +1963,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 46, "col": 2, "byteIndex": 1045 @@ -1985,7 +1985,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 947 @@ -2007,7 +2007,7 @@ "isStatic": false, "name": "mysqlKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 44, "col": 2, "byteIndex": 995 @@ -2026,7 +2026,7 @@ "name": "ConnectionRefusedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 54, "col": 0, "byteIndex": 1193 @@ -2069,7 +2069,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 58, "col": 2, "byteIndex": 1360 @@ -2091,7 +2091,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 55, "col": 2, "byteIndex": 1252 @@ -2113,7 +2113,7 @@ "isStatic": false, "name": "mysqlKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 56, "col": 2, "byteIndex": 1305 @@ -2132,7 +2132,7 @@ "name": "convertMySqlError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-mysql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-mysql/0.2.0/errors.ts", "line": 76, "col": 0, "byteIndex": 1867 @@ -4954,5 +4954,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:34.636Z" + "generatedAt": "2025-12-09T20:05:12.183Z" } diff --git a/data/api/client-sql-postgres.json b/data/api/client-sql-postgres.json index e399888..cf478fb 100644 --- a/data/api/client-sql-postgres.json +++ b/data/api/client-sql-postgres.json @@ -1,14 +1,14 @@ { "name": "client-sql-postgres", "specifier": "@probitas/client-sql-postgres", - "version": "0.1.1", - "moduleDoc": "PostgreSQL client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a PostgreSQL client designed for integration testing,\nwith transaction support and LISTEN/NOTIFY capabilities.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support with isolation levels\n- **LISTEN/NOTIFY**: Real-time notifications for async testing\n- **COPY Protocol**: High-performance bulk data loading\n- **Fluent Assertions**: `expectSqlQueryResult()` for testing query results\n- **Connection Pooling**: Configurable pool with idle timeout\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-postgres\n```\n\n## Quick Start\n\n```ts\nimport { createPostgresClient, expectSqlQueryResult } from \"@probitas/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://user:pass@localhost:5432/mydb\",\n});\n\n// Query with parameters\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM users WHERE active = $1\",\n [true]\n);\n\nexpectSqlQueryResult(result)\n .hasRowCount(3)\n .rowsContain({ name: \"Alice\" });\n\n// Get first row\nconst user = await client.queryOne<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = $1\",\n [1]\n);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES ($1, $2)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES ($1, $2)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n}, { isolationLevel: \"serializable\" });\n```\n\n## LISTEN/NOTIFY\n\n```ts\n// Listen for notifications\nconst listener = await client.listen(\"events\");\nfor await (const notification of listener) {\n console.log(\"Received:\", notification.payload);\n break;\n}\n\n// Send notification\nawait client.notify(\"events\", JSON.stringify({ type: \"created\", id: 123 }));\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createPostgresClient({\n url: \"postgres://localhost:5432/testdb\",\n});\n\nconst result = await client.query(\"SELECT 1 as n\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [PostgreSQL](https://www.postgresql.org/)\n", + "version": "0.2.0", + "moduleDoc": "PostgreSQL client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a PostgreSQL client designed for integration testing,\nwith transaction support and LISTEN/NOTIFY capabilities.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support with isolation levels\n- **LISTEN/NOTIFY**: Real-time notifications for async testing\n- **COPY Protocol**: High-performance bulk data loading\n- **Connection Pooling**: Configurable pool with idle timeout\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-postgres\n```\n\n## Quick Start\n\n```ts\nimport { createPostgresClient } from \"@probitas/client-sql-postgres\";\n\nconst client = await createPostgresClient({\n url: \"postgres://user:pass@localhost:5432/mydb\",\n});\n\n// Query with parameters\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM users WHERE active = $1\",\n [true]\n);\nconsole.log(result.rows);\n\n// Get first row\nconst user = await client.queryOne<{ id: number; name: string }>(\n \"SELECT * FROM users WHERE id = $1\",\n [1]\n);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES ($1, $2)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES ($1, $2)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n}, { isolationLevel: \"serializable\" });\n```\n\n## LISTEN/NOTIFY\n\n```ts\n// Listen for notifications\nconst listener = await client.listen(\"events\");\nfor await (const notification of listener) {\n console.log(\"Received:\", notification.payload);\n break;\n}\n\n// Send notification\nawait client.notify(\"events\", JSON.stringify({ type: \"created\", id: 123 }));\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createPostgresClient({\n url: \"postgres://localhost:5432/testdb\",\n});\n\nconst result = await client.query(\"SELECT 1 as n\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [PostgreSQL](https://www.postgresql.org/)\n", "exports": [ { "name": "PostgresTransaction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/transaction.ts", "line": 14, "col": 0, "byteIndex": 343 @@ -51,7 +51,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/transaction.ts", "line": 24, "col": 2, "byteIndex": 607 @@ -165,7 +165,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/transaction.ts", "line": 47, "col": 2, "byteIndex": 1148 @@ -277,7 +277,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/transaction.ts", "line": 80, "col": 2, "byteIndex": 2027 @@ -315,7 +315,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/transaction.ts", "line": 91, "col": 2, "byteIndex": 2272 @@ -353,7 +353,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/transaction.ts", "line": 106, "col": 2, "byteIndex": 2606 @@ -1971,971 +1971,11 @@ "typeParams": [] } }, - { - "name": "expectSqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 238, - "col": 0, - "byteIndex": 6041 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create an expectation for a SQL query result." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - } - ], - "returnType": { - "repr": "SqlQueryResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } - } - ] - } - }, - { - "name": "SqlQueryResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 8, - "col": 0, - "byteIndex": 193 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation interface for SQL query results.\nAll methods return `this` for chaining." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Verify query succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 10, - "col": 2, - "byteIndex": 275 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Verify query failed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 13, - "col": 2, - "byteIndex": 319 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Verify result has no rows" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 16, - "col": 2, - "byteIndex": 372 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Verify result has rows" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 19, - "col": 2, - "byteIndex": 426 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rows", - "jsDoc": { - "doc": "Verify exact row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 22, - "col": 2, - "byteIndex": 481 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowsAtLeast", - "jsDoc": { - "doc": "Verify minimum row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 25, - "col": 2, - "byteIndex": 545 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowsAtMost", - "jsDoc": { - "doc": "Verify maximum row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 28, - "col": 2, - "byteIndex": 616 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Verify exact affected row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 31, - "col": 2, - "byteIndex": 693 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowCountAtLeast", - "jsDoc": { - "doc": "Verify minimum affected row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 34, - "col": 2, - "byteIndex": 770 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowCountAtMost", - "jsDoc": { - "doc": "Verify maximum affected row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 37, - "col": 2, - "byteIndex": 854 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowContains", - "jsDoc": { - "doc": "Verify a row contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 40, - "col": 2, - "byteIndex": 942 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowMatch", - "jsDoc": { - "doc": "Custom row validation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 43, - "col": 2, - "byteIndex": 1015 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "rows", - "optional": false, - "tsType": { - "repr": "SqlRows", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlRows" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "mapContains", - "jsDoc": { - "doc": "Verify mapped data contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 46, - "col": 2, - "byteIndex": 1125 - }, - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "mapMatch", - "jsDoc": { - "doc": "Custom mapped data validation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 49, - "col": 2, - "byteIndex": 1232 - }, - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "mapped", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "asContains", - "jsDoc": { - "doc": "Verify instance contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 52, - "col": 2, - "byteIndex": 1360 - }, - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "asMatch", - "jsDoc": { - "doc": "Custom instance validation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 55, - "col": 2, - "byteIndex": 1465 - }, - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "instances", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Verify exact lastInsertId" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 58, - "col": 2, - "byteIndex": 1581 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasLastInsertId", - "jsDoc": { - "doc": "Verify lastInsertId is present" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 61, - "col": 2, - "byteIndex": 1671 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Verify query duration is below threshold" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.0.6/expectation.ts", - "line": 64, - "col": 2, - "byteIndex": 1749 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, { "name": "PostgresSslConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 39, "col": 0, "byteIndex": 1091 @@ -2962,7 +2002,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 44, "col": 2, "byteIndex": 1211 @@ -2984,7 +2024,7 @@ "doc": "CA certificate(s) for verification." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 49, "col": 2, "byteIndex": 1306 @@ -3006,7 +2046,7 @@ "doc": "Client certificate for mutual TLS." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 54, "col": 2, "byteIndex": 1383 @@ -3028,7 +2068,7 @@ "doc": "Client private key for mutual TLS." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 59, "col": 2, "byteIndex": 1462 @@ -3054,7 +2094,7 @@ "name": "PostgresConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 67, "col": 0, "byteIndex": 1607 @@ -3084,7 +2124,7 @@ "doc": "Database name to connect to." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 71, "col": 2, "byteIndex": 1730 @@ -3106,7 +2146,7 @@ "doc": "SSL/TLS configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 76, "col": 2, "byteIndex": 1801 @@ -3146,7 +2186,7 @@ "name": "PostgresPoolConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 82, "col": 0, "byteIndex": 1894 @@ -3167,7 +2207,7 @@ "doc": "Maximum number of connections in the pool" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 84, "col": 2, "byteIndex": 1985 @@ -3189,7 +2229,7 @@ "doc": "Idle timeout in milliseconds before closing unused connections" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 87, "col": 2, "byteIndex": 2083 @@ -3211,7 +2251,7 @@ "doc": "Connection timeout in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 90, "col": 2, "byteIndex": 2161 @@ -3237,7 +2277,7 @@ "name": "PostgresClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 96, "col": 0, "byteIndex": 2257 @@ -3277,7 +2317,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 118, "col": 2, "byteIndex": 2735 @@ -3313,7 +2353,7 @@ "doc": "Pool configuration" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 121, "col": 2, "byteIndex": 2815 @@ -3338,7 +2378,7 @@ "doc": "Application name for PostgreSQL connection" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 124, "col": 2, "byteIndex": 2906 @@ -3364,7 +2404,7 @@ "name": "PostgresNotification", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 130, "col": 0, "byteIndex": 2994 @@ -3385,7 +2425,7 @@ "doc": "Channel name" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 132, "col": 2, "byteIndex": 3058 @@ -3407,7 +2447,7 @@ "doc": "Notification payload" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 135, "col": 2, "byteIndex": 3117 @@ -3429,7 +2469,7 @@ "doc": "Process ID of the notifying backend" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 138, "col": 2, "byteIndex": 3191 @@ -3455,7 +2495,7 @@ "name": "PostgresClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 144, "col": 0, "byteIndex": 3262 @@ -3497,7 +2537,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 158, "col": 2, "byteIndex": 3626 @@ -3599,7 +2639,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 170, "col": 2, "byteIndex": 3932 @@ -3703,7 +2743,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 184, "col": 2, "byteIndex": 4351 @@ -3815,7 +2855,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 196, "col": 2, "byteIndex": 4684 @@ -3890,7 +2930,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 204, "col": 2, "byteIndex": 4931 @@ -3946,7 +2986,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 212, "col": 2, "byteIndex": 5138 @@ -4002,7 +3042,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 220, "col": 2, "byteIndex": 5346 @@ -4053,7 +3093,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 225, "col": 2, "byteIndex": 5470 @@ -4084,7 +3124,7 @@ "doc": "The client configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 146, "col": 2, "byteIndex": 3357 @@ -4109,7 +3149,7 @@ "doc": "The database dialect." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 149, "col": 2, "byteIndex": 3430 @@ -4138,7 +3178,7 @@ "name": "createPostgresClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/client.ts", "line": 674, "col": 0, "byteIndex": 17458 @@ -4222,7 +3262,7 @@ "name": "PostgresErrorLike", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/errors.ts", "line": 36, "col": 0, "byteIndex": 813 @@ -4240,7 +3280,7 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/errors.ts", "line": 37, "col": 2, "byteIndex": 852 @@ -4259,7 +3299,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/errors.ts", "line": 38, "col": 2, "byteIndex": 880 @@ -4278,7 +3318,7 @@ { "name": "constraint", "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/errors.ts", "line": 39, "col": 2, "byteIndex": 906 @@ -4304,7 +3344,7 @@ "name": "mapPostgresError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-postgres/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-postgres/0.2.0/errors.ts", "line": 48, "col": 0, "byteIndex": 1106 @@ -4356,5 +3396,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:34.768Z" + "generatedAt": "2025-12-09T20:05:12.267Z" } diff --git a/data/api/client-sql-sqlite.json b/data/api/client-sql-sqlite.json index cd56a44..87fcf3a 100644 --- a/data/api/client-sql-sqlite.json +++ b/data/api/client-sql-sqlite.json @@ -1,14 +1,14 @@ { "name": "client-sql-sqlite", "specifier": "@probitas/client-sql-sqlite", - "version": "0.1.1", - "moduleDoc": "SQLite client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a SQLite client designed for integration testing,\nwith transaction support and in-memory database capabilities.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support with isolation levels\n- **In-Memory Databases**: Perfect for isolated test scenarios\n- **File-Based Databases**: Persist data for stateful testing\n- **Fluent Assertions**: `expectSqlQueryResult()` for testing query results\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-sqlite\n```\n\n## Quick Start\n\n```ts\nimport { createSqliteClient, expectSqlQueryResult } from \"@probitas/client-sql-sqlite\";\n\n// In-memory database for testing\nconst client = await createSqliteClient({\n path: \":memory:\",\n});\n\n// Create table\nawait client.query(`\n CREATE TABLE users (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n active INTEGER DEFAULT 1\n )\n`);\n\n// Insert and query with parameters (uses ? placeholders)\nawait client.query(\"INSERT INTO users (name) VALUES (?)\", [\"Alice\"]);\n\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM users WHERE active = ?\",\n [1]\n);\n\nexpectSqlQueryResult(result)\n .hasRowCount(1)\n .rowsContain({ name: \"Alice\" });\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createSqliteClient({ path: \":memory:\" });\n\nawait client.query(\"CREATE TABLE test (id INTEGER PRIMARY KEY)\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [SQLite](https://www.sqlite.org/)\n", + "version": "0.2.0", + "moduleDoc": "SQLite client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides a SQLite client designed for integration testing,\nwith transaction support and in-memory database capabilities.\n\n## Features\n\n- **Query Execution**: Parameterized queries with type-safe results\n- **Transactions**: Full transaction support with isolation levels\n- **In-Memory Databases**: Perfect for isolated test scenarios\n- **File-Based Databases**: Persist data for stateful testing\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql-sqlite\n```\n\n## Quick Start\n\n```ts\nimport { createSqliteClient } from \"@probitas/client-sql-sqlite\";\n\n// In-memory database for testing\nconst client = await createSqliteClient({\n path: \":memory:\",\n});\n\n// Create table\nawait client.query(`\n CREATE TABLE users (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n active INTEGER DEFAULT 1\n )\n`);\n\n// Insert and query with parameters (uses ? placeholders)\nawait client.query(\"INSERT INTO users (name) VALUES (?)\", [\"Alice\"]);\n\nconst result = await client.query<{ id: number; name: string }>(\n \"SELECT id, name FROM users WHERE active = ?\",\n [1]\n);\nconsole.log(result.rows);\n\nawait client.close();\n```\n\n## Transactions\n\n```ts\nawait client.transaction(async (tx) => {\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [1, 100]);\n await tx.query(\"INSERT INTO accounts (id, balance) VALUES (?, ?)\", [2, 200]);\n // Automatically committed if no error, rolled back on exception\n});\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createSqliteClient({ path: \":memory:\" });\n\nawait client.query(\"CREATE TABLE test (id INTEGER PRIMARY KEY)\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql`](https://jsr.io/@probitas/client-sql) | Common SQL types and utilities |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [SQLite](https://www.sqlite.org/)\n", "exports": [ { "name": "SqliteClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 42, "col": 0, "byteIndex": 1060 @@ -50,7 +50,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 55, "col": 2, "byteIndex": 1419 @@ -152,7 +152,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 66, "col": 2, "byteIndex": 1720 @@ -256,7 +256,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 77, "col": 2, "byteIndex": 2046 @@ -373,7 +373,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 87, "col": 2, "byteIndex": 2345 @@ -414,7 +414,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 92, "col": 2, "byteIndex": 2472 @@ -444,7 +444,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 97, "col": 2, "byteIndex": 2548 @@ -475,7 +475,7 @@ "doc": "The client configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 44, "col": 2, "byteIndex": 1153 @@ -500,7 +500,7 @@ "doc": "The SQL dialect identifier." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 47, "col": 2, "byteIndex": 1230 @@ -529,7 +529,7 @@ "name": "createSqliteClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/client.ts", "line": 154, "col": 0, "byteIndex": 4036 @@ -613,7 +613,7 @@ "name": "SqliteTransactionMode", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 20, "col": 0, "byteIndex": 559 @@ -661,7 +661,7 @@ "name": "SqliteTransactionOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 25, "col": 0, "byteIndex": 684 @@ -697,7 +697,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 30, "col": 2, "byteIndex": 829 @@ -726,7 +726,7 @@ "name": "SqliteTransactionImpl", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 55, "col": 0, "byteIndex": 1489 @@ -756,7 +756,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 59, "col": 2, "byteIndex": 1602 @@ -819,7 +819,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 66, "col": 2, "byteIndex": 1706 @@ -914,7 +914,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 88, "col": 2, "byteIndex": 2345 @@ -1011,7 +1011,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 170, "col": 2, "byteIndex": 4677 @@ -1046,7 +1046,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 178, "col": 2, "byteIndex": 4881 @@ -1081,7 +1081,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/transaction.ts", "line": 194, "col": 2, "byteIndex": 5245 @@ -1107,7 +1107,7 @@ "name": "SqliteClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/types.ts", "line": 6, "col": 0, "byteIndex": 118 @@ -1137,7 +1137,7 @@ "doc": "Database file path.\nUse \":memory:\" for an in-memory database." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/types.ts", "line": 11, "col": 2, "byteIndex": 264 @@ -1165,7 +1165,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/types.ts", "line": 17, "col": 2, "byteIndex": 364 @@ -1193,7 +1193,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/types.ts", "line": 24, "col": 2, "byteIndex": 530 @@ -1219,7 +1219,7 @@ "name": "SqliteErrorKind", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 12, "col": 0, "byteIndex": 180 @@ -1267,7 +1267,7 @@ "name": "SqliteErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 17, "col": 0, "byteIndex": 300 @@ -1297,7 +1297,7 @@ "doc": "SQLite extended error code." }, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 19, "col": 2, "byteIndex": 401 @@ -1323,7 +1323,7 @@ "name": "SqliteError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 26, "col": 0, "byteIndex": 563 @@ -1366,7 +1366,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 30, "col": 2, "byteIndex": 694 @@ -1388,7 +1388,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 27, "col": 2, "byteIndex": 609 @@ -1407,7 +1407,7 @@ "isStatic": false, "name": "extendedCode", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 28, "col": 2, "byteIndex": 659 @@ -1426,7 +1426,7 @@ "name": "DatabaseLockedError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 42, "col": 0, "byteIndex": 915 @@ -1469,7 +1469,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 46, "col": 2, "byteIndex": 1075 @@ -1491,7 +1491,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 972 @@ -1513,7 +1513,7 @@ "isStatic": false, "name": "sqliteKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 44, "col": 2, "byteIndex": 1022 @@ -1532,7 +1532,7 @@ "name": "ReadonlyDatabaseError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 54, "col": 0, "byteIndex": 1241 @@ -1575,7 +1575,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 58, "col": 2, "byteIndex": 1398 @@ -1597,7 +1597,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 55, "col": 2, "byteIndex": 1300 @@ -1619,7 +1619,7 @@ "isStatic": false, "name": "sqliteKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 56, "col": 2, "byteIndex": 1352 @@ -1638,7 +1638,7 @@ "name": "BusyError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 66, "col": 0, "byteIndex": 1546 @@ -1681,7 +1681,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 70, "col": 2, "byteIndex": 1675 @@ -1703,7 +1703,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 67, "col": 2, "byteIndex": 1593 @@ -1725,7 +1725,7 @@ "isStatic": false, "name": "sqliteKind", "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 68, "col": 2, "byteIndex": 1633 @@ -1744,7 +1744,7 @@ "name": "convertSqliteError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql-sqlite/0.2.0/errors.ts", "line": 89, "col": 0, "byteIndex": 2195 @@ -4566,5 +4566,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:34.920Z" + "generatedAt": "2025-12-09T20:05:12.555Z" } diff --git a/data/api/client-sql.json b/data/api/client-sql.json index 2546b29..95b7c50 100644 --- a/data/api/client-sql.json +++ b/data/api/client-sql.json @@ -1,14 +1,14 @@ { "name": "client-sql", "specifier": "@probitas/client-sql", - "version": "0.1.1", - "moduleDoc": "Common SQL types and utilities for [Probitas](https://github.com/jsr-probitas/probitas) SQL client packages.\n\nThis package provides shared types, result classes, errors, and expectations\nused across all SQL-related client packages.\n\n## Features\n\n- **Query Results**: `SqlQueryResult` class with row iteration and metadata\n- **Transactions**: Common transaction interface with isolation levels\n- **Error Hierarchy**: SQL-specific errors (`SqlError`, `QuerySyntaxError`, `ConstraintError`, `DeadlockError`)\n- **Fluent Assertions**: `expectSqlQueryResult()` for testing query results\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql\n```\n\n## Usage\n\nThis package is typically used as a dependency by database-specific packages.\nEnd users should import from the specific database client packages instead.\n\n```ts\nimport {\n SqlQueryResult,\n SqlError,\n ConstraintError,\n expectSqlQueryResult,\n} from \"@probitas/client-sql\";\nimport type { SqlTransaction, SqlIsolationLevel } from \"@probitas/client-sql\";\n\n// Assert on query results\nexpectSqlQueryResult(result)\n .hasRowCount(3)\n .rowsContain({ name: \"Alice\" });\n\n// Handle SQL errors\ntry {\n await client.query(\"INSERT INTO users (email) VALUES ($1)\", [\"duplicate@example.com\"]);\n} catch (error) {\n if (error instanceof ConstraintError) {\n console.log(\"Constraint violation:\", error.constraint);\n }\n}\n```\n\n## Database-Specific Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", + "version": "0.2.0", + "moduleDoc": "Common SQL types and utilities for [Probitas](https://github.com/jsr-probitas/probitas) SQL client packages.\n\nThis package provides shared types, result classes, and errors used across\nall SQL-related client packages.\n\n## Features\n\n- **Query Results**: `SqlQueryResult` class with row iteration and metadata\n- **Transactions**: Common transaction interface with isolation levels\n- **Error Hierarchy**: SQL-specific errors (`SqlError`, `QuerySyntaxError`, `ConstraintError`, `DeadlockError`)\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sql\n```\n\n## Usage\n\nThis package is typically used as a dependency by database-specific packages.\nEnd users should import from the specific database client packages instead.\n\n```ts\nimport {\n SqlQueryResult,\n SqlError,\n ConstraintError,\n} from \"@probitas/client-sql\";\nimport type { SqlTransaction, SqlIsolationLevel } from \"@probitas/client-sql\";\n\n// Handle SQL errors\ntry {\n await client.query(\"INSERT INTO users (email) VALUES ($1)\", [\"duplicate@example.com\"]);\n} catch (error) {\n if (error instanceof ConstraintError) {\n console.log(\"Constraint violation:\", error.constraint);\n }\n}\n```\n\n## Database-Specific Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", "exports": [ { "name": "SqlRows", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/rows.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/rows.ts", "line": 5, "col": 0, "byteIndex": 107 @@ -52,7 +52,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/rows.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/rows.ts", "line": 6, "col": 2, "byteIndex": 152 @@ -99,7 +99,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/rows.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/rows.ts", "line": 14, "col": 2, "byteIndex": 326 @@ -131,7 +131,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/rows.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/rows.ts", "line": 21, "col": 2, "byteIndex": 433 @@ -174,7 +174,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/rows.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/rows.ts", "line": 31, "col": 2, "byteIndex": 613 @@ -206,7 +206,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/rows.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/rows.ts", "line": 38, "col": 2, "byteIndex": 732 @@ -236,7 +236,7 @@ "name": "SqlQueryResultMetadata", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 6, "col": 0, "byteIndex": 81 @@ -257,7 +257,7 @@ "doc": "Last inserted ID (for INSERT statements)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 8, "col": 2, "byteIndex": 175 @@ -290,7 +290,7 @@ "doc": "Warning messages from the database" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 11, "col": 2, "byteIndex": 263 @@ -327,7 +327,7 @@ "name": "SqlQueryResultInit", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 17, "col": 0, "byteIndex": 355 @@ -348,7 +348,7 @@ "doc": "Whether the query succeeded" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 19, "col": 2, "byteIndex": 435 @@ -370,7 +370,7 @@ "doc": "The result rows" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 22, "col": 2, "byteIndex": 485 @@ -406,7 +406,7 @@ "doc": "Number of affected rows (for INSERT/UPDATE/DELETE)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 25, "col": 2, "byteIndex": 577 @@ -428,7 +428,7 @@ "doc": "Query execution duration in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 28, "col": 2, "byteIndex": 657 @@ -450,7 +450,7 @@ "doc": "Additional metadata" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 31, "col": 2, "byteIndex": 716 @@ -483,7 +483,7 @@ "name": "SqlQueryResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 38, "col": 0, "byteIndex": 875 @@ -525,7 +525,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 46, "col": 2, "byteIndex": 1123 @@ -549,7 +549,7 @@ "isStatic": false, "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 39, "col": 2, "byteIndex": 932 @@ -568,7 +568,7 @@ "isStatic": false, "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 40, "col": 2, "byteIndex": 966 @@ -599,7 +599,7 @@ "isStatic": false, "name": "rows", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 41, "col": 2, "byteIndex": 990 @@ -618,7 +618,7 @@ "isStatic": false, "name": "rowCount", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 42, "col": 2, "byteIndex": 1019 @@ -637,7 +637,7 @@ "isStatic": false, "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 43, "col": 2, "byteIndex": 1048 @@ -659,7 +659,7 @@ "isStatic": false, "name": "metadata", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 44, "col": 2, "byteIndex": 1077 @@ -739,7 +739,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 57, "col": 2, "byteIndex": 1382 @@ -816,7 +816,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/result.ts", "line": 68, "col": 2, "byteIndex": 1597 @@ -856,7 +856,7 @@ "name": "SqlIsolationLevel", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 6, "col": 0, "byteIndex": 92 @@ -912,7 +912,7 @@ "name": "SqlTransactionOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 15, "col": 0, "byteIndex": 258 @@ -933,7 +933,7 @@ "doc": "Isolation level for the transaction" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 17, "col": 2, "byteIndex": 346 @@ -962,7 +962,7 @@ "name": "SqlTransaction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 24, "col": 0, "byteIndex": 513 @@ -995,7 +995,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 31, "col": 2, "byteIndex": 726 @@ -1097,7 +1097,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 42, "col": 2, "byteIndex": 1027 @@ -1189,7 +1189,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 50, "col": 2, "byteIndex": 1176 @@ -1219,7 +1219,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/transaction.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/transaction.ts", "line": 55, "col": 2, "byteIndex": 1247 @@ -1253,7 +1253,7 @@ "name": "SqlErrorKind", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 6, "col": 0, "byteIndex": 93 @@ -1309,7 +1309,7 @@ "name": "SqlErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 15, "col": 0, "byteIndex": 225 @@ -1339,7 +1339,7 @@ "doc": "SQL State code (e.g., \"23505\" for unique violation)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 17, "col": 2, "byteIndex": 344 @@ -1365,7 +1365,7 @@ "name": "SqlError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 24, "col": 0, "byteIndex": 481 @@ -1421,7 +1421,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 29, "col": 2, "byteIndex": 645 @@ -1443,7 +1443,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 25, "col": 2, "byteIndex": 527 @@ -1466,7 +1466,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 26, "col": 2, "byteIndex": 574 @@ -1485,7 +1485,7 @@ "isStatic": false, "name": "sqlState", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 27, "col": 2, "byteIndex": 614 @@ -1504,7 +1504,7 @@ "name": "QuerySyntaxError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 43, "col": 0, "byteIndex": 903 @@ -1547,7 +1547,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 47, "col": 2, "byteIndex": 1047 @@ -1569,7 +1569,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 44, "col": 2, "byteIndex": 954 @@ -1592,7 +1592,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 45, "col": 2, "byteIndex": 1001 @@ -1611,7 +1611,7 @@ "name": "ConstraintError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 55, "col": 0, "byteIndex": 1210 @@ -1664,7 +1664,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 60, "col": 2, "byteIndex": 1388 @@ -1686,7 +1686,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 56, "col": 2, "byteIndex": 1260 @@ -1709,7 +1709,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 57, "col": 2, "byteIndex": 1306 @@ -1728,7 +1728,7 @@ "isStatic": false, "name": "constraint", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 58, "col": 2, "byteIndex": 1356 @@ -1747,7 +1747,7 @@ "name": "DeadlockError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 69, "col": 0, "byteIndex": 1603 @@ -1790,7 +1790,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 73, "col": 2, "byteIndex": 1744 @@ -1812,7 +1812,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 70, "col": 2, "byteIndex": 1651 @@ -1835,7 +1835,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sql/0.2.0/errors.ts", "line": 71, "col": 2, "byteIndex": 1695 @@ -1849,994 +1849,7 @@ "typeParams": [], "superTypeParams": [] } - }, - { - "name": "SqlQueryResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 8, - "col": 0, - "byteIndex": 193 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation interface for SQL query results.\nAll methods return `this` for chaining." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Verify query succeeded" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 10, - "col": 2, - "byteIndex": 275 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Verify query failed" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 13, - "col": 2, - "byteIndex": 319 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Verify result has no rows" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 16, - "col": 2, - "byteIndex": 372 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Verify result has rows" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 19, - "col": 2, - "byteIndex": 426 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "count", - "jsDoc": { - "doc": "Verify exact row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 22, - "col": 2, - "byteIndex": 481 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "jsDoc": { - "doc": "Verify minimum row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 25, - "col": 2, - "byteIndex": 549 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "jsDoc": { - "doc": "Verify maximum row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 28, - "col": 2, - "byteIndex": 624 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowCount", - "jsDoc": { - "doc": "Verify exact affected row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 31, - "col": 2, - "byteIndex": 705 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowCountAtLeast", - "jsDoc": { - "doc": "Verify minimum affected row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 34, - "col": 2, - "byteIndex": 782 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "rowCountAtMost", - "jsDoc": { - "doc": "Verify maximum affected row count" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 37, - "col": 2, - "byteIndex": 866 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Verify a row contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 40, - "col": 2, - "byteIndex": 954 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Custom row validation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 43, - "col": 2, - "byteIndex": 1028 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "rows", - "optional": false, - "tsType": { - "repr": "SqlRows", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlRows" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "mapContains", - "jsDoc": { - "doc": "Verify mapped data contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 46, - "col": 2, - "byteIndex": 1139 - }, - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "mapMatch", - "jsDoc": { - "doc": "Custom mapped data validation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 49, - "col": 2, - "byteIndex": 1246 - }, - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "mapped", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "asContains", - "jsDoc": { - "doc": "Verify instance contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 52, - "col": 2, - "byteIndex": 1374 - }, - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "asMatch", - "jsDoc": { - "doc": "Custom instance validation" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 55, - "col": 2, - "byteIndex": 1479 - }, - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "instances", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "U" - } - ] - }, - { - "name": "lastInsertId", - "jsDoc": { - "doc": "Verify exact lastInsertId" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 58, - "col": 2, - "byteIndex": 1595 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasLastInsertId", - "jsDoc": { - "doc": "Verify lastInsertId is present" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 61, - "col": 2, - "byteIndex": 1685 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Verify query duration is below threshold" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 64, - "col": 2, - "byteIndex": 1763 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "expectSqlQueryResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 284, - "col": 0, - "byteIndex": 7244 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for SQL query result validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", - "tags": [ - { - "kind": "param", - "name": "result", - "doc": "- The SQL query result to validate" - }, - { - "kind": "return", - "doc": "A fluent expectation chain\n" - }, - { - "kind": "example", - "doc": "Basic assertions\n```ts\nconst result = await client.query(\"SELECT * FROM users WHERE active = true\");\n\nexpectSqlQueryResult(result)\n .ok()\n .countAtLeast(1)\n .dataContains({ name: \"Alice\" });\n```\n" - }, - { - "kind": "example", - "doc": "Insert/Update assertions\n```ts\nconst result = await client.query(\n \"INSERT INTO users (name, email) VALUES ($1, $2)\",\n [\"Bob\", \"bob@example.com\"]\n);\n\nexpectSqlQueryResult(result)\n .ok()\n .rowCount(1)\n .hasLastInsertId();\n```\n" - }, - { - "kind": "example", - "doc": "Custom matcher with mapped data\n```ts\nexpectSqlQueryResult(result)\n .ok()\n .mapMatch(\n (row) => row.name.toUpperCase(),\n (names) => assertEquals(names, [\"ALICE\", \"BOB\"])\n );\n```\n" - }, - { - "kind": "example", - "doc": "Performance assertions\n```ts\nexpectSqlQueryResult(result)\n .ok()\n .durationLessThan(100); // Must complete within 100ms\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "SqlQueryResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResult" - } - } - } - ], - "returnType": { - "repr": "SqlQueryResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - ], - "typeName": "Record" - } - } - } - ] - } } ], - "generatedAt": "2025-12-09T00:26:34.373Z" + "generatedAt": "2025-12-09T20:05:11.309Z" } diff --git a/data/api/client-sqs.json b/data/api/client-sqs.json index fd53920..0bb002b 100644 --- a/data/api/client-sqs.json +++ b/data/api/client-sqs.json @@ -1,14 +1,14 @@ { "name": "client-sqs", "specifier": "@probitas/client-sqs", - "version": "0.1.1", - "moduleDoc": "AWS SQS client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides an AWS SQS client with fluent assertion APIs, designed for\nintegration testing of message-driven applications using Amazon Simple Queue Service.\n\n## Features\n\n- **Queue Management**: Create, delete, and purge queues\n- **Message Operations**: Send, receive, and delete messages (single and batch)\n- **Message Attributes**: Support for custom message attributes\n- **Fluent Assertions**: `expectSqsResult()` for testing SQS operations\n- **LocalStack Compatible**: Works with LocalStack for local development\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sqs\n```\n\n## Quick Start\n\n```ts\nimport { createSqsClient, expectSqsResult } from \"@probitas/client-sqs\";\n\nconst client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:4566\", // LocalStack\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n});\n\n// Ensure queue exists\nconst queueResult = await client.ensureQueue(\"test-queue\");\nexpectSqsResult(queueResult).ok();\nconst queueUrl = queueResult.queueUrl;\n\n// Send a message\nconst sendResult = await client.send(queueUrl, \"Hello, World!\", {\n attributes: {\n type: { dataType: \"String\", stringValue: \"greeting\" },\n },\n});\nexpectSqsResult(sendResult).ok().hasMessageId();\n\n// Receive messages\nconst receiveResult = await client.receive(queueUrl, {\n maxMessages: 10,\n waitTimeSeconds: 5,\n});\nexpectSqsResult(receiveResult).ok().countAtLeast(1);\n\n// Delete message after processing\nfor (const msg of receiveResult.messages) {\n await client.delete(queueUrl, msg.receiptHandle);\n}\n\nawait client.close();\n```\n\n## Batch Operations\n\n```ts\n// Send batch messages\nconst batchSend = await client.sendBatch(queueUrl, [\n { body: \"Message 1\", id: \"msg-1\" },\n { body: \"Message 2\", id: \"msg-2\" },\n { body: \"Message 3\", id: \"msg-3\" },\n]);\nexpectSqsResult(batchSend).ok();\n\n// Delete batch messages\nconst messages = await client.receive(queueUrl, { maxMessages: 10 });\nconst batchDelete = await client.deleteBatch(\n queueUrl,\n messages.messages.map((m, i) => ({ id: `del-${i}`, receiptHandle: m.receiptHandle }))\n);\nexpectSqsResult(batchDelete).ok();\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:4566\",\n});\n\nconst queue = await client.ensureQueue(\"test\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-rabbitmq`](https://jsr.io/@probitas/client-rabbitmq) | RabbitMQ client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [AWS SQS](https://aws.amazon.com/sqs/)\n- [LocalStack](https://localstack.cloud/)\n", + "version": "0.2.0", + "moduleDoc": "AWS SQS client for [Probitas](https://github.com/jsr-probitas/probitas) scenario testing framework.\n\nThis package provides an AWS SQS client designed for integration testing of message-driven applications using Amazon Simple Queue Service.\n\n## Features\n\n- **Queue Management**: Create, delete, and purge queues\n- **Message Operations**: Send, receive, and delete messages (single and batch)\n- **Message Attributes**: Support for custom message attributes\n- **LocalStack Compatible**: Works with LocalStack for local development\n- **Resource Management**: Implements `AsyncDisposable` for proper cleanup\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client-sqs\n```\n\n## Quick Start\n\n```ts\nimport { createSqsClient } from \"@probitas/client-sqs\";\n\nconst client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:4566\", // LocalStack\n credentials: {\n accessKeyId: \"test\",\n secretAccessKey: \"test\",\n },\n});\n\n// Ensure queue exists\nconst queueResult = await client.ensureQueue(\"test-queue\");\nconst queueUrl = queueResult.queueUrl;\n\n// Send a message\nconst sendResult = await client.send(queueUrl, \"Hello, World!\", {\n attributes: {\n type: { dataType: \"String\", stringValue: \"greeting\" },\n },\n});\nconsole.log(\"Message ID:\", sendResult.messageId);\n\n// Receive messages\nconst receiveResult = await client.receive(queueUrl, {\n maxMessages: 10,\n waitTimeSeconds: 5,\n});\nconsole.log(\"Received:\", receiveResult.messages.length);\n\n// Delete message after processing\nfor (const msg of receiveResult.messages) {\n await client.delete(queueUrl, msg.receiptHandle);\n}\n\nawait client.close();\n```\n\n## Batch Operations\n\n```ts\n// Send batch messages\nawait client.sendBatch(queueUrl, [\n { body: \"Message 1\", id: \"msg-1\" },\n { body: \"Message 2\", id: \"msg-2\" },\n { body: \"Message 3\", id: \"msg-3\" },\n]);\n\n// Delete batch messages\nconst messages = await client.receive(queueUrl, { maxMessages: 10 });\nawait client.deleteBatch(\n queueUrl,\n messages.messages.map((m, i) => ({ id: `del-${i}`, receiptHandle: m.receiptHandle }))\n);\n```\n\n## Using with `using` Statement\n\n```ts\nawait using client = await createSqsClient({\n region: \"us-east-1\",\n url: \"http://localhost:4566\",\n});\n\nconst queue = await client.ensureQueue(\"test\");\n// Client automatically closed when block exits\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client`](https://jsr.io/@probitas/client) | Core utilities and types |\n| [`@probitas/client-rabbitmq`](https://jsr.io/@probitas/client-rabbitmq) | RabbitMQ client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n- [AWS SQS](https://aws.amazon.com/sqs/)\n- [LocalStack](https://localstack.cloud/)\n", "exports": [ { "name": "SqsConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 8, "col": 0, "byteIndex": 192 @@ -44,7 +44,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 13, "col": 2, "byteIndex": 320 @@ -89,7 +89,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 19, "col": 2, "byteIndex": 445 @@ -111,7 +111,7 @@ "doc": "AWS region (required for AWS, optional for LocalStack)." }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 24, "col": 2, "byteIndex": 545 @@ -137,7 +137,7 @@ "name": "SqsClientConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 30, "col": 0, "byteIndex": 611 @@ -167,7 +167,7 @@ "doc": "AWS region" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 32, "col": 2, "byteIndex": 690 @@ -189,7 +189,7 @@ "doc": "AWS credentials" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 34, "col": 2, "byteIndex": 742 @@ -208,7 +208,7 @@ { "name": "accessKeyId", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 35, "col": 4, "byteIndex": 771 @@ -227,7 +227,7 @@ { "name": "secretAccessKey", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 36, "col": 4, "byteIndex": 805 @@ -256,7 +256,7 @@ "doc": "SQS queue URL (optional - can be set later or used with ensureQueue)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 39, "col": 2, "byteIndex": 924 @@ -278,7 +278,7 @@ "doc": "SQS endpoint URL (e.g., \"http://localhost:4566\" for LocalStack).\nCan be a string URL or a connection config object.\nOptional for real AWS (uses default endpoint), required for LocalStack." }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 45, "col": 2, "byteIndex": 1169 @@ -318,7 +318,7 @@ "name": "SqsMessageAttribute", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 51, "col": 0, "byteIndex": 1252 @@ -336,7 +336,7 @@ { "name": "dataType", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 52, "col": 2, "byteIndex": 1293 @@ -380,7 +380,7 @@ { "name": "stringValue", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 53, "col": 2, "byteIndex": 1346 @@ -399,7 +399,7 @@ { "name": "binaryValue", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 54, "col": 2, "byteIndex": 1379 @@ -428,7 +428,7 @@ "name": "SqsMessage", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 60, "col": 0, "byteIndex": 1463 @@ -446,7 +446,7 @@ { "name": "messageId", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 61, "col": 2, "byteIndex": 1495 @@ -465,7 +465,7 @@ { "name": "body", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 62, "col": 2, "byteIndex": 1525 @@ -484,7 +484,7 @@ { "name": "receiptHandle", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 63, "col": 2, "byteIndex": 1550 @@ -503,7 +503,7 @@ { "name": "attributes", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 64, "col": 2, "byteIndex": 1584 @@ -536,7 +536,7 @@ { "name": "messageAttributes", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 65, "col": 2, "byteIndex": 1631 @@ -572,7 +572,7 @@ { "name": "md5OfBody", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 66, "col": 2, "byteIndex": 1699 @@ -598,7 +598,7 @@ "name": "SqsMessages", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 72, "col": 0, "byteIndex": 1776 @@ -637,7 +637,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 74, "col": 2, "byteIndex": 1896 @@ -672,7 +672,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 76, "col": 2, "byteIndex": 1980 @@ -696,7 +696,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 78, "col": 2, "byteIndex": 2062 @@ -731,7 +731,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 80, "col": 2, "byteIndex": 2144 @@ -759,7 +759,7 @@ "name": "SqsSendOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 86, "col": 0, "byteIndex": 2216 @@ -789,7 +789,7 @@ "doc": "Delay in seconds before the message becomes visible (0-900)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 88, "col": 2, "byteIndex": 2343 @@ -811,7 +811,7 @@ "doc": "Message attributes" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 90, "col": 2, "byteIndex": 2405 @@ -850,7 +850,7 @@ "doc": "Message group ID (required for FIFO queues)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 92, "col": 2, "byteIndex": 2526 @@ -872,7 +872,7 @@ "doc": "Message deduplication ID (required for FIFO queues without content-based deduplication)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 94, "col": 2, "byteIndex": 2659 @@ -898,7 +898,7 @@ "name": "SqsBatchMessage", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 100, "col": 0, "byteIndex": 2744 @@ -916,7 +916,7 @@ { "name": "id", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 101, "col": 2, "byteIndex": 2781 @@ -935,7 +935,7 @@ { "name": "body", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 102, "col": 2, "byteIndex": 2804 @@ -954,7 +954,7 @@ { "name": "delaySeconds", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 103, "col": 2, "byteIndex": 2829 @@ -973,7 +973,7 @@ { "name": "messageAttributes", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 104, "col": 2, "byteIndex": 2863 @@ -1016,7 +1016,7 @@ "name": "SqsReceiveOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 110, "col": 0, "byteIndex": 2975 @@ -1046,7 +1046,7 @@ "doc": "Maximum number of messages to receive (1-10, default: 1)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 112, "col": 2, "byteIndex": 3102 @@ -1068,7 +1068,7 @@ "doc": "Wait time in seconds for long polling (0-20)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 114, "col": 2, "byteIndex": 3189 @@ -1090,7 +1090,7 @@ "doc": "Visibility timeout in seconds (0-43200)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 116, "col": 2, "byteIndex": 3275 @@ -1112,7 +1112,7 @@ "doc": "System attribute names to retrieve" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 118, "col": 2, "byteIndex": 3358 @@ -1145,7 +1145,7 @@ "doc": "Message attribute names to retrieve" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 120, "col": 2, "byteIndex": 3450 @@ -1182,7 +1182,7 @@ "name": "SqsSendResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 126, "col": 0, "byteIndex": 3545 @@ -1200,7 +1200,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 127, "col": 2, "byteIndex": 3580 @@ -1222,7 +1222,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 128, "col": 2, "byteIndex": 3609 @@ -1241,7 +1241,7 @@ { "name": "messageId", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 129, "col": 2, "byteIndex": 3633 @@ -1260,7 +1260,7 @@ { "name": "md5OfBody", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 130, "col": 2, "byteIndex": 3663 @@ -1279,7 +1279,7 @@ { "name": "sequenceNumber", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 131, "col": 2, "byteIndex": 3693 @@ -1298,7 +1298,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 132, "col": 2, "byteIndex": 3729 @@ -1324,7 +1324,7 @@ "name": "SqsBatchSuccessEntry", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 138, "col": 0, "byteIndex": 3799 @@ -1342,7 +1342,7 @@ { "name": "messageId", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 139, "col": 2, "byteIndex": 3841 @@ -1361,7 +1361,7 @@ { "name": "id", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 140, "col": 2, "byteIndex": 3871 @@ -1387,7 +1387,7 @@ "name": "SqsBatchFailedEntry", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 146, "col": 0, "byteIndex": 3926 @@ -1405,7 +1405,7 @@ { "name": "id", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 147, "col": 2, "byteIndex": 3967 @@ -1424,7 +1424,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 148, "col": 2, "byteIndex": 3990 @@ -1443,7 +1443,7 @@ { "name": "message", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 149, "col": 2, "byteIndex": 4015 @@ -1469,7 +1469,7 @@ "name": "SqsSendBatchResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 155, "col": 0, "byteIndex": 4089 @@ -1487,7 +1487,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 156, "col": 2, "byteIndex": 4129 @@ -1509,7 +1509,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 157, "col": 2, "byteIndex": 4164 @@ -1528,7 +1528,7 @@ { "name": "successful", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 158, "col": 2, "byteIndex": 4188 @@ -1561,7 +1561,7 @@ { "name": "failed", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 159, "col": 2, "byteIndex": 4244 @@ -1594,7 +1594,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 160, "col": 2, "byteIndex": 4295 @@ -1620,7 +1620,7 @@ "name": "SqsReceiveResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 166, "col": 0, "byteIndex": 4366 @@ -1638,7 +1638,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 167, "col": 2, "byteIndex": 4404 @@ -1660,7 +1660,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 168, "col": 2, "byteIndex": 4436 @@ -1679,7 +1679,7 @@ { "name": "messages", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 169, "col": 2, "byteIndex": 4460 @@ -1701,7 +1701,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 170, "col": 2, "byteIndex": 4494 @@ -1727,7 +1727,7 @@ "name": "SqsDeleteResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 176, "col": 0, "byteIndex": 4565 @@ -1745,7 +1745,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 177, "col": 2, "byteIndex": 4602 @@ -1767,7 +1767,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 178, "col": 2, "byteIndex": 4633 @@ -1786,7 +1786,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 179, "col": 2, "byteIndex": 4657 @@ -1812,7 +1812,7 @@ "name": "SqsDeleteBatchResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 185, "col": 0, "byteIndex": 4733 @@ -1830,7 +1830,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 186, "col": 2, "byteIndex": 4775 @@ -1852,7 +1852,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 187, "col": 2, "byteIndex": 4812 @@ -1871,7 +1871,7 @@ { "name": "successful", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 188, "col": 2, "byteIndex": 4836 @@ -1901,7 +1901,7 @@ { "name": "failed", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 189, "col": 2, "byteIndex": 4878 @@ -1934,7 +1934,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 190, "col": 2, "byteIndex": 4929 @@ -1960,7 +1960,7 @@ "name": "SqsEnsureQueueOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 196, "col": 0, "byteIndex": 5007 @@ -1990,7 +1990,7 @@ "doc": "Queue attributes (e.g., DelaySeconds, MessageRetentionPeriod)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 198, "col": 2, "byteIndex": 5143 @@ -2026,7 +2026,7 @@ "doc": "Queue tags" }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 200, "col": 2, "byteIndex": 5211 @@ -2066,7 +2066,7 @@ "name": "SqsEnsureQueueResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 206, "col": 0, "byteIndex": 5300 @@ -2084,7 +2084,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 207, "col": 2, "byteIndex": 5342 @@ -2106,7 +2106,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 208, "col": 2, "byteIndex": 5379 @@ -2125,7 +2125,7 @@ { "name": "queueUrl", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 209, "col": 2, "byteIndex": 5403 @@ -2144,7 +2144,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 210, "col": 2, "byteIndex": 5432 @@ -2170,7 +2170,7 @@ "name": "SqsDeleteQueueResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 216, "col": 0, "byteIndex": 5501 @@ -2188,7 +2188,7 @@ { "name": "type", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 217, "col": 2, "byteIndex": 5543 @@ -2210,7 +2210,7 @@ { "name": "ok", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 218, "col": 2, "byteIndex": 5580 @@ -2229,7 +2229,7 @@ { "name": "duration", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", "line": 219, "col": 2, "byteIndex": 5604 @@ -2255,14 +2255,14 @@ "name": "SqsResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 226, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 225, "col": 0, - "byteIndex": 5753 + "byteIndex": 5681 }, "declarationKind": "export", "jsDoc": { - "doc": "Union type of all SQS result types.\nUsed for type-safe handling in the unified expectSqsResult function." + "doc": "Union type of all SQS result types." }, "kind": "typeAlias", "typeAliasDef": { @@ -2335,10 +2335,10 @@ "name": "SqsClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 238, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 237, "col": 0, - "byteIndex": 5969 + "byteIndex": 5897 }, "declarationKind": "export", "jsDoc": { @@ -2365,10 +2365,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 249, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 248, "col": 2, - "byteIndex": 6261 + "byteIndex": 6189 }, "params": [ { @@ -2397,10 +2397,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 256, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 255, "col": 2, - "byteIndex": 6527 + "byteIndex": 6455 }, "params": [ { @@ -2454,10 +2454,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 264, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 263, "col": 2, - "byteIndex": 6679 + "byteIndex": 6607 }, "params": [ { @@ -2511,10 +2511,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 272, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 271, "col": 2, - "byteIndex": 6828 + "byteIndex": 6756 }, "params": [ { @@ -2568,10 +2568,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 277, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 276, "col": 2, - "byteIndex": 6975 + "byteIndex": 6903 }, "params": [ { @@ -2619,10 +2619,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 282, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 281, "col": 2, - "byteIndex": 7097 + "byteIndex": 7025 }, "params": [ { @@ -2666,10 +2666,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 287, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 286, "col": 2, - "byteIndex": 7215 + "byteIndex": 7143 }, "params": [ { @@ -2723,10 +2723,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 295, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 294, "col": 2, - "byteIndex": 7391 + "byteIndex": 7319 }, "params": [ { @@ -2784,10 +2784,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 303, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 302, "col": 2, - "byteIndex": 7554 + "byteIndex": 7482 }, "params": [ { @@ -2831,10 +2831,10 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 308, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 307, "col": 2, - "byteIndex": 7672 + "byteIndex": 7600 }, "params": [], "optional": false, @@ -2859,10 +2859,10 @@ { "name": "config", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 239, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 238, "col": 2, - "byteIndex": 6024 + "byteIndex": 5952 }, "params": [], "readonly": true, @@ -2884,10 +2884,10 @@ "doc": "The current queue URL. Can be set via config, ensureQueue(), or setQueueUrl()." }, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 244, + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/types.ts", + "line": 243, "col": 2, - "byteIndex": 6157 + "byteIndex": 6085 }, "params": [], "readonly": true, @@ -2921,7 +2921,7 @@ "name": "SqsErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 6, "col": 0, "byteIndex": 91 @@ -2948,7 +2948,7 @@ { "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 7, "col": 2, "byteIndex": 149 @@ -2974,7 +2974,7 @@ "name": "SqsError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 13, "col": 0, "byteIndex": 227 @@ -3032,7 +3032,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 17, "col": 2, "byteIndex": 347 @@ -3054,7 +3054,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 14, "col": 2, "byteIndex": 273 @@ -3073,7 +3073,7 @@ "isStatic": false, "name": "code", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 15, "col": 2, "byteIndex": 320 @@ -3092,7 +3092,7 @@ "name": "SqsConnectionError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 30, "col": 0, "byteIndex": 587 @@ -3135,7 +3135,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 34, "col": 2, "byteIndex": 740 @@ -3157,7 +3157,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 31, "col": 2, "byteIndex": 640 @@ -3180,7 +3180,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 32, "col": 2, "byteIndex": 689 @@ -3199,7 +3199,7 @@ "name": "SqsCommandErrorOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 42, "col": 0, "byteIndex": 891 @@ -3226,7 +3226,7 @@ { "name": "operation", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 43, "col": 2, "byteIndex": 959 @@ -3252,7 +3252,7 @@ "name": "SqsCommandError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 49, "col": 0, "byteIndex": 1041 @@ -3295,7 +3295,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 54, "col": 2, "byteIndex": 1215 @@ -3317,7 +3317,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 50, "col": 2, "byteIndex": 1091 @@ -3340,7 +3340,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 51, "col": 2, "byteIndex": 1137 @@ -3359,7 +3359,7 @@ "isStatic": false, "name": "operation", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 52, "col": 2, "byteIndex": 1184 @@ -3378,7 +3378,7 @@ "name": "SqsQueueNotFoundError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 63, "col": 0, "byteIndex": 1417 @@ -3431,7 +3431,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 68, "col": 2, "byteIndex": 1610 @@ -3453,7 +3453,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 64, "col": 2, "byteIndex": 1473 @@ -3476,7 +3476,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 65, "col": 2, "byteIndex": 1525 @@ -3495,7 +3495,7 @@ "isStatic": false, "name": "queueUrl", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 66, "col": 2, "byteIndex": 1580 @@ -3514,7 +3514,7 @@ "name": "SqsMessageTooLargeError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 77, "col": 0, "byteIndex": 1834 @@ -3577,7 +3577,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 83, "col": 2, "byteIndex": 2057 @@ -3599,7 +3599,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 78, "col": 2, "byteIndex": 1892 @@ -3622,7 +3622,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 79, "col": 2, "byteIndex": 1946 @@ -3641,7 +3641,7 @@ "isStatic": false, "name": "size", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 80, "col": 2, "byteIndex": 2003 @@ -3660,7 +3660,7 @@ "isStatic": false, "name": "maxSize", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 81, "col": 2, "byteIndex": 2028 @@ -3679,7 +3679,7 @@ "name": "SqsBatchError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 98, "col": 0, "byteIndex": 2338 @@ -3732,7 +3732,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 103, "col": 2, "byteIndex": 2508 @@ -3754,7 +3754,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 99, "col": 2, "byteIndex": 2386 @@ -3777,7 +3777,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 100, "col": 2, "byteIndex": 2430 @@ -3796,7 +3796,7 @@ "isStatic": false, "name": "failedCount", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 101, "col": 2, "byteIndex": 2475 @@ -3815,7 +3815,7 @@ "name": "SqsMessageNotFoundError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 112, "col": 0, "byteIndex": 2750 @@ -3858,7 +3858,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 116, "col": 2, "byteIndex": 2920 @@ -3880,7 +3880,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 113, "col": 2, "byteIndex": 2808 @@ -3903,7 +3903,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/errors.ts", "line": 114, "col": 2, "byteIndex": 2862 @@ -3922,10 +3922,10 @@ "name": "createSqsClient", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/client.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/client.ts", "line": 344, "col": 0, - "byteIndex": 9411 + "byteIndex": 9421 }, "declarationKind": "export", "jsDoc": { @@ -3942,7 +3942,7 @@ }, { "kind": "example", - "doc": "Basic usage with existing queue\n```ts\nconst sqs = await createSqsClient({\n region: \"ap-northeast-1\",\n queueUrl: \"https://sqs.ap-northeast-1.amazonaws.com/123456789/my-queue\",\n});\n\n// Send a message\nconst sendResult = await sqs.send(JSON.stringify({\n type: \"ORDER\",\n orderId: \"123\",\n}));\nexpectSqsSendResult(sendResult).ok().hasMessageId();\n\nawait sqs.close();\n```\n" + "doc": "Basic usage with existing queue\n```ts\nconst sqs = await createSqsClient({\n region: \"ap-northeast-1\",\n queueUrl: \"https://sqs.ap-northeast-1.amazonaws.com/123456789/my-queue\",\n});\n\n// Send a message\nconst sendResult = await sqs.send(JSON.stringify({\n type: \"ORDER\",\n orderId: \"123\",\n}));\nconsole.log(\"Message ID:\", sendResult.messageId);\n\nawait sqs.close();\n```\n" }, { "kind": "example", @@ -3950,7 +3950,7 @@ }, { "kind": "example", - "doc": "Receiving messages with long polling\n```ts\n// Long polling waits up to 20 seconds for messages\nconst receiveResult = await sqs.receive({\n maxMessages: 10,\n waitTimeSeconds: 20,\n visibilityTimeout: 30,\n});\n\nexpectSqsReceiveResult(receiveResult).ok();\n\n// Process and acknowledge messages\nfor (const msg of receiveResult.messages) {\n const data = JSON.parse(msg.body);\n console.log(\"Processing:\", data);\n\n // Delete after successful processing\n await sqs.delete(msg.receiptHandle);\n}\n```\n" + "doc": "Receiving messages with long polling\n```ts\n// Long polling waits up to 20 seconds for messages\nconst receiveResult = await sqs.receive({\n maxMessages: 10,\n waitTimeSeconds: 20,\n visibilityTimeout: 30,\n});\n\nconsole.log(\"Received:\", receiveResult.messages.length);\n\n// Process and acknowledge messages\nfor (const msg of receiveResult.messages) {\n const data = JSON.parse(msg.body);\n console.log(\"Processing:\", data);\n\n // Delete after successful processing\n await sqs.delete(msg.receiptHandle);\n}\n```\n" }, { "kind": "example", @@ -4010,7 +4010,7 @@ "name": "createSqsMessages", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/messages.ts", + "filename": "https://jsr.io/@probitas/client-sqs/0.2.0/messages.ts", "line": 6, "col": 0, "byteIndex": 120 @@ -4053,1808 +4053,7 @@ "isGenerator": false, "typeParams": [] } - }, - { - "name": "SqsSendResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 19, - "col": 0, - "byteIndex": 363 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS send result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 21, - "col": 2, - "byteIndex": 448 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 24, - "col": 2, - "byteIndex": 503 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasMessageId", - "jsDoc": { - "doc": "Assert that messageId exists" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 27, - "col": 2, - "byteIndex": 559 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 30, - "col": 2, - "byteIndex": 642 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsSendBatchResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 36, - "col": 0, - "byteIndex": 741 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS send batch result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 38, - "col": 2, - "byteIndex": 831 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 41, - "col": 2, - "byteIndex": 886 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "allSuccessful", - "jsDoc": { - "doc": "Assert that all messages were sent successfully" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 44, - "col": 2, - "byteIndex": 961 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "successfulCount", - "jsDoc": { - "doc": "Assert that successful count matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 47, - "col": 2, - "byteIndex": 1042 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "failedCount", - "jsDoc": { - "doc": "Assert that failed count matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 50, - "col": 2, - "byteIndex": 1134 - }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noFailures", - "jsDoc": { - "doc": "Assert that there are no failures" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 53, - "col": 2, - "byteIndex": 1214 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 56, - "col": 2, - "byteIndex": 1295 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsReceiveResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 62, - "col": 0, - "byteIndex": 1391 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS receive result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 64, - "col": 2, - "byteIndex": 1479 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 67, - "col": 2, - "byteIndex": 1534 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "noContent", - "jsDoc": { - "doc": "Assert that messages array is empty" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 70, - "col": 2, - "byteIndex": 1597 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasContent", - "jsDoc": { - "doc": "Assert that messages array has at least one message" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 73, - "col": 2, - "byteIndex": 1680 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "count", - "jsDoc": { - "doc": "Assert that messages array has exactly count messages" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 76, - "col": 2, - "byteIndex": 1766 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtLeast", - "jsDoc": { - "doc": "Assert that messages array has at least min messages" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 79, - "col": 2, - "byteIndex": 1862 - }, - "params": [ - { - "kind": "identifier", - "name": "min", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "countAtMost", - "jsDoc": { - "doc": "Assert that messages array has at most max messages" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 82, - "col": 2, - "byteIndex": 1959 - }, - "params": [ - { - "kind": "identifier", - "name": "max", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataContains", - "jsDoc": { - "doc": "Assert that at least one message contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 85, - "col": 2, - "byteIndex": 2062 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "", - "kind": "typeLiteral", - "typeLiteral": { - "constructors": [], - "methods": [], - "properties": [ - { - "name": "body", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 86, - "col": 14, - "byteIndex": 2090 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "attributes", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 86, - "col": 29, - "byteIndex": 2105 - }, - "params": [], - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "dataMatch", - "jsDoc": { - "doc": "Assert messages using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 90, - "col": 2, - "byteIndex": 2213 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "messages", - "optional": false, - "tsType": { - "repr": "SqsMessages", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessages" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 93, - "col": 2, - "byteIndex": 2333 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 99, - "col": 0, - "byteIndex": 2428 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS delete result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 101, - "col": 2, - "byteIndex": 2515 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 104, - "col": 2, - "byteIndex": 2570 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 107, - "col": 2, - "byteIndex": 2646 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsMessageExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 113, - "col": 0, - "byteIndex": 2735 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS message validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "bodyContains", - "jsDoc": { - "doc": "Assert that body contains the given substring" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 115, - "col": 2, - "byteIndex": 2833 - }, - "params": [ - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "bodyMatch", - "jsDoc": { - "doc": "Assert body using custom matcher function" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 118, - "col": 2, - "byteIndex": 2926 - }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "body", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "typeParams": [] - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "bodyJsonEquals", - "jsDoc": { - "doc": "Assert that body equals expected JSON (deep equality)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 122, - "col": 2, - "byteIndex": 3080 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "bodyJsonContains", - "jsDoc": { - "doc": "Assert that body JSON contains the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 126, - "col": 2, - "byteIndex": 3222 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - }, - { - "name": "hasAttribute", - "jsDoc": { - "doc": "Assert that message has the given attribute" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 129, - "col": 2, - "byteIndex": 3331 - }, - "params": [ - { - "kind": "identifier", - "name": "name", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "attributesContain", - "jsDoc": { - "doc": "Assert that message attributes contain the given subset" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 132, - "col": 2, - "byteIndex": 3433 - }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "SqsMessageAttribute", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageAttribute" - } - } - ], - "typeName": "Partial" - } - } - ], - "typeName": "Record" - } - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "messageId", - "jsDoc": { - "doc": "Assert that messageId matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 135, - "col": 2, - "byteIndex": 3563 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "expectSqsMessage", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 553, - "col": 0, - "byteIndex": 13479 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for SQS message validation." - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "message", - "optional": false, - "tsType": { - "repr": "SqsMessage", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessage" - } - } - } - ], - "returnType": { - "repr": "SqsMessageExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsMessageExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "SqsEnsureQueueResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 562, - "col": 0, - "byteIndex": 13677 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS ensure queue result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 564, - "col": 2, - "byteIndex": 13769 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 567, - "col": 2, - "byteIndex": 13824 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "hasQueueUrl", - "jsDoc": { - "doc": "Assert that queueUrl exists" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 570, - "col": 2, - "byteIndex": 13879 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "queueUrl", - "jsDoc": { - "doc": "Assert that queueUrl matches expected" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 573, - "col": 2, - "byteIndex": 13950 - }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "queueUrlContains", - "jsDoc": { - "doc": "Assert that queueUrl contains substring" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 576, - "col": 2, - "byteIndex": 14036 - }, - "params": [ - { - "kind": "identifier", - "name": "substring", - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 579, - "col": 2, - "byteIndex": 14140 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsDeleteQueueResultExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 585, - "col": 0, - "byteIndex": 14241 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Fluent API for SQS delete queue result validation." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "ok", - "jsDoc": { - "doc": "Assert that result ok is true" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 587, - "col": 2, - "byteIndex": 14333 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "notOk", - "jsDoc": { - "doc": "Assert that result ok is false" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 590, - "col": 2, - "byteIndex": 14388 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - }, - { - "name": "durationLessThan", - "jsDoc": { - "doc": "Assert that duration is less than threshold (ms)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 593, - "col": 2, - "byteIndex": 14464 - }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true - }, - "typeParams": [] - } - ], - "properties": [], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] - } - }, - { - "name": "SqsExpectation", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 694, - "col": 0, - "byteIndex": 16723 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Expectation type returned by expectSqsResult based on the result type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsSendResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResult" - } - }, - "trueType": { - "repr": "SqsSendResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsSendBatchResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResult" - } - }, - "trueType": { - "repr": "SqsSendBatchResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsReceiveResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResult" - } - }, - "trueType": { - "repr": "SqsReceiveResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsReceiveResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsDeleteResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResult" - } - }, - "trueType": { - "repr": "SqsDeleteResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsDeleteBatchResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteBatchResult" - } - }, - "trueType": { - "repr": "SqsSendBatchResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsSendBatchResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsEnsureQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResult" - } - }, - "trueType": { - "repr": "SqsEnsureQueueResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResultExpectation" - } - }, - "falseType": { - "repr": "", - "kind": "conditional", - "conditionalType": { - "checkType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - }, - "extendsType": { - "repr": "SqsDeleteQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResult" - } - }, - "trueType": { - "repr": "SqsDeleteQueueResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsDeleteQueueResultExpectation" - } - }, - "falseType": { - "repr": "never", - "kind": "keyword", - "keyword": "never" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - }, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "SqsResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsResult" - } - } - } - ] - } - }, - { - "name": "expectSqsResult", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/expect.ts", - "line": 776, - "col": 0, - "byteIndex": 19195 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Create a fluent expectation chain for any SQS result validation.\n\nThis unified function accepts any SQS result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\nSupports send, sendBatch, receive, delete, deleteBatch, ensureQueue, and deleteQueue results.\n", - "tags": [ - { - "kind": "param", - "name": "result", - "doc": "- The SQS result to create expectations for" - }, - { - "kind": "return", - "doc": "A typed expectation object matching the result type\n" - }, - { - "kind": "example", - "doc": "Send result validation\n```ts\nconst sendResult = await sqs.send(JSON.stringify({ orderId: \"123\" }));\nexpectSqsResult(sendResult)\n .ok()\n .hasMessageId()\n .durationLessThan(1000);\n```\n" - }, - { - "kind": "example", - "doc": "Receive result validation\n```ts\nconst receiveResult = await sqs.receive({ maxMessages: 10 });\nexpectSqsResult(receiveResult)\n .ok()\n .hasContent()\n .countAtLeast(1)\n .dataContains({ body: \"orderId\" });\n```\n" - }, - { - "kind": "example", - "doc": "Batch operations\n```ts\n// Send batch\nconst batchResult = await sqs.sendBatch([\n { id: \"1\", body: \"msg1\" },\n { id: \"2\", body: \"msg2\" },\n]);\nexpectSqsResult(batchResult)\n .ok()\n .allSuccessful()\n .noFailures();\n\n// Delete batch\nconst deleteResult = await sqs.deleteBatch(receiptHandles);\nexpectSqsResult(deleteResult)\n .ok()\n .successfulCount(2);\n```\n" - }, - { - "kind": "example", - "doc": "Queue management\n```ts\n// Ensure queue exists\nconst ensureResult = await sqs.ensureQueue(\"test-queue\");\nexpectSqsResult(ensureResult)\n .ok()\n .hasQueueUrl()\n .queueUrlContains(\"test-queue\");\n\n// Delete queue\nconst deleteResult = await sqs.deleteQueue(queueUrl);\nexpectSqsResult(deleteResult).ok();\n```\n" - }, - { - "kind": "example", - "doc": "Individual message validation\n```ts\nconst receiveResult = await sqs.receive();\nfor (const msg of receiveResult.messages) {\n expectSqsMessage(msg)\n .bodyJsonContains({ type: \"ORDER\" })\n .hasAttribute(\"correlationId\");\n}\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "result", - "optional": false, - "tsType": { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - } - ], - "returnType": { - "repr": "SqsExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "R", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "R" - } - } - ], - "typeName": "SqsExpectation" - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "R", - "constraint": { - "repr": "SqsResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqsResult" - } - } - } - ] - } } ], - "generatedAt": "2025-12-09T00:26:35.043Z" + "generatedAt": "2025-12-09T20:05:12.631Z" } diff --git a/data/api/client.json b/data/api/client.json index 0e32399..ff5711c 100644 --- a/data/api/client.json +++ b/data/api/client.json @@ -1,14 +1,14 @@ { "name": "client", "specifier": "@probitas/client", - "version": "0.1.1", - "moduleDoc": "Core utilities and types for Probitas client libraries.\n\nThis package provides shared types, error classes, and utilities used across\nall [`@probitas/*`](https://jsr.io/@probitas) client packages.\n\n## Features\n\n- **Common Options**: Shared configuration types like `CommonOptions` and `RetryOptions`\n- **Error Hierarchy**: Base error classes (`ClientError`, `ConnectionError`, `TimeoutError`, `AbortError`)\n- **Utilities**: Helper functions used internally by client packages\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client\n```\n\n## Usage\n\nThis package is typically used as a dependency by other client packages.\nEnd users rarely need to import from it directly.\n\n```ts\nimport type { CommonOptions, RetryOptions } from \"@probitas/client\";\nimport { ClientError, ConnectionError, TimeoutError } from \"@probitas/client\";\n\n// Use CommonOptions for timeout and abort signal support\nasync function fetchData(options?: CommonOptions) {\n // Implementation with timeout and signal handling\n}\n\n// Catch and handle errors\ntry {\n await fetchData({ timeout: 5000 });\n} catch (error) {\n if (error instanceof TimeoutError) {\n console.log(`Timed out after ${error.timeoutMs}ms`);\n } else if (error instanceof ConnectionError) {\n console.log(\"Failed to connect\");\n }\n}\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-http`](https://jsr.io/@probitas/client-http) | HTTP client with fluent assertions |\n| [`@probitas/client-graphql`](https://jsr.io/@probitas/client-graphql) | GraphQL client |\n| [`@probitas/client-grpc`](https://jsr.io/@probitas/client-grpc) | gRPC client |\n| [`@probitas/client-connectrpc`](https://jsr.io/@probitas/client-connectrpc) | ConnectRPC client |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n| [`@probitas/client-deno-kv`](https://jsr.io/@probitas/client-deno-kv) | Deno KV client |\n| [`@probitas/client-redis`](https://jsr.io/@probitas/client-redis) | Redis client |\n| [`@probitas/client-mongodb`](https://jsr.io/@probitas/client-mongodb) | MongoDB client |\n| [`@probitas/client-rabbitmq`](https://jsr.io/@probitas/client-rabbitmq) | RabbitMQ client |\n| [`@probitas/client-sqs`](https://jsr.io/@probitas/client-sqs) | AWS SQS client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", + "version": "0.2.0", + "moduleDoc": "Core utilities and types for Probitas client libraries.\n\nThis package provides shared types, error classes, and utilities used across\nall [`@probitas/*`](https://jsr.io/@probitas) client packages.\n\n## Features\n\n- **Common Options**: Shared configuration types like `CommonOptions` and `RetryOptions`\n- **Error Hierarchy**: Base error classes (`ClientError`, `ConnectionError`, `TimeoutError`, `AbortError`)\n\n## Installation\n\n```bash\ndeno add jsr:@probitas/client\n```\n\n## Usage\n\nThis package is typically used as a dependency by other client packages.\nEnd users rarely need to import from it directly.\n\n```ts\nimport type { CommonOptions, RetryOptions } from \"@probitas/client\";\nimport { ClientError, ConnectionError, TimeoutError } from \"@probitas/client\";\n\n// Use CommonOptions for timeout and abort signal support\nasync function fetchData(options?: CommonOptions) {\n // Implementation with timeout and signal handling\n}\n\n// Catch and handle errors\ntry {\n await fetchData({ timeout: 5000 });\n} catch (error) {\n if (error instanceof TimeoutError) {\n console.log(`Timed out after ${error.timeoutMs}ms`);\n } else if (error instanceof ConnectionError) {\n console.log(\"Failed to connect\");\n }\n}\n```\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@probitas/client-http`](https://jsr.io/@probitas/client-http) | HTTP client |\n| [`@probitas/client-graphql`](https://jsr.io/@probitas/client-graphql) | GraphQL client |\n| [`@probitas/client-grpc`](https://jsr.io/@probitas/client-grpc) | gRPC client |\n| [`@probitas/client-connectrpc`](https://jsr.io/@probitas/client-connectrpc) | ConnectRPC client |\n| [`@probitas/client-sql-postgres`](https://jsr.io/@probitas/client-sql-postgres) | PostgreSQL client |\n| [`@probitas/client-sql-mysql`](https://jsr.io/@probitas/client-sql-mysql) | MySQL client |\n| [`@probitas/client-sql-sqlite`](https://jsr.io/@probitas/client-sql-sqlite) | SQLite client |\n| [`@probitas/client-sql-duckdb`](https://jsr.io/@probitas/client-sql-duckdb) | DuckDB client |\n| [`@probitas/client-deno-kv`](https://jsr.io/@probitas/client-deno-kv) | Deno KV client |\n| [`@probitas/client-redis`](https://jsr.io/@probitas/client-redis) | Redis client |\n| [`@probitas/client-mongodb`](https://jsr.io/@probitas/client-mongodb) | MongoDB client |\n| [`@probitas/client-rabbitmq`](https://jsr.io/@probitas/client-rabbitmq) | RabbitMQ client |\n| [`@probitas/client-sqs`](https://jsr.io/@probitas/client-sqs) | AWS SQS client |\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas-client)\n- [Probitas Framework](https://github.com/jsr-probitas/probitas)\n", "exports": [ { "name": "CommonConnectionConfig", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 24, "col": 0, "byteIndex": 581 @@ -41,7 +41,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 29, "col": 2, "byteIndex": 692 @@ -63,7 +63,7 @@ "doc": "Port number. Each service has its own default." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 34, "col": 2, "byteIndex": 783 @@ -85,7 +85,7 @@ "doc": "Username for authentication." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 39, "col": 2, "byteIndex": 856 @@ -107,7 +107,7 @@ "doc": "Password for authentication." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 44, "col": 2, "byteIndex": 933 @@ -133,7 +133,7 @@ "name": "RetryOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 50, "col": 0, "byteIndex": 1004 @@ -160,7 +160,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 55, "col": 2, "byteIndex": 1114 @@ -188,7 +188,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 61, "col": 2, "byteIndex": 1211 @@ -233,7 +233,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 67, "col": 2, "byteIndex": 1326 @@ -261,7 +261,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 73, "col": 2, "byteIndex": 1429 @@ -283,7 +283,7 @@ "doc": "Function to determine if the error should trigger a retry." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 78, "col": 2, "byteIndex": 1536 @@ -332,7 +332,7 @@ "name": "CommonOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 84, "col": 0, "byteIndex": 1638 @@ -353,7 +353,7 @@ "doc": "Timeout in milliseconds." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 88, "col": 2, "byteIndex": 1715 @@ -375,7 +375,7 @@ "doc": "AbortSignal for cancellation." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 93, "col": 2, "byteIndex": 1792 @@ -400,7 +400,7 @@ "doc": "Retry configuration." }, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/types.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/types.ts", "line": 98, "col": 2, "byteIndex": 1864 @@ -429,7 +429,7 @@ "name": "ClientError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 8, "col": 0, "byteIndex": 275 @@ -487,7 +487,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 12, "col": 2, "byteIndex": 394 @@ -509,7 +509,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 9, "col": 2, "byteIndex": 318 @@ -528,7 +528,7 @@ "isStatic": false, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 10, "col": 2, "byteIndex": 368 @@ -547,7 +547,7 @@ "name": "ConnectionError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 25, "col": 0, "byteIndex": 615 @@ -590,7 +590,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 29, "col": 2, "byteIndex": 765 @@ -612,7 +612,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 26, "col": 2, "byteIndex": 668 @@ -635,7 +635,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 27, "col": 2, "byteIndex": 714 @@ -654,7 +654,7 @@ "name": "TimeoutError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 37, "col": 0, "byteIndex": 923 @@ -707,7 +707,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 42, "col": 2, "byteIndex": 1094 @@ -729,7 +729,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 38, "col": 2, "byteIndex": 973 @@ -752,7 +752,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 39, "col": 2, "byteIndex": 1016 @@ -771,7 +771,7 @@ "isStatic": false, "name": "timeoutMs", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 40, "col": 2, "byteIndex": 1063 @@ -790,7 +790,7 @@ "name": "AbortError", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 51, "col": 0, "byteIndex": 1317 @@ -833,7 +833,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 55, "col": 2, "byteIndex": 1452 @@ -855,7 +855,7 @@ "isOverride": true, "name": "name", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 52, "col": 2, "byteIndex": 1365 @@ -878,7 +878,7 @@ "isOverride": true, "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/errors.ts", + "filename": "https://jsr.io/@probitas/client/0.2.0/errors.ts", "line": 53, "col": 2, "byteIndex": 1406 @@ -892,149 +892,7 @@ "typeParams": [], "superTypeParams": [] } - }, - { - "name": "containsSubset", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/utils.ts", - "line": 41, - "col": 0, - "byteIndex": 1202 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an object contains all properties from subset (deep partial match).\n\nThis function performs recursive comparison, supporting:\n- Primitive values: strict equality (`===`)\n- Objects: recursive partial matching (subset semantics)\n- Arrays: exact match (order and length matter, with recursive element comparison)\n- null: explicit null check\n", - "tags": [ - { - "kind": "example", - "doc": "Basic usage\n```ts\nimport { containsSubset } from \"@probitas/client\";\n\n// Top-level partial match\ncontainsSubset({ a: 1, b: 2, c: 3 }, { a: 1 }); // true\n\n// Nested partial match\ncontainsSubset(\n { user: { name: \"John\", age: 30 } },\n { user: { name: \"John\" } }\n); // true\n\n// Array exact match\ncontainsSubset({ items: [1, 2, 3] }, { items: [1, 2, 3] }); // true\ncontainsSubset({ items: [1, 2, 3] }, { items: [1, 2] }); // false\n```\n" - }, - { - "kind": "param", - "name": "obj", - "doc": "- The object to check" - }, - { - "kind": "param", - "name": "subset", - "doc": "- The subset of properties to match" - }, - { - "kind": "return", - "doc": "true if obj contains all properties from subset" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "obj", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - } - ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } - }, - { - "name": "containsSubarray", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client/0.1.1/utils.ts", - "line": 93, - "col": 0, - "byteIndex": 2680 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Check if an array contains a contiguous subarray.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\nimport { containsSubarray } from \"@probitas/client\";\n\nconst data = new Uint8Array([1, 2, 3, 4, 5]);\ncontainsSubarray(data, new Uint8Array([2, 3, 4])); // true\ncontainsSubarray(data, new Uint8Array([2, 4])); // false (not contiguous)\n```\n" - }, - { - "kind": "param", - "name": "arr", - "doc": "- The array to search in" - }, - { - "kind": "param", - "name": "sub", - "doc": "- The subarray to find" - }, - { - "kind": "return", - "doc": "true if arr contains sub as a contiguous sequence" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "arr", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } - }, - { - "kind": "identifier", - "name": "sub", - "optional": false, - "tsType": { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - } - } - ], - "returnType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [] - } } ], - "generatedAt": "2025-12-09T00:26:33.286Z" + "generatedAt": "2025-12-09T20:05:09.750Z" } diff --git a/data/api/discover.json b/data/api/discover.json index fc7928e..4944fcf 100644 --- a/data/api/discover.json +++ b/data/api/discover.json @@ -1,14 +1,14 @@ { "name": "discover", "specifier": "@probitas/discover", - "version": "0.2.6", + "version": "0.2.7", "moduleDoc": "Scenario file discovery utilities for Probitas.\n\nThis package provides utilities for discovering scenario files (`.probitas.ts`)\nfrom file paths and directories. It supports glob patterns for flexible file\nmatching and is used internally by the CLI to find scenarios to execute.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/scenario](https://jsr.io/@probitas/scenario) | Load discovered files with `loadScenarios` |\n| [@probitas/cli](https://jsr.io/@probitas/cli) | CLI that uses this discovery |\n\n## Core Function\n\n- {@linkcode discoverScenarioFiles} - Discover scenario files from paths\n\n## Configuration Type\n\n- {@linkcode DiscoverOptions} - Options for customizing discovery behavior\n\n## Default Behavior\n\nBy default, the discovery function:\n- Searches for files matching `**\\/*.probitas.ts` in directories\n- Returns direct file paths as-is (no pattern matching)\n- Returns absolute paths sorted alphabetically\n\n## Permissions\n\nRequires `--allow-read` permission to read the file system.\n", "exports": [ { "name": "DiscoverOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/discover/0.2.6/discover.ts", + "filename": "https://jsr.io/@probitas/discover/0.2.7/discover.ts", "line": 20, "col": 0, "byteIndex": 465 @@ -35,7 +35,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/discover/0.2.6/discover.ts", + "filename": "https://jsr.io/@probitas/discover/0.2.7/discover.ts", "line": 28, "col": 2, "byteIndex": 692 @@ -73,7 +73,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/discover/0.2.6/discover.ts", + "filename": "https://jsr.io/@probitas/discover/0.2.7/discover.ts", "line": 35, "col": 2, "byteIndex": 800 @@ -109,7 +109,7 @@ "name": "discoverScenarioFiles", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/discover/0.2.6/discover.ts", + "filename": "https://jsr.io/@probitas/discover/0.2.7/discover.ts", "line": 79, "col": 0, "byteIndex": 2140 @@ -218,5 +218,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:35.176Z" + "generatedAt": "2025-12-09T20:05:13.344Z" } diff --git a/data/api/expect.json b/data/api/expect.json new file mode 100644 index 0000000..d1d88aa --- /dev/null +++ b/data/api/expect.json @@ -0,0 +1,5821 @@ +{ + "name": "expect", + "specifier": "@probitas/expect", + "version": "0.1.0", + "moduleDoc": "Type-safe expectation library for Probitas scenario testing with specialized assertions for various client types.\n\nThis module provides a unified `expect()` function that automatically dispatches to the appropriate\nexpectation based on the input type, along with specialized expectations for each client type.\n\n## Features\n\n- **Type-safe expectations**: Compile-time safety with TypeScript\n- **Unified API**: Single `expect()` function that dispatches to specialized expectations\n- **Client-specific assertions**: Tailored expectations for HTTP, GraphQL, SQL, Redis, MongoDB, and more\n- **Method chaining**: Fluent API for readable test assertions\n- **Consistent naming**: All methods follow `toBeXxx` or `toHaveXxx` patterns\n- **Generic fallback**: Chainable wrapper for @std/expect matchers\n\n## Usage\n\n### Unified expect Function\n\nThe `expect()` function automatically dispatches to the appropriate expectation based on the input type:\n", + "exports": [ + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 72, + "col": 0, + "byteIndex": 2504 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Unified expect function that dispatches to the appropriate expectXXXXX function\nbased on the type of the input object.\n", + "tags": [ + { + "kind": "example", + "doc": "```ts\n// HTTP response\nconst httpRes = await http.get(\"/users\");\nexpect(httpRes).ok().dataContains({ users: [] });\n\n// GraphQL response\nconst gqlRes = await graphql.query(\"{ users { id name } }\");\nexpect(gqlRes).ok().hasContent();\n\n// SQL query result\nconst sqlRes = await db.query(\"SELECT * FROM users\");\nexpect(sqlRes).ok().count(10);\n\n// MongoDB result\nconst mongoRes = await mongo.find({ status: \"active\" });\nexpect(mongoRes).ok().count(10);\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectHttpResponse", + "kind": "typeQuery", + "typeQuery": "expectHttpResponse" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "HttpResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "HttpResponse" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 75, + "col": 0, + "byteIndex": 2606 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectConnectRpcResponse", + "kind": "typeQuery", + "typeQuery": "expectConnectRpcResponse" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "ConnectRpcResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ConnectRpcResponse" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 78, + "col": 0, + "byteIndex": 2720 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectGraphqlResponse", + "kind": "typeQuery", + "typeQuery": "expectGraphqlResponse" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "GraphqlResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GraphqlResponse" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 81, + "col": 0, + "byteIndex": 2828 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "SqlQueryResultExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "ExtractSqlRowType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "ExtractSqlRowType" + } + } + ], + "typeName": "SqlQueryResultExpectation" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "SqlQueryResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqlQueryResult" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 84, + "col": 0, + "byteIndex": 2942 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectDenoKvResult", + "kind": "typeQuery", + "typeQuery": "expectDenoKvResult" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "DenoKvResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvResult" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 87, + "col": 0, + "byteIndex": 3047 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectRedisResult", + "kind": "typeQuery", + "typeQuery": "expectRedisResult" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "RedisResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisResult" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 90, + "col": 0, + "byteIndex": 3150 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectMongoResult", + "kind": "typeQuery", + "typeQuery": "expectMongoResult" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "MongoResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoResult" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 93, + "col": 0, + "byteIndex": 3253 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectRabbitMqResult", + "kind": "typeQuery", + "typeQuery": "expectRabbitMqResult" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "RabbitMqResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqResult" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 96, + "col": 0, + "byteIndex": 3362 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectSqsResult", + "kind": "typeQuery", + "typeQuery": "expectSqsResult" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "SqsResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsResult" + } + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 99, + "col": 0, + "byteIndex": 3461 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "AnythingExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "AnythingExpectation" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 100, + "col": 0, + "byteIndex": 3522 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "AnythingExpectation", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 18, + "col": 0, + "byteIndex": 498 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Chainable expectation interface for any value using @std/expect matchers.\n\nUnlike @std/expect which returns void from matchers, this interface returns\n`this` to enable method chaining." + }, + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ + { + "name": "toBe", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 25, + "col": 2, + "byteIndex": 628 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toEqual", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 26, + "col": 2, + "byteIndex": 661 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toStrictEqual", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 27, + "col": 2, + "byteIndex": 697 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toMatch", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 28, + "col": 2, + "byteIndex": 739 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "RegExp", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RegExp" + } + } + ] + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toMatchObject", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 29, + "col": 2, + "byteIndex": 783 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + ], + "typeName": "Record" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeDefined", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 30, + "col": 2, + "byteIndex": 841 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeUndefined", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 31, + "col": 2, + "byteIndex": 864 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeNull", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 32, + "col": 2, + "byteIndex": 889 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeNaN", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 33, + "col": 2, + "byteIndex": 909 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeTruthy", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 34, + "col": 2, + "byteIndex": 928 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeFalsy", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 35, + "col": 2, + "byteIndex": 950 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toContain", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 36, + "col": 2, + "byteIndex": 971 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toContainEqual", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 37, + "col": 2, + "byteIndex": 1009 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveLength", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 38, + "col": 2, + "byteIndex": 1052 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeGreaterThan", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 39, + "col": 2, + "byteIndex": 1092 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeGreaterThanOrEqual", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 40, + "col": 2, + "byteIndex": 1135 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeLessThan", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 41, + "col": 2, + "byteIndex": 1185 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeLessThanOrEqual", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 42, + "col": 2, + "byteIndex": 1225 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeCloseTo", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 43, + "col": 2, + "byteIndex": 1272 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + }, + { + "kind": "identifier", + "name": "numDigits", + "optional": true, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toBeInstanceOf", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 45, + "col": 2, + "byteIndex": 1369 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": true, + "tsType": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + }, + "params": [ + { + "kind": "rest", + "arg": { + "kind": "identifier", + "name": "args", + "optional": false, + "tsType": null + }, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + } + } + ], + "typeParams": [] + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toThrow", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 46, + "col": 2, + "byteIndex": 1432 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": true, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "RegExp", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RegExp" + } + }, + { + "repr": "Error", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Error" + } + } + ] + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveProperty", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 47, + "col": 2, + "byteIndex": 1485 + }, + "params": [ + { + "kind": "identifier", + "name": "keyPath", + "optional": false, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "", + "kind": "array", + "array": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + } + ] + } + }, + { + "kind": "identifier", + "name": "expectedValue", + "optional": true, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveBeenCalled", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 53, + "col": 2, + "byteIndex": 1603 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveBeenCalledTimes", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 54, + "col": 2, + "byteIndex": 1631 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveBeenCalledWith", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 55, + "col": 2, + "byteIndex": 1680 + }, + "params": [ + { + "kind": "rest", + "arg": { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": null + }, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveBeenLastCalledWith", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 56, + "col": 2, + "byteIndex": 1734 + }, + "params": [ + { + "kind": "rest", + "arg": { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": null + }, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveBeenNthCalledWith", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 57, + "col": 2, + "byteIndex": 1792 + }, + "params": [ + { + "kind": "identifier", + "name": "n", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + }, + { + "kind": "rest", + "arg": { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": null + }, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveReturned", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 58, + "col": 2, + "byteIndex": 1860 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveReturnedTimes", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 59, + "col": 2, + "byteIndex": 1886 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveReturnedWith", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 60, + "col": 2, + "byteIndex": 1933 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveLastReturnedWith", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 61, + "col": 2, + "byteIndex": 1980 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveNthReturnedWith", + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 62, + "col": 2, + "byteIndex": 2031 + }, + "params": [ + { + "kind": "identifier", + "name": "n", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + }, + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + } + ], + "properties": [ + { + "name": "not", + "jsDoc": { + "doc": "Negates the next assertion." + }, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 22, + "col": 2, + "byteIndex": 584 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + } + ], + "callSignatures": [], + "indexSignatures": [], + "typeParams": [] + } + }, + { + "name": "expectAnything", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/anything.ts", + "line": 91, + "col": 0, + "byteIndex": 2764 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Creates a chainable expectation for any value using @std/expect matchers.\n\nThis wrapper allows method chaining, unlike @std/expect which returns void.\n", + "tags": [ + { + "kind": "param", + "name": "value", + "doc": "- Value to test" + }, + { + "kind": "param", + "name": "negate", + "doc": "- Whether to negate assertions (used internally by .not)" + }, + { + "kind": "return", + "doc": "Chainable expectation interface\n" + }, + { + "kind": "example", + "doc": "```ts\nimport { expectAnything } from \"@probitas/expect/anything\";\n\n// Method chaining\nexpectAnything(42)\n .toBeDefined()\n .toBeGreaterThan(40)\n .toBeLessThan(50);\n\n// Negation with continued chaining\nexpectAnything(\"hello\")\n .not.toBe(\"world\")\n .not.toBeNull()\n .toContain(\"hello\");\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + }, + { + "kind": "assign", + "left": { + "kind": "identifier", + "name": "negate", + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + } + }, + "right": "false", + "tsType": null + } + ], + "returnType": { + "repr": "AnythingExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "AnythingExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T" + } + ] + } + }, + { + "name": "buildErrorMessage", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/common/format.ts", + "line": 75, + "col": 0, + "byteIndex": 2481 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Builds a structured error message with diffs.\n", + "tags": [ + { + "kind": "param", + "name": "header", + "doc": "- The error header message" + }, + { + "kind": "param", + "name": "diffs", + "doc": "- Array of diff lines from formatDifferences (includes [Diff] header and colors)" + }, + { + "kind": "param", + "name": "expected", + "doc": "- The expected value" + }, + { + "kind": "param", + "name": "actual", + "doc": "- The actual value" + }, + { + "kind": "return", + "doc": "Formatted error message" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "header", + "optional": false, + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + }, + { + "kind": "identifier", + "name": "diffs", + "optional": false, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + } + }, + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + }, + { + "kind": "identifier", + "name": "actual", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "containsSubarray", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/common/matchers.ts", + "line": 60, + "col": 0, + "byteIndex": 1623 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Check if an array contains a contiguous subarray.\n", + "tags": [ + { + "kind": "param", + "name": "arr", + "doc": "- The array to search" + }, + { + "kind": "param", + "name": "sub", + "doc": "- The subarray to find" + }, + { + "kind": "return", + "doc": "True if arr contains sub as a contiguous sequence" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "arr", + "optional": false, + "tsType": { + "repr": "Uint8Array", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Uint8Array" + } + } + }, + { + "kind": "identifier", + "name": "sub", + "optional": false, + "tsType": { + "repr": "Uint8Array", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Uint8Array" + } + } + } + ], + "returnType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "containsSubset", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/common/matchers.ts", + "line": 17, + "col": 0, + "byteIndex": 426 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Check if an object contains all properties from subset (deep partial match).\n", + "tags": [ + { + "kind": "param", + "name": "obj", + "doc": "- The object to check" + }, + { + "kind": "param", + "name": "subset", + "doc": "- The subset of properties to match" + }, + { + "kind": "return", + "doc": "True if obj contains all properties from subset" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "obj", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + }, + { + "kind": "identifier", + "name": "subset", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "formatDifferences", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/common/format.ts", + "line": 45, + "col": 0, + "byteIndex": 1611 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Generates a diff between actual and expected values using LCS algorithm.\n\nThis uses @std/internal/diff which implements a Longest Common Subsequence\nalgorithm for intelligent diff generation. This produces much more readable\noutput than simple line-by-line comparison, especially for arrays and nested objects.\n", + "tags": [ + { + "kind": "param", + "name": "actual", + "doc": "- The actual value" + }, + { + "kind": "param", + "name": "expected", + "doc": "- The expected value" + }, + { + "kind": "return", + "doc": "Array of formatted diff lines (includes [Diff] header)" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "actual", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + }, + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "", + "kind": "array", + "array": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "formatValue", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/common/format.ts", + "line": 27, + "col": 0, + "byteIndex": 920 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Formats a value for display in error messages.\n\nUses @std/internal/format for consistent formatting that matches\nDeno's built-in assertion library.\n", + "tags": [ + { + "kind": "param", + "name": "value", + "doc": "- The value to format" + }, + { + "kind": "return", + "doc": "Formatted string representation" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "stripAnsi", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/common/format.ts", + "line": 105, + "col": 0, + "byteIndex": 3163 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Strips ANSI escape sequences from a string.\nUseful for testing error messages.\n", + "tags": [ + { + "kind": "param", + "name": "text", + "doc": "- Text with ANSI codes" + }, + { + "kind": "return", + "doc": "Text without ANSI codes" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "text", + "optional": false, + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + } + ], + "returnType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "expectHttpResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/http.ts", + "line": 114, + "col": 0, + "byteIndex": 3531 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for HTTP response validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", + "tags": [ + { + "kind": "param", + "name": "response", + "doc": "- The HTTP response to validate" + }, + { + "kind": "param", + "name": "negate", + "doc": "- Whether to negate assertions (used internally by .not)" + }, + { + "kind": "return", + "doc": "A fluent expectation chain\n" + }, + { + "kind": "example", + "doc": "Basic assertions\n```ts\nconst response = await http.get(\"/users/123\");\n\nexpectHttpResponse(response)\n .ok()\n .contentType(\"application/json\")\n .dataContains({ id: 123, name: \"Alice\" });\n```\n" + }, + { + "kind": "example", + "doc": "Error response assertions\n```ts\nconst response = await http.get(\"/not-found\", { throwOnError: false });\n\nexpectHttpResponse(response)\n .notOk()\n .status(404);\n```\n" + }, + { + "kind": "example", + "doc": "Performance assertions\n```ts\nexpectHttpResponse(response)\n .ok()\n .durationLessThan(1000); // Must respond within 1 second\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "response", + "optional": false, + "tsType": { + "repr": "HttpResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "HttpResponse" + } + } + }, + { + "kind": "assign", + "left": { + "kind": "identifier", + "name": "negate", + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + } + }, + "right": "false", + "tsType": null + } + ], + "returnType": { + "repr": "HttpResponseExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "HttpResponseExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "HttpResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 9, + "col": 0, + "byteIndex": 277 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "HTTP response with pre-loaded body for synchronous access.\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." + }, + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ + { + "name": "arrayBuffer", + "jsDoc": { + "doc": "Get body as ArrayBuffer (null if no body)" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 36, + "col": 2, + "byteIndex": 937 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "ArrayBuffer", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ArrayBuffer" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [] + }, + { + "name": "blob", + "jsDoc": { + "doc": "Get body as Blob (null if no body)" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 39, + "col": 2, + "byteIndex": 1019 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "Blob", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Blob" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [] + }, + { + "name": "text", + "jsDoc": { + "doc": "Get body as text (null if no body)" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 42, + "col": 2, + "byteIndex": 1087 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [] + }, + { + "name": "json", + "jsDoc": { + "doc": "Get body as parsed JSON (null if no body)", + "tags": [ + { + "kind": "template", + "name": "T", + "doc": "- defaults to any for test convenience" + } + ] + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 49, + "col": 2, + "byteIndex": 1266 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + } + ] + } + ], + "properties": [ + { + "name": "type", + "jsDoc": { + "doc": "Result type identifier" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 11, + "col": 2, + "byteIndex": 343 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "http", + "kind": "literal", + "literal": { + "kind": "string", + "string": "http" + } + }, + "typeParams": [] + }, + { + "name": "ok", + "jsDoc": { + "doc": "Whether the response was successful (status 200-299)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 16, + "col": 2, + "byteIndex": 489 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "typeParams": [] + }, + { + "name": "status", + "jsDoc": { + "doc": "HTTP status code" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 19, + "col": 2, + "byteIndex": 540 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "typeParams": [] + }, + { + "name": "statusText", + "jsDoc": { + "doc": "HTTP status text" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 22, + "col": 2, + "byteIndex": 594 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "typeParams": [] + }, + { + "name": "headers", + "jsDoc": { + "doc": "Response headers" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 25, + "col": 2, + "byteIndex": 652 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "Headers", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Headers" + } + }, + "typeParams": [] + }, + { + "name": "url", + "jsDoc": { + "doc": "Request URL" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 28, + "col": 2, + "byteIndex": 703 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "typeParams": [] + }, + { + "name": "body", + "jsDoc": { + "doc": "Response body as raw bytes (null if no body)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 33, + "col": 2, + "byteIndex": 849 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "Uint8Array", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Uint8Array" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [] + }, + { + "name": "duration", + "jsDoc": { + "doc": "Response time in milliseconds" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 54, + "col": 2, + "byteIndex": 1371 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "typeParams": [] + }, + { + "name": "raw", + "jsDoc": { + "doc": "Raw Web standard Response (for streaming or special cases)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 57, + "col": 2, + "byteIndex": 1469 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "globalThis.Response", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "globalThis.Response" + } + }, + "typeParams": [] + } + ], + "callSignatures": [], + "indexSignatures": [], + "typeParams": [] + } + }, + { + "name": "expectGraphqlResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/graphql.ts", + "line": 136, + "col": 0, + "byteIndex": 4104 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for GraphQL response validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", + "tags": [ + { + "kind": "param", + "name": "response", + "doc": "- The GraphQL response to validate" + }, + { + "kind": "param", + "name": "negate", + "doc": "- Whether to negate assertions (used internally by .not)" + }, + { + "kind": "return", + "doc": "A fluent expectation chain\n" + }, + { + "kind": "example", + "doc": "Basic assertions\n```ts\nconst response = await client.query(`\n query GetUser($id: ID!) {\n user(id: $id) { id name }\n }\n`, { id: \"123\" });\n\nexpectGraphqlResponse(response)\n .ok()\n .hasContent()\n .dataContains({ user: { name: \"Alice\" } });\n```\n" + }, + { + "kind": "example", + "doc": "Error assertions\n```ts\nconst response = await client.query(`\n query { invalidField }\n`, undefined, { throwOnError: false });\n\nexpectGraphqlResponse(response)\n .notOk()\n .errorContains(\"Cannot query field\");\n```\n" + }, + { + "kind": "example", + "doc": "Mutation with custom matcher\n```ts\nconst response = await client.mutation(`\n mutation CreateUser($input: CreateUserInput!) {\n createUser(input: $input) { id name }\n }\n`, { input: { name: \"Bob\" } });\n\nexpectGraphqlResponse(response)\n .ok()\n .dataMatch((data) => {\n assertEquals(data.createUser.name, \"Bob\");\n });\n```\n" + }, + { + "kind": "example", + "doc": "Performance assertions\n```ts\nexpectGraphqlResponse(response)\n .ok()\n .durationLessThan(500); // Must respond within 500ms\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "response", + "optional": false, + "tsType": { + "repr": "GraphqlResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GraphqlResponse" + } + } + }, + { + "kind": "assign", + "left": { + "kind": "identifier", + "name": "negate", + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + } + }, + "right": "false", + "tsType": null + } + ], + "returnType": { + "repr": "GraphqlResponseExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GraphqlResponseExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "GraphqlResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 25, + "col": 0, + "byteIndex": 708 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "GraphQL response interface with pre-loaded body." + }, + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ + { + "name": "data", + "jsDoc": { + "doc": "Get response data (null if no data).\nDoes not throw even if errors are present." + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 54, + "col": 2, + "byteIndex": 1482 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [ + { + "name": "U", + "default": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ] + } + ], + "properties": [ + { + "name": "type", + "jsDoc": { + "doc": "Result type identifier" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 27, + "col": 2, + "byteIndex": 786 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "graphql", + "kind": "literal", + "literal": { + "kind": "string", + "string": "graphql" + } + }, + "typeParams": [] + }, + { + "name": "ok", + "jsDoc": { + "doc": "Whether the request was successful (no errors)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 30, + "col": 2, + "byteIndex": 871 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "typeParams": [] + }, + { + "name": "errors", + "jsDoc": { + "doc": "GraphQL errors array (null if no errors)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 33, + "col": 2, + "byteIndex": 946 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "", + "kind": "typeOperator", + "typeOperator": { + "operator": "readonly", + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "GraphqlErrorItem", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GraphqlErrorItem" + } + } + } + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [] + }, + { + "name": "extensions", + "jsDoc": { + "doc": "Response extensions" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 36, + "col": 2, + "byteIndex": 1031 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": true, + "tsType": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + ], + "typeName": "Record" + } + }, + "typeParams": [] + }, + { + "name": "duration", + "jsDoc": { + "doc": "Response time in milliseconds" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 39, + "col": 2, + "byteIndex": 1120 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "typeParams": [] + }, + { + "name": "status", + "jsDoc": { + "doc": "HTTP status code" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 42, + "col": 2, + "byteIndex": 1176 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "typeParams": [] + }, + { + "name": "headers", + "jsDoc": { + "doc": "Headers from the HTTP response" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 45, + "col": 2, + "byteIndex": 1244 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "Headers", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Headers" + } + }, + "typeParams": [] + }, + { + "name": "raw", + "jsDoc": { + "doc": "Raw Web standard Response (for streaming or special cases)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 48, + "col": 2, + "byteIndex": 1342 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "globalThis.Response", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "globalThis.Response" + } + }, + "typeParams": [] + } + ], + "callSignatures": [], + "indexSignatures": [], + "typeParams": [ + { + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + } + ] + } + }, + { + "name": "expectConnectRpcResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/connectrpc.ts", + "line": 140, + "col": 0, + "byteIndex": 4209 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent assertion chain for ConnectRPC response validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", + "tags": [ + { + "kind": "param", + "name": "response", + "doc": "- The ConnectRPC response to validate" + }, + { + "kind": "param", + "name": "negate", + "doc": "- Whether to negate assertions (used internally by .not)" + }, + { + "kind": "return", + "doc": "A fluent expectation chain\n" + }, + { + "kind": "example", + "doc": "Basic assertions\n```ts\nconst response = await client.call(\n \"echo.EchoService\",\n \"echo\",\n { message: \"Hello!\" }\n);\n\nexpectConnectRpcResponse(response)\n .ok()\n .hasContent()\n .dataContains({ message: \"Hello!\" });\n```\n" + }, + { + "kind": "example", + "doc": "Error status assertions\n```ts\nconst response = await client.call(\n \"user.UserService\",\n \"getUser\",\n { id: \"non-existent\" },\n { throwOnError: false }\n);\n\nexpectConnectRpcResponse(response)\n .notOk()\n .code(5) // NOT_FOUND\n .errorContains(\"not found\");\n```\n" + }, + { + "kind": "example", + "doc": "Header and trailer assertions\n```ts\nexpectConnectRpcResponse(response)\n .ok()\n .headerExists(\"x-request-id\")\n .trailerExists(\"grpc-status\");\n```\n" + }, + { + "kind": "example", + "doc": "Performance assertions\n```ts\nexpectConnectRpcResponse(response)\n .ok()\n .durationLessThan(500); // Must respond within 500ms\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "response", + "optional": false, + "tsType": { + "repr": "ConnectRpcResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ConnectRpcResponse" + } + } + }, + { + "kind": "assign", + "left": { + "kind": "identifier", + "name": "negate", + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + } + }, + "right": "false", + "tsType": null + } + ], + "returnType": { + "repr": "ConnectRpcResponseExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ConnectRpcResponseExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "ConnectRpcResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 12, + "col": 0, + "byteIndex": 155 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "ConnectRPC response interface." + }, + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ + { + "name": "data", + "jsDoc": { + "doc": "Get deserialized response data.\nReturns the response message as-is (already deserialized by Connect).\nReturns null if the response is an error or has no data." + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 40, + "col": 2, + "byteIndex": 973 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + } + ] + }, + { + "name": "raw", + "jsDoc": { + "doc": "Get raw response message." + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 45, + "col": 2, + "byteIndex": 1046 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + }, + "typeParams": [] + } + ], + "properties": [ + { + "name": "type", + "jsDoc": { + "doc": "Result type identifier" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 14, + "col": 2, + "byteIndex": 227 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "connectrpc", + "kind": "literal", + "literal": { + "kind": "string", + "string": "connectrpc" + } + }, + "typeParams": [] + }, + { + "name": "ok", + "jsDoc": { + "doc": "Whether the request was successful (code === 0)." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 17, + "col": 2, + "byteIndex": 317 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "typeParams": [] + }, + { + "name": "code", + "jsDoc": { + "doc": "ConnectRPC/gRPC status code." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 20, + "col": 2, + "byteIndex": 380 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "ConnectRpcStatusCode", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ConnectRpcStatusCode" + } + }, + "typeParams": [] + }, + { + "name": "message", + "jsDoc": { + "doc": "Status message (empty string for successful responses)." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 23, + "col": 2, + "byteIndex": 485 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "typeParams": [] + }, + { + "name": "headers", + "jsDoc": { + "doc": "Response headers" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 26, + "col": 2, + "byteIndex": 540 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + ], + "typeName": "Record" + } + }, + "typeParams": [] + }, + { + "name": "trailers", + "jsDoc": { + "doc": "Response trailers (sent at end of RPC)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 29, + "col": 2, + "byteIndex": 633 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + ], + "typeName": "Record" + } + }, + "typeParams": [] + }, + { + "name": "duration", + "jsDoc": { + "doc": "Response time in milliseconds." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 32, + "col": 2, + "byteIndex": 719 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "typeParams": [] + } + ], + "callSignatures": [], + "indexSignatures": [], + "typeParams": [] + } + }, + { + "name": "expectGrpcResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/grpc.ts", + "line": 166, + "col": 0, + "byteIndex": 4147 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Creates an expectation for a gRPC response.\n", + "tags": [ + { + "kind": "param", + "name": "response", + "doc": "- gRPC response to test" + }, + { + "kind": "param", + "name": "negate", + "doc": "- Whether to negate assertions (used internally by .not)" + }, + { + "kind": "return", + "doc": "Fluent expectation interface\n" + }, + { + "kind": "example", + "doc": "```ts\nimport { expectGrpcResponse } from \"@probitas/expect/grpc\";\n\nconst response = await client.call(\"GetUser\", { id: \"1\" });\nexpectGrpcResponse(response)\n .toBeSuccessful()\n .toHaveCode(0)\n .toHaveContent()\n .toHaveDataContaining({ id: \"1\", name: \"Alice\" });\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "response", + "optional": false, + "tsType": { + "repr": "GrpcResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GrpcResponse" + } + } + }, + { + "kind": "assign", + "left": { + "kind": "identifier", + "name": "negate", + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + } + }, + "right": "false", + "tsType": null + } + ], + "returnType": { + "repr": "GrpcResponseExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GrpcResponseExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "GrpcResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/mod.ts", + "line": 247, + "col": 14, + "byteIndex": 8249 + }, + "declarationKind": "export", + "kind": "reference", + "reference_def": { + "target": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 12, + "col": 0, + "byteIndex": 155 + } + } + }, + { + "name": "expectRedisResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/redis.ts", + "line": 379, + "col": 0, + "byteIndex": 10214 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for any Redis result validation.\n\nThis unified function accepts any Redis result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", + "tags": [ + { + "kind": "example", + "doc": "```ts\n// For GET result - returns RedisResultExpectation\nconst getResult = await client.get(\"key\");\nexpectRedisResult(getResult).ok().data(\"expected\");\n\n// For COUNT result - returns RedisCountResultExpectation\nconst countResult = await client.del(\"key\");\nexpectRedisResult(countResult).ok().count(1);\n\n// For ARRAY result - returns RedisArrayResultExpectation\nconst arrayResult = await client.lrange(\"list\", 0, -1);\nexpectRedisResult(arrayResult).ok().count(3).contains(\"item\");\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "result", + "optional": false, + "tsType": { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + } + ], + "returnType": { + "repr": "RedisExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + ], + "typeName": "RedisExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "R", + "constraint": { + "repr": "RedisResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + ], + "typeName": "RedisResult" + } + } + } + ] + } + }, + { + "name": "RedisResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-redis/0.0.7/types.ts", + "line": 61, + "col": 0, + "byteIndex": 1319 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Union of all Redis result types.\nUsed by expectRedisResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "RedisCommonResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "RedisCommonResult" + } + }, + { + "repr": "RedisGetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisGetResult" + } + }, + { + "repr": "RedisSetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisSetResult" + } + }, + { + "repr": "RedisCountResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisCountResult" + } + }, + { + "repr": "RedisArrayResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "RedisArrayResult" + } + }, + { + "repr": "RedisHashResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisHashResult" + } + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ] + } + }, + { + "name": "expectMongoResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/mongodb.ts", + "line": 905, + "col": 0, + "byteIndex": 28291 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for any MongoDB result validation.\n\nThis unified function accepts any MongoDB result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", + "tags": [ + { + "kind": "example", + "doc": "```ts\n// For find result - returns MongoFindResultExpectation\nconst findResult = await users.find({ age: { $gte: 30 } });\nexpectMongoResult(findResult).toBeSuccessful().toHaveContent().count(2);\n\n// For insert result - returns MongoInsertResultExpectation\nconst insertResult = await users.insertOne({ name: \"Alice\", age: 30 });\nexpectMongoResult(insertResult).toBeSuccessful().hasInsertedId();\n\n// For update result - returns MongoUpdateResultExpectation\nconst updateResult = await users.updateOne({ name: \"Alice\" }, { $set: { age: 31 } });\nexpectMongoResult(updateResult).toBeSuccessful().matchedCount(1).modifiedCount(1);\n\n// For delete result - returns MongoDeleteResultExpectation\nconst deleteResult = await users.deleteOne({ name: \"Alice\" });\nexpectMongoResult(deleteResult).toBeSuccessful().deletedCount(1);\n\n// For findOne result - returns MongoFindOneResultExpectation\nconst findOneResult = await users.findOne({ name: \"Alice\" });\nexpectMongoResult(findOneResult).toBeSuccessful().toHaveContent().toMatchObject({ name: \"Alice\" });\n\n// For count result - returns MongoCountResultExpectation\nconst countResult = await users.countDocuments();\nexpectMongoResult(countResult).toBeSuccessful().count(10);\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "result", + "optional": false, + "tsType": { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + } + ], + "returnType": { + "repr": "MongoExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + ], + "typeName": "MongoExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "R", + "constraint": { + "repr": "MongoResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + ], + "typeName": "MongoResult" + } + } + } + ] + } + }, + { + "name": "MongoResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-mongodb/0.0.7/types.ts", + "line": 111, + "col": 0, + "byteIndex": 2431 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Union of all MongoDB result types.\nUsed by expectMongoResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "MongoFindResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "MongoFindResult" + } + }, + { + "repr": "MongoInsertOneResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoInsertOneResult" + } + }, + { + "repr": "MongoInsertManyResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoInsertManyResult" + } + }, + { + "repr": "MongoUpdateResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoUpdateResult" + } + }, + { + "repr": "MongoDeleteResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoDeleteResult" + } + }, + { + "repr": "MongoFindOneResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "MongoFindOneResult" + } + }, + { + "repr": "MongoCountResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoCountResult" + } + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + } + ] + } + }, + { + "name": "expectDenoKvResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/deno_kv.ts", + "line": 533, + "col": 0, + "byteIndex": 15089 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for any Deno KV result validation.\n\nThis unified function accepts any Deno KV result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", + "tags": [ + { + "kind": "example", + "doc": "```ts\n// For GET result - returns DenoKvGetResultExpectation\nconst getResult = await kv.get([\"users\", \"1\"]);\nexpectDenoKvResult(getResult).ok().hasContent().toMatchObject({ name: \"Alice\" });\n\n// For SET result - returns DenoKvSetResultExpectation\nconst setResult = await kv.set([\"users\", \"1\"], { name: \"Alice\" });\nexpectDenoKvResult(setResult).ok().hasVersionstamp();\n\n// For LIST result - returns DenoKvListResultExpectation\nconst listResult = await kv.list({ prefix: [\"users\"] });\nexpectDenoKvResult(listResult).ok().count(3);\n\n// For DELETE result - returns DenoKvDeleteResultExpectation\nconst deleteResult = await kv.delete([\"users\", \"1\"]);\nexpectDenoKvResult(deleteResult).ok();\n\n// For ATOMIC result - returns DenoKvAtomicResultExpectation\nconst atomicResult = await kv.atomic().set([\"counter\"], 1).commit();\nexpectDenoKvResult(atomicResult).ok().hasVersionstamp();\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "result", + "optional": false, + "tsType": { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + } + ], + "returnType": { + "repr": "DenoKvExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + ], + "typeName": "DenoKvExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "R", + "constraint": { + "repr": "DenoKvResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + ], + "typeName": "DenoKvResult" + } + } + } + ] + } + }, + { + "name": "DenoKvResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-deno-kv/0.0.7/results.ts", + "line": 131, + "col": 0, + "byteIndex": 2726 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Union of all Deno KV result types.\nUsed by expectDenoKvResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "DenoKvGetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "DenoKvGetResult" + } + }, + { + "repr": "DenoKvSetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvSetResult" + } + }, + { + "repr": "DenoKvDeleteResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvDeleteResult" + } + }, + { + "repr": "DenoKvListResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "DenoKvListResult" + } + }, + { + "repr": "DenoKvAtomicResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvAtomicResult" + } + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ] + } + }, + { + "name": "expectSqsMessage", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sqs.ts", + "line": 768, + "col": 0, + "byteIndex": 23417 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for SQS message validation." + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "message", + "optional": false, + "tsType": { + "repr": "SqsMessage", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsMessage" + } + } + } + ], + "returnType": { + "repr": "SqsMessageExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsMessageExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "expectSqsResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sqs.ts", + "line": 1032, + "col": 0, + "byteIndex": 30979 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for any SQS result validation.\n\nThis unified function accepts any SQS result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\nSupports send, sendBatch, receive, delete, deleteBatch, ensureQueue, and deleteQueue results.\n", + "tags": [ + { + "kind": "param", + "name": "result", + "doc": "- The SQS result to create expectations for" + }, + { + "kind": "return", + "doc": "A typed expectation object matching the result type\n" + }, + { + "kind": "example", + "doc": "Send result validation\n```ts\nconst sendResult = await sqs.send(JSON.stringify({ orderId: \"123\" }));\nexpectSqsResult(sendResult)\n .toBeSuccessful()\n .hasMessageId()\n .toHaveDurationLessThan(1000);\n```\n" + }, + { + "kind": "example", + "doc": "Receive result validation\n```ts\nconst receiveResult = await sqs.receive({ maxMessages: 10 });\nexpectSqsResult(receiveResult)\n .toBeSuccessful()\n .toHaveContent()\n .countAtLeast(1)\n .toMatchObject({ body: \"orderId\" });\n```\n" + }, + { + "kind": "example", + "doc": "Batch operations\n```ts\n// Send batch\nconst batchResult = await sqs.sendBatch([\n { id: \"1\", body: \"msg1\" },\n { id: \"2\", body: \"msg2\" },\n]);\nexpectSqsResult(batchResult)\n .toBeSuccessful()\n .allSuccessful()\n .noFailures();\n\n// Delete batch\nconst deleteResult = await sqs.deleteBatch(receiptHandles);\nexpectSqsResult(deleteResult)\n .toBeSuccessful()\n .successfulCount(2);\n```\n" + }, + { + "kind": "example", + "doc": "Queue management\n```ts\n// Ensure queue exists\nconst ensureResult = await sqs.ensureQueue(\"test-queue\");\nexpectSqsResult(ensureResult)\n .toBeSuccessful()\n .hasQueueUrl()\n .queueUrlContains(\"test-queue\");\n\n// Delete queue\nconst deleteResult = await sqs.deleteQueue(queueUrl);\nexpectSqsResult(deleteResult).toBeSuccessful();\n```\n" + }, + { + "kind": "example", + "doc": "Individual message validation\n```ts\nconst receiveResult = await sqs.receive();\nfor (const msg of receiveResult.messages) {\n expectSqsMessage(msg)\n .bodyJsonContains({ type: \"ORDER\" })\n .hasAttribute(\"correlationId\");\n}\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "result", + "optional": false, + "tsType": { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + } + ], + "returnType": { + "repr": "SqsExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + ], + "typeName": "SqsExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "R", + "constraint": { + "repr": "SqsResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsResult" + } + } + } + ] + } + }, + { + "name": "SqsResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-sqs/0.0.7/types.ts", + "line": 198, + "col": 0, + "byteIndex": 5081 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Union type of all SQS result types.\nUsed for type-safe handling in the unified expectSqsResult function." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "SqsSendResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsSendResult" + } + }, + { + "repr": "SqsSendBatchResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsSendBatchResult" + } + }, + { + "repr": "SqsReceiveResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsReceiveResult" + } + }, + { + "repr": "SqsDeleteResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsDeleteResult" + } + }, + { + "repr": "SqsDeleteBatchResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsDeleteBatchResult" + } + }, + { + "repr": "SqsEnsureQueueResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsEnsureQueueResult" + } + }, + { + "repr": "SqsDeleteQueueResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsDeleteQueueResult" + } + } + ] + }, + "typeParams": [] + } + }, + { + "name": "expectRabbitMqResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/rabbitmq.ts", + "line": 498, + "col": 0, + "byteIndex": 15653 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for any RabbitMQ result validation.\n\nThis unified function accepts any RabbitMQ result type and returns\nthe appropriate expectation interface based on the result's type discriminator.\n", + "tags": [ + { + "kind": "example", + "doc": "```ts\n// For publish result - returns RabbitMqPublishResultExpectation\nconst publishResult = await channel.sendToQueue(queue, content);\nexpectRabbitMqResult(publishResult).toBeSuccessful();\n\n// For consume result - returns RabbitMqConsumeResultExpectation\nconst consumeResult = await channel.get(queue);\nexpectRabbitMqResult(consumeResult).toBeSuccessful().toHaveContent().routingKey(\"key\");\n\n// For queue result - returns RabbitMqQueueResultExpectation\nconst queueResult = await channel.assertQueue(\"my-queue\");\nexpectRabbitMqResult(queueResult).toBeSuccessful().messageCount(0);\n\n// For exchange result - returns RabbitMqExchangeResultExpectation\nconst exchangeResult = await channel.assertExchange(\"my-exchange\", \"direct\");\nexpectRabbitMqResult(exchangeResult).toBeSuccessful();\n\n// For ack result - returns RabbitMqAckResultExpectation\nconst ackResult = await channel.ack(message);\nexpectRabbitMqResult(ackResult).toBeSuccessful();\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "result", + "optional": false, + "tsType": { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + } + ], + "returnType": { + "repr": "RabbitMqExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "R", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "R" + } + } + ], + "typeName": "RabbitMqExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "R", + "constraint": { + "repr": "RabbitMqResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqResult" + } + } + } + ] + } + }, + { + "name": "RabbitMqResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.0.7/types.ts", + "line": 260, + "col": 0, + "byteIndex": 5976 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Union of all RabbitMQ result types.\nUsed by expectRabbitMqResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "RabbitMqPublishResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqPublishResult" + } + }, + { + "repr": "RabbitMqConsumeResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqConsumeResult" + } + }, + { + "repr": "RabbitMqAckResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqAckResult" + } + }, + { + "repr": "RabbitMqQueueResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqQueueResult" + } + }, + { + "repr": "RabbitMqExchangeResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqExchangeResult" + } + } + ] + }, + "typeParams": [] + } + }, + { + "name": "expectSqlQueryResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 139, + "col": 0, + "byteIndex": 3743 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Create a fluent expectation chain for SQL query result validation.\n\nReturns an expectation object with chainable assertion methods.\nEach assertion throws an Error if it fails, making it ideal for testing.\n", + "tags": [ + { + "kind": "param", + "name": "result", + "doc": "- The SQL query result to validate" + }, + { + "kind": "param", + "name": "negate", + "doc": "- Whether to negate assertions (used internally by .not)" + }, + { + "kind": "return", + "doc": "A fluent expectation chain\n" + }, + { + "kind": "example", + "doc": "Basic assertions\n```ts\nconst result = await client.query(\"SELECT * FROM users WHERE active = true\");\n\nexpectSqlQueryResult(result)\n .ok()\n .countAtLeast(1)\n .dataContains({ name: \"Alice\" });\n```\n" + }, + { + "kind": "example", + "doc": "Insert/Update assertions\n```ts\nconst result = await client.query(\n \"INSERT INTO users (name, email) VALUES ($1, $2)\",\n [\"Bob\", \"bob@example.com\"]\n);\n\nexpectSqlQueryResult(result)\n .ok()\n .rowCount(1)\n .hasLastInsertId();\n```\n" + }, + { + "kind": "example", + "doc": "Custom matcher with mapped data\n```ts\nexpectSqlQueryResult(result)\n .ok()\n .mapMatch(\n (row) => row.name.toUpperCase(),\n (names) => assertEquals(names, [\"ALICE\", \"BOB\"])\n );\n```\n" + }, + { + "kind": "example", + "doc": "Performance assertions\n```ts\nexpectSqlQueryResult(result)\n .ok()\n .durationLessThan(100); // Must complete within 100ms\n```" + } + ] + }, + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "result", + "optional": false, + "tsType": { + "repr": "SqlQueryResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlQueryResult" + } + } + }, + { + "kind": "assign", + "left": { + "kind": "identifier", + "name": "negate", + "optional": false, + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + } + }, + "right": "false", + "tsType": null + } + ], + "returnType": { + "repr": "SqlQueryResultExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlQueryResultExpectation" + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + ], + "typeName": "Record" + } + } + } + ] + } + }, + { + "name": "SqlQueryResultExpectation", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 14, + "col": 0, + "byteIndex": 320 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Expectation interface for SQL query results.\nAll methods return `this` for chaining." + }, + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ + { + "name": "toBeSuccessful", + "jsDoc": { + "doc": "Verify query succeeded" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 19, + "col": 2, + "byteIndex": 456 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveContent", + "jsDoc": { + "doc": "Verify result has rows" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 22, + "col": 2, + "byteIndex": 515 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveLength", + "jsDoc": { + "doc": "Verify exact row count" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 25, + "col": 2, + "byteIndex": 573 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveLengthGreaterThanOrEqual", + "jsDoc": { + "doc": "Verify minimum row count" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 28, + "col": 2, + "byteIndex": 648 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveLengthLessThanOrEqual", + "jsDoc": { + "doc": "Verify maximum row count" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 31, + "col": 2, + "byteIndex": 741 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveRowCount", + "jsDoc": { + "doc": "Verify exact affected row count" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 34, + "col": 2, + "byteIndex": 838 + }, + "params": [ + { + "kind": "identifier", + "name": "count", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveRowCountGreaterThanOrEqual", + "jsDoc": { + "doc": "Verify minimum affected row count" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 37, + "col": 2, + "byteIndex": 921 + }, + "params": [ + { + "kind": "identifier", + "name": "count", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveRowCountLessThanOrEqual", + "jsDoc": { + "doc": "Verify maximum affected row count" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 40, + "col": 2, + "byteIndex": 1022 + }, + "params": [ + { + "kind": "identifier", + "name": "count", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toMatchObject", + "jsDoc": { + "doc": "Verify a row contains the given subset" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 43, + "col": 2, + "byteIndex": 1125 + }, + "params": [ + { + "kind": "identifier", + "name": "subset", + "optional": false, + "tsType": { + "repr": "Partial", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "Partial" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toSatisfy", + "jsDoc": { + "doc": "Custom row validation" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 46, + "col": 2, + "byteIndex": 1200 + }, + "params": [ + { + "kind": "identifier", + "name": "matcher", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "void", + "kind": "keyword", + "keyword": "void" + }, + "params": [ + { + "kind": "identifier", + "name": "rows", + "optional": false, + "tsType": { + "repr": "SqlRows", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlRows" + } + } + } + ], + "typeParams": [] + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveMapContaining", + "jsDoc": { + "doc": "Verify mapped data contains the given subset" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 49, + "col": 2, + "byteIndex": 1311 + }, + "params": [ + { + "kind": "identifier", + "name": "mapper", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + }, + { + "kind": "identifier", + "name": "subset", + "optional": false, + "tsType": { + "repr": "Partial", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + ], + "typeName": "Partial" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [ + { + "name": "U" + } + ] + }, + { + "name": "toHaveMapMatching", + "jsDoc": { + "doc": "Custom mapped data validation" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 52, + "col": 2, + "byteIndex": 1426 + }, + "params": [ + { + "kind": "identifier", + "name": "mapper", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + }, + { + "kind": "identifier", + "name": "matcher", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "void", + "kind": "keyword", + "keyword": "void" + }, + "params": [ + { + "kind": "identifier", + "name": "mapped", + "optional": false, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + } + } + ], + "typeParams": [] + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [ + { + "name": "U" + } + ] + }, + { + "name": "toHaveInstanceContaining", + "jsDoc": { + "doc": "Verify instance contains the given subset" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 58, + "col": 2, + "byteIndex": 1576 + }, + "params": [ + { + "kind": "identifier", + "name": "ctor", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": true, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + }, + { + "kind": "identifier", + "name": "subset", + "optional": false, + "tsType": { + "repr": "Partial", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + ], + "typeName": "Partial" + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [ + { + "name": "U" + } + ] + }, + { + "name": "toHaveInstanceMatching", + "jsDoc": { + "doc": "Custom instance validation" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 64, + "col": 2, + "byteIndex": 1708 + }, + "params": [ + { + "kind": "identifier", + "name": "ctor", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": true, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + }, + { + "kind": "identifier", + "name": "matcher", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "void", + "kind": "keyword", + "keyword": "void" + }, + "params": [ + { + "kind": "identifier", + "name": "instances", + "optional": false, + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + } + } + ], + "typeParams": [] + } + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [ + { + "name": "U" + } + ] + }, + { + "name": "toHaveLastInsertId", + "jsDoc": { + "doc": "Verify exact lastInsertId" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 70, + "col": 2, + "byteIndex": 1852 + }, + "params": [ + { + "kind": "identifier", + "name": "expected", + "optional": false, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "bigint", + "kind": "keyword", + "keyword": "bigint" + }, + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + } + ] + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveLastInsertId", + "jsDoc": { + "doc": "Verify lastInsertId is present (overload without expected)" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 73, + "col": 2, + "byteIndex": 1976 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveDurationLessThan", + "jsDoc": { + "doc": "Verify query duration is below threshold" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 76, + "col": 2, + "byteIndex": 2057 + }, + "params": [ + { + "kind": "identifier", + "name": "ms", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveDurationLessThanOrEqual", + "jsDoc": { + "doc": "Verify query duration is at or below threshold" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 79, + "col": 2, + "byteIndex": 2158 + }, + "params": [ + { + "kind": "identifier", + "name": "ms", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveDurationGreaterThan", + "jsDoc": { + "doc": "Verify query duration is above threshold" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 82, + "col": 2, + "byteIndex": 2260 + }, + "params": [ + { + "kind": "identifier", + "name": "ms", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + }, + { + "name": "toHaveDurationGreaterThanOrEqual", + "jsDoc": { + "doc": "Verify query duration is at or above threshold" + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 85, + "col": 2, + "byteIndex": 2364 + }, + "params": [ + { + "kind": "identifier", + "name": "ms", + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + } + } + ], + "optional": false, + "returnType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + } + ], + "properties": [ + { + "name": "not", + "jsDoc": { + "doc": "Invert all assertions" + }, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/sql.ts", + "line": 16, + "col": 2, + "byteIndex": 401 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "this", + "kind": "this", + "this": true + }, + "typeParams": [] + } + ], + "callSignatures": [], + "indexSignatures": [], + "typeParams": [ + { + "name": "T" + } + ] + } + }, + { + "name": "SqlQueryResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 38, + "col": 0, + "byteIndex": 875 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "SQL query result with rows, metadata, and transformation methods." + }, + "kind": "class", + "classDef": { + "isAbstract": false, + "constructors": [ + { + "accessibility": null, + "hasBody": true, + "name": "constructor", + "params": [ + { + "kind": "identifier", + "name": "init", + "optional": false, + "tsType": { + "repr": "SqlQueryResultInit", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlQueryResultInit" + } + } + } + ], + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 45, + "col": 2, + "byteIndex": 1089 + } + } + ], + "properties": [ + { + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "ok", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 39, + "col": 2, + "byteIndex": 932 + } + }, + { + "tsType": { + "repr": "SqlRows", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlRows" + } + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "rows", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 40, + "col": 2, + "byteIndex": 956 + } + }, + { + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "rowCount", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 41, + "col": 2, + "byteIndex": 985 + } + }, + { + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "duration", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 42, + "col": 2, + "byteIndex": 1014 + } + }, + { + "tsType": { + "repr": "SqlQueryResultMetadata", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqlQueryResultMetadata" + } + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "metadata", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 43, + "col": 2, + "byteIndex": 1043 + } + } + ], + "indexSignatures": [], + "methods": [ + { + "jsDoc": { + "doc": "Map rows to a new type." + }, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "map", + "kind": "method", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "mapper", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + } + ], + "returnType": { + "repr": "", + "kind": "array", + "array": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "U" + } + ] + }, + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 56, + "col": 2, + "byteIndex": 1348 + } + }, + { + "jsDoc": { + "doc": "Create class instances from rows." + }, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "as", + "kind": "method", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "ctor", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": true, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + } + ], + "returnType": { + "repr": "", + "kind": "array", + "array": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "U" + } + ] + }, + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 67, + "col": 2, + "byteIndex": 1563 + } + } + ], + "extends": null, + "implements": [], + "typeParams": [ + { + "name": "T", + "default": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + ], + "typeName": "Record" + } + } + } + ], + "superTypeParams": [] + } + } + ], + "generatedAt": "2025-12-09T20:05:14.639Z" +} diff --git a/data/api/index.json b/data/api/index.json index a3b8bee..fd8944a 100644 --- a/data/api/index.json +++ b/data/api/index.json @@ -3,7 +3,7 @@ { "name": "builder", "specifier": "@probitas/builder", - "version": "0.2.6", + "version": "0.2.7", "exportCount": 4, "counts": { "classes": 0, @@ -17,12 +17,12 @@ { "name": "client", "specifier": "@probitas/client", - "version": "0.1.1", - "exportCount": 9, + "version": "0.2.0", + "exportCount": 7, "counts": { "classes": 4, "interfaces": 3, - "functions": 2, + "functions": 0, "types": 0, "variables": 0, "enums": 0 @@ -31,12 +31,12 @@ { "name": "client-connectrpc", "specifier": "@probitas/client-connectrpc", - "version": "0.2.1", - "exportCount": 32, + "version": "0.3.0", + "exportCount": 30, "counts": { "classes": 8, - "interfaces": 14, - "functions": 5, + "interfaces": 13, + "functions": 4, "types": 4, "variables": 1, "enums": 0 @@ -45,13 +45,13 @@ { "name": "client-deno-kv", "specifier": "@probitas/client-deno-kv", - "version": "0.1.1", - "exportCount": 26, + "version": "0.2.0", + "exportCount": 19, "counts": { "classes": 4, - "interfaces": 17, - "functions": 3, - "types": 2, + "interfaces": 12, + "functions": 2, + "types": 1, "variables": 0, "enums": 0 } @@ -59,12 +59,12 @@ { "name": "client-graphql", "specifier": "@probitas/client-graphql", - "version": "0.1.1", - "exportCount": 17, + "version": "0.2.0", + "exportCount": 15, "counts": { "classes": 4, - "interfaces": 9, - "functions": 3, + "interfaces": 8, + "functions": 2, "types": 0, "variables": 1, "enums": 0 @@ -73,12 +73,12 @@ { "name": "client-grpc", "specifier": "@probitas/client-grpc", - "version": "0.2.1", - "exportCount": 26, + "version": "0.3.0", + "exportCount": 24, "counts": { "classes": 7, - "interfaces": 12, - "functions": 4, + "interfaces": 11, + "functions": 3, "types": 2, "variables": 1, "enums": 0 @@ -87,12 +87,12 @@ { "name": "client-http", "specifier": "@probitas/client-http", - "version": "0.1.1", - "exportCount": 22, + "version": "0.2.0", + "exportCount": 20, "counts": { "classes": 8, - "interfaces": 8, - "functions": 3, + "interfaces": 7, + "functions": 2, "types": 3, "variables": 0, "enums": 0 @@ -101,13 +101,13 @@ { "name": "client-mongodb", "specifier": "@probitas/client-mongodb", - "version": "0.2.1", - "exportCount": 37, + "version": "0.3.0", + "exportCount": 29, "counts": { "classes": 7, - "interfaces": 22, - "functions": 3, - "types": 5, + "interfaces": 16, + "functions": 2, + "types": 4, "variables": 0, "enums": 0 } @@ -115,13 +115,13 @@ { "name": "client-rabbitmq", "specifier": "@probitas/client-rabbitmq", - "version": "0.1.1", - "exportCount": 36, + "version": "0.2.0", + "exportCount": 29, "counts": { "classes": 5, - "interfaces": 24, - "functions": 2, - "types": 5, + "interfaces": 21, + "functions": 1, + "types": 2, "variables": 0, "enums": 0 } @@ -129,13 +129,13 @@ { "name": "client-redis", "specifier": "@probitas/client-redis", - "version": "0.1.2", - "exportCount": 27, + "version": "0.2.0", + "exportCount": 22, "counts": { "classes": 4, - "interfaces": 19, - "functions": 2, - "types": 2, + "interfaces": 16, + "functions": 1, + "types": 1, "variables": 0, "enums": 0 } @@ -143,12 +143,12 @@ { "name": "client-sql", "specifier": "@probitas/client-sql", - "version": "0.1.1", - "exportCount": 15, + "version": "0.2.0", + "exportCount": 13, "counts": { "classes": 6, - "interfaces": 6, - "functions": 1, + "interfaces": 5, + "functions": 0, "types": 2, "variables": 0, "enums": 0 @@ -157,7 +157,7 @@ { "name": "client-sql-duckdb", "specifier": "@probitas/client-sql-duckdb", - "version": "0.1.1", + "version": "0.2.0", "exportCount": 26, "counts": { "classes": 10, @@ -171,7 +171,7 @@ { "name": "client-sql-mysql", "specifier": "@probitas/client-sql-mysql", - "version": "0.1.1", + "version": "0.2.0", "exportCount": 29, "counts": { "classes": 10, @@ -185,12 +185,12 @@ { "name": "client-sql-postgres", "specifier": "@probitas/client-sql-postgres", - "version": "0.1.1", - "exportCount": 24, + "version": "0.2.0", + "exportCount": 22, "counts": { "classes": 6, - "interfaces": 13, - "functions": 3, + "interfaces": 12, + "functions": 2, "types": 2, "variables": 0, "enums": 0 @@ -199,7 +199,7 @@ { "name": "client-sql-sqlite", "specifier": "@probitas/client-sql-sqlite", - "version": "0.1.1", + "version": "0.2.0", "exportCount": 28, "counts": { "classes": 11, @@ -213,13 +213,13 @@ { "name": "client-sqs", "specifier": "@probitas/client-sqs", - "version": "0.1.1", - "exportCount": 41, + "version": "0.2.0", + "exportCount": 31, "counts": { "classes": 7, - "interfaces": 28, - "functions": 4, - "types": 2, + "interfaces": 21, + "functions": 2, + "types": 1, "variables": 0, "enums": 0 } @@ -227,7 +227,7 @@ { "name": "discover", "specifier": "@probitas/discover", - "version": "0.2.6", + "version": "0.2.7", "exportCount": 2, "counts": { "classes": 0, @@ -238,10 +238,24 @@ "enums": 0 } }, + { + "name": "expect", + "specifier": "@probitas/expect", + "version": "0.1.0", + "exportCount": 41, + "counts": { + "classes": 1, + "interfaces": 5, + "functions": 29, + "types": 5, + "variables": 0, + "enums": 0 + } + }, { "name": "logger", "specifier": "@probitas/logger", - "version": "0.2.6", + "version": "0.2.7", "exportCount": 5, "counts": { "classes": 0, @@ -255,11 +269,11 @@ { "name": "probitas", "specifier": "@probitas/probitas", - "version": "0.3.5", - "exportCount": 89, + "version": "0.4.0", + "exportCount": 88, "counts": { "classes": 8, - "interfaces": 14, + "interfaces": 13, "functions": 48, "types": 15, "variables": 3, @@ -269,7 +283,7 @@ { "name": "reporter", "specifier": "@probitas/reporter", - "version": "0.2.6", + "version": "0.3.2", "exportCount": 14, "counts": { "classes": 4, @@ -283,7 +297,7 @@ { "name": "runner", "specifier": "@probitas/runner", - "version": "0.2.6", + "version": "0.2.7", "exportCount": 9, "counts": { "classes": 2, @@ -297,7 +311,7 @@ { "name": "scenario", "specifier": "@probitas/scenario", - "version": "0.2.6", + "version": "0.2.7", "exportCount": 17, "counts": { "classes": 0, @@ -309,5 +323,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:36.120Z" + "generatedAt": "2025-12-09T20:05:17.203Z" } diff --git a/data/api/logger.json b/data/api/logger.json index c30b256..713a347 100644 --- a/data/api/logger.json +++ b/data/api/logger.json @@ -1,7 +1,7 @@ { "name": "logger", "specifier": "@probitas/logger", - "version": "0.2.6", + "version": "0.2.7", "moduleDoc": "Unified logging interface for Probitas packages.\n\nThis package provides a centralized logging system built on LogTape. It offers\nconsistent logging across all Probitas packages with configurable log levels,\npretty formatting, and hierarchical categories.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n- [LogTape](https://jsr.io/@logtape/logtape) - Underlying logging library\n\n## Related Packages\n\nAll Probitas packages use this logger internally:\n[@probitas/runner](https://jsr.io/@probitas/runner),\n[@probitas/reporter](https://jsr.io/@probitas/reporter),\n[@probitas/discover](https://jsr.io/@probitas/discover),\n[@probitas/cli](https://jsr.io/@probitas/cli)\n\n## Core Functions\n\n- {@linkcode configureLogging} - Initialize the logging system with a log level\n- {@linkcode getLogger} - Get a logger instance for a category\n- {@linkcode resetLogging} - Reset logging configuration (for testing)\n\n## Types\n\n- {@linkcode Logger} - Logger interface from LogTape\n- {@linkcode LogLevel} - Available log levels\n\n## Log Levels\n\nFrom least to most verbose:\n- `\"fatal\"` - Critical errors that stop execution\n- `\"error\"` - Errors that don't stop execution\n- `\"warning\"` - Potential issues (default level)\n- `\"info\"` - Informational messages about execution\n- `\"debug\"` - Detailed debugging information\n\n## Category Hierarchy\n\nLoggers use hierarchical categories following the package structure:\n- `[\"probitas\"]` - Root category for all Probitas logs\n- `[\"probitas\", \"runner\"]` - Runner package logs\n- `[\"probitas\", \"cli\", \"run\"]` - Specific command logs\n", "exports": [ { @@ -2362,7 +2362,7 @@ "name": "configureLogging", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/logger/0.2.6/logger.ts", + "filename": "https://jsr.io/@probitas/logger/0.2.7/logger.ts", "line": 51, "col": 0, "byteIndex": 1216 @@ -2436,7 +2436,7 @@ "name": "getLogger", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/logger/0.2.6/logger.ts", + "filename": "https://jsr.io/@probitas/logger/0.2.7/logger.ts", "line": 115, "col": 0, "byteIndex": 2917 @@ -2504,7 +2504,7 @@ "name": "resetLogging", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/logger/0.2.6/logger.ts", + "filename": "https://jsr.io/@probitas/logger/0.2.7/logger.ts", "line": 138, "col": 0, "byteIndex": 3499 @@ -2543,5 +2543,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:35.314Z" + "generatedAt": "2025-12-09T20:05:14.722Z" } diff --git a/data/api/probitas.json b/data/api/probitas.json index 6d03ac2..e50e623 100644 --- a/data/api/probitas.json +++ b/data/api/probitas.json @@ -1,14 +1,14 @@ { "name": "probitas", "specifier": "@probitas/probitas", - "version": "0.3.5", + "version": "0.4.0", "moduleDoc": "Probitas - Scenario-based testing and workflow execution framework.\n\nThis is the main entry point for the Probitas framework. It provides a fluent API\nfor building and executing scenario-based tests with support for:\n\n- **Sequential steps**: Define test steps that execute in order with type-safe context passing\n- **Skip conditions**: Conditionally skip steps or entire scenarios\n- **Rich assertions**: Built-in expect utilities for comprehensive assertions\n- **External clients**: Pre-configured clients for HTTP, databases, message queues, and more\n- **Test utilities**: Faker for test data, time mocking, and function spies\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [Documentation](./.claude/README.md)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/builder](https://jsr.io/@probitas/builder) | Fluent API for building scenario definitions |\n| [@probitas/runner](https://jsr.io/@probitas/runner) | Test execution engine with retry and concurrency |\n| [@probitas/reporter](https://jsr.io/@probitas/reporter) | Output formatters (list, dot, TAP, JSON) |\n| [@probitas/scenario](https://jsr.io/@probitas/scenario) | Core type definitions and utilities |\n| [@probitas/discover](https://jsr.io/@probitas/discover) | Scenario file discovery |\n| [@probitas/logger](https://jsr.io/@probitas/logger) | Unified logging interface |\n| [@probitas/cli](https://jsr.io/@probitas/cli) | Command-line interface |\n\n## Core Exports\n\n- {@linkcode scenario} - Factory function to create scenario builders\n- {@linkcode Skip} - Utility to skip steps or scenarios conditionally\n- {@linkcode StepContext} - Type representing the context passed to each step\n- {@linkcode client} - Namespace containing all available client implementations\n- {@linkcode expect} - Assertion utilities (from `@std/expect`)\n\n## Re-exported Utilities\n\nFor convenience, this module also re-exports commonly used testing utilities:\n\n- `faker` - Fake data generation from `@jackfiszr/faker`\n- `FakeTime` - Time mocking utilities from `@std/testing/time`\n- `spy`, `stub`, `assertSpyCalls` - Mock utilities from `@std/testing/mock`\n- `tryOr`, `raise` - Error handling utilities from `@core/errorutil`\n- `outdent` - Template literal tag for removing indentation\n", "exports": [ { "name": "client", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/mod.ts", + "filename": "https://jsr.io/@probitas/probitas/0.4.0/mod.ts", "line": 102, "col": 7, "byteIndex": 3992 @@ -39,7 +39,7 @@ "name": "scenario", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/scenario_builder.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/scenario_builder.ts", "line": 554, "col": 0, "byteIndex": 17911 @@ -133,7 +133,7 @@ "name": "Skip", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/skip.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/skip.ts", "line": 62, "col": 0, "byteIndex": 1603 @@ -191,7 +191,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/skip.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/skip.ts", "line": 84, "col": 2, "byteIndex": 2304 @@ -215,7 +215,7 @@ "isStatic": false, "name": "reason", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/skip.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/skip.ts", "line": 70, "col": 2, "byteIndex": 1857 @@ -234,7 +234,7 @@ "name": "StepContext", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 40, "col": 0, "byteIndex": 1237 @@ -295,7 +295,7 @@ "doc": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is `unknown`." }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 51, "col": 2, "byteIndex": 1578 @@ -320,7 +320,7 @@ "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n```ts\nctx.results[0] // First step's result\nctx.results[1] // Second step's result\n```" }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 62, "col": 2, "byteIndex": 1828 @@ -345,7 +345,7 @@ "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\n.resource(\"db\", () => createDbConnection())\n.step((ctx) => ctx.resources.db.query(...))\n```" }, "location": { - "filename": "https://jsr.io/@probitas/builder/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/builder/0.2.7/types.ts", "line": 73, "col": 2, "byteIndex": 2093 @@ -460,1701 +460,851 @@ } }, { - "name": "ConnectRpcResponse", + "name": "expect", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 12, + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 72, "col": 0, - "byteIndex": 155 + "byteIndex": 2504 }, "declarationKind": "export", "jsDoc": { - "doc": "ConnectRPC response interface." + "doc": "Unified expect function that dispatches to the appropriate expectXXXXX function\nbased on the type of the input object.\n", + "tags": [ + { + "kind": "example", + "doc": "```ts\n// HTTP response\nconst httpRes = await http.get(\"/users\");\nexpect(httpRes).ok().dataContains({ users: [] });\n\n// GraphQL response\nconst gqlRes = await graphql.query(\"{ users { id name } }\");\nexpect(gqlRes).ok().hasContent();\n\n// SQL query result\nconst sqlRes = await db.query(\"SELECT * FROM users\");\nexpect(sqlRes).ok().count(10);\n\n// MongoDB result\nconst mongoRes = await mongo.find({ status: \"active\" });\nexpect(mongoRes).ok().count(10);\n\n// Falls back to expectAnything (chainable @std/expect) for other values\nexpect(42).toBe(42).toBeGreaterThan(40);\n```" + } + ] }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ + "kind": "function", + "functionDef": { + "params": [ { - "name": "data", - "jsDoc": { - "doc": "Get deserialized response data.\nReturns the response message as-is (already deserialized by Connect).\nReturns null if the response is an error or has no data." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 40, - "col": 2, - "byteIndex": 973 - }, - "params": [], + "kind": "identifier", + "name": "value", "optional": false, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { "typeParams": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } + "repr": "expectHttpResponse", + "kind": "typeQuery", + "typeQuery": "expectHttpResponse" } - ] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Get raw response message." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 45, - "col": 2, - "byteIndex": 1046 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - }, - "typeParams": [] + ], + "typeName": "ReturnType" } - ], - "properties": [ + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ { - "name": "type", - "jsDoc": { - "doc": "Result type identifier" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 14, - "col": 2, - "byteIndex": 227 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "connectrpc", - "kind": "literal", - "literal": { - "kind": "string", - "string": "connectrpc" + "name": "T", + "constraint": { + "repr": "HttpResponse", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "HttpResponse" } - }, - "typeParams": [] - }, + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 75, + "col": 0, + "byteIndex": 2606 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ { - "name": "ok", - "jsDoc": { - "doc": "Whether the request was successful (code === 0)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 17, - "col": 2, - "byteIndex": 317 - }, - "params": [], - "readonly": true, - "computed": false, + "kind": "identifier", + "name": "value", "optional": false, "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectConnectRpcResponse", + "kind": "typeQuery", + "typeQuery": "expectConnectRpcResponse" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ { - "name": "code", - "jsDoc": { - "doc": "ConnectRPC/gRPC status code." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 20, - "col": 2, - "byteIndex": 380 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "ConnectRpcStatusCode", + "name": "T", + "constraint": { + "repr": "ConnectRpcResponse", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "ConnectRpcStatusCode" + "typeName": "ConnectRpcResponse" } - }, - "typeParams": [] - }, + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 78, + "col": 0, + "byteIndex": 2720 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ { - "name": "message", - "jsDoc": { - "doc": "Status message (empty string for successful responses)." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 23, - "col": 2, - "byteIndex": 485 - }, - "params": [], - "readonly": true, - "computed": false, + "kind": "identifier", + "name": "value", "optional": false, "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 26, - "col": 2, - "byteIndex": 540 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Record", + "repr": "T", "kind": "typeRef", "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ], - "typeName": "Record" + "typeParams": null, + "typeName": "T" } - }, - "typeParams": [] - }, + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectGraphqlResponse", + "kind": "typeQuery", + "typeQuery": "expectGraphqlResponse" + } + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ { - "name": "trailers", - "jsDoc": { - "doc": "Response trailers (sent at end of RPC)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 29, - "col": 2, - "byteIndex": 633 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Record", + "name": "T", + "constraint": { + "repr": "GraphqlResponse", "kind": "typeRef", "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ], - "typeName": "Record" + "typeParams": null, + "typeName": "GraphqlResponse" } - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Response time in milliseconds." - }, - "location": { - "filename": "https://jsr.io/@probitas/client-connectrpc/0.1.0/response.ts", - "line": 32, - "col": 2, - "byteIndex": 719 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "DenoKvResult", + "name": "expect", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-deno-kv/0.1.1/results.ts", - "line": 131, + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 81, "col": 0, - "byteIndex": 2726 + "byteIndex": 2828 }, "declarationKind": "export", - "jsDoc": { - "doc": "Union of all Deno KV result types.\nUsed by expectDenoKvResult to determine the appropriate expectation type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "DenoKvGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "DenoKvGetResult" - } - }, - { - "repr": "DenoKvSetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvSetResult" - } - }, - { - "repr": "DenoKvDeleteResult", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "DenoKvDeleteResult" + "typeName": "T" } - }, - { - "repr": "DenoKvListResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" + } + } + ], + "returnType": { + "repr": "SqlQueryResultExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "ExtractSqlRowType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } } - } - ], - "typeName": "DenoKvListResult" - } - }, - { - "repr": "DenoKvAtomicResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "DenoKvAtomicResult" + ], + "typeName": "ExtractSqlRowType" + } } - } - ] + ], + "typeName": "SqlQueryResultExpectation" + } }, + "isAsync": false, + "isGenerator": false, "typeParams": [ { "name": "T", - "default": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + "constraint": { + "repr": "SqlQueryResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqlQueryResult" + } } } ] } }, { - "name": "GraphqlResponse", + "name": "expect", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 25, + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 84, "col": 0, - "byteIndex": 732 + "byteIndex": 2942 }, "declarationKind": "export", - "jsDoc": { - "doc": "GraphQL response interface with pre-loaded body." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ + "kind": "function", + "functionDef": { + "params": [ { - "name": "data", - "jsDoc": { - "doc": "Get response data (null if no data).\nDoes not throw even if errors are present." - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 54, - "col": 2, - "byteIndex": 1506 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [ - { - "name": "U", - "default": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ] - } - ], - "properties": [ - { - "name": "type", - "jsDoc": { - "doc": "Result type identifier" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 27, - "col": 2, - "byteIndex": 810 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "graphql", - "kind": "literal", - "literal": { - "kind": "string", - "string": "graphql" - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Whether the request was successful (no errors)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 30, - "col": 2, - "byteIndex": 895 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "errors", - "jsDoc": { - "doc": "GraphQL errors array (null if no errors)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 33, - "col": 2, - "byteIndex": 970 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "", - "kind": "typeOperator", - "typeOperator": { - "operator": "readonly", - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "GraphqlErrorItem", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "GraphqlErrorItem" - } - } - } - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "extensions", - "jsDoc": { - "doc": "Response extensions" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 36, - "col": 2, - "byteIndex": 1055 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": true, - "tsType": { - "repr": "Record", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" - } - ], - "typeName": "Record" - } - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Response time in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 39, - "col": 2, - "byteIndex": 1144 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 42, - "col": 2, - "byteIndex": 1200 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Headers from the HTTP response" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 45, - "col": 2, - "byteIndex": 1268 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" - } - }, - "typeParams": [] - }, - { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response (for streaming or special cases)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-graphql/0.1.1/types.ts", - "line": 48, - "col": 2, - "byteIndex": 1366 - }, - "params": [], - "readonly": true, - "computed": false, + "kind": "identifier", + "name": "value", "optional": false, "tsType": { - "repr": "globalThis.Response", + "repr": "T", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "globalThis.Response" + "typeName": "T" } - }, - "typeParams": [] - } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [ - { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" } } - ] - } - }, - { - "name": "HttpResponse", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 9, - "col": 0, - "byteIndex": 301 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "HTTP response with pre-loaded body for synchronous access.\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." - }, - "kind": "interface", - "interfaceDef": { - "extends": [], - "constructors": [], - "methods": [ - { - "name": "arrayBuffer", - "jsDoc": { - "doc": "Get body as ArrayBuffer (null if no body)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 36, - "col": 2, - "byteIndex": 961 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "ArrayBuffer", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "ArrayBuffer" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "blob", - "jsDoc": { - "doc": "Get body as Blob (null if no body)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 39, - "col": 2, - "byteIndex": 1043 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Blob", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Blob" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "text", - "jsDoc": { - "doc": "Get body as text (null if no body)" - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 42, - "col": 2, - "byteIndex": 1111 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "data", - "jsDoc": { - "doc": "Get body as parsed JSON (null if no body)", - "tags": [ - { - "kind": "template", - "name": "T", - "doc": "- defaults to any for test convenience" - } - ] - }, - "kind": "method", - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 49, - "col": 2, - "byteIndex": 1290 - }, - "params": [], - "optional": false, - "returnType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { "typeParams": [ { - "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" - } - } - ] - } - ], - "properties": [ - { - "name": "type", - "jsDoc": { - "doc": "Result type identifier" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 11, - "col": 2, - "byteIndex": 367 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "http", - "kind": "literal", - "literal": { - "kind": "string", - "string": "http" - } - }, - "typeParams": [] - }, - { - "name": "ok", - "jsDoc": { - "doc": "Whether the response was successful (status 200-299)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 16, - "col": 2, - "byteIndex": 513 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "boolean", - "kind": "keyword", - "keyword": "boolean" - }, - "typeParams": [] - }, - { - "name": "status", - "jsDoc": { - "doc": "HTTP status code" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 19, - "col": 2, - "byteIndex": 564 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, - { - "name": "statusText", - "jsDoc": { - "doc": "HTTP status text" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 22, - "col": 2, - "byteIndex": 618 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "headers", - "jsDoc": { - "doc": "Response headers" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 25, - "col": 2, - "byteIndex": 676 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "Headers", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Headers" + "repr": "expectDenoKvResult", + "kind": "typeQuery", + "typeQuery": "expectDenoKvResult" } - }, - "typeParams": [] - }, - { - "name": "url", - "jsDoc": { - "doc": "Request URL" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 28, - "col": 2, - "byteIndex": 727 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "string", - "kind": "keyword", - "keyword": "string" - }, - "typeParams": [] - }, - { - "name": "body", - "jsDoc": { - "doc": "Response body as raw bytes (null if no body)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 33, - "col": 2, - "byteIndex": 873 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "Uint8Array", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "Uint8Array" - } - }, - { - "repr": "null", - "kind": "keyword", - "keyword": "null" - } - ] - }, - "typeParams": [] - }, - { - "name": "duration", - "jsDoc": { - "doc": "Response time in milliseconds" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 54, - "col": 2, - "byteIndex": 1395 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - }, - "typeParams": [] - }, + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ { - "name": "raw", - "jsDoc": { - "doc": "Raw Web standard Response (for streaming or special cases)" - }, - "location": { - "filename": "https://jsr.io/@probitas/client-http/0.1.1/types.ts", - "line": 57, - "col": 2, - "byteIndex": 1493 - }, - "params": [], - "readonly": true, - "computed": false, - "optional": false, - "tsType": { - "repr": "globalThis.Response", + "name": "T", + "constraint": { + "repr": "DenoKvResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "globalThis.Response" + "typeName": "DenoKvResult" } - }, - "typeParams": [] + } } - ], - "callSignatures": [], - "indexSignatures": [], - "typeParams": [] + ] } }, { - "name": "MongoResult", + "name": "expect", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-mongodb/0.1.0/types.ts", - "line": 133, + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 87, "col": 0, - "byteIndex": 2862 + "byteIndex": 3047 }, "declarationKind": "export", - "jsDoc": { - "doc": "Union of all MongoDB result types.\nUsed by expectMongoResult to determine the appropriate expectation type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "MongoFindResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindResult" - } - }, - { - "repr": "MongoInsertOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoInsertOneResult" - } - }, - { - "repr": "MongoInsertManyResult", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "MongoInsertManyResult" + "typeName": "T" } - }, - { - "repr": "MongoUpdateResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "MongoUpdateResult" + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectRedisResult", + "kind": "typeQuery", + "typeQuery": "expectRedisResult" } - }, - { - "repr": "MongoDeleteResult", + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "RedisResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "MongoDeleteResult" - } - }, - { - "repr": "MongoFindOneResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "MongoFindOneResult" + "typeName": "RedisResult" } - }, - { - "repr": "MongoCountResult", + } + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 90, + "col": 0, + "byteIndex": 3150 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "MongoCountResult" + "typeName": "T" } } - ] + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectMongoResult", + "kind": "typeQuery", + "typeQuery": "expectMongoResult" + } + ], + "typeName": "ReturnType" + } }, + "isAsync": false, + "isGenerator": false, "typeParams": [ { "name": "T", - "default": { - "repr": "any", - "kind": "keyword", - "keyword": "any" + "constraint": { + "repr": "MongoResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "MongoResult" + } } } ] } }, { - "name": "RabbitMqResult", + "name": "expect", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-rabbitmq/0.1.1/types.ts", - "line": 287, + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 93, "col": 0, - "byteIndex": 6591 + "byteIndex": 3253 }, "declarationKind": "export", - "jsDoc": { - "doc": "Union of all RabbitMQ result types.\nUsed by expectRabbitMqResult to determine the appropriate expectation type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RabbitMqPublishResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqPublishResult" - } - }, - { - "repr": "RabbitMqConsumeResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqConsumeResult" - } - }, - { - "repr": "RabbitMqAckResult", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "RabbitMqAckResult" + "typeName": "T" } - }, - { - "repr": "RabbitMqQueueResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RabbitMqQueueResult" + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectRabbitMqResult", + "kind": "typeQuery", + "typeQuery": "expectRabbitMqResult" } - }, - { - "repr": "RabbitMqExchangeResult", + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "RabbitMqResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "RabbitMqExchangeResult" + "typeName": "RabbitMqResult" } } - ] - }, - "typeParams": [] + } + ] } }, { - "name": "RedisResult", + "name": "expect", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-redis/0.1.2/types.ts", - "line": 62, + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 96, "col": 0, - "byteIndex": 1380 + "byteIndex": 3362 }, "declarationKind": "export", - "jsDoc": { - "doc": "Union of all Redis result types.\nUsed by expectRedisResult to determine the appropriate expectation type." - }, - "kind": "typeAlias", - "typeAliasDef": { - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "RedisCommonResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisCommonResult" - } - }, - { - "repr": "RedisGetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisGetResult" - } - }, - { - "repr": "RedisSetResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisSetResult" - } - }, - { - "repr": "RedisCountResult", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "T", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "RedisCountResult" + "typeName": "T" } - }, - { - "repr": "RedisArrayResult", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "RedisArrayResult" + } + } + ], + "returnType": { + "repr": "ReturnType", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "expectSqsResult", + "kind": "typeQuery", + "typeQuery": "expectSqsResult" } - }, - { - "repr": "RedisHashResult", + ], + "typeName": "ReturnType" + } + }, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "T", + "constraint": { + "repr": "SqsResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "RedisHashResult" + "typeName": "SqsResult" } } - ] + } + ] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 99, + "col": 0, + "byteIndex": 3461 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ], + "returnType": { + "repr": "AnythingExpectation", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "AnythingExpectation" + } }, - "typeParams": [ + "isAsync": false, + "isGenerator": false, + "typeParams": [] + } + }, + { + "name": "expect", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/expect/0.1.0/expect.ts", + "line": 100, + "col": 0, + "byteIndex": 3522 + }, + "declarationKind": "export", + "kind": "function", + "functionDef": { + "params": [ { - "name": "T", - "default": { + "kind": "identifier", + "name": "value", + "optional": false, + "tsType": { "repr": "unknown", "kind": "keyword", "keyword": "unknown" } } - ] + ], + "returnType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [] } }, { - "name": "SqlQueryResult", + "name": "ConnectRpcResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 38, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 12, "col": 0, - "byteIndex": 875 + "byteIndex": 155 }, "declarationKind": "export", "jsDoc": { - "doc": "SQL query result with rows, metadata, and transformation methods." + "doc": "ConnectRPC response interface." }, - "kind": "class", - "classDef": { - "isAbstract": false, - "constructors": [ + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ { - "accessibility": null, - "hasBody": true, - "name": "constructor", - "params": [ - { - "kind": "identifier", - "name": "init", - "optional": false, - "tsType": { - "repr": "SqlQueryResultInit", + "name": "data", + "jsDoc": { + "doc": "Get deserialized response data.\nReturns the response message as-is (already deserialized by Connect).\nReturns null if the response is an error or has no data." + }, + "kind": "method", + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 40, + "col": 2, + "byteIndex": 973 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "T", "kind": "typeRef", "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlQueryResultInit" + "typeParams": null, + "typeName": "T" } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" } } - ], + ] + }, + { + "name": "raw", + "jsDoc": { + "doc": "Get raw response message." + }, + "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 46, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 45, "col": 2, - "byteIndex": 1123 - } + "byteIndex": 1046 + }, + "params": [], + "optional": false, + "returnType": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + }, + "typeParams": [] } ], "properties": [ { + "name": "type", + "jsDoc": { + "doc": "Result type identifier" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 14, + "col": 2, + "byteIndex": 227 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, "tsType": { - "repr": "sql", + "repr": "connectrpc", "kind": "literal", "literal": { "kind": "string", - "string": "sql" + "string": "connectrpc" } }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "type", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 39, - "col": 2, - "byteIndex": 932 - } + "typeParams": [] }, { + "name": "ok", + "jsDoc": { + "doc": "Whether the request was successful (code === 0)." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 17, + "col": 2, + "byteIndex": 317 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, "tsType": { "repr": "boolean", "kind": "keyword", "keyword": "boolean" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "ok", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 40, - "col": 2, - "byteIndex": 966 - } + "typeParams": [] }, { + "name": "code", + "jsDoc": { + "doc": "ConnectRPC/gRPC status code." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 20, + "col": 2, + "byteIndex": 380 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, "tsType": { - "repr": "SqlRows", + "repr": "ConnectRpcStatusCode", "kind": "typeRef", "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlRows" + "typeParams": null, + "typeName": "ConnectRpcStatusCode" } }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rows", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 41, - "col": 2, - "byteIndex": 990 - } + "typeParams": [] }, { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "name": "message", + "jsDoc": { + "doc": "Status message (empty string for successful responses)." }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "rowCount", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 42, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 23, "col": 2, - "byteIndex": 1019 - } - }, - { - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" + "byteIndex": 485 }, + "params": [], "readonly": true, - "accessibility": null, + "computed": false, "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "duration", - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 43, - "col": 2, - "byteIndex": 1048 - } + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "typeParams": [] }, { - "tsType": { - "repr": "SqlQueryResultMetadata", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "SqlQueryResultMetadata" - } + "name": "headers", + "jsDoc": { + "doc": "Response headers" }, - "readonly": true, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "metadata", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 44, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 26, "col": 2, - "byteIndex": 1077 - } - } - ], - "indexSignatures": [], - "methods": [ - { - "jsDoc": { - "doc": "Map rows to a new type." + "byteIndex": 540 }, - "accessibility": null, + "params": [], + "readonly": true, + "computed": false, "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "map", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" + "tsType": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "string", + "kind": "keyword", + "keyword": "string" } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] + ], + "typeName": "Record" + } }, - "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 57, - "col": 2, - "byteIndex": 1382 - } + "typeParams": [] }, { + "name": "trailers", "jsDoc": { - "doc": "Create class instances from rows." - }, - "accessibility": null, - "optional": false, - "isAbstract": false, - "isStatic": false, - "name": "as", - "kind": "method", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - } - ], - "returnType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "U" - } - ] + "doc": "Response trailers (sent at end of RPC)" }, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/result.ts", - "line": 68, + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 29, "col": 2, - "byteIndex": 1597 - } - } - ], - "extends": null, - "implements": [], - "typeParams": [ - { - "name": "T", - "default": { + "byteIndex": 633 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { "repr": "Record", "kind": "typeRef", "typeRef": { @@ -2165,31 +1315,147 @@ "keyword": "string" }, { - "repr": "any", + "repr": "string", "kind": "keyword", - "keyword": "any" + "keyword": "string" } ], "typeName": "Record" } - } + }, + "typeParams": [] + }, + { + "name": "duration", + "jsDoc": { + "doc": "Response time in milliseconds." + }, + "location": { + "filename": "https://jsr.io/@probitas/client-connectrpc/0.0.7/response.ts", + "line": 32, + "col": 2, + "byteIndex": 719 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "typeParams": [] } ], - "superTypeParams": [] + "callSignatures": [], + "indexSignatures": [], + "typeParams": [] + } + }, + { + "name": "DenoKvResult", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-deno-kv/0.0.7/results.ts", + "line": 131, + "col": 0, + "byteIndex": 2726 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "Union of all Deno KV result types.\nUsed by expectDenoKvResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "DenoKvGetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "DenoKvGetResult" + } + }, + { + "repr": "DenoKvSetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvSetResult" + } + }, + { + "repr": "DenoKvDeleteResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvDeleteResult" + } + }, + { + "repr": "DenoKvListResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "DenoKvListResult" + } + }, + { + "repr": "DenoKvAtomicResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "DenoKvAtomicResult" + } + } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + } + ] } }, { - "name": "SqlQueryResultExpectation", + "name": "GraphqlResponse", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 8, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 25, "col": 0, - "byteIndex": 193 + "byteIndex": 708 }, "declarationKind": "export", "jsDoc": { - "doc": "Expectation interface for SQL query results.\nAll methods return `this` for chaining." + "doc": "GraphQL response interface with pre-loaded body." }, "kind": "interface", "interfaceDef": { @@ -2197,874 +1463,705 @@ "constructors": [], "methods": [ { - "name": "ok", + "name": "data", "jsDoc": { - "doc": "Verify query succeeded" + "doc": "Get response data (null if no data).\nDoes not throw even if errors are present." }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 10, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 54, "col": 2, - "byteIndex": 275 + "byteIndex": 1482 }, "params": [], "optional": false, "returnType": { - "repr": "this", - "kind": "this", - "this": true + "repr": "", + "kind": "union", + "union": [ + { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] }, - "typeParams": [] - }, + "typeParams": [ + { + "name": "U", + "default": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ] + } + ], + "properties": [ { - "name": "notOk", + "name": "type", "jsDoc": { - "doc": "Verify query failed" + "doc": "Result type identifier" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 13, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 27, "col": 2, - "byteIndex": 319 + "byteIndex": 786 }, "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "graphql", + "kind": "literal", + "literal": { + "kind": "string", + "string": "graphql" + } }, "typeParams": [] }, { - "name": "noContent", + "name": "ok", "jsDoc": { - "doc": "Verify result has no rows" + "doc": "Whether the request was successful (no errors)" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 16, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 30, "col": 2, - "byteIndex": 372 + "byteIndex": 871 }, "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" }, "typeParams": [] }, { - "name": "hasContent", + "name": "errors", "jsDoc": { - "doc": "Verify result has rows" + "doc": "GraphQL errors array (null if no errors)" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 19, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 33, "col": 2, - "byteIndex": 426 + "byteIndex": 946 }, "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "", + "kind": "typeOperator", + "typeOperator": { + "operator": "readonly", + "tsType": { + "repr": "", + "kind": "array", + "array": { + "repr": "GraphqlErrorItem", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "GraphqlErrorItem" + } + } + } + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] }, "typeParams": [] }, { - "name": "count", + "name": "extensions", "jsDoc": { - "doc": "Verify exact row count" + "doc": "Response extensions" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 22, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 36, "col": 2, - "byteIndex": 481 + "byteIndex": 1031 }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } + "params": [], + "readonly": true, + "computed": false, + "optional": true, + "tsType": { + "repr": "Record", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } + ], + "typeName": "Record" } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true }, "typeParams": [] }, { - "name": "countAtLeast", + "name": "duration", "jsDoc": { - "doc": "Verify minimum row count" + "doc": "Response time in milliseconds" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 25, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 39, "col": 2, - "byteIndex": 549 + "byteIndex": 1120 }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" }, "typeParams": [] }, { - "name": "countAtMost", + "name": "status", "jsDoc": { - "doc": "Verify maximum row count" + "doc": "HTTP status code" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 28, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 42, "col": 2, - "byteIndex": 624 + "byteIndex": 1176 }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" }, "typeParams": [] }, { - "name": "rowCount", + "name": "headers", "jsDoc": { - "doc": "Verify exact affected row count" + "doc": "Headers from the HTTP response" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 31, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 45, "col": 2, - "byteIndex": 705 + "byteIndex": 1244 }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "Headers", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Headers" + } }, "typeParams": [] }, { - "name": "rowCountAtLeast", + "name": "raw", "jsDoc": { - "doc": "Verify minimum affected row count" + "doc": "Raw Web standard Response (for streaming or special cases)" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 34, + "filename": "https://jsr.io/@probitas/client-graphql/0.0.7/types.ts", + "line": 48, "col": 2, - "byteIndex": 782 + "byteIndex": 1342 }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "globalThis.Response", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "globalThis.Response" + } }, "typeParams": [] - }, + } + ], + "callSignatures": [], + "indexSignatures": [], + "typeParams": [ + { + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + } + ] + } + }, + { + "name": "HttpResponse", + "isDefault": false, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 9, + "col": 0, + "byteIndex": 277 + }, + "declarationKind": "export", + "jsDoc": { + "doc": "HTTP response with pre-loaded body for synchronous access.\n\nWraps Web standard Response, allowing body to be read synchronously\nand multiple times (unlike the streaming-based standard Response)." + }, + "kind": "interface", + "interfaceDef": { + "extends": [], + "constructors": [], + "methods": [ { - "name": "rowCountAtMost", + "name": "arrayBuffer", "jsDoc": { - "doc": "Verify maximum affected row count" + "doc": "Get body as ArrayBuffer (null if no body)" }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 37, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 36, "col": 2, - "byteIndex": 866 + "byteIndex": 937 }, - "params": [ - { - "kind": "identifier", - "name": "count", - "optional": false, - "tsType": { - "repr": "number", + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "ArrayBuffer", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ArrayBuffer" + } + }, + { + "repr": "null", "kind": "keyword", - "keyword": "number" + "keyword": "null" } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] }, "typeParams": [] }, { - "name": "dataContains", + "name": "blob", "jsDoc": { - "doc": "Verify a row contains the given subset" + "doc": "Get body as Blob (null if no body)" }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 40, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 39, "col": 2, - "byteIndex": 954 + "byteIndex": 1019 }, - "params": [ - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "Blob", "kind": "typeRef", "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "Partial" + "typeParams": null, + "typeName": "Blob" } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] }, "typeParams": [] }, { - "name": "dataMatch", + "name": "text", "jsDoc": { - "doc": "Custom row validation" + "doc": "Get body as text (null if no body)" }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 43, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 42, "col": 2, - "byteIndex": 1028 + "byteIndex": 1087 }, - "params": [ - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "rows", - "optional": false, - "tsType": { - "repr": "SqlRows", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - ], - "typeName": "SqlRows" - } - } - } - ], - "typeParams": [] - } - } - } - ], + "params": [], "optional": false, "returnType": { - "repr": "this", - "kind": "this", - "this": true + "repr": "", + "kind": "union", + "union": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] }, "typeParams": [] }, { - "name": "mapContains", + "name": "json", "jsDoc": { - "doc": "Verify mapped data contains the given subset" + "doc": "Get body as parsed JSON (null if no body)", + "tags": [ + { + "kind": "template", + "name": "T", + "doc": "- defaults to any for test convenience" + } + ] }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 46, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 49, "col": 2, - "byteIndex": 1139 + "byteIndex": 1266 }, - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", + "params": [], + "optional": false, + "returnType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "T", "kind": "typeRef", "typeRef": { - "typeParams": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - ], - "typeName": "Partial" + "typeParams": null, + "typeName": "T" } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" } - } - ], - "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + ] }, "typeParams": [ { - "name": "U" + "name": "T", + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } } ] - }, + } + ], + "properties": [ { - "name": "mapMatch", + "name": "type", "jsDoc": { - "doc": "Custom mapped data validation" + "doc": "Result type identifier" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 49, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 11, "col": 2, - "byteIndex": 1246 + "byteIndex": 343 }, - "params": [ - { - "kind": "identifier", - "name": "mapper", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "mapped", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - } - } - ], - "typeParams": [] - } - } + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "http", + "kind": "literal", + "literal": { + "kind": "string", + "string": "http" } - ], + }, + "typeParams": [] + }, + { + "name": "ok", + "jsDoc": { + "doc": "Whether the response was successful (status 200-299)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 16, + "col": 2, + "byteIndex": 489 + }, + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" }, - "typeParams": [ - { - "name": "U" - } - ] + "typeParams": [] }, { - "name": "asContains", + "name": "status", "jsDoc": { - "doc": "Verify instance contains the given subset" + "doc": "HTTP status code" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 52, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 19, "col": 2, - "byteIndex": 1374 + "byteIndex": 540 }, - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "subset", - "optional": false, - "tsType": { - "repr": "Partial", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - ], - "typeName": "Partial" - } - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" }, - "typeParams": [ - { - "name": "U" - } - ] + "typeParams": [] }, { - "name": "asMatch", + "name": "statusText", "jsDoc": { - "doc": "Custom instance validation" + "doc": "HTTP status text" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 55, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 22, "col": 2, - "byteIndex": 1479 + "byteIndex": 594 }, - "params": [ - { - "kind": "identifier", - "name": "ctor", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": true, - "tsType": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - }, - "params": [ - { - "kind": "identifier", - "name": "row", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "typeParams": [] - } - } - }, - { - "kind": "identifier", - "name": "matcher", - "optional": false, - "tsType": { - "repr": "", - "kind": "fnOrConstructor", - "fnOrConstructor": { - "constructor": false, - "tsType": { - "repr": "void", - "kind": "keyword", - "keyword": "void" - }, - "params": [ - { - "kind": "identifier", - "name": "instances", - "optional": false, - "tsType": { - "repr": "", - "kind": "array", - "array": { - "repr": "U", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "U" - } - } - } - } - ], - "typeParams": [] - } - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" }, - "typeParams": [ - { - "name": "U" - } - ] + "typeParams": [] }, { - "name": "lastInsertId", + "name": "headers", "jsDoc": { - "doc": "Verify exact lastInsertId" + "doc": "Response headers" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 58, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 25, "col": 2, - "byteIndex": 1595 + "byteIndex": 652 }, - "params": [ - { - "kind": "identifier", - "name": "expected", - "optional": false, - "tsType": { - "repr": "", - "kind": "union", - "union": [ - { - "repr": "bigint", - "kind": "keyword", - "keyword": "bigint" - }, - { - "repr": "string", - "kind": "keyword", - "keyword": "string" - } - ] - } + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "Headers", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Headers" } - ], + }, + "typeParams": [] + }, + { + "name": "url", + "jsDoc": { + "doc": "Request URL" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 28, + "col": 2, + "byteIndex": 703 + }, + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + "typeParams": [] + }, + { + "name": "body", + "jsDoc": { + "doc": "Response body as raw bytes (null if no body)" + }, + "location": { + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 33, + "col": 2, + "byteIndex": 849 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "Uint8Array", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "Uint8Array" + } + }, + { + "repr": "null", + "kind": "keyword", + "keyword": "null" + } + ] }, "typeParams": [] }, { - "name": "hasLastInsertId", + "name": "duration", "jsDoc": { - "doc": "Verify lastInsertId is present" + "doc": "Response time in milliseconds" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 61, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 54, "col": 2, - "byteIndex": 1685 + "byteIndex": 1371 }, "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" }, "typeParams": [] }, { - "name": "durationLessThan", + "name": "raw", "jsDoc": { - "doc": "Verify query duration is below threshold" + "doc": "Raw Web standard Response (for streaming or special cases)" }, - "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/client-sql/0.1.1/expectation.ts", - "line": 64, + "filename": "https://jsr.io/@probitas/client-http/0.0.7/types.ts", + "line": 57, "col": 2, - "byteIndex": 1763 + "byteIndex": 1469 }, - "params": [ - { - "kind": "identifier", - "name": "ms", - "optional": false, - "tsType": { - "repr": "number", - "kind": "keyword", - "keyword": "number" - } - } - ], + "params": [], + "readonly": true, + "computed": false, "optional": false, - "returnType": { - "repr": "this", - "kind": "this", - "this": true + "tsType": { + "repr": "globalThis.Response", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "globalThis.Response" + } }, "typeParams": [] } ], - "properties": [], "callSignatures": [], "indexSignatures": [], - "typeParams": [ - { - "name": "T" - } - ] + "typeParams": [] } }, { - "name": "SqsResult", + "name": "MongoResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/client-sqs/0.1.1/types.ts", - "line": 226, + "filename": "https://jsr.io/@probitas/client-mongodb/0.0.7/types.ts", + "line": 111, "col": 0, - "byteIndex": 5753 + "byteIndex": 2431 }, "declarationKind": "export", "jsDoc": { - "doc": "Union type of all SQS result types.\nUsed for type-safe handling in the unified expectSqsResult function." + "doc": "Union of all MongoDB result types.\nUsed by expectMongoResult to determine the appropriate expectation type." }, "kind": "typeAlias", "typeAliasDef": { @@ -3073,691 +2170,684 @@ "kind": "union", "union": [ { - "repr": "SqsSendResult", + "repr": "MongoFindResult", "kind": "typeRef", "typeRef": { - "typeParams": null, - "typeName": "SqsSendResult" + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "MongoFindResult" } }, { - "repr": "SqsSendBatchResult", + "repr": "MongoInsertOneResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqsSendBatchResult" + "typeName": "MongoInsertOneResult" } }, { - "repr": "SqsReceiveResult", + "repr": "MongoInsertManyResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqsReceiveResult" + "typeName": "MongoInsertManyResult" } }, { - "repr": "SqsDeleteResult", + "repr": "MongoUpdateResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqsDeleteResult" + "typeName": "MongoUpdateResult" } }, { - "repr": "SqsDeleteBatchResult", + "repr": "MongoDeleteResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqsDeleteBatchResult" + "typeName": "MongoDeleteResult" } }, { - "repr": "SqsEnsureQueueResult", + "repr": "MongoFindOneResult", "kind": "typeRef", "typeRef": { - "typeParams": null, - "typeName": "SqsEnsureQueueResult" + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "MongoFindOneResult" } }, { - "repr": "SqsDeleteQueueResult", + "repr": "MongoCountResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqsDeleteQueueResult" + "typeName": "MongoCountResult" } } ] }, - "typeParams": [] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 77, - "col": 0, - "byteIndex": 2049 - }, - "declarationKind": "export", - "jsDoc": { - "doc": "Unified expect function that dispatches to the appropriate expectXXXXX function\nbased on the type of the input object.\n", - "tags": [ - { - "kind": "example", - "doc": "```ts\n// HTTP response\nconst httpRes = await http.get(\"/users\");\nexpect(httpRes).ok().dataContains({ users: [] });\n\n// SQL query result\nconst sqlRes = await db.query(\"SELECT * FROM users\");\nexpect(sqlRes).ok().count(10);\n\n// Falls back to @std/expect for other values\nexpect(42).toBe(42);\n```" - } - ] - }, - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectHttpResponse", - "kind": "typeQuery", - "typeQuery": "expectHttpResponse" - } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, "typeParams": [ { "name": "T", - "constraint": { - "repr": "HttpResponse", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "HttpResponse" - } + "default": { + "repr": "any", + "kind": "keyword", + "keyword": "any" } } ] } }, { - "name": "expect", + "name": "RabbitMqResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 80, + "filename": "https://jsr.io/@probitas/client-rabbitmq/0.0.7/types.ts", + "line": 260, "col": 0, - "byteIndex": 2151 + "byteIndex": 5976 }, "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectConnectRpcResponse", - "kind": "typeQuery", - "typeQuery": "expectConnectRpcResponse" - } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "ConnectRpcResponse", + "jsDoc": { + "doc": "Union of all RabbitMQ result types.\nUsed by expectRabbitMqResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "RabbitMqPublishResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "ConnectRpcResponse" + "typeName": "RabbitMqPublishResult" } - } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 83, - "col": 0, - "byteIndex": 2265 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", + }, + { + "repr": "RabbitMqConsumeResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "T" + "typeName": "RabbitMqConsumeResult" } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectGraphqlResponse", - "kind": "typeQuery", - "typeQuery": "expectGraphqlResponse" + }, + { + "repr": "RabbitMqAckResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqAckResult" } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "GraphqlResponse", + }, + { + "repr": "RabbitMqQueueResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "GraphqlResponse" + "typeName": "RabbitMqQueueResult" + } + }, + { + "repr": "RabbitMqExchangeResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RabbitMqExchangeResult" } } - } - ] + ] + }, + "typeParams": [] } }, { - "name": "expect", + "name": "RedisResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 86, + "filename": "https://jsr.io/@probitas/client-redis/0.0.7/types.ts", + "line": 61, "col": 0, - "byteIndex": 2373 + "byteIndex": 1319 }, "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", + "jsDoc": { + "doc": "Union of all Redis result types.\nUsed by expectRedisResult to determine the appropriate expectation type." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "RedisCommonResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "RedisCommonResult" + } + }, + { + "repr": "RedisGetResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "T" + "typeName": "RedisGetResult" } - } - } - ], - "returnType": { - "repr": "SqlQueryResultExpectation", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "ExtractSqlRowType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + }, + { + "repr": "RedisSetResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisSetResult" + } + }, + { + "repr": "RedisCountResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "RedisCountResult" + } + }, + { + "repr": "RedisArrayResult", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" } - ], - "typeName": "ExtractSqlRowType" - } + } + ], + "typeName": "RedisArrayResult" } - ], - "typeName": "SqlQueryResultExpectation" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "SqlQueryResult", + }, + { + "repr": "RedisHashResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqlQueryResult" + "typeName": "RedisHashResult" } } + ] + }, + "typeParams": [ + { + "name": "T", + "default": { + "repr": "unknown", + "kind": "keyword", + "keyword": "unknown" + } } ] } }, { - "name": "expect", + "name": "SqlQueryResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 89, + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 38, "col": 0, - "byteIndex": 2487 + "byteIndex": 875 }, "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + "jsDoc": { + "doc": "SQL query result with rows, metadata, and transformation methods." + }, + "kind": "class", + "classDef": { + "isAbstract": false, + "constructors": [ { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ + "accessibility": null, + "hasBody": true, + "name": "constructor", + "params": [ { - "repr": "expectDenoKvResult", - "kind": "typeQuery", - "typeQuery": "expectDenoKvResult" + "kind": "identifier", + "name": "init", + "optional": false, + "tsType": { + "repr": "SqlQueryResultInit", + "kind": "typeRef", + "typeRef": { + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlQueryResultInit" + } + } } ], - "typeName": "ReturnType" + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 45, + "col": 2, + "byteIndex": 1089 + } } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + ], + "properties": [ { - "name": "T", - "constraint": { - "repr": "DenoKvResult", + "tsType": { + "repr": "boolean", + "kind": "keyword", + "keyword": "boolean" + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "ok", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 39, + "col": 2, + "byteIndex": 932 + } + }, + { + "tsType": { + "repr": "SqlRows", "kind": "typeRef", "typeRef": { - "typeParams": null, - "typeName": "DenoKvResult" + "typeParams": [ + { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + ], + "typeName": "SqlRows" } + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "rows", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 40, + "col": 2, + "byteIndex": 956 } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 92, - "col": 0, - "byteIndex": 2592 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + }, { - "kind": "identifier", - "name": "value", + "tsType": { + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "readonly": true, + "accessibility": null, "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "rowCount", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 41, + "col": 2, + "byteIndex": 985 + } + }, + { "tsType": { - "repr": "T", + "repr": "number", + "kind": "keyword", + "keyword": "number" + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "duration", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 42, + "col": 2, + "byteIndex": 1014 + } + }, + { + "tsType": { + "repr": "SqlQueryResultMetadata", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "T" + "typeName": "SqlQueryResultMetadata" } + }, + "readonly": true, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "metadata", + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 43, + "col": 2, + "byteIndex": 1043 } } ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectRedisResult", - "kind": "typeQuery", - "typeQuery": "expectRedisResult" - } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ + "indexSignatures": [], + "methods": [ { - "name": "T", - "constraint": { - "repr": "RedisResult", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "RedisResult" - } + "jsDoc": { + "doc": "Map rows to a new type." + }, + "accessibility": null, + "optional": false, + "isAbstract": false, + "isStatic": false, + "name": "map", + "kind": "method", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "mapper", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": false, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + } + ], + "returnType": { + "repr": "", + "kind": "array", + "array": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "U" + } + ] + }, + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 56, + "col": 2, + "byteIndex": 1348 } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 95, - "col": 0, - "byteIndex": 2695 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ + }, { - "kind": "identifier", - "name": "value", + "jsDoc": { + "doc": "Create class instances from rows." + }, + "accessibility": null, "optional": false, - "tsType": { - "repr": "T", - "kind": "typeRef", - "typeRef": { - "typeParams": null, - "typeName": "T" - } + "isAbstract": false, + "isStatic": false, + "name": "as", + "kind": "method", + "functionDef": { + "params": [ + { + "kind": "identifier", + "name": "ctor", + "optional": false, + "tsType": { + "repr": "", + "kind": "fnOrConstructor", + "fnOrConstructor": { + "constructor": true, + "tsType": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + }, + "params": [ + { + "kind": "identifier", + "name": "row", + "optional": false, + "tsType": { + "repr": "T", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "T" + } + } + } + ], + "typeParams": [] + } + } + } + ], + "returnType": { + "repr": "", + "kind": "array", + "array": { + "repr": "U", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "U" + } + } + }, + "hasBody": true, + "isAsync": false, + "isGenerator": false, + "typeParams": [ + { + "name": "U" + } + ] + }, + "location": { + "filename": "https://jsr.io/@probitas/client-sql/0.0.6/result.ts", + "line": 67, + "col": 2, + "byteIndex": 1563 } } ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectMongoResult", - "kind": "typeQuery", - "typeQuery": "expectMongoResult" - } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, + "extends": null, + "implements": [], "typeParams": [ { "name": "T", - "constraint": { - "repr": "MongoResult", + "default": { + "repr": "Record", "kind": "typeRef", "typeRef": { - "typeParams": null, - "typeName": "MongoResult" + "typeParams": [ + { + "repr": "string", + "kind": "keyword", + "keyword": "string" + }, + { + "repr": "any", + "kind": "keyword", + "keyword": "any" + } + ], + "typeName": "Record" } } } - ] + ], + "superTypeParams": [] } }, { - "name": "expect", + "name": "SqsResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 98, + "filename": "https://jsr.io/@probitas/client-sqs/0.0.7/types.ts", + "line": 198, "col": 0, - "byteIndex": 2798 + "byteIndex": 5081 }, "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", + "jsDoc": { + "doc": "Union type of all SQS result types.\nUsed for type-safe handling in the unified expectSqsResult function." + }, + "kind": "typeAlias", + "typeAliasDef": { + "tsType": { + "repr": "", + "kind": "union", + "union": [ + { + "repr": "SqsSendResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "T" - } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectRabbitMqResult", - "kind": "typeQuery", - "typeQuery": "expectRabbitMqResult" + "typeName": "SqsSendResult" } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "RabbitMqResult", + }, + { + "repr": "SqsSendBatchResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "RabbitMqResult" + "typeName": "SqsSendBatchResult" } - } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 101, - "col": 0, - "byteIndex": 2907 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", + }, + { + "repr": "SqsReceiveResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "T" + "typeName": "SqsReceiveResult" } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectSqsResult", - "kind": "typeQuery", - "typeQuery": "expectSqsResult" + }, + { + "repr": "SqsDeleteResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsDeleteResult" } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T", - "constraint": { - "repr": "SqsResult", + }, + { + "repr": "SqsDeleteBatchResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "SqsResult" + "typeName": "SqsDeleteBatchResult" } - } - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 104, - "col": 0, - "byteIndex": 3006 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "T", + }, + { + "repr": "SqsEnsureQueueResult", "kind": "typeRef", "typeRef": { "typeParams": null, - "typeName": "T" + "typeName": "SqsEnsureQueueResult" } - } - } - ], - "returnType": { - "repr": "ReturnType", - "kind": "typeRef", - "typeRef": { - "typeParams": [ - { - "repr": "expectStd", - "kind": "typeQuery", - "typeQuery": "expectStd" + }, + { + "repr": "SqsDeleteQueueResult", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "SqsDeleteQueueResult" } - ], - "typeName": "ReturnType" - } - }, - "isAsync": false, - "isGenerator": false, - "typeParams": [ - { - "name": "T" - } - ] - } - }, - { - "name": "expect", - "isDefault": false, - "location": { - "filename": "https://jsr.io/@probitas/probitas/0.3.5/expect.ts", - "line": 105, - "col": 0, - "byteIndex": 3073 - }, - "declarationKind": "export", - "kind": "function", - "functionDef": { - "params": [ - { - "kind": "identifier", - "name": "value", - "optional": false, - "tsType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" } - } - ], - "returnType": { - "repr": "unknown", - "kind": "keyword", - "keyword": "unknown" + ] }, - "hasBody": true, - "isAsync": false, - "isGenerator": false, "typeParams": [] } }, @@ -13566,5 +12656,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:35.673Z" + "generatedAt": "2025-12-09T20:05:16.153Z" } diff --git a/data/api/reporter.json b/data/api/reporter.json index d3ac121..5713243 100644 --- a/data/api/reporter.json +++ b/data/api/reporter.json @@ -1,14 +1,14 @@ { "name": "reporter", "specifier": "@probitas/reporter", - "version": "0.2.6", + "version": "0.3.2", "moduleDoc": "Test result reporting and formatting for Probitas.\n\nThis package provides multiple reporter implementations for formatting and\ndisplaying test execution results. All reporters implement the {@linkcode Reporter}\ninterface from `@probitas/runner` and can be passed to `ScenarioRunner.run()`.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/runner](https://jsr.io/@probitas/runner) | Uses reporters for output |\n| [@probitas/cli](https://jsr.io/@probitas/cli) | CLI that uses these reporters |\n| [@probitas/logger](https://jsr.io/@probitas/logger) | Logging used during execution |\n\n## Available Reporters\n\n- {@linkcode ListReporter} - Detailed hierarchical output showing scenario and step names\n- {@linkcode DotReporter} - Compact single-character output (`.` for pass, `F` for fail)\n- {@linkcode TapReporter} - TAP (Test Anything Protocol) format for CI integration\n- {@linkcode JsonReporter} - JSON output for machine-readable results\n\n## Base Class\n\n- {@linkcode BaseReporter} - Abstract base class with common functionality:\n - Output stream management (defaults to stderr)\n - Serialized write operations for concurrent scenarios\n - Customizable color themes (use `noColor` option to disable)\n\n## Theming\n\n- {@linkcode Theme} - Interface defining semantic color functions\n- {@linkcode defaultTheme} - Default colored theme\n- {@linkcode noColorTheme} - Theme without ANSI color codes\n\n## Configuration Types\n\n- {@linkcode ReporterOptions} - Options for reporter initialization\n- {@linkcode ThemeFunction} - Type for theme color functions\n", "exports": [ { "name": "TAPReporterOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/tap_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/tap_reporter.ts", "line": 15, "col": 0, "byteIndex": 457 @@ -38,7 +38,7 @@ "name": "TAPReporter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/tap_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/tap_reporter.ts", "line": 18, "col": 0, "byteIndex": 520 @@ -73,7 +73,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/tap_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/tap_reporter.ts", "line": 24, "col": 2, "byteIndex": 685 @@ -137,7 +137,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/tap_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/tap_reporter.ts", "line": 33, "col": 2, "byteIndex": 911 @@ -232,7 +232,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/tap_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/tap_reporter.ts", "line": 59, "col": 2, "byteIndex": 1715 @@ -296,7 +296,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/tap_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/tap_reporter.ts", "line": 103, "col": 2, "byteIndex": 3036 @@ -322,10 +322,10 @@ "name": "ListReporterOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/list_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/list_reporter.ts", "line": 36, "col": 0, - "byteIndex": 970 + "byteIndex": 990 }, "declarationKind": "export", "jsDoc": { @@ -352,10 +352,10 @@ "doc": "Custom theme for styling output.\nIf not provided, uses defaultTheme (or noColorTheme if Deno.noColor is set)." }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/list_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/list_reporter.ts", "line": 41, "col": 2, - "byteIndex": 1165 + "byteIndex": 1185 }, "params": [], "computed": false, @@ -380,10 +380,10 @@ "name": "ListReporter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/list_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/list_reporter.ts", "line": 75, "col": 0, - "byteIndex": 2120 + "byteIndex": 2140 }, "declarationKind": "export", "jsDoc": { @@ -434,10 +434,10 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/list_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/list_reporter.ts", "line": 84, "col": 2, - "byteIndex": 2315 + "byteIndex": 2335 } } ], @@ -468,7 +468,7 @@ }, { "kind": "identifier", - "name": "_step", + "name": "step", "optional": false, "tsType": { "repr": "StepDefinition", @@ -513,10 +513,10 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/list_reporter.ts", - "line": 105, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/list_reporter.ts", + "line": 127, "col": 2, - "byteIndex": 2847 + "byteIndex": 3427 } }, { @@ -540,7 +540,7 @@ "params": [ { "kind": "identifier", - "name": "_scenarios", + "name": "scenarios", "optional": false, "tsType": { "repr": "", @@ -596,10 +596,10 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/list_reporter.ts", - "line": 136, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/list_reporter.ts", + "line": 182, "col": 2, - "byteIndex": 3664 + "byteIndex": 5300 } } ], @@ -622,7 +622,7 @@ "name": "JSONReporterOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 19, "col": 0, "byteIndex": 427 @@ -652,7 +652,7 @@ "name": "JSONReporter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 21, "col": 0, "byteIndex": 490 @@ -687,7 +687,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 24, "col": 2, "byteIndex": 560 @@ -751,7 +751,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 32, "col": 2, "byteIndex": 758 @@ -824,7 +824,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 41, "col": 2, "byteIndex": 921 @@ -873,7 +873,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 52, "col": 2, "byteIndex": 1117 @@ -935,7 +935,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 59, "col": 2, "byteIndex": 1268 @@ -997,7 +997,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 70, "col": 2, "byteIndex": 1466 @@ -1072,7 +1072,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/json_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/json_reporter.ts", "line": 81, "col": 2, "byteIndex": 1656 @@ -1098,7 +1098,7 @@ "name": "DotReporterOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/dot_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/dot_reporter.ts", "line": 16, "col": 0, "byteIndex": 469 @@ -1122,7 +1122,7 @@ { "name": "theme", "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/dot_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/dot_reporter.ts", "line": 17, "col": 2, "byteIndex": 531 @@ -1150,7 +1150,7 @@ "name": "DotReporter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/dot_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/dot_reporter.ts", "line": 20, "col": 0, "byteIndex": 549 @@ -1185,7 +1185,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/dot_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/dot_reporter.ts", "line": 24, "col": 2, "byteIndex": 635 @@ -1251,7 +1251,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/dot_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/dot_reporter.ts", "line": 39, "col": 2, "byteIndex": 1032 @@ -1324,7 +1324,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/dot_reporter.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/dot_reporter.ts", "line": 52, "col": 2, "byteIndex": 1429 @@ -1350,10 +1350,10 @@ "name": "ThemeFunction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 22, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 28, "col": 0, - "byteIndex": 497 + "byteIndex": 706 }, "declarationKind": "export", "jsDoc": { @@ -1399,10 +1399,10 @@ "name": "Theme", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 47, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 53, "col": 0, - "byteIndex": 1267 + "byteIndex": 1476 }, "declarationKind": "export", "jsDoc": { @@ -1434,10 +1434,10 @@ "doc": "Style for successful/passing states" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 49, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 55, "col": 2, - "byteIndex": 1339 + "byteIndex": 1548 }, "params": [], "readonly": true, @@ -1459,10 +1459,10 @@ "doc": "Style for failed/error states" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 52, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 58, "col": 2, - "byteIndex": 1414 + "byteIndex": 1623 }, "params": [], "readonly": true, @@ -1484,10 +1484,10 @@ "doc": "Style for skipped states" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 55, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 61, "col": 2, - "byteIndex": 1484 + "byteIndex": 1693 }, "params": [], "readonly": true, @@ -1509,10 +1509,10 @@ "doc": "Style for secondary/muted information" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 58, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 64, "col": 2, - "byteIndex": 1564 + "byteIndex": 1773 }, "params": [], "readonly": true, @@ -1534,10 +1534,10 @@ "doc": "Style for titles and headers" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 61, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 67, "col": 2, - "byteIndex": 1634 + "byteIndex": 1843 }, "params": [], "readonly": true, @@ -1559,10 +1559,10 @@ "doc": "Style for informational messages" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 64, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 70, "col": 2, - "byteIndex": 1710 + "byteIndex": 1919 }, "params": [], "readonly": true, @@ -1584,10 +1584,35 @@ "doc": "Style for warnings" }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 67, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 73, + "col": 2, + "byteIndex": 1980 + }, + "params": [], + "readonly": true, + "computed": false, + "optional": false, + "tsType": { + "repr": "ThemeFunction", + "kind": "typeRef", + "typeRef": { + "typeParams": null, + "typeName": "ThemeFunction" + } + }, + "typeParams": [] + }, + { + "name": "lightGray", + "jsDoc": { + "doc": "Style for light gray text (used for resource/setup step titles)" + }, + "location": { + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 76, "col": 2, - "byteIndex": 1771 + "byteIndex": 2089 }, "params": [], "readonly": true, @@ -1613,10 +1638,10 @@ "name": "colorTheme", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 73, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 82, "col": 13, - "byteIndex": 1857 + "byteIndex": 2177 }, "declarationKind": "export", "jsDoc": { @@ -1639,10 +1664,10 @@ "name": "noColorTheme", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 86, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 96, "col": 13, - "byteIndex": 2055 + "byteIndex": 2399 }, "declarationKind": "export", "jsDoc": { @@ -1665,10 +1690,10 @@ "name": "defaultTheme", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/theme.ts", - "line": 96, + "filename": "https://jsr.io/@probitas/reporter/0.3.2/theme.ts", + "line": 107, "col": 13, - "byteIndex": 2273 + "byteIndex": 2646 }, "declarationKind": "export", "kind": "variable", @@ -1681,7 +1706,7 @@ "name": "ReporterOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/types.ts", "line": 21, "col": 0, "byteIndex": 417 @@ -1718,7 +1743,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/types.ts", "line": 27, "col": 2, "byteIndex": 546 @@ -1743,7 +1768,7 @@ "doc": "Custom theme for styling output.\n\nIf not provided, uses {@linkcode defaultTheme} (or {@linkcode noColorTheme}\nif `Deno.noColor` is true)." }, "location": { - "filename": "https://jsr.io/@probitas/reporter/0.2.6/types.ts", + "filename": "https://jsr.io/@probitas/reporter/0.3.2/types.ts", "line": 35, "col": 2, "byteIndex": 752 @@ -1769,5 +1794,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:35.819Z" + "generatedAt": "2025-12-09T20:05:17.016Z" } diff --git a/data/api/runner.json b/data/api/runner.json index dcc76a6..824aa35 100644 --- a/data/api/runner.json +++ b/data/api/runner.json @@ -1,14 +1,14 @@ { "name": "runner", "specifier": "@probitas/runner", - "version": "0.2.6", + "version": "0.2.7", "moduleDoc": "Test execution and orchestration engine for Probitas scenarios.\n\nThis package provides the {@linkcode ScenarioRunner} class that executes\nscenario definitions built with `@probitas/builder`. It handles the complete\ntest lifecycle including resource initialization, setup/cleanup hooks,\nstep execution with retry logic, and result reporting.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/builder](https://jsr.io/@probitas/builder) | Build scenario definitions to execute |\n| [@probitas/scenario](https://jsr.io/@probitas/scenario) | Core type definitions |\n| [@probitas/reporter](https://jsr.io/@probitas/reporter) | Output formatters for results |\n| [@probitas/cli](https://jsr.io/@probitas/cli) | CLI that uses this runner |\n\n## Key Features\n\n- **Concurrent execution**: Run multiple scenarios in parallel with configurable concurrency\n- **Failure control**: Stop after N failures or continue through all tests\n- **Resource lifecycle**: Automatic initialization and disposal of resources\n- **Retry logic**: Built-in retry with linear/exponential backoff strategies\n- **Reporter integration**: Pluggable reporters for custom output formatting\n- **Abort support**: Cancel running tests via AbortSignal\n\n## Core Exports\n\n- {@linkcode ScenarioRunner} - Main class for executing scenarios\n- {@linkcode Skip} - Exception class to skip scenarios conditionally\n- {@linkcode Reporter} - Interface for observing test execution events\n- {@linkcode RunOptions} - Configuration options for test runs\n- {@linkcode RunResult} - Aggregated results from a test run\n- {@linkcode ScenarioResult} - Result from executing a single scenario\n- {@linkcode StepResult} - Result from executing a single step\n\n## Error Types\n\n- {@linkcode TimeoutError} - Thrown when a step exceeds its timeout\n- {@linkcode RetryExhaustedError} - Thrown when all retry attempts fail\n", "exports": [ { "name": "Skip", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/skip.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/skip.ts", "line": 62, "col": 0, "byteIndex": 1603 @@ -66,7 +66,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/skip.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/skip.ts", "line": 84, "col": 2, "byteIndex": 2304 @@ -90,7 +90,7 @@ "isStatic": false, "name": "reason", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/skip.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/skip.ts", "line": 70, "col": 2, "byteIndex": 1857 @@ -109,7 +109,7 @@ "name": "Runner", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/runner.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/runner.ts", "line": 33, "col": 0, "byteIndex": 861 @@ -159,7 +159,7 @@ } ], "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/runner.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/runner.ts", "line": 39, "col": 2, "byteIndex": 1014 @@ -258,7 +258,7 @@ "typeParams": [] }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/runner.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/runner.ts", "line": 55, "col": 2, "byteIndex": 1647 @@ -275,7 +275,7 @@ "name": "Reporter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 6, "col": 0, "byteIndex": 231 @@ -293,7 +293,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 10, "col": 2, "byteIndex": 341 @@ -359,7 +359,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 15, "col": 2, "byteIndex": 469 @@ -438,7 +438,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 23, "col": 2, "byteIndex": 637 @@ -493,7 +493,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 28, "col": 2, "byteIndex": 758 @@ -561,7 +561,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 36, "col": 2, "byteIndex": 907 @@ -629,7 +629,7 @@ }, "kind": "method", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/reporter.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/reporter.ts", "line": 48, "col": 2, "byteIndex": 1283 @@ -714,7 +714,7 @@ "name": "RunResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 33, "col": 0, "byteIndex": 741 @@ -741,7 +741,7 @@ "doc": "Total number of scenarios in the run" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 35, "col": 2, "byteIndex": 818 @@ -763,7 +763,7 @@ "doc": "Number of scenarios that passed" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 38, "col": 2, "byteIndex": 886 @@ -785,7 +785,7 @@ "doc": "Number of scenarios that failed" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 41, "col": 2, "byteIndex": 955 @@ -807,7 +807,7 @@ "doc": "Number of scenarios that were skipped" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 44, "col": 2, "byteIndex": 1030 @@ -829,7 +829,7 @@ "doc": "Total execution time in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 47, "col": 2, "byteIndex": 1105 @@ -851,7 +851,7 @@ "doc": "Detailed result for each scenario" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 50, "col": 2, "byteIndex": 1178 @@ -891,7 +891,7 @@ "name": "RunFilter", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 73, "col": 0, "byteIndex": 1704 @@ -922,7 +922,7 @@ "doc": "Tags that scenarios must have (all must match)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 75, "col": 2, "byteIndex": 1791 @@ -955,7 +955,7 @@ "doc": "Pattern to match against scenario name" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 78, "col": 2, "byteIndex": 1877 @@ -995,7 +995,7 @@ "name": "RunOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 104, "col": 0, "byteIndex": 2499 @@ -1026,7 +1026,7 @@ "doc": "Maximum number of scenarios to run in parallel.\n\n- `undefined` or `0`: Unlimited (all scenarios run in parallel)\n- `1`: Sequential execution (one at a time)\n- `n`: Run up to n scenarios concurrently" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 112, "col": 2, "byteIndex": 2766 @@ -1048,7 +1048,7 @@ "doc": "Maximum number of failures before stopping the run.\n\n- `undefined`: Continue all scenarios regardless of failures\n- `1`: Fail-fast (stop immediately on first failure)\n- `n`: Stop after n failures" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 121, "col": 2, "byteIndex": 3035 @@ -1070,7 +1070,7 @@ "doc": "Abort signal for external cancellation.\n\nWhen aborted, running scenarios complete but no new ones start." }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/run.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/run.ts", "line": 128, "col": 2, "byteIndex": 3200 @@ -1099,7 +1099,7 @@ "name": "ScenarioContext", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 33, "col": 0, "byteIndex": 965 @@ -1131,7 +1131,7 @@ "doc": "Human-readable scenario name" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 35, "col": 2, "byteIndex": 1040 @@ -1150,7 +1150,7 @@ { "name": "tags", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 37, "col": 2, "byteIndex": 1066 @@ -1183,7 +1183,7 @@ "doc": "Array of all exec step results so far" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 40, "col": 2, "byteIndex": 1150 @@ -1209,7 +1209,7 @@ "doc": "Shared key-value storage for cross-step communication" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 43, "col": 2, "byteIndex": 1245 @@ -1245,7 +1245,7 @@ "doc": "Named resources registered with `.resource()`" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 46, "col": 2, "byteIndex": 1341 @@ -1281,7 +1281,7 @@ "doc": "Abort signal (fires on timeout or manual cancellation)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 49, "col": 2, "byteIndex": 1453 @@ -1310,7 +1310,7 @@ "name": "ScenarioResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 80, "col": 0, "byteIndex": 2230 @@ -1345,7 +1345,7 @@ { "name": "status", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 81, "col": 2, "byteIndex": 2263 @@ -1370,7 +1370,7 @@ "doc": "Scenario metadata (serializable, without functions)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 84, "col": 2, "byteIndex": 2354 @@ -1395,7 +1395,7 @@ "doc": "Total execution time in milliseconds (including setup/teardown)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 87, "col": 2, "byteIndex": 2467 @@ -1417,7 +1417,7 @@ "doc": "Results from each executed step" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 90, "col": 2, "byteIndex": 2538 @@ -1465,7 +1465,7 @@ "doc": "Overall execution outcome" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 93, "col": 2, "byteIndex": 2620 @@ -1504,7 +1504,7 @@ "doc": "Scenario metadata (serializable, without functions)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 96, "col": 2, "byteIndex": 2723 @@ -1529,7 +1529,7 @@ "doc": "Total execution time in milliseconds (including setup/teardown)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 99, "col": 2, "byteIndex": 2836 @@ -1551,7 +1551,7 @@ "doc": "Results from each executed step" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 102, "col": 2, "byteIndex": 2907 @@ -1587,7 +1587,7 @@ "doc": "Error if failed during resource/setup/teardown (not step errors)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/scenario.ts", "line": 105, "col": 2, "byteIndex": 3023 @@ -1617,7 +1617,7 @@ "name": "StepResult", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 54, "col": 0, "byteIndex": 1463 @@ -1656,7 +1656,7 @@ { "name": "status", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 55, "col": 2, "byteIndex": 1492 @@ -1681,7 +1681,7 @@ "doc": "Step metadata (serializable, without function)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 58, "col": 2, "byteIndex": 1578 @@ -1706,7 +1706,7 @@ "doc": "Execution time in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 61, "col": 2, "byteIndex": 1654 @@ -1728,7 +1728,7 @@ "doc": "Return value from step function (only if status is \"passed\")" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 64, "col": 2, "byteIndex": 1754 @@ -1759,7 +1759,7 @@ { "name": "status", "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 66, "col": 2, "byteIndex": 1787 @@ -1798,7 +1798,7 @@ "doc": "Step metadata (serializable, without function)" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 69, "col": 2, "byteIndex": 1885 @@ -1823,7 +1823,7 @@ "doc": "Execution time in milliseconds" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 72, "col": 2, "byteIndex": 1961 @@ -1845,7 +1845,7 @@ "doc": "Error that caused failure (only if status is \"failed\")" }, "location": { - "filename": "https://jsr.io/@probitas/runner/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/runner/0.2.7/types/step.ts", "line": 75, "col": 2, "byteIndex": 2055 @@ -1872,5 +1872,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:35.962Z" + "generatedAt": "2025-12-09T20:05:17.108Z" } diff --git a/data/api/scenario.json b/data/api/scenario.json index 3cf1dcd..f874719 100644 --- a/data/api/scenario.json +++ b/data/api/scenario.json @@ -1,14 +1,14 @@ { "name": "scenario", "specifier": "@probitas/scenario", - "version": "0.2.6", + "version": "0.2.7", "moduleDoc": "Core scenario definition types and utilities.\n\nThis package provides the fundamental type definitions that represent scenario\nstructures, along with utilities for loading scenario files and filtering\nscenarios using selectors. It serves as the foundation layer that other\nProbitas packages build upon.\n\n## Links\n\n- [GitHub Repository](https://github.com/jsr-probitas/probitas)\n- [@probitas/probitas](https://jsr.io/@probitas/probitas) - Main package (recommended for most users)\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@probitas/builder](https://jsr.io/@probitas/builder) | Uses these types to build scenarios |\n| [@probitas/runner](https://jsr.io/@probitas/runner) | Executes scenario definitions |\n| [@probitas/discover](https://jsr.io/@probitas/discover) | Discovers scenario files to load |\n\n## Type Definitions\n\nThe type system is designed around immutable data structures:\n\n- {@linkcode ScenarioDefinition} - Complete scenario with name, options, and entries\n- {@linkcode StepDefinition} - Individual step with function, options, and source\n- {@linkcode SetupDefinition} - Setup hook with cleanup function support\n- {@linkcode ResourceDefinition} - Named resource with fn function\n- {@linkcode StepContext} - Context object passed to all functions\n- {@linkcode Entry} - Discriminated union of step, setup, or resource\n\n## Options Types\n\n- {@linkcode ScenarioOptions} - Scenario-level configuration (tags, default step options)\n- {@linkcode StepOptions} - Step execution settings (timeout, retry strategy)\n- {@linkcode Source} - File and line number for error reporting\n\n## Function Types\n\n- {@linkcode StepFunction} - Signature for step execution functions\n- {@linkcode SetupFunction} - Signature for setup hooks (returns cleanup)\n- {@linkcode ResourceFunction} - Signature for resource creation functions\n- {@linkcode SetupCleanup} - Return type of setup functions\n\n## Loader Utilities\n\n- {@linkcode loadScenarios} - Load scenario definitions from file paths\n- {@linkcode LoadScenariosOptions} - Options for the loader\n\n## Selector Utilities\n\nSelectors provide powerful filtering capabilities:\n\n- {@linkcode applySelectors} - Filter scenarios using selector strings\n- {@linkcode parseSelector} - Parse selector string into Selector objects\n- {@linkcode matchesSelector} - Check if a scenario matches a single selector\n- {@linkcode Selector} - Parsed selector object\n- {@linkcode SelectorType} - Type of selector (\"tag\" or \"name\")\n", "exports": [ { "name": "ScenarioOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 22, "col": 0, "byteIndex": 529 @@ -39,7 +39,7 @@ "doc": "Tags for filtering and organizing scenarios.\n\nTags can be used with the CLI to run specific subsets:\n```bash\nprobitas run -s \"tag:api\" # Run scenarios tagged \"api\"\nprobitas run -s \"tag:api,tag:fast\" # Run scenarios with both tags\nprobitas run -s \"!tag:slow\" # Exclude slow scenarios\n```" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 33, "col": 2, "byteIndex": 923 @@ -72,7 +72,7 @@ "doc": "Default options applied to all steps in this scenario.\n\nIndividual steps can override these defaults by specifying\ntheir own options in the `.step()` call." }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 41, "col": 2, "byteIndex": 1148 @@ -101,7 +101,7 @@ "name": "ScenarioDefinition", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 75, "col": 0, "byteIndex": 2320 @@ -132,7 +132,7 @@ "doc": "Human-readable scenario name (displayed in reports and CLI)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 77, "col": 2, "byteIndex": 2429 @@ -154,7 +154,7 @@ "doc": "Tags for filtering and organizing scenarios.\n\nTags can be used with the CLI to run specific subsets:\n```bash\nprobitas run -s \"tag:api\" # Run scenarios tagged \"api\"\nprobitas run -s \"tag:api,tag:fast\" # Run scenarios with both tags\nprobitas run -s \"!tag:slow\" # Exclude slow scenarios\n```" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 89, "col": 2, "byteIndex": 2812 @@ -187,7 +187,7 @@ "doc": "Ordered sequence of entries (resources → setups → steps)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 92, "col": 2, "byteIndex": 2919 @@ -223,7 +223,7 @@ "doc": "Source source where the scenario was defined" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 95, "col": 2, "byteIndex": 3019 @@ -252,7 +252,7 @@ "name": "ScenarioMetadata", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 116, "col": 0, "byteIndex": 3575 @@ -279,7 +279,7 @@ "doc": "Scenario name" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 118, "col": 2, "byteIndex": 3636 @@ -301,7 +301,7 @@ "doc": "Tags for filtering and organizing scenarios.\n\nTags can be used with the CLI to run specific subsets:\n```bash\nprobitas run -s \"tag:api\" # Run scenarios tagged \"api\"\nprobitas run -s \"tag:api,tag:fast\" # Run scenarios with both tags\nprobitas run -s \"!tag:slow\" # Exclude slow scenarios\n```" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 130, "col": 2, "byteIndex": 4019 @@ -334,7 +334,7 @@ "doc": "Entry metadata (functions omitted for serialization)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 133, "col": 2, "byteIndex": 4118 @@ -370,7 +370,7 @@ "doc": "Source source where the scenario was defined" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/scenario.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/scenario.ts", "line": 136, "col": 2, "byteIndex": 4216 @@ -399,7 +399,7 @@ "name": "Source", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/source.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/source.ts", "line": 16, "col": 0, "byteIndex": 350 @@ -426,7 +426,7 @@ "doc": "Absolute file path where the element was defined" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/source.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/source.ts", "line": 18, "col": 2, "byteIndex": 436 @@ -448,7 +448,7 @@ "doc": "Line number in the file (1-indexed)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/source.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/source.ts", "line": 21, "col": 2, "byteIndex": 507 @@ -470,7 +470,7 @@ "doc": "Column number in the file (1-indexed)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/source.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/source.ts", "line": 24, "col": 2, "byteIndex": 581 @@ -496,7 +496,7 @@ "name": "StepOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 22, "col": 0, "byteIndex": 546 @@ -523,7 +523,7 @@ "doc": "Maximum execution time in milliseconds.\n\nIf the step takes longer, a {@linkcode TimeoutError} is thrown.\nDefault: 30000 (30 seconds)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 29, "col": 2, "byteIndex": 743 @@ -545,7 +545,7 @@ "doc": "Retry configuration for handling transient failures" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 32, "col": 2, "byteIndex": 834 @@ -567,7 +567,7 @@ "doc": "Maximum number of execution attempts.\n\n- `1` = No retry (fail immediately on error)\n- `2` = One retry (2 total attempts)\n- `n` = n-1 retries (n total attempts)\n\nDefault: 1 (no retry)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 42, "col": 4, "byteIndex": 1103 @@ -589,7 +589,7 @@ "doc": "Backoff strategy for delay between retry attempts.\n\n- `\"linear\"`: Fixed 1 second delay between attempts\n- `\"exponential\"`: Doubles delay each attempt (1s, 2s, 4s, 8s...)\n\nDefault: \"linear\"" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 52, "col": 4, "byteIndex": 1384 @@ -639,7 +639,7 @@ "name": "SetupCleanup", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 89, "col": 0, "byteIndex": 2408 @@ -732,7 +732,7 @@ "name": "StepContext", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 128, "col": 0, "byteIndex": 3462 @@ -763,7 +763,7 @@ "doc": "Current step index (0-based).\n\nUseful for conditional logic based on position in the scenario." }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 134, "col": 2, "byteIndex": 3616 @@ -785,7 +785,7 @@ "doc": "Result from the previous step.\n\nFully typed based on what the previous step returned.\nFor the first step, this is `unknown`." }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 142, "col": 2, "byteIndex": 3799 @@ -807,7 +807,7 @@ "doc": "All accumulated results as a typed tuple.\n\nAllows accessing any previous result by index:\n```ts\nctx.results[0] // First step's result\nctx.results[1] // Second step's result\n```" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 153, "col": 2, "byteIndex": 4055 @@ -840,7 +840,7 @@ "doc": "Shared key-value storage for cross-step communication.\n\nUse this for data that doesn't fit the step result pattern,\nsuch as metadata or configuration set during setup." }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 161, "col": 2, "byteIndex": 4295 @@ -876,7 +876,7 @@ "doc": "Named resources registered with `.resource()`.\n\nResources are typed based on their registration:\n```ts\n.resource(\"db\", () => createDbConnection())\n.step((ctx) => ctx.resources.db.query(...))\n```" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 172, "col": 2, "byteIndex": 4577 @@ -912,7 +912,7 @@ "doc": "Abort signal that fires on timeout or manual cancellation.\n\nPass this to fetch() or other APIs that support AbortSignal\nfor proper timeout handling." }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 180, "col": 2, "byteIndex": 4805 @@ -941,7 +941,7 @@ "name": "StepFunction", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 206, "col": 0, "byteIndex": 5447 @@ -1037,7 +1037,7 @@ "name": "StepDefinition", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 220, "col": 0, "byteIndex": 5910 @@ -1066,7 +1066,7 @@ { "name": "kind", "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 221, "col": 2, "byteIndex": 5959 @@ -1113,7 +1113,7 @@ "doc": "Human-readable step name (displayed in reports)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 224, "col": 2, "byteIndex": 6065 @@ -1135,7 +1135,7 @@ "doc": "Step function to execute" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 227, "col": 2, "byteIndex": 6125 @@ -1169,7 +1169,7 @@ "doc": "Maximum execution time in milliseconds.\n\nIf the step takes longer, a {@linkcode TimeoutError} is thrown.\nDefault: 30000 (30 seconds)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 235, "col": 2, "byteIndex": 6322 @@ -1191,7 +1191,7 @@ "doc": "Retry configuration for handling transient failures" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 238, "col": 2, "byteIndex": 6412 @@ -1213,7 +1213,7 @@ "doc": "Maximum number of execution attempts.\n\n- `1` = No retry (fail immediately on error)\n- `2` = One retry (2 total attempts)\n- `n` = n-1 retries (n total attempts)\n\nDefault: 1 (no retry)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 248, "col": 4, "byteIndex": 6680 @@ -1235,7 +1235,7 @@ "doc": "Backoff strategy for delay between retry attempts.\n\n- `\"linear\"`: Fixed 1 second delay between attempts\n- `\"exponential\"`: Doubles delay each attempt (1s, 2s, 4s, 8s...)\n\nDefault: \"linear\"" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 258, "col": 4, "byteIndex": 6960 @@ -1281,7 +1281,7 @@ "doc": "Source source where the step was defined (for error messages)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 262, "col": 2, "byteIndex": 7083 @@ -1319,7 +1319,7 @@ "name": "StepMetadata", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/types/step.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/types/step.ts", "line": 270, "col": 0, "byteIndex": 7250 @@ -1362,7 +1362,7 @@ "name": "LoadScenariosOptions", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/loader.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/loader.ts", "line": 25, "col": 0, "byteIndex": 522 @@ -1401,7 +1401,7 @@ ] }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/loader.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/loader.ts", "line": 36, "col": 2, "byteIndex": 969 @@ -1470,7 +1470,7 @@ "name": "loadScenarios", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/loader.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/loader.ts", "line": 73, "col": 0, "byteIndex": 2127 @@ -1594,7 +1594,7 @@ "name": "SelectorType", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 18, "col": 0, "byteIndex": 385 @@ -1634,7 +1634,7 @@ "name": "Selector", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 36, "col": 0, "byteIndex": 784 @@ -1661,7 +1661,7 @@ "doc": "Type of match: \"tag\" for tags, \"name\" for scenario name" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 38, "col": 2, "byteIndex": 879 @@ -1686,7 +1686,7 @@ "doc": "Regular expression pattern for matching (case-insensitive)" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 41, "col": 2, "byteIndex": 979 @@ -1711,7 +1711,7 @@ "doc": "If true, selector matches scenarios that do NOT match the pattern" }, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 44, "col": 2, "byteIndex": 1081 @@ -1737,7 +1737,7 @@ "name": "parseSelector", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 85, "col": 0, "byteIndex": 2326 @@ -1810,7 +1810,7 @@ "name": "matchesSelector", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 151, "col": 0, "byteIndex": 4165 @@ -1884,7 +1884,7 @@ "name": "applySelectors", "isDefault": false, "location": { - "filename": "https://jsr.io/@probitas/scenario/0.2.6/selector.ts", + "filename": "https://jsr.io/@probitas/scenario/0.2.7/selector.ts", "line": 208, "col": 0, "byteIndex": 5792 @@ -1990,5 +1990,5 @@ } } ], - "generatedAt": "2025-12-09T00:26:36.106Z" + "generatedAt": "2025-12-09T20:05:17.195Z" } diff --git a/data/index/graphql_api.probitas.ts b/data/index/graphql_api.probitas.ts index 9b71bfe..3243435 100644 --- a/data/index/graphql_api.probitas.ts +++ b/data/index/graphql_api.probitas.ts @@ -16,8 +16,8 @@ export default scenario("GraphQL API Test", { `); expect(res) - .ok() - .dataContains({ echo: "Hello GraphQL" }); + .toBeSuccessful() + .toHaveContentContaining({ echo: "Hello GraphQL" }); }) .step("echo - with variables", async (ctx) => { const { gql } = ctx.resources; @@ -31,8 +31,8 @@ export default scenario("GraphQL API Test", { ); expect(res) - .ok() - .dataContains({ echo: "variable message" }); + .toBeSuccessful() + .toHaveContentContaining({ echo: "variable message" }); }) .step("createMessage - mutation", async (ctx) => { const { gql } = ctx.resources; @@ -45,6 +45,6 @@ export default scenario("GraphQL API Test", { } `); - expect(res).ok(); + expect(res).toBeSuccessful(); }) .build(); diff --git a/data/index/grpc_service.probitas.ts b/data/index/grpc_service.probitas.ts index 17c0ebe..c27283a 100644 --- a/data/index/grpc_service.probitas.ts +++ b/data/index/grpc_service.probitas.ts @@ -14,8 +14,8 @@ export default scenario("gRPC Service Test", { }); expect(res) - .ok() - .dataContains({ message: "Hello from probitas" }); + .toBeSuccessful() + .toHaveContentContaining({ message: "Hello from probitas" }); }) .step("EchoWithDelay - delayed response", async (ctx) => { const { grpc } = ctx.resources; @@ -25,8 +25,8 @@ export default scenario("gRPC Service Test", { }); expect(res) - .ok() - .dataContains({ message: "delayed" }) - .durationLessThan(5000); + .toBeSuccessful() + .toHaveContentContaining({ message: "delayed" }) + .toHaveDurationLessThan(5000); }) .build(); diff --git a/data/index/redis_cache.probitas.ts b/data/index/redis_cache.probitas.ts index 561e2d6..b1568fd 100644 --- a/data/index/redis_cache.probitas.ts +++ b/data/index/redis_cache.probitas.ts @@ -19,14 +19,14 @@ export default scenario("Redis Cache Test", { await redis.set(key, "hello world"); const res = await redis.get(key); - expect(res).ok().value("hello world"); + expect(res).toBeSuccessful().toHaveContent("hello world"); }) .step("INCR counter", async (ctx) => { const { redis } = ctx.resources; await redis.set("test:counter", "0"); const res = await redis.incr("test:counter"); - expect(res).ok().count(1); + expect(res).toBeSuccessful().toHaveContent(1); // Cleanup await redis.del("test:counter"); diff --git a/data/index/user_api.probitas.ts b/data/index/user_api.probitas.ts index 989faf7..84b789e 100644 --- a/data/index/user_api.probitas.ts +++ b/data/index/user_api.probitas.ts @@ -37,8 +37,8 @@ export default scenario("User API Integration Test", { const res = await http.get(`/users/${user.id}`); expect(res) - .ok() - .status(200) - .dataContains({ id: user.id, name: user.name }); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveContentContaining({ id: user.id, name: user.name }); }) .build(); diff --git a/docs/client.md b/docs/client.md index 7c00abb..8ff1788 100644 --- a/docs/client.md +++ b/docs/client.md @@ -26,7 +26,7 @@ export default scenario("API Test") .step("Make request", async (ctx) => { const { http } = ctx.resources; const res = await http.get("/health"); - expect(res).ok(); + expect(res).toBeSuccessful(); }) .build(); ``` @@ -118,16 +118,16 @@ Validate responses with chainable assertions: ```typescript expect(res) - .ok() // Status 2xx - .status(200) // Exact status code - .contentType(/application\/json/) // Content-Type pattern - .dataContains({ name: "Alice" }) // Partial JSON match - .durationLessThan(1000); // Response time limit + .toBeSuccessful() // Status 2xx + .toHaveStatus(200) // Exact status code + .toHaveHeader("content-type", /application\/json/) // Content-Type pattern + .toHaveContentContaining({ name: "Alice" }) // Partial JSON match + .toHaveDurationLessThan(1000); // Response time limit // Additional assertions -expect(res).notOk(); // Status not 2xx -expect(res).headerExists("X-Request-Id"); -expect(res).textContains("success"); +expect(res).not.toBeSuccessful(); // Status not 2xx +expect(res).toHaveHeader("X-Request-Id"); +expect(res).toHaveText(/success/); ``` ## SQL Clients @@ -201,12 +201,12 @@ Validate query results: ```typescript expect(result) - .ok() - .count(1) - .dataContains({ name: "Alice" }); + .toBeSuccessful() + .toHaveRowCount(1) + .toHaveContentContaining({ name: "Alice" }); // Match multiple rows -expect(result).dataEquals([ +expect(result).toHaveContent([ { id: 1, name: "Alice" }, { id: 2, name: "Bob" }, ]); @@ -235,7 +235,7 @@ const res = await grpc.call("echo.EchoService", "Echo", { message: "Hello", }); -expect(res).ok().dataContains({ message: "Hello" }); +expect(res).toBeSuccessful().toHaveContentContaining({ message: "Hello" }); const data = res.data(); ``` @@ -250,7 +250,7 @@ for await ( count: 3, }) ) { - expect(res).ok(); + expect(res).toBeSuccessful(); messages.push(res.data()); } ``` @@ -269,7 +269,7 @@ const res = await grpc.clientStream( yield { message: "Third" }; }, ); -expect(res).ok(); +expect(res).toBeSuccessful(); ``` ### Bidirectional Streaming @@ -287,7 +287,7 @@ for await ( }, ) ) { - expect(res).ok(); + expect(res).toBeSuccessful(); console.log("Received:", res.data()); } ``` @@ -310,7 +310,7 @@ const res = await connect.call("echo.EchoService", "Echo", { message: "Hello", }); -expect(res).ok().dataContains({ message: "Hello" }); +expect(res).toBeSuccessful().toHaveContentContaining({ message: "Hello" }); ``` ### Server Streaming @@ -321,7 +321,7 @@ for await ( count: 3, }) ) { - expect(res).ok(); + expect(res).toBeSuccessful(); console.log("Received:", res.data()); } ``` @@ -360,7 +360,9 @@ const res = await graphql.query( { id: "1" }, ); -expect(res).ok().dataContains({ user: { name: "Alice" } }); +expect(res).toBeSuccessful().toHaveContentContaining({ + user: { name: "Alice" }, +}); const user = res.data().user; ``` @@ -381,7 +383,7 @@ const res = await graphql.mutate( { input: { name: "Alice", email: "alice@example.com" } }, ); -expect(res).ok(); +expect(res).toBeSuccessful(); const newUser = res.data().createUser; ``` @@ -400,7 +402,7 @@ const subscription = graphql.subscribe(outdent` `); for await (const res of subscription) { - expect(res).ok(); + expect(res).toBeSuccessful(); console.log("New user:", res.data().userCreated); } ``` @@ -426,7 +428,7 @@ Common Redis operations: await redis.set("key", "value"); await redis.set("key", "value", { ex: 3600 }); // With TTL const result = await redis.get("key"); -expect(result).ok().value("value"); +expect(result).toBeSuccessful().toHaveContent("value"); // Hashes await redis.hset("user:1", { name: "Alice", age: "30" }); @@ -469,11 +471,11 @@ const result = await users.insertOne({ name: "Alice", email: "alice@example.com", }); -expect(result).ok(); +expect(result).toBeSuccessful(); // Find const user = await users.findOne({ _id: result.insertedId }); -expect(user).ok().documentContains({ name: "Alice" }); +expect(user).toBeSuccessful().toHaveContentContaining({ name: "Alice" }); // Find many const allUsers = await users.find({ age: { $gte: 18 } }).toArray(); @@ -504,7 +506,7 @@ By default, an in-memory database is used for testing. // Set and get await kv.set(["users", "1"], { name: "Alice" }); const result = await kv.get(["users", "1"]); -expect(result).ok().value({ name: "Alice" }); +expect(result).toBeSuccessful().toHaveContent({ name: "Alice" }); // List by prefix const users = await kv.list({ prefix: ["users"] }); @@ -549,7 +551,7 @@ await channel.sendToQueue("my-queue", content); // Receive message const result = await channel.get("my-queue"); -expect(result).ok().hasContent(); +expect(result).toBeSuccessful().toHaveContent(); if (result.message) { await channel.ack(result.message); } @@ -582,7 +584,7 @@ await sqs.ensureQueue("my-queue"); // Send message const result = await sqs.send(JSON.stringify({ event: "user.created" })); -expect(result).ok().hasMessageId(); +expect(result).toBeSuccessful().toHaveMessageId(); // Receive and process const messages = await sqs.receive({ maxMessages: 10 }); @@ -650,11 +652,11 @@ Use assertions for expected successes, explicit checks for expected failures: ```typescript // Expected success - use assertions const res = await http.get("/users/1"); -expect(res).ok().status(200); +expect(res).toBeSuccessful().toHaveStatus(200); // Expected failure - disable throwing, check manually const res = await http.get("/users/nonexistent", { throwOnError: false }); -expect(res).status(404); +expect(res).toHaveStatus(404); ``` ### Configure Retries @@ -668,7 +670,7 @@ Use retry configuration for network-dependent operations. See const res = await http.get("/external-api", { retry: { maxAttempts: 3, backoff: "exponential" }, }); - expect(res).ok(); + expect(res).toBeSuccessful(); }, { timeout: 10000, // Allow time for retries }) diff --git a/docs/overview.md b/docs/overview.md index 5ccb86c..29b325b 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -12,7 +12,7 @@ other backend services. message queues with unified APIs - **Type-safe**: Full type inference through the builder chain - **Fluent assertions**: Natural syntax like - `expect(result).ok().dataContains({...})` + `expect(result).toBeSuccessful().toHaveContentContaining({...})` ## Installation @@ -72,9 +72,9 @@ export default scenario("User API Test") const res = await http.get("/users/1"); expect(res) - .ok() - .status(200) - .dataContains({ id: 1 }); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveContentContaining({ id: 1 }); }) .build(); ``` @@ -183,13 +183,20 @@ The `expect()` function auto-dispatches based on result type: ```typescript // HTTP response -expect(httpResponse).ok().status(200).dataContains({ id: 1 }); +expect(httpResponse) + .toBeSuccessful() + .toHaveStatus(200) + .toHaveContentContaining({ id: 1 }); // SQL result -expect(sqlResult).count(1).dataContains({ name: "Alice" }); +expect(sqlResult) + .toHaveRowCount(1) + .toHaveContentContaining({ name: "Alice" }); // gRPC response -expect(grpcResponse).ok().dataContains({ id: "123" }); +expect(grpcResponse) + .toBeSuccessful() + .toHaveContentContaining({ id: "123" }); ``` ## Included Utilities diff --git a/docs/scenario.md b/docs/scenario.md index 564a195..dbd284f 100644 --- a/docs/scenario.md +++ b/docs/scenario.md @@ -30,7 +30,7 @@ export default scenario("User API CRUD", { .step("Get user", async (ctx) => { const { http } = ctx.resources; const res = await http.get("/users/test-user"); - expect(res).status(200); + expect(res).toHaveStatus(200); return res.json(); }) .build(); @@ -395,7 +395,7 @@ options. ```typescript .step("Flaky operation", async (ctx) => { const res = await http.get("/sometimes-fails"); - expect(res).ok(); + expect(res).toBeSuccessful(); return res.json(); }, { retry: { maxAttempts: 3, backoff: "exponential" } @@ -422,28 +422,35 @@ export default scenario("User CRUD API", { tags: ["api", "integration"] }) name: "Alice", email: "alice@example.com", }); - expect(res).ok().status(201).dataContains({ name: "Alice" }); + expect(res).toBeSuccessful().toHaveStatus(201).toHaveContentContaining({ + name: "Alice", + }); return res.json<{ id: number }>(); }) .step("Get user", async (ctx) => { const { http } = ctx.resources; const { id } = ctx.previous; const res = await http.get(`/users/${id}`); - expect(res).ok().status(200).dataContains({ id, name: "Alice" }); + expect(res).toBeSuccessful().toHaveStatus(200).toHaveContentContaining({ + id, + name: "Alice", + }); return res.json(); }) .step("Update user", async (ctx) => { const { http } = ctx.resources; const { id } = ctx.previous; const res = await http.patch(`/users/${id}`, { name: "Bob" }); - expect(res).ok().status(200).dataContains({ name: "Bob" }); + expect(res).toBeSuccessful().toHaveStatus(200).toHaveContentContaining({ + name: "Bob", + }); return { id }; }) .step("Delete user", async (ctx) => { const { http } = ctx.resources; const { id } = ctx.previous; const res = await http.delete(`/users/${id}`); - expect(res).ok().status(204); + expect(res).toBeSuccessful().toHaveStatus(204); }) .build(); ``` @@ -497,7 +504,9 @@ export default scenario("Database Transaction", { tags: ["db", "postgres"] }) "SELECT name FROM users WHERE id = $1", [id], ); - expect(result).ok().count(1).dataContains({ name: "Alice" }); + expect(result).toBeSuccessful().toHaveRowCount(1).toHaveContentContaining({ + name: "Alice", + }); }) .build(); ``` @@ -519,7 +528,7 @@ export default scenario("gRPC Echo Service", { tags: ["grpc"] }) const res = await grpc.call("echo.EchoService", "Echo", { message: "Hello", }); - expect(res).ok().dataContains({ message: "Hello" }); + expect(res).toBeSuccessful().toHaveContentContaining({ message: "Hello" }); return res.data(); }) .step("Server streaming", async (ctx) => { @@ -530,7 +539,7 @@ export default scenario("gRPC Echo Service", { tags: ["grpc"] }) count: 3, }) ) { - expect(res).ok(); + expect(res).toBeSuccessful(); messages.push(res.data()); } return messages; @@ -583,7 +592,7 @@ export default scenario("Full Stack Test", { .step("Create via API", async (ctx) => { const { http } = ctx.resources; const res = await http.post("/items", { name: "Test Item" }); - expect(res).ok().status(201); + expect(res).toBeSuccessful().toHaveStatus(201); return res.json<{ id: number }>(); }) .step("Verify in database", async (ctx) => { @@ -593,7 +602,9 @@ export default scenario("Full Stack Test", { "SELECT * FROM items WHERE id = $1", [id], ); - expect(result).ok().count(1).dataContains({ name: "Test Item" }); + expect(result).toBeSuccessful().toHaveRowCount(1).toHaveContentContaining({ + name: "Test Item", + }); }) .build(); ``` diff --git a/probitas/site-health.probitas.ts b/probitas/site-health.probitas.ts index 106a053..21fd1a0 100644 --- a/probitas/site-health.probitas.ts +++ b/probitas/site-health.probitas.ts @@ -37,11 +37,11 @@ export default scenario("Probitas docs site health", { }); expect(res) - .ok() - .status(200) - .contentType(/text\/markdown/) - .textContains("This is a Markdown page for LLMs.") - .textContains("# Probitas"); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /text\/markdown/) + .toHaveText(/This is a Markdown page for LLMs\./) + .toHaveText(/# Probitas/); }) .step("serves human homepage HTML", async ({ resources }) => { const res = await resources.http.get("/", { @@ -50,24 +50,24 @@ export default scenario("Probitas docs site health", { }); expect(res) - .ok() - .status(200) - .contentType(/text\/html/) - .textContains("Probitas - Scenario-based Testing Framework") - .textContains( - "Scenario-based testing framework designed for API, database, and message queue testing", + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /text\/html/) + .toHaveText(/Probitas - Scenario-based Testing Framework/) + .toHaveText( + /Scenario-based testing framework designed for API, database, and message queue testing/, ) - .textContains("AI-Friendly Documentation"); + .toHaveText(/AI-Friendly Documentation/); }) .step("exposes raw markdown for docs pages", async ({ resources }) => { for (const doc of docPages) { const res = await resources.http.get(`${doc.path}.md`); const heading = docHeadings[doc.path] ?? "# "; expect(res) - .ok() - .status(200) - .contentType(/text\/markdown/) - .textContains(heading); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /text\/markdown/) + .toHaveText(new RegExp(heading.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))); } }) .step("renders docs HTML pages", async ({ resources }) => { @@ -76,35 +76,39 @@ export default scenario("Probitas docs site health", { headers: { accept: "text/html" }, }); expect(res) - .ok() - .status(200) - .contentType(/text\/html/) - .textContains(doc.label); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /text\/html/) + .toHaveText( + new RegExp(doc.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")), + ); } }) .step("provides LLM endpoints", async ({ resources }) => { const indexRes = await resources.http.get("/llms.txt"); expect(indexRes) - .ok() - .status(200) - .contentType(/text\/markdown/) - .textContains("## Documentation") - .textContains("## API Reference"); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /text\/markdown/) + .toHaveText(/## Documentation/) + .toHaveText(/## API Reference/); }) .step("renders API index and package JSON", async ({ resources }) => { const indexRes = await resources.http.get("/api", { headers: { accept: "text/html" }, }); - expect(indexRes).ok().status(200).textContains("API Reference"); + expect(indexRes).toBeSuccessful().toHaveStatus(200).toHaveText( + /API Reference/, + ); const packages = await getPackageList(); for (const pkg of packages) { const res = await resources.http.get(`/api/${pkg.name}.json`); expect(res) - .ok() - .status(200) - .contentType(/application\/json/) - .dataContains({ name: pkg.name, specifier: pkg.specifier }); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /application\/json/) + .toHaveContentContaining({ name: pkg.name, specifier: pkg.specifier }); } }) .step("renders API markdown endpoints", async ({ resources }) => { @@ -112,14 +116,19 @@ export default scenario("Probitas docs site health", { for (const pkg of packages) { const res = await resources.http.get(`/api/${pkg.name}.md`); expect(res) - .ok() - .status(200) - .contentType(/text\/markdown/) - .textContains(pkg.specifier); + .toBeSuccessful() + .toHaveStatus(200) + .toHaveHeader("content-type", /text\/markdown/) + .toHaveText( + new RegExp(pkg.specifier.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")), + ); } }) .step("serves static assets", async ({ resources }) => { const res = await resources.http.get("/static/style.css"); - expect(res).ok().status(200).contentType(/text\/css/); + expect(res).toBeSuccessful().toHaveStatus(200).toHaveHeader( + "content-type", + /text\/css/, + ); }) .build();